Skip to content

Commit

Permalink
fix free balance
Browse files Browse the repository at this point in the history
  • Loading branch information
vol4tim committed Sep 26, 2024
1 parent 21129b8 commit 3ddfb9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default {
title: "Basilisk",
link: "https://app.basilisk.cloud/pools-and-farms",
type: "external"
},
}
]
},
Expand All @@ -76,7 +76,7 @@ export default {
type: "external"
}
]
},
}
],
version: " "
};
Expand Down Expand Up @@ -149,7 +149,7 @@ export default {
this.unsubscribeBalance = await this.robonomics.account.getBalance(
address,
(r) => {
const transferable = r.free.sub(r.feeFrozen);
const transferable = r.free.sub(r.frozen);
this.$store.commit(
"polkadot/setBalanceXRT",
round(
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useBalance.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const useBalance = (account) => {
}
const robonomics = getInstance();
unsubscribe = await robonomics.account.getBalance(account.value, (r) => {
balance.value = r.free.sub(r.feeFrozen).toNumber();
balance.value = r.free.sub(r.frozen).toNumber();
});
});
return { balance, unsubscribe };
Expand Down

0 comments on commit 3ddfb9a

Please sign in to comment.