Skip to content

Commit

Permalink
program: fix margin ratio call in arb perp
Browse files Browse the repository at this point in the history
  • Loading branch information
crispheaney committed Oct 23, 2024
1 parent 2baddb4 commit 6b69bab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions programs/jit-proxy/src/instructions/arb_perp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ pub fn arb_perp<'c: 'info, 'info>(
let init_margin_ratio = perp_market.get_margin_ratio(
intermediate_base.unsigned_abs().cast()?,
MarginRequirementType::Initial,
taker.is_high_leverage_mode(),
)?;

// assumes all free collateral in quote asset token
Expand Down

0 comments on commit 6b69bab

Please sign in to comment.