Aberdeen have accepted a £4.5m offer from Liverpool for 18-year-old right-back Calvin Ramsay.
The deal also includes £3m of potential add-ons and a 20% sell-on clause.
The Scotland Under-21 international has agreed a five-year contract and is expected to finalise the move following his medical in the next few days.
He is set to become Aberdeen's record sale, beating the £3m received from Nottingham Forest for defender Scott McKenna in 2020.
Ramsay has played 39 games - including 33 last season - for the Scottish Premiership side after rising through the youth ranks.
The full-back was named young player of the year by the Scottish Football Writers Association in April after an impressive breakthrough campaign that saw him linked with a host of European clubs.
On completion of the deal, he will be Liverpool's third arrival this summer following £64m Uruguay striker Darwin Nunez from Benfica and £5m Fulham forward Fabio Carvalho.