Skip to content

Commit

Permalink
feat: switch to bff main endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
alfetopito committed May 1, 2024
1 parent b15eba3 commit 5ec75ed
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const COINGECK_PLATFORMS: Record<SupportedChainId, string | null> = {
[SupportedChainId.SEPOLIA]: null,
}

const BASE_URL = 'https://cow-web-services-git-feat-usd-proxy-cowswap.vercel.app/api/serverless/coingeckoProxy'
const BASE_URL = 'https://cow-web-services.vercel.app/api/serverless/coingeckoProxy'
const VS_CURRENCY = 'usd'
/**
* This is a text of 429 HTTP code
Expand Down Expand Up @@ -63,7 +63,7 @@ export async function getCoingeckoUsdPrice(currency: Token): Promise<Fraction |
vs_currencies: VS_CURRENCY,
}

const url = `${BASE_URL}/token_price/${platform}?${new URLSearchParams(params)}`
const url = `${BASE_URL}/simple/token_price/${platform}?${new URLSearchParams(params)}`

return fetchRateLimitted(url)
.then((res) => {
Expand Down

0 comments on commit 5ec75ed

Please sign in to comment.