Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alert for oncoming low UCO balance (which will follow validation of the proposed transaction) #959

Open
Enphiguralimificule opened this issue May 21, 2024 · 1 comment
Assignees

Comments

@Enphiguralimificule
Copy link

Is your feature request related to a problem?

$UCO are needed to be able to pay the Tx fees
Sometimes, the user will come accross a dApp (not specifically the Bridge or DEX) that will propose him/her to use all of its UCO balance

image

Issue

As a result, after confirmation of the proposed transaction, the user is stuck (because he no longer has a UCO balance to pay the fees for any transaction)

Describe the solution you'd like

As prohibiting spending is not an option (the user should enjoy his funds as he/she sees fit)

The solution envisaged is a popup alert in the wallet which notify the user that his/her UCO balance might be too low for paying any transaction fees after that (and so, to be able to confirm any) if he/she is confirming the pending transaction:

image

It would alert a user that the operation they are going to make will leave them with an insufficient balance to carry out other transactions (unless they add or receive other UCOs) and proposes to continue anyway, or to cancel to be able to redo the transaction by modifying the amounts. That is to say:

  • If confirmed, we continue to the second screen to validate the transaction
  • If not, the transaction is canceled so we can adjust the amounts involved

Conditions to appear:

  • A transaction is send to the wallet
  • The UCO amount involved (that would be deduced from the balance) is higher than the actual UCO balance + 10 UCO (safety amount to determine)

Additional context

This is not specifically related to the Archethic bridge (multiple transactions) or to AeSwap (select "Max")

This is intented to be working with any dApp which sends a transaction to confirm in the wallet

Epic

No response

@redDwarf03 redDwarf03 self-assigned this May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@redDwarf03 @Enphiguralimificule and others