AxridToWeb3-Week9
Blog iconAxrid
Nov 6
ENGLISH:1、Currently we setthe token allowance is set to the max amount. Change this to be safer so the user only approves just the amount needed. In the trySwap function, I adjusted the "MAXApproval" parameter to the number of tokens entered by the user in the front-end, using the "sellAmount" parameter in swapPriceJSON 2、Show estimated gas in $ First get "gasPrice" by using "getGasPrice" in Ethers:provider.getGasPrice() Then use Chainlink to get the "latestRoundData" data of ETH, in which th...

Axrid

Written by
2333

roadtoweb3 gogogo

Subscribe

2025 Paragraph Technologies Inc

PopularTrendingPrivacyTermsHome
Search...Ctrl+K

Axrid

Subscribe