UNPREDICTABLE_GAS_LIMIT when trying to lock ALL your tokens
kesar opened this issue · 0 comments
Uncaught (in promise) Error: cannot estimate gas; transaction may fail or may require manual gas limit (error={"code":-32000,"message":"execution reverted"}, method="estimateGas", transaction={"from":"xxxx","gasLimit":{"type":"BigNumber","hex":"0x05827956"},"to":"0x1bF5457eCAa14Ff63CC89EFd560E251e814E16Ba","data":"0x4957677c00000000000000000000000000000000000000000000487e7f9f7ae456cadf00","accessList":null}, code=UNPREDICTABLE_GAS_LIMIT, version=providers/5.1.2)
How to reproduce:
click in "balance" to fill input with your max amount of IQ
click in Lock
expect metamask popup, nothing happens
we should probably try / catch this and show some error popups (and bug fix related to the UNPREDICTABLE_GAS_LIMIT, that must be something else)