diff --git a/src/config/index.js b/src/config/index.js index 481492c..1a76bd1 100644 --- a/src/config/index.js +++ b/src/config/index.js @@ -13,7 +13,7 @@ const config = { status: 'https://api.knowyourcat.id/v1/%s/categories?category=BABTokenBOB', homepage: 'https://knowyourcat.id/address/%s/BABTokenBOB', }, - tokenSymbol: 'USDC.e', + tokenSymbol: 'USDC', tokenDecimals: 6, feeDecimals: 2, depositScheme: 'usdc', diff --git a/src/pages/Payment/index.js b/src/pages/Payment/index.js index 75244e8..a54e410 100644 --- a/src/pages/Payment/index.js +++ b/src/pages/Payment/index.js @@ -42,11 +42,7 @@ const Payment = ({ pool }) => { const { supportId } = useContext(SupportIdContext); const history = useHistory(); const params = useParams(); - const addressPrefix = params.address.split(':')[0]; - const pool = Object.values(pools).find(pool => pool.addressPrefix === addressPrefix); - if (!pool.paymentContractAddress) { - history.push('/'); - } + const currency = ['USDC.e', 'USDC', 'BOB'].includes(pool.tokenSymbol) ? 'USD' : pool.tokenSymbol; const { address: account } = useContext(WalletContext); const [displayedAmount, setDisplayedAmount] = useState('');