From c211d2d10fd7f0e2b0ef61406930ddcf5e992775 Mon Sep 17 00:00:00 2001 From: Onno Visser Date: Fri, 25 Oct 2024 17:12:03 +0200 Subject: [PATCH] Fix CFG transfer (#2516) --- centrifuge-app/src/components/Portfolio/Holdings.tsx | 2 +- .../src/components/Portfolio/TransferTokensDrawer.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/centrifuge-app/src/components/Portfolio/Holdings.tsx b/centrifuge-app/src/components/Portfolio/Holdings.tsx index 096204fffa..b8c054c1d5 100644 --- a/centrifuge-app/src/components/Portfolio/Holdings.tsx +++ b/centrifuge-app/src/components/Portfolio/Holdings.tsx @@ -194,7 +194,7 @@ export function useHoldings(address?: string, chainId?: number, showActions = tr symbol: centBalances?.native.currency.symbol ?? 'CFG', name: centBalances?.native.currency.symbol ?? 'CFG', decimals: centBalances?.native.currency.decimals ?? 18, - key: 'centrifuge', + key: 'Native', isPoolCurrency: false, isPermissioned: false, displayName: centBalances?.native.currency.symbol ?? 'CFG', diff --git a/centrifuge-app/src/components/Portfolio/TransferTokensDrawer.tsx b/centrifuge-app/src/components/Portfolio/TransferTokensDrawer.tsx index 8651c8f440..e70567c66b 100644 --- a/centrifuge-app/src/components/Portfolio/TransferTokensDrawer.tsx +++ b/centrifuge-app/src/components/Portfolio/TransferTokensDrawer.tsx @@ -203,7 +203,7 @@ const SendToken = ({ holding, isNativeTransfer }: SendProps) => { const validAddress = validator(recipientAddress) ? recipientAddress : undefined if (!validAddress) { errors.recipientAddress = 'Invalid address' - } else if (!allowedTranches.includes(holding.trancheId)) { + } else if (!isNativeTransfer && !allowedTranches.includes(holding.trancheId)) { errors.recipientAddress = 'Recipient is not allowed to receive this token' } if (!values.isDisclaimerAgreed && values.recipientAddress.startsWith('0x') && isNativeTransfer) {