From 258302bf252c226fc76232da6594069fa1a53563 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 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, ),