Skip to content

Commit

Permalink
test: loosen tolerance on Curve dy
Browse files Browse the repository at this point in the history
  • Loading branch information
danielattilasimon committed Feb 8, 2025
1 parent c99a259 commit 6bea836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/test/ExchangeHelpers.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6bea836

Please sign in to comment.