Token to sell with input amount.
Gas fee info, including gas limit and gas price.
In Zrx you can't change slippage after calculation is done.
Token to get with output amount.
Price impact, based on tokens' usd prices.
Minimum amount of output token user can get.
Sends approve transaction with connected wallet.
If true, first allowance is checked.
Builds transaction config, with encoded data.
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