- Added method to get list of supported tokens
- Added method to get exhange rate
- Added method to get estimated gas
- Added method to get raw transaction
- Updated methods to accept custom slippage
- Updated ETH support
- Updated error messages
- Added approvalRawTransaction() to create an approve transaction for tokens swap.
- Created checkBalance() to check the available balance.
- Added ETH and WETH swap support using deposit and withdraw
- Updated uniswap package versions
- Updated infura URL
- Fixed gas calculations in
approvalRawTransaction
- Added support for polygon chain
- Updated method to get list of supported tokens
- Functions
approvalRawTransaction()
andgetRawTransaction()
will throw an errorInsufficient balance.
if thefrom
address does not have enough assets to swap.
- Functions
approvalRawTransaction()
andgetRawTransaction()
will return the type2 raw transaction.
- Limited the gas params to 4 decimal places in the type2 raw transaction object.