Skip to content

Revoke UI #727

@Costa769

Description

@Costa769

We need to change the UI of the approval popup in cases when the selected token requires revoke spending cap ( approve 0). The new UI will explain to the user not to change the amount from 0 to another value.

Wallet types:
Metamask user- Display new approve popup UI
TrustWallet, Coinbase wallet, etc- No change(current approve popup UI)

In case the token requires revoke(approve 0) before setting a new spending cap , the following changes will be made to the approval popup

  1. Change the text above the CTA to "Before updating {token} allowance, you are required to revoke it to 0"
  2. Change CTA text to "Revoke and Approve"
  3. Remove text below the CTA

Current approve popup
image

Revoke+Approve popup
image

see Carbon reference task below:
bancorprotocol/carbon-app#546

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions