Liverpool and Bayern Munich have agreed a 41m euro (£35.1m) deal for the sale of Sadio Mane.
The Reds will also get a fixed 32m euros (£27.4m) with an additional 6m euros based on appearances., land 3m euros based on individual and team achievements.
Liverpool turned down two bids from Bayern before coming to an agreement over the transfer of the 30-year-old, whose deal with the Reds ran until next summer.
Mane joined Liverpool for £31m plus £2.5m in add-ons from Southampton in 2016.
Since then, he has scored 90 Premier League goals for the Anfield club and finished last season with 23 goals in all competitions.
News of his departure follows Tuesday’s signing of Uruguay forward Darwin Nunez from Benfica for an initial £64m.
Mane is expected to replace Robert Lewandowski at Bayern, with the Poland international set to lave the German club having been linked with a move to Spanish giants Barcelona.