fix: transferable balance calculation (#6197)

This commit is contained in:
Arjun Porwal
2025-08-19 13:55:05 +05:30
committed by GitHub
parent 3c020c2e1b
commit b848c5cc41
+1 -1
View File
@@ -67,7 +67,7 @@ function calcShared (api: DeriveApi, bestNumber: BlockNumber, data: DeriveBalanc
'Balance',
allLocked
? 0
: freeBalance.sub(bnMax(maybeED, frozenReserveDif))
: bnMax(new BN(0), freeBalance.sub(bnMax(maybeED, frozenReserveDif)))
);
}