Abstract class for all instant trade providers' trades.
Token to sell with input amount.
Gas fee info, including gas limit and gas price.
Slippage tolerance. Can be mutated after calculation, except for Zrx.
Token to get with output amount.
Price impact, based on tokens' usd prices.
Minimum amount of output token user can get.
Type of instant trade provider.
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.
Generated using TypeDoc