Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fmoletta committed Jun 6, 2024
1 parent ecd4d70 commit 2ff0c2d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ pub fn excess_balance_hint(
.and_then(|sum| sum.checked_add(token_assets_value_d))
.ok_or_else(|| HintError::ExcessBalanceCalculationFailed("account_value".into()))?;
let fee_provision = fees
.get(&account)
.get(account.as_ref())
.and_then(|fee| abs_balance_value.checked_mul(*fee))
.ok_or_else(|| HintError::ExcessBalanceKeyError("fees".into()))?;
let margin_requirement = position_margin
Expand Down

0 comments on commit 2ff0c2d

Please sign in to comment.