feat: Support new transfer logic in all executors
TODO: - Fix failing tests - Remove permit2 from initialization of contracts
This commit is contained in:
@@ -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
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user