Add isNative argument
This commit is contained in:
parent
795ce1177d
commit
4ffd239c2f
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue