Function jet_margin::jet_margin::verify_healthy
source · [−]pub fn verify_healthy(
ctx: Context<'_, '_, '_, '_, VerifyHealthy<'_>>
) -> Result<()>
Expand description
Verify that the account is healthy, by validating the collateralization ration is above the minimum.
There’s no real reason to call this instruction, outside of wanting to simulate the health check for a margin account.
Accounts
Name | Type | Description |
margin_account | read_only | The account to verify the health of. |
Events
Event Name | Description |
events::VerifiedHealthy | Marks the verification of the position. |