From 9d57473000060abb65659f1d6b73d07921532e8b Mon Sep 17 00:00:00 2001 From: Kurdistan Tech Ministry Date: Wed, 4 Feb 2026 09:42:37 +0300 Subject: [PATCH] fix: use price proxy to avoid CORS and rate limits --- web/src/components/AccountBalance.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/components/AccountBalance.tsx b/web/src/components/AccountBalance.tsx index 044a5c4c..8183c32b 100644 --- a/web/src/components/AccountBalance.tsx +++ b/web/src/components/AccountBalance.tsx @@ -103,8 +103,9 @@ export const AccountBalance: React.FC = () => { // CoinGecko API - fetch DOT, HEZ, PEZ prices // Note: HEZ and PEZ may not be listed yet, so we use DOT as fallback const coingeckoIds = 'polkadot,pezkuwichain,pez-token'; // DOT is always available + // Use our proxy to avoid CORS and rate limits const response = await fetch( - `https://api.coingecko.com/api/v3/simple/price?ids=${coingeckoIds}&vs_currencies=usd&include_24hr_change=true` + `https://api.pezkuwichain.io/api/prices?ids=${coingeckoIds}&vs_currencies=usd&include_24hr_change=true` ); let hezPrice = 0;