From 6bea836a7d1593f76c6773ef19ca7a678e4f3fd8 Mon Sep 17 00:00:00 2001 From: Daniel Simon Date: Sat, 8 Feb 2025 12:28:22 +0700 Subject: [PATCH] test: loosen tolerance on Curve dy --- contracts/test/ExchangeHelpers.t.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/test/ExchangeHelpers.t.sol b/contracts/test/ExchangeHelpers.t.sol index f318b4046..1472bc47b 100644 --- a/contracts/test/ExchangeHelpers.t.sol +++ b/contracts/test/ExchangeHelpers.t.sol @@ -85,7 +85,7 @@ contract ExchangeHelpersTest is Test, UseDeployment { uint256 dy = curveUsdcBold.exchange(i, j, dx, 0); assertEqDecimal(IERC20(outputToken).balanceOf(address(this)) - balance0, dy, dyDecimals, "balance != dy"); - assertApproxEq(dy, dyExpected, 2e-6 ether / dyDiv, 4e-6 ether, dyDecimals, "dy !~= expected dy"); + assertApproxEq(dy, dyExpected, 2e-6 ether / dyDiv, 5e-6 ether, dyDecimals, "dy !~= expected dy"); } function test_UniV3_CanQuoteApproxDx(bool collToUsdc, uint256 collIndex, uint256 dyExpected) external {