From d86967ed625f2c971317701271aebab64cf2b6e7 Mon Sep 17 00:00:00 2001 From: JayJay1024 Date: Wed, 26 Apr 2023 14:33:10 +0800 Subject: [PATCH] fix KTON balance --- packages/app-providers/src/hooks/useLedger.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/app-providers/src/hooks/useLedger.ts b/packages/app-providers/src/hooks/useLedger.ts index 02f49dc..4af91c8 100644 --- a/packages/app-providers/src/hooks/useLedger.ts +++ b/packages/app-providers/src/hooks/useLedger.ts @@ -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, @@ -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),