From 486d3c15bd329dbe9574cdceedb850297c79a424 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wei=C3=9Fer=20Hase?= Date: Fri, 26 Jul 2024 11:52:48 +0200 Subject: [PATCH] fix: typos --- test/invariants/fuzz/BMath.t.sol | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/invariants/fuzz/BMath.t.sol b/test/invariants/fuzz/BMath.t.sol index 279a3add..a113222f 100644 --- a/test/invariants/fuzz/BMath.t.sol +++ b/test/invariants/fuzz/BMath.t.sol @@ -222,17 +222,17 @@ contract FuzzBMath is EchidnaTest { bmath.calcInGivenOut(tokenBalanceIn, tokenWeightIn, tokenBalanceOut, tokenWeightOut, tokenAmountOut, 0); emit Log('calc_tokenAmountIn', calc_tokenAmountIn); - uint256 calc_inv_tokenAmountIn = + uint256 calc_inv_poolAmountIn = bmath.calcPoolInGivenSingleOut(tokenBalanceOut, tokenWeightOut, poolSupply, totalWeight, tokenAmountOut, swapFee); - emit Log('calc_inv_tokenAmountIn', calc_inv_tokenAmountIn); + emit Log('calc_inv_poolAmountIn', calc_inv_poolAmountIn); - uint256 calc_inv_poolAmountIn = bmath.calcSingleInGivenPoolOut( - tokenBalanceIn, tokenWeightIn, poolSupply, totalWeight, calc_inv_tokenAmountIn, swapFee + uint256 calc_inv_tokenAmountIn = bmath.calcSingleInGivenPoolOut( + tokenBalanceIn, tokenWeightIn, poolSupply, totalWeight, calc_inv_poolAmountIn, swapFee ); - emit Log('calc_inv_poolAmountIn', calc_inv_poolAmountIn); + emit Log('calc_inv_tokenAmountIn', calc_inv_tokenAmountIn); assert( - calc_tokenAmountIn <= calc_inv_poolAmountIn // direct path should be lesser or equal to indirect path + calc_tokenAmountIn <= calc_inv_tokenAmountIn // direct path should be lesser or equal to indirect path ); } }