Skip to content

Commit

Permalink
Fix CFG transfer (#2516)
Browse files Browse the repository at this point in the history
  • Loading branch information
onnovisser authored Oct 25, 2024
1 parent 87066d4 commit c211d2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion centrifuge-app/src/components/Portfolio/Holdings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c211d2d

Please sign in to comment.