Add isNative argument

This commit is contained in:
Karl Kempe 2022-01-20 17:59:35 +00:00
parent 795ce1177d
commit 4ffd239c2f
1 changed files with 5 additions and 1 deletions

View File

@ -580,6 +580,7 @@ export class UniswapToUniswapExecutor {
tokens: CrossChainSwapTokens;
// swapping
isNative: boolean;
slippage: string;
relayerFeeAmount: string;
srcExecutionParams: ExecutionParameters;
@ -594,10 +595,13 @@ export class UniswapToUniswapExecutor {
async initialize(
tokenInAddress: string,
tokenOutAddress: string
tokenOutAddress: string,
isNative: boolean
): Promise<void> {
this.clearState();
this.isNative = isNative;
const srcProvider = makeProvider(tokenInAddress);
const dstProvider = makeProvider(tokenOutAddress);