From 2ff0c2dce3b67e7f637eb492474a052f8f6899c3 Mon Sep 17 00:00:00 2001 From: Federica Date: Thu, 6 Jun 2024 17:45:58 -0300 Subject: [PATCH] fix --- vm/src/hint_processor/builtin_hint_processor/excess_balance.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/src/hint_processor/builtin_hint_processor/excess_balance.rs b/vm/src/hint_processor/builtin_hint_processor/excess_balance.rs index c6eb5c4d64..7c75fa137f 100644 --- a/vm/src/hint_processor/builtin_hint_processor/excess_balance.rs +++ b/vm/src/hint_processor/builtin_hint_processor/excess_balance.rs @@ -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