added fee payment to matcher if dst.Token === feeToken

This commit is contained in:
Steam Deck User
2023-12-15 17:55:44 +04:00
parent b847a173bb
commit 826b3b508c
6 changed files with 90 additions and 28 deletions

View File

@@ -1,9 +1,8 @@
import { SwapExecutor__factory } from "@orionprotocol/contracts/lib/ethers-v6/index.js"
import type { BigNumberish } from "ethers"
import type { BigNumberish, AddressLike } from "ethers"
import { type CallParams, addCallParams } from "./utils.js"
import type { AddressLike } from "ethers"
export async function generateTransferCall(
export function generateTransferCall(
token: AddressLike,
target: AddressLike,
amount: BigNumberish,
@@ -20,7 +19,7 @@ export async function generateTransferCall(
return addCallParams(calldata, callParams)
}
export async function generateApproveCall(
export function generateApproveCall(
token: AddressLike,
target: AddressLike,
amount: BigNumberish,