diff --git a/src/components/Header.vue b/src/components/Header.vue index a5ddb6a..bc4ec0b 100644 --- a/src/components/Header.vue +++ b/src/components/Header.vue @@ -53,7 +53,7 @@ export default { title: "Basilisk", link: "https://app.basilisk.cloud/pools-and-farms", type: "external" - }, + } ] }, @@ -76,7 +76,7 @@ export default { type: "external" } ] - }, + } ], version: " " }; @@ -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( diff --git a/src/hooks/useBalance.js b/src/hooks/useBalance.js index 2c9565d..f0e508f 100644 --- a/src/hooks/useBalance.js +++ b/src/hooks/useBalance.js @@ -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 };