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())