Anyone know how can I get or calculate slippage tolerance of any pending transaction?
Aug 19, 2021, 3:37 PM
Ethers js and web3 have a functionality to do a pseudo transaction offchain using onchain data to see the results of a transfer for a given input which you can use to calculate that. Easier way is to use getAmountsOut
Aug 19, 2021, 3:57 PM
Thanks so much
Aug 19, 2021, 4:14 PM