Skip to content

Commit

Permalink
chore: remove redundant variable
Browse files Browse the repository at this point in the history
  • Loading branch information
alfetopito committed Jan 10, 2025
1 parent f48b898 commit 5109f10
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -30,7 +28,7 @@ const fetchRateLimited = fetchWithRateLimit({
})

export async function getBffUsdPrice(currency: Token): Promise<Fraction | null> {
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())
Expand Down

0 comments on commit 5109f10

Please sign in to comment.