From e1a19a1dcb5ffd387d2b168514fdff0a24511a94 Mon Sep 17 00:00:00 2001 From: mpoplavkov Date: Sun, 20 Oct 2024 09:37:11 +0100 Subject: [PATCH] Fix amount in calculation --- libraries/math/src/pool_math.sw | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/math/src/pool_math.sw b/libraries/math/src/pool_math.sw index 7b5f314..8bb07d2 100644 --- a/libraries/math/src/pool_math.sw +++ b/libraries/math/src/pool_math.sw @@ -84,7 +84,7 @@ pub fn get_amount_in( pow_decimals_out, ); - let amount_out_adjusted = adjust(output_amount, pow_decimals_in); + let amount_out_adjusted = adjust(output_amount, pow_decimals_out); let reserve_in_adjusted = adjust(reserve_in, pow_decimals_in); let reserve_out_adjusted = adjust(reserve_out, pow_decimals_out); let y = get_y(