Skip to content

Commit

Permalink
chore: update API endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
shoom3301 committed Dec 17, 2024
1 parent 2cedc40 commit a2478e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function PoolsInfoUpdater() {
const { data: poolsAverageData } = useSWR(
tokensKey || isYield ? [chainId, tokensToUpdate, 'getPoolsInfo'] : null,
async ([chainId, tokensToUpdate]) => {
const results: PoolInfoDto[] = await fetch(`${BFF_BASE_URL}/${chainId}/yield/getPoolsInfo`, {
const results: PoolInfoDto[] = await fetch(`${BFF_BASE_URL}/${chainId}/yield/pools`, {
method: 'post',
headers: { 'content-type': 'application/json' },
body: JSON.stringify(tokensToUpdate),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ export function VampireAttackUpdater(): null {
const { data: poolsAverageApr } = useSWR(
[chainId, 'getPoolsAverageApr'],
async ([chainId]) => {
// TODO: use BFF_BASE_URL
const result: Record<string, number> = await fetch(`${BFF_BASE_URL}/${chainId}/yield/getPoolsAverageApr`).then(
const result: Record<string, number> = await fetch(`${BFF_BASE_URL}/${chainId}/yield/pools-average-apr`).then(
(res) => res.json(),
)

Expand Down

0 comments on commit a2478e0

Please sign in to comment.