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

[FEATURE] Insufficient Balance Alert #205

Open
4 tasks
Peppermint1020 opened this issue Nov 22, 2024 · 0 comments
Open
4 tasks

[FEATURE] Insufficient Balance Alert #205

Peppermint1020 opened this issue Nov 22, 2024 · 0 comments
Assignees

Comments

@Peppermint1020
Copy link
Collaborator

Peppermint1020 commented Nov 22, 2024

Description

When a user's total account balance falls below 0.001 FLOW, they must be notified to add funds, as the account becomes unusable without additional balance. This feature will display an alert when the insufficientBalance flag is true (totalBalance < 0.001).


Acceptance Criteria

  1. Flag Check:

    • Display the alert when insufficientBalance is true (totalBalance < 0.001).
  2. Notification Behavior:

    • Notification text:

      "Your FLOW balance is too low. Please add funds to continue using the wallet."

    • Include a button to navigate to the Buy Token page.
  3. Trigger Conditions:

    • Same as insufficientStorage, we need show this alert on homepage and anywhere when user integrate with blockchain.

Technical Requirements

  1. Use the insufficientBalance flag based on totalBalance.
  2. Fetch balance from the Flow blockchain.
  3. Design a dismissible alert UI with navigation to Add Balance.

Tasks

  • Add insufficientBalance logic.
  • Integrate totalBalance from Flow blockchain.
  • Design and implement the alert UI.
  • Enable navigation to Add Balance.
@Peppermint1020 Peppermint1020 converted this from a draft issue Nov 22, 2024
@lmcmz lmcmz changed the title [FEATURE]Set insufficientBalance when totallyFlowBalance < 0.001 [FEATURE] Insufficient Balance Alert Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

2 participants