Ansu Fati has signed a new five-and-a-half year contract at Barcelona which includes a €1 billion (£846m/$1.16bn) release clause, the Catalan club confirmed on Wednesday.
The 18-year-old has agreed to remain at Camp Nou through to 2027, bringing to an end the recent speculation over his future.
Barca reportedly had the option to extend Ansu's contract by two years already, but they have instead moved to make sure that he remains on their books for the long term.
Goal reported earlier in October that Barca had prioritised new contracts for Ansu and his Spain team-mate Pedri, but they were unable to offer lucrative terms to either man due to their current financial problems.
The Liga giants sanctioned the departure of a number of key players over the summer to reduce their overall wage bill, including Lionel Messi and Antoine Griezmann, with club president Joan Laporta now in the process of balancing the books.