Expand funding warnings (#4774)

This commit is contained in:
Jaco Greeff 2021-03-05 09:52:37 +01:00 committed by GitHub
parent 1b8a81db0c
commit 4722017e90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -206,7 +206,7 @@ function Transfer ({ className = '', onClose, recipientId: propRecipientId, send
<MarkWarning content={t<string>('There is an existing reference count on the sender account. As such the account cannot be reaped from the state.')} />
)}
{noFees && (
<MarkWarning content={t<string>('The transaction, after application of the transfer fees, will drop the balance below the existential deposit. As such the transfer will fail. The account needs more funds to cover the transaction fees.')} />
<MarkWarning content={t<string>('The transaction, after application of the transfer fees, will drop the available balance below the existential deposit. As such the transfer will fail. The account needs more free funds to cover the transaction fees.')} />
)}
</Modal.Column>
<Modal.Column>

View File

@ -60,7 +60,7 @@ function PaymentInfo ({ accountId, className = '', extrinsic }: Props): React.Re
}
/>
{api.consts.balances && !api.tx.balances?.transfer.is(extrinsic) && balances?.accountId.eq(accountId) && balances.availableBalance.sub(dispatchInfo.partialFee).lte(api.consts.balances.existentialDeposit) && (
<MarkWarning content={t<string>('The account does not have enough funds to cover the transaction fees without dropping the balance below the account existential amount.')} />
<MarkWarning content={t<string>('The account does not have enough free funds (excluding locked/bonded/reserved) available to cover the transaction fees without dropping the balance below the account existential amount.')} />
)}
</>
);