Function jet_margin::jet_margin::liquidate_end
source · [−]pub fn liquidate_end(
ctx: Context<'_, '_, '_, '_, LiquidateEnd<'_>>
) -> Result<()>
Expand description
End the liquidation state for an account
Normally must be signed by the liquidator that started the liquidation state. Can be signed by anyone after the timeout period has elapsed.
Accounts
Name | Type | Description |
authority | signer | The pubkey calling the instruction to end liquidation. |
margin_account | writable | The account in need of liquidation. |
liquidation | writable | The account to persist the state of liquidation. |
Events
Event Name | Description |
events::LiquidationEnded | Marks the ending of the liquidation. |