- Preparing search index...
- The search index is not available
rubic-sdk
Function getProxyMethodArgumentsAndTransactionData
- getProxyMethodArgumentsAndTransactionData<T>(from: PriceTokenAmount<"ETH" | "BSC" | "POLYGON" | "FANTOM" | "TRON">, fromWithoutFee: PriceTokenAmount<"ETH" | "BSC" | "POLYGON" | "FANTOM" | "TRON">, to: PriceTokenAmount<"ETH" | "BSC" | "POLYGON" | "FANTOM" | "TRON">, toTokenAmountMin: BigNumber, walletAddress: string, providerAddress: string, options: Omit<GetContractParamsOptions, "receiverAddress"> & Required<Pick<GetContractParamsOptions, "receiverAddress">>, checkAmountFn: ((newWeiAmount: string, oldWeiAmount: string) => void)): Promise<{
amountOut: string;
methodArguments: unknown[];
transactionData: T;
}>
-
Parameters
-
from: PriceTokenAmount<"ETH" | "BSC" | "POLYGON" | "FANTOM" | "TRON">
-
fromWithoutFee: PriceTokenAmount<"ETH" | "BSC" | "POLYGON" | "FANTOM" | "TRON">
-
to: PriceTokenAmount<"ETH" | "BSC" | "POLYGON" | "FANTOM" | "TRON">
-
toTokenAmountMin: BigNumber
-
walletAddress: string
-
providerAddress: string
-
-
checkAmountFn: ((newWeiAmount: string, oldWeiAmount: string) => void)
-
- (newWeiAmount: string, oldWeiAmount: string): void
-
Parameters
-
newWeiAmount: string
-
oldWeiAmount: string
Returns void
Returns Promise<{
amountOut: string;
methodArguments: unknown[];
transactionData: T;
}>