From 7b4c35e58ce68315570d6d98239a43b425ce54b5 Mon Sep 17 00:00:00 2001 From: garyghayrat Date: Mon, 9 Mar 2026 15:32:35 -0500 Subject: [PATCH 1/2] Replace polygon rpc url --- contracts-core/hardhat.config.ts | 2 +- frontend/src/components/models.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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..1f625573 100644 --- a/frontend/src/components/models.ts +++ b/frontend/src/components/models.ts @@ -103,7 +103,7 @@ export const supportedChains: Array = [ 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', From 522659ab34ff7d050373628e83b7706c68d2a730 Mon Sep 17 00:00:00 2001 From: Gary Ghayrat <61768337+garyghayrat@users.noreply.github.com> Date: Mon, 9 Mar 2026 16:35:20 -0500 Subject: [PATCH 2/2] Rename MATIC to POL --- frontend/src/components/models.ts | 4 ++-- frontend/src/utils/payment-links.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/models.ts b/frontend/src/components/models.ts index 1f625573..4574c2f7 100644 --- a/frontend/src/components/models.ts +++ b/frontend/src/components/models.ts @@ -98,8 +98,8 @@ 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', }, 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 {