Skip to content

Commit

Permalink
fix: typos
Browse files Browse the repository at this point in the history
  • Loading branch information
wei3erHase committed Jul 26, 2024
1 parent 7e9c592 commit 486d3c1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/invariants/fuzz/BMath.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}
}

0 comments on commit 486d3c1

Please sign in to comment.