feat: Support new transfer logic in all executors

TODO:
- Fix failing tests
- Remove permit2 from initialization of contracts
This commit is contained in:
TAMARA LIPOWSKI
2025-05-14 20:42:19 -04:00
parent 0f9af65846
commit 27dfde3118
22 changed files with 378 additions and 462 deletions

View File

@@ -185,10 +185,11 @@ contract TychoRouterTestSetup is Constants, Permit2TestHelper, TestUtils {
address target,
address receiver,
bool zero2one,
TokenTransfer.TransferType transferType
bool transferNeeded
) internal pure returns (bytes memory) {
return
abi.encodePacked(tokenIn, target, receiver, zero2one, transferType);
return abi.encodePacked(
tokenIn, target, receiver, zero2one, transferNeeded
);
}
function encodeUniswapV3Swap(
@@ -197,7 +198,8 @@ contract TychoRouterTestSetup is Constants, Permit2TestHelper, TestUtils {
address receiver,
address target,
bool zero2one,
TokenTransfer.TransferType transferType
bool transferFromNeeded,
bool transferNeeded
) internal view returns (bytes memory) {
IUniswapV3Pool pool = IUniswapV3Pool(target);
return abi.encodePacked(
@@ -207,7 +209,8 @@ contract TychoRouterTestSetup is Constants, Permit2TestHelper, TestUtils {
receiver,
target,
zero2one,
transferType
transferFromNeeded,
transferNeeded
);
}
}