Skip to content

Commit

Permalink
Merge pull request #29 from darwinia-network/fix/jay/kton-balance
Browse files Browse the repository at this point in the history
Fix KTON balance
  • Loading branch information
wuminzhe authored Apr 26, 2023
2 parents f1c60ad + d86967e commit 30fe7b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/app-providers/src/hooks/useLedger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@ const useLedger = ({ apiPromise, selectedAccount, selectedNetwork, isWalletCalle
const transferableRing = totalBalance.gt(0)
? totalBalance.plus(reservedAmount).minus(totalDepositsAmount)
: BigNumber(0);
const transferableKTON = ktonBalance;

const asset = {
ring: {
transferable: transferableRing,
Expand All @@ -308,7 +310,7 @@ const useLedger = ({ apiPromise, selectedAccount, selectedNetwork, isWalletCalle
vested: vestedAmountRing,
},
kton: {
transferable: BigNumber(0),
transferable: transferableKTON,
bonded: BigNumber(0),
unbonded: BigNumber(0),
unbonding: BigNumber(0),
Expand Down

0 comments on commit 30fe7b9

Please sign in to comment.