From 862663c2b9db50d3e7cc1294551c34049af98044 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Wed, 6 Jan 2021 14:46:57 +0100 Subject: [PATCH] Refcount warning (#4330) --- packages/page-accounts/src/modals/Transfer.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/page-accounts/src/modals/Transfer.tsx b/packages/page-accounts/src/modals/Transfer.tsx index 8edf6f188b..32cb4018ec 100644 --- a/packages/page-accounts/src/modals/Transfer.tsx +++ b/packages/page-accounts/src/modals/Transfer.tsx @@ -165,6 +165,9 @@ function Transfer ({ className = '', onClose, recipientId: propRecipientId, send value={isAll} /> )} + {!isProtected && accountInfo && accountInfo.refcount && !accountInfo.refcount.isZero() && ( +
{t('There is an existing reference count on the sender account. As such the account cannot be reaped from the state.')}
+ )}

{t('If the recipient account is new, the balance needs to be more than the existential deposit. Likewise if the sending account balance drops below the same value, the account will be removed from the state.')}