Wonderland-Money / wonderland-frontend

MIT License
228 stars 298 forks source link

cant finalize stake #50

Open Alexander769 opened 2 years ago

Alexander769 commented 2 years ago

Describe the bug Submitted TIME to stake, got approval message and transaction notice on metamask. However when I go back to approve again or stake its showing up like I have no Time and when I ht approve a error message shows up

To Reproduce Steps to reproduce the behavior:

  1. connect wallet
  2. Click on approve
  3. See error

Expected behavior the ability to stake

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Alexander769 commented 2 years ago

Screen Shot 2021-12-06 at 12 20 08 PM

S117X commented 2 years ago

Try using chrome on desktop w/ meta mask extension.

Alexander769 commented 2 years ago

I am using both!

knauto commented 2 years ago

The same thing is happening to me. Has anyone fixed this problem yet?

knauto commented 2 years ago

My time bal. is showing but my stake bal. is 0.

nwoodr94 commented 2 years ago

@Alexander769 @knauto this sounds like a gas fees problem, although I'm not able to confirm without an error code. When you receive the error, please expand the banner and show us what code it gives you.

Initially when newcomers move into these protocols, they will purchase, for example, 10 AVAX, convert it all into TIME, and then attempt to stake their tokens. This actually happened to me as Wonderland was my first venture into defi.

Because you've converted your entire AVAX balance into TIME, you can't pay the AVAX gas fee to stake. To resolve this issue simply hold a minimal AVAX balance in your wallet to use specfically for gas fees.

It's good this is brought up here on GitHub actually because a future improvement could involve a more specific warning, e.g. "Insufficient AVAX balance for gas". This is something I intend to look into but meantime that's my 2 cents.

Alexander769 commented 2 years ago

I bought additional AVAX and tried again but still saying something went wrong. I did get it to say my balance once but the staking didn't go through. I have included the error message below. I currently have .291 TIME and .0963 AVAX.

{ "reason": "cannot estimate gas; transaction may fail or may require manual gas limit", "code": "UNPREDICTABLE_GAS_LIMIT", "error": { "code": -32000, "message": "gas required exceeds allowance (0)" }, "method": "estimateGas", "transaction": { "from": "0xF406c039F09CD4AeA683dEa98D7B37AaC138C01a", "gasPrice": { "type": "BigNumber", "hex": "0x189cd42b89" }, "to": "0xb54f16fB19478766A268F172C9480f8da1a7c9C3", "data": "0x095ea7b3000000000000000000000000096bbfb78311227b805c968b070a81d358c13379ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", "accessList": null } }

Watkingg commented 2 years ago

Has anyone solved this issue? I currently have the same issue, but after I added more AVAX to my metamask wallet, when I stake it still says I have no time.