Skip to content

Commit

Permalink
fix: balance name issues (#1705)
Browse files Browse the repository at this point in the history
* fix: balance naming issue

* chore: update package version

* style: remove extra blank line
  • Loading branch information
Nick-1979 authored Feb 23, 2025
1 parent 2b8a229 commit b6a5a71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// @ts-nocheck
import { BN_ZERO } from '@polkadot/util';


export function balancify (balances) {
const base = {
availableBalance: String(balances.availableBalance),
Expand All @@ -17,7 +16,7 @@ export function balancify (balances) {
vestingLocked: String(balances.vestingLocked),
vestingTotal: String(balances.vestingTotal),
// votingBalance: String(balances.votingBalance)
votingBalance: String(balances.free.add(balances?.reserved || BN_ZERO)) // after pool migration the voting balance returned fro api is not correct
votingBalance: String(balances.freeBalance.add(balances?.reservedBalance || BN_ZERO)) // after pool migration the voting balance returned fro api is not correct
};

if (balances.soloTotal) {
Expand Down
2 changes: 1 addition & 1 deletion packages/extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"sideEffects": false,
"type": "module",
"version": "0.34.0",
"version": "0.35.0",
"dependencies": {
"@polkadot/api": "^11.2.1",
"@polkadot/extension-base": "^0.47.5",
Expand Down

0 comments on commit b6a5a71

Please sign in to comment.