diff --git a/contracts-core/hardhat.config.ts b/contracts-core/hardhat.config.ts index 9faf76e2..04be08c4 100644 --- a/contracts-core/hardhat.config.ts +++ b/contracts-core/hardhat.config.ts @@ -113,7 +113,7 @@ const config: HardhatUserConfig = { path: "m/44'/60'/0'/0", }, chainId: chainIds['polygon'], - url: 'https://polygon-rpc.com/', + url: 'https://polygon.drpc.org', gasPrice: 33000000000, // 33 gwei }, arbitrum: { diff --git a/frontend/src/components/models.ts b/frontend/src/components/models.ts index 5279888c..4574c2f7 100644 --- a/frontend/src/components/models.ts +++ b/frontend/src/components/models.ts @@ -98,12 +98,12 @@ export const supportedChains: Array = [ chainName: 'Polygon', nativeCurrency: { address: NATIVE_TOKEN_ADDRESS, - name: 'Matic', - symbol: 'MATIC', + name: 'POL', + symbol: 'POL', decimals: 18, logoURI: '/tokens/polygon.png', }, - rpcUrls: ['https://polygon-rpc.com/', POLYGON_RPC_URL], + rpcUrls: ['https://polygon.drpc.org', POLYGON_RPC_URL], blockExplorerUrls: ['https://polygonscan.com'], iconUrls: ['/networks/polygon.svg'], logoURI: '/networks/polygon.svg', diff --git a/frontend/src/utils/payment-links.ts b/frontend/src/utils/payment-links.ts index 05e463af..f11d110d 100644 --- a/frontend/src/utils/payment-links.ts +++ b/frontend/src/utils/payment-links.ts @@ -97,11 +97,11 @@ export async function parsePaymentLink(nativeToken: TokenInfoExtended) { const chainId = BigNumber.from(nativeToken.chainId || 1).toNumber(); if (tokenSymbol === 'eth' && chainId === 137) { - // If the token is ETH, and we're on Polygon, use WETH, since the native token is MATIC. + // If the token is ETH, and we're on Polygon, use WETH, since the native token is POL. tokenSymbol = 'weth'; paymentData['token'] = tokens.filter((token) => token.symbol.toLowerCase() === tokenSymbol)[0]; - } else if (tokenSymbol === 'matic' && chainId !== 137) { - // If the token is MATIC, and we're not on polygon, clear token and amount. + } else if (tokenSymbol === 'pol' && chainId !== 137) { + // If the token is POL, and we're not on Polygon, clear token and amount. paymentData['token'] = null; paymentData['amount'] = null; } else {