diff --git a/contracts/pool_stable/src/contract.rs b/contracts/pool_stable/src/contract.rs index e0c32128..8d4becf8 100644 --- a/contracts/pool_stable/src/contract.rs +++ b/contracts/pool_stable/src/contract.rs @@ -963,7 +963,7 @@ pub fn compute_swap( env, amp as u128, scale_value( - offer_pool + convert_i128_to_u128(before_commission), + offer_pool + offer_amount, greatest_precision, DECIMAL_PRECISION, ),