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

NameTypeDescription
authoritysignerThe pubkey calling the instruction to end liquidation.
margin_accountwritableThe account in need of liquidation.
liquidationwritableThe account to persist the state of liquidation.

Events

Event NameDescription
events::LiquidationEndedMarks the ending of the liquidation.