From f7c5aeb3656b8b7919fb2fc3438eda80b46bb8bd Mon Sep 17 00:00:00 2001 From: kinrezc Date: Thu, 15 Feb 2024 18:41:07 -0500 Subject: [PATCH] feat: ln optimal arbitrage implementation --- src/test/LogNormal/LogNormalTest.t.sol | 27 -------------------------- 1 file changed, 27 deletions(-) diff --git a/src/test/LogNormal/LogNormalTest.t.sol b/src/test/LogNormal/LogNormalTest.t.sol index aca1a821..24d449ab 100644 --- a/src/test/LogNormal/LogNormalTest.t.sol +++ b/src/test/LogNormal/LogNormalTest.t.sol @@ -89,33 +89,6 @@ contract LogNormalTest is Test { _; } - modifier revert_scenario() { - vm.warp(0); - - LogNormal.LogNormalParams memory params = LogNormal.LogNormalParams({ - strike: 0.67323818941934077 ether, - sigma: ONE, - tau: ONE, - swapFee: TEST_SWAP_FEE, - controller: address(0) - }); - uint256 init_p = 1_329_956_352_651_532_999; - uint256 init_x = 70.658087306013359413 ether; - bytes memory initData = - solver.getInitialPoolData(init_x, init_p, params); - - IDFMM.InitParams memory initParams = IDFMM.InitParams({ - strategy: address(logNormal), - tokenX: tokenX, - tokenY: tokenY, - data: initData - }); - - dfmm.init(initParams); - - _; - } - function test_ln_swap_x_in() public basic { bool xIn = true; uint256 amountIn = 0.1 ether;