From 5109f100cda374748e010a8fe7627eec599bd796 Mon Sep 17 00:00:00 2001 From: Alfetopito Date: Fri, 10 Jan 2025 16:06:47 +0000 Subject: [PATCH] chore: remove redundant variable --- .../src/modules/usdAmount/apis/getBffUsdPrice.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/cowswap-frontend/src/modules/usdAmount/apis/getBffUsdPrice.ts b/apps/cowswap-frontend/src/modules/usdAmount/apis/getBffUsdPrice.ts index 2f0d9a2be5..defe0f505e 100644 --- a/apps/cowswap-frontend/src/modules/usdAmount/apis/getBffUsdPrice.ts +++ b/apps/cowswap-frontend/src/modules/usdAmount/apis/getBffUsdPrice.ts @@ -14,8 +14,6 @@ type BffUsdPriceResponse = { type BffUsdErrorResponse = { message: string } type BffResponse = BffUsdPriceResponse | BffUsdErrorResponse -const BASE_URL = BFF_BASE_URL - const fetchRateLimited = fetchWithRateLimit({ // Allow 5 requests per second rateLimit: { @@ -30,7 +28,7 @@ const fetchRateLimited = fetchWithRateLimit({ }) export async function getBffUsdPrice(currency: Token): Promise { - const url = `${BASE_URL}/${currency.chainId}/tokens/${currency.address}/usdPrice` + const url = `${BFF_BASE_URL}/${currency.chainId}/tokens/${currency.address}/usdPrice` return fetchRateLimited(url) .then((res) => res.json())