Skip to content

Stake button disabled with custom allowance #381

@micahalcorn

Description

@micahalcorn

Most users approve ERC-20 allowances with the "unlimited", proposed limit.

Screenshot 2023-03-12 at 6 32 16 PM

If a user sets a precise amount for the allowance and then tries to stake this amount in our app, the stake button will remain disabled, likely due to a rounding issue.

Example

  • I transferred 12,345.6789 OGV to 0x4797C31eE4743BFb8caa81D8605411fb1e402174.
  • Then I chose to stake "100%" of my holdings, which is rounded up in the UI to "12.35k".
  • After clicking "Approve Transfer", I clicked "Edit Permission", switched to "Custom spend limit", entered "12345.6789", and submitted the transaction.
  • My "Stake" button is still not enabled because the app thinks my approval is insufficient.

Screenshot 2023-03-12 at 6 37 15 PM

This issue was originally reported by 0x9154508c94a6D11A18a0c2a274B9bfC80243FD71.

Metadata

Metadata

Assignees

Labels

P2Small number of users are affected, major cosmetic issuebugSomething isn't workingui/uxWorkd that requires design and product overview

Type

No type

Projects

Status

To-do

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions