diff --git a/.gas-snapshot b/.gas-snapshot index cda64dca..3e8b12f8 100644 --- a/.gas-snapshot +++ b/.gas-snapshot @@ -75,15 +75,15 @@ testFailPermitBadDeadline() (gas: 30486) testFailPermitBadNonce() (gas: 30436) testFailRedeemWithNoShareAmount() (gas: 7821) testFailRedeemWithNotEnoughShareAmount() (gas: 172439) -testFailWithdrawWithNoUnderlyingAmount() (gas: 7814) +testFailWithdrawWithNoUnderlyingAmount() (gas: 7817) testFailMintWithNoApproval() (gas: 52260) testMetaData() (gas: 7078) testFailDepositWithNotEnoughApproval() (gas: 123824) testFailRedeemZero() (gas: 5645) -testFailWithdrawWithNotEnoughUnderlyingAmount() (gas: 172438) +testFailWithdrawWithNotEnoughUnderlyingAmount() (gas: 172441) testFailDepositZero() (gas: 3212) -testMultipleMintDepositRedeemWithdraw() (gas: 1329710) -testWithdrawZero() (gas: 44405) +testMultipleMintDepositRedeemWithdraw() (gas: 1329713) +testWithdrawZero() (gas: 44408) testFailDepositWithNoApproval() (gas: 52232) testMintZero() (gas: 44692) testSafeTransferFromToERC721Recipient() (gas: 885885) diff --git a/src/test/FixedPointMathLib.t.sol b/src/test/FixedPointMathLib.t.sol index d7414b3f..7d5fbcab 100644 --- a/src/test/FixedPointMathLib.t.sol +++ b/src/test/FixedPointMathLib.t.sol @@ -187,7 +187,7 @@ contract FixedPointMathLibTest is DSTestPlus { if (y == 0 || (x != 0 && (x * 1e18) / 1e18 != x)) return; } - assertEq(FixedPointMathLib.divWadUp(x, y), x * 1e18 == 0 ? 0 : (x * 1e18 - 1) / y + 1); + assertEq(FixedPointMathLib.divWadUp(x, y), x == 0 ? 0 : (x * 1e18 - 1) / y + 1); } function testFailDivWadUpOverflow(uint256 x, uint256 y) public pure {