You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a user, I want to know both how much is actually in my account and how much I can spend so that I can make proper assessments of my (or any account's) situation.
With the hold module, and the exchange using it (e.g. commitments), there's funds in accounts that aren't spendable, but explorer doesn't show any of this information. So, e.g. if I've got 100hash in my account, and all of it is committed to a market, explorer says I've got 100hash available even though I couldn't send that to anyone or use it for fees or anything. This often leads to confusion.
Proposal
On the account info page (accounts/<address>):
In the hash chart (upper right corner), add a "Spendable" row between "Available" and "Delegated".
On the "Assets" tab (at the bottom), add a column for "Spendable".
The bank module has the SpendableBalances and SpendableBalanceByDenom queries that can get the info needed.
If you're trying to keep track of it through events, you'd be looking to track the EventHoldAdded and EventHoldReleased events. However, another way funds aren't spendable is with vesting accounts which use some math to determine how much is spendable at any given point in time. So just tracking those events might not provide a full picture.
For Admin Use
Not duplicate issue
Appropriate labels applied
Appropriate contributors tagged
Contributor assigned/self-assigned
The text was updated successfully, but these errors were encountered:
Summary
Add spendable balance info to the account page.
Problem Definition
As a user, I want to know both how much is actually in my account and how much I can spend so that I can make proper assessments of my (or any account's) situation.
With the hold module, and the exchange using it (e.g. commitments), there's funds in accounts that aren't spendable, but explorer doesn't show any of this information. So, e.g. if I've got 100hash in my account, and all of it is committed to a market, explorer says I've got 100hash available even though I couldn't send that to anyone or use it for fees or anything. This often leads to confusion.
Proposal
On the account info page (
accounts/<address>
):The bank module has the
SpendableBalances
andSpendableBalanceByDenom
queries that can get the info needed.If you're trying to keep track of it through events, you'd be looking to track the
EventHoldAdded
andEventHoldReleased
events. However, another way funds aren't spendable is with vesting accounts which use some math to determine how much is spendable at any given point in time. So just tracking those events might not provide a full picture.For Admin Use
The text was updated successfully, but these errors were encountered: