chore: fix breaking tests and start addressing PR review comments

This commit is contained in:
pedrobergamini
2025-06-06 19:17:08 -03:00
parent 17e535494b
commit 5282e2bc83
8 changed files with 92 additions and 44 deletions

View File

@@ -64,10 +64,10 @@ contract TychoRouterTestSetup is Constants, Permit2TestHelper, TestUtils {
UniswapV3Executor public pancakev3Executor;
UniswapV4Executor public usv4Executor;
BalancerV2Executor public balancerv2Executor;
BebopExecutor public bebopExecutor;
EkuboExecutor public ekuboExecutor;
CurveExecutor public curveExecutor;
MaverickV2Executor public maverickv2Executor;
BebopExecutor public bebopExecutor;
MockERC20[] tokens;
function setUp() public {
@@ -123,11 +123,11 @@ contract TychoRouterTestSetup is Constants, Permit2TestHelper, TestUtils {
factoryPancakeV3, initCodePancakeV3, PERMIT2_ADDRESS
);
balancerv2Executor = new BalancerV2Executor(PERMIT2_ADDRESS);
bebopExecutor = new BebopExecutor(BEBOP_SETTLEMENT, PERMIT2_ADDRESS);
ekuboExecutor = new EkuboExecutor(ekuboCore, PERMIT2_ADDRESS);
curveExecutor = new CurveExecutor(ETH_ADDR_FOR_CURVE, PERMIT2_ADDRESS);
maverickv2Executor =
new MaverickV2Executor(MAVERICK_V2_FACTORY, PERMIT2_ADDRESS);
bebopExecutor = new BebopExecutor(BEBOP_SETTLEMENT, PERMIT2_ADDRESS);
address[] memory executors = new address[](9);
executors[0] = address(usv2Executor);
@@ -135,10 +135,10 @@ contract TychoRouterTestSetup is Constants, Permit2TestHelper, TestUtils {
executors[2] = address(pancakev3Executor);
executors[3] = address(usv4Executor);
executors[4] = address(balancerv2Executor);
executors[5] = address(bebopExecutor);
executors[6] = address(ekuboExecutor);
executors[7] = address(curveExecutor);
executors[8] = address(maverickv2Executor);
executors[5] = address(ekuboExecutor);
executors[6] = address(curveExecutor);
executors[7] = address(maverickv2Executor);
executors[8] = address(bebopExecutor);
return executors;
}