A potential debt-to-equity swap at Brazil’s Petrobras will ease concerns for private sector bondholders by allowing the state-owned oil company to write off up to BRL87bn ($21.6bn) in debt, an analyst told LatinFinance. A possible exchange will also provide some comfort to other state-owned companies, he said.

According to a note from analysts at BTG Pactual, Brazil’s government-controlled banks Banco do Brasil and Caixa Economica Federal or the national development bank BNDES could convert their outstanding loans to Petrobras into equity.

The BTG analysts said a swap would reduce Petrobras’ leverage by at least 1x or as much as 2.2x, although it would not drop below 3.4x. The analysts estimate that Petrobras owes BRL50bn to BNDES, BRL26bn to Banco do Brasil and BRL11bn to Caixa.

An equities banker pointed out the government has not stated specifically that it planned to bail out Petrobras. “But a swap wipes out some of the company’s public debt because the private sector is not willing to take that risk,” he said.

Petrobras’ existing shareholders could see their share capital diluted, the analyst said. But with oil prices around $30 per barrel, Petrobras shareholders may be happy to sell, he added.

Petrobras initiated a $15.1bn divestment plan this year. The company has about $24bn in debt maturing over the next two years.

Petrobras, BNDES, Banco do Brasil and Caixa Economica Federal did not respond to requests for comment.