Recovery Mode unwind
Mezo enters Recovery Mode when its total collateral ratio falls under 150%. In Recovery Mode it refuses to close troves and blocks collateral withdrawals. v8’s unwind() still takes the vault’s loan down at once.
Before v8
unwind() always called Mezo’s closeTrove. In Recovery Mode Mezo refused it, so the guardian could only pause borrowing and wait.
In v8
unwind()turns borrowing off.- If Mezo would refuse the close, the vault repays the loan down to Mezo’s minimum loan from its savings. Mezo allows repayments in Recovery Mode, since they lift its ratio.
- The vault sets
closing. - The first
rebalance()that Mezo lets close the loan closes it and clearsclosing. Anyone can callrebalance(), and the keeper does every 15 minutes.
While closing is set, spare BTC waits idle and no new debt is taken.
The guardian and the owner can call unwind(). If the owner turns borrowing back on, a close that is still waiting is called off.
What it means for holders
- The loan shrinks to Mezo’s minimum at once, so most of the liquidation risk goes with it.
- Exits are still limited to idle BTC until Mezo leaves Recovery Mode, because Mezo blocks collateral withdrawals. Larger exits wait in the queue.
- The rest of the loan closes on its own once Mezo allows it.
The app’s pool page reads Closing in the Mezo loop pane while an unwind waits to finish.
The tests are in RecoveryUnwind.t.sol.