Calculated Symbiosis cross chain trade.
Swap fee information.
Token to sell with input amount.
Gas fee info in source blockchain.
Overall price impact, fetched from symbiosis api.
Token to get with output amount.
Minimum amount of output token user will get.
Type of calculated cross chain trade.
Gets gas fee in source blockchain.
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