Closed danielssonn closed 2 years ago
The number of tokens in the app and in the wallet has to look the same. The wallet shows 'whole tokens' 10**18, while the wallet asks to approve 18 decimal values
try token * (10 ** 18) got overflown error
That overflow is a javascript number issue creating BigNumbers for ethers. Use something like this: web3.utils.toBN(amount*(10**18))
The number of tokens in the app and in the wallet has to look the same. The wallet shows 'whole tokens' 10**18, while the wallet asks to approve 18 decimal values