-
Notifications
You must be signed in to change notification settings - Fork 4
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] Account storage alert #484
Comments
@lmcmz where does this
If |
Yes, you are right. Base on the average storage will use per transaction. |
So you mean it's an arbitrary value not depending from total and used storage, right? What if I have to do the same calc with an additional amount (to check if the stoage is insufficient after the transaction). |
Yeah, it's very average presumption, it's Just a reminder, if it's move action between EVM account and flow account, there is an 0.001 fixed fee. So it will become |
Issue to be solved
Background:
Outblock/FRW#61
Suggest A Solution
Get Storage and Available Balance Info
Our script API returns
getAccountInfo
cadence, which allow wallet to get the storage info under an account.If
storageCapacity - storageUsed < 10000
then it's insufficient storageNotification
Currently, we use firebase remote config to control the notification messages. It use
news
at the moment.For insufficient storage alert, we gonna add a new condition flag
insufficientStorage
, which user reach storage limit.Onchain Interaction
Any onchain Interaction, wallet need do a async check whether the storage is sufficient or not.
If it's send Flow Token or move action ( move fee ), the balance will be affected we need take count of the sending or move fee balance. ( availableBalance - sent amount ) < 0.001
Other onchain Interaction, we only do the availableBalance check.
Following is the list of storage warning in action button:
Transaction Listener
Every transaction submitted to the chain, the wallet will listen the callback. So when there is
storageCapacityExceeded
.we need show an global alert telling user that the last transaction was failing due to storage.
Storage Usage Card
Storage info card need to be displayed only under FLOW token detail page.
Figma:
https://www.figma.com/design/mSr5uIApRJNrpkmN0YNuD6/FLOW-REF-Mobile-Design-v2.0.0?node-id=35558-33202&t=eegpA2haFKcXcypT-1
The text was updated successfully, but these errors were encountered: