maint_health = 10 * 10000 * 0.95 - 90000 = 5000
maint_health = 10 * 9400 * 0.95 - 90000 = -700
MangoAccountmust have a
maint_healthabove zero. If it slips below zero, liquidators can start liquidating the account until the
init_healthis above zero. The liquidator may forcibly cancel all open orders and start paying off liabilities in the account and withdrawing the assets (defined as positive perp balances or token deposits) in the account. The liquidator earns the
SettlePnlinstruction on chain.
UpdateFundinginstruction is called by the Keeper roughly every 5 seconds and so funding is paid out roughly every 5 seconds. The calculation is as follows: