Skip to content

Commit

Permalink
added comment to test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Harvey committed Dec 21, 2023
1 parent 41cce7e commit d4481c2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1511,7 +1511,10 @@ contract RegressionTestReservesWith18QuotePrecision6CollateralPrecisionERC20Pool
vm.setEnv("NO_OF_ACTORS", "50");
super.setUp();
}

/**
Test was failing in moveQuoteToken due to Lps getting added to toBucket without any deposit being added.
This situation arises when toBucketScale is large enough to make unscaled amount to move 0. moveQuoteToken did not have unscaledAmount == 0 check.
*/
function test_regression_B2_failure_moveQuote() external {
_reserveERC20PoolHandler.withdrawBonds(115792089237316195423570985008687907853269984665640564039457584007913129639935, 2, 115792089237316195423570985008687907853269984665640564039457584007913129639934);
_reserveERC20PoolHandler.removeQuoteToken(3, 115792089237316195423570985008687907853269984665640564039457584007913129639935, 115792089237316195423570985008687907853269984665640564039457584007913129639935, 115792089237316195423570985008687907853269984665640564039457584007913129639933);
Expand Down

0 comments on commit d4481c2

Please sign in to comment.