Skip to content

Commit

Permalink
test: bounds on WETH gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
QGarchery committed Oct 17, 2024
1 parent dde9f1d commit 4b95237
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integration/TestIntegrationWETHGateway.sol
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ contract TestIntegrationWETHGateway is IntegrationTest {
if (receiver != address(this)) assertEq(address(this).balance, balanceBefore, "balanceAfter != balanceBefore");
assertApproxEqAbs(withdrawn, Math.min(toWithdraw, supply), 2, "withdrawn != minimum");
assertApproxEqAbs(
morpho.supplyBalance(weth, address(this)), supply - withdrawn, 2, "supplyBalance != supply - toWithdraw"
morpho.supplyBalance(weth, address(this)), supply - withdrawn, 3, "supplyBalance != supply - toWithdraw"
);
assertApproxEqAbs(
receiver.balance,
Expand Down Expand Up @@ -181,7 +181,7 @@ contract TestIntegrationWETHGateway is IntegrationTest {
assertApproxEqAbs(
morpho.collateralBalance(weth, address(this)),
collateral - withdrawn,
2,
3,
"collateralBalance != collateral - toWithdraw"
);
assertApproxEqAbs(
Expand Down

0 comments on commit 4b95237

Please sign in to comment.