Skip to content

Commit

Permalink
fix KTON balance
Browse files Browse the repository at this point in the history
  • Loading branch information
JayJay1024 committed Apr 26, 2023
1 parent f1c60ad commit d86967e
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 d86967e

Please sign in to comment.