Wonderland-Money / wonderland-frontend

MIT License
229 stars 295 forks source link

Error on staking #18

Closed cryptoapebot closed 2 years ago

cryptoapebot commented 2 years ago

{"code":-32603,"message":"Internal JSON-RPC error.","data":{"code":-32000,"message":"execution reverted"}}

https://app.wonderland.money/#/stake

Using MetaMask w/ TIME, pressed MAX, and then STAKE, code shows up as execution reverted.

farmyfarmer commented 2 years ago

Did you get this resolved? I am getting same message today.

cryptoapebot commented 2 years ago

Yes, the error is misleading. It stems from not having enough AVAX for gas in your wallet. The way to fix this is to leave some indeterminate amount of AVAX when you do the TIME staking. So don't convert 100%/MAX AVAX into TIME or put a few bucks into AVAX and keep it.