Skip to content

Commit c2d071e

Browse files
remove test
1 parent cb362eb commit c2d071e

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

test/EulerSwapPeriphery.t.sol

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,4 @@ contract EulerSwapPeripheryTest is EulerSwapTestBase {
7777
periphery.swapExactOut(address(eulerSwap), address(assetTST), address(assetTST2), amountOut * 2, amountIn);
7878
vm.stopPrank();
7979
}
80-
81-
function test_fInverseFuzz(uint256 x) public view {
82-
x = bound(x, 2, 50e18 - 1); // note that it fails if 1 used as minimum, not an issue since only used in periphery
83-
uint256 y = eulerSwapHarness.exposedF(x, 1e18, 1e18, 50e18, 50e18, 0.85e18);
84-
uint256 outX = periphery.fInverse(y, 1e18, 1e18, 50e18, 50e18, 0.85e18);
85-
86-
// Ensure x is within the expected range
87-
assertGe(outX, x); // Asserts xOut >= x
88-
assertLe(outX, x + 1); // Asserts xOut <= x + 1
89-
90-
// Alternative using assertApproxEqAbs for absolute difference within 1
91-
assertApproxEqAbs(x, outX, 1);
92-
}
9380
}

0 commit comments

Comments
 (0)