Brazil’s Vale and Japan’s Mitsui said they have agreed to revised terms for the sale of stakes in a coal mine, a port and railway in Mozambique.

Vale said it will earn as much as $768m from selling equity shares in the Moatize coal mine and the Nacala logistics corridor. 

Mitsui will pay $255m upfront for 15% of the coal mine, followed by another payment of up to $195m if the mine meets performance conditions, Vale said in a statement. The Brazilian miner owns 95% of the Moatize mine, 

The Japanese trading company will also pay $348m for half of the port and railway project and provide a long-term credit line for $165m. Vale owns 70% of the Nacala corridor.

Vale and Mitsui are negotiating $2.7bn in project financing with several international lenders, including Japanese banks, CEO Murilo Ferreira said in recorded remarks on Vale’s website. 

Vale reached an agreement to sell 15% of Moatize to Mitsui for $450m in December 2014. The original deal also included Mitsui investing $313m in to the Nacala project.