This commit is contained in:
Stefanie Doll 2019-08-02 12:51:56 +02:00 committed by Jaco Greeff
parent 4b9b82e504
commit 928820cbec
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ export class Transfer extends React.PureComponent<Props, State> {
const extraAmount = amount instanceof Compact ? amount.toBn() : new BN(amount);
const isCreation = balances_all.votingBalance.isZero() && fees.creationFee.gtn(0);
const isNoEffect = extraAmount.add(balances_all.votingBalance).lte(fees.existentialDeposit);
const isNoEffect = extraAmount.add(balances_all.votingBalance).lt(fees.existentialDeposit);
const extraWarn = isCreation || isNoEffect;
const update = {
extraAmount,

View File

@ -97,7 +97,7 @@ export class FeeDisplay extends React.PureComponent<Props, State> {
const allTotal = extraAmount.add(allFees);
const hasAvailable = balances_all.availableBalance.gtn(0);
const isRemovable = balances_all.votingBalance.sub(allTotal).lte(balances_fees.existentialDeposit);
const isRemovable = balances_all.votingBalance.sub(allTotal).lt(balances_fees.existentialDeposit);
const isReserved = balances_all.freeBalance.isZero() && balances_all.reservedBalance.gtn(0);
const allWarn = extraWarn;
const overLimit = txLength >= MAX_SIZE_BYTES;