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 deal and is set to finalise the move following his medical in the next few days.
Ramsay has played 39 games - including 33 last season - for Scottish Premiership club Aberdeen after rising through the youth ranks.
He was named young player of the year by the Scottish Football Writers Association in April after an impressive breakthrough campaign, despite Aberdeen's disappointing 10th-place league finish.
He is now set to become the club's record sale, beating the £3m received from Nottingham Forest for defender Scott McKenna in 2020.