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
Flag Check:
Display the alert when insufficientBalance is true (totalBalance < 0.001).
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.
Trigger Conditions:
Same as insufficientStorage, we need show this alert on homepage and anywhere when user integrate with blockchain.
Technical Requirements
Use the insufficientBalance flag based on totalBalance.
Fetch balance from the Flow blockchain.
Design a dismissible alert UI with navigation to Add Balance.
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
Flag Check:
insufficientBalance
istrue
(totalBalance < 0.001
).Notification Behavior:
Trigger Conditions:
insufficientStorage
, we need show this alert on homepage and anywhere when user integrate with blockchain.Technical Requirements
insufficientBalance
flag based ontotalBalance
.Tasks
insufficientBalance
logic.totalBalance
from Flow blockchain.