From 477e435d19732afd608dc96fff273dd86c9d2e4d Mon Sep 17 00:00:00 2001 From: Kaloyan Gangov Date: Thu, 25 Jul 2024 12:50:50 +0300 Subject: [PATCH] reverts the back to OG implementation of compute_swap --- contracts/pool_stable/src/contract.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/pool_stable/src/contract.rs b/contracts/pool_stable/src/contract.rs index 8197aef3d..e8523c661 100644 --- a/contracts/pool_stable/src/contract.rs +++ b/contracts/pool_stable/src/contract.rs @@ -948,7 +948,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, ),