Brazil paid 2 million pounds sterling to Portugal as compensation for independence; this was established in the Treaty of Rio de Janeiro (1825) which was mediated by Britain.
ART. IV - There will now be peace and alliance and the most perfect friendship between the Kingdoms of Portugal and the Algarves and the Empire of Brazil with complete forgetfulness of the past disputes between the respective peoples. His Imperial Majesty pledges to pay the sum of two million pounds sterling, or 80 tons of gold, as compensation, to the Kingdoms of Portugal and the Algarves.
Are there any reliable records of what Portugal did with the money? There are claims that this money was lent to Brazil by Britain, and that the money never even left Britain, because it was used to pay debt Portugal had, but I don't know if this is true. For example of the claim, see below from Mundo Educação:
As a newly formed nation, Brazil could not pay the heavy compensation established by the 1825 treaty. At that time, the British lent the resources that ensured the payment of this amount. In fact, the money did not even leave England itself, as the Portuguese had to pay an equivalent debt to the same creditors.