-
-
Notifications
You must be signed in to change notification settings - Fork 365
⚒️ account avaible balance #2362
Conversation
|
✔️ Deploy Preview for koda-nuxt ready! 🔨 Explore the source changes: f6fb33e 🔍 Inspect the deploy log: https://app.netlify.com/sites/koda-nuxt/deploys/620cc7eda28984000939445d 😎 Browse the preview: https://deploy-preview-2362--koda-nuxt.netlify.app |
| const { availableBalance } = await api.derive.balances.all(accountId) | ||
| return availableBalance.toString() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| const { availableBalance } = await api.derive.balances.all(accountId) | |
| return availableBalance.toString() | |
| const { freeBalance } = await api.derive.balances.all(accountId) | |
| return freeBalance.toString() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the difference between freeBalance & availableBalance?
vikiival
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is my personal preference but your code is also legit
|
less opinionated code 🥺😅 but yeah free is in this context way profound |

It will now show avaibleBalance in Teleport/Transfer/CreateCollection
PR type