Skip to content

Commit

Permalink
transferable bug fix (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
isunaslabs authored Mar 10, 2023
1 parent ff5b1f6 commit 8c563f1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/app-providers/src/hooks/useLedger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,15 @@ const useLedger = ({ apiPromise, selectedAccount, selectedNetwork }: Params) =>
? totalBalance
.plus(reservedAmount)
.minus(vestedAmountRing)
.minus(ledgerData.stakedRing)
.minus(totalDepositsAmount)
.minus(unbondedRingAmount)
.minus(unbondingRingAmount)
: BigNumber(0);
const transferableKTON = ktonBalance.minus(unbondedKtonAmount).minus(unbondingKtonAmount);
const transferableKTON = ktonBalance
.minus(ledgerData.stakedKton)
.minus(unbondedKtonAmount)
.minus(unbondingKtonAmount);

if (isDataAtPoint) {
setMigratedAssetDistribution({
Expand Down

0 comments on commit 8c563f1

Please sign in to comment.