Monaco said Wednesday that they had bought veteran French striker Wissam ben Yedder from Sevilla, with young Portuguese attacker Rony Lopes going the other way.

According to sources close to Monaco, the transfer is for 40 million euros ($44.7 million), the amount of Ben Yedder’s release clause, with Lopes valued at 20 million euros.

That would make Ben Yedder, 29, the most expensive player bought by a Ligue 1 club so far in this summer’s transfer window, ahead of Paris Saint-Germain recruits Idrissa Gueye and Abdou Diallo.

The striker has four French caps and scored 70 goals for Sevilla in 138 matches over three seasons. He moved to La Liga in 2016 after six seasons at Toulouse. Ben Yedder has reportedly signed a five-year contract.

Lopes, who was under contract with Monaco until June 2022, has signed a five-year deal with Sevilla.

The 23-year-old joined Monaco in 2015 for around 15 million euros from Manchester City, before being loaned to Lille. Back in Monaco in 2017, he scored 15 goals and won the first of his two Portuguese caps in November 2017. Last season he scored four goals as Monaco struggled.

Monaco, French champions in 2017 and runners-up in 2018, are rebuilding after a season of turmoil.

Coach Leonardo Jardim was fired in October. His replacement Thierry Henry could not lift the club out of the relegation zone and was fired in January. Jardim returned and dragged the club to a 17th-place finish.