Contains common for Celer and Rubic trades methods and fields.
Native token in source blockchain, taken as fee.
Swap fee information.
Token to sell with input amount.
Wrapped instant trade in source blockchain.
Gas fee info in source blockchain.
Token to get with output amount.
Minimum amount of output token user will get.
Wrapped instant trade in target blockchain.
Transit token in source blockchain, taken as fee.
Type of calculated cross chain trade.
Gets gas fee in source blockchain.
Gets price impact in source and target blockchains, based on tokens usd prices.
Sends approve transaction with connected wallet.
If true, first allowance is checked.
Builds transaction config, with encoded data.
Encode transaction options.
Build encoded approve transaction config.
Address of the smart-contract corresponding to the token.
Wallet or contract address to approve.
Token amount to approve in wei.
Encoded approve transaction config.
Returns true, if allowance is not enough.
Sends swap transaction with connected wallet. If user has not enough allowance, then approve transaction will be called first.
Checks receiver address for correctness.
Generated using TypeDoc