Skip to content

Commit

Permalink
Fix query
Browse files Browse the repository at this point in the history
  • Loading branch information
transmissions11 committed Jun 30, 2021
1 parent 9b2f401 commit 69d4f0a
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions src/components/pages/Fuse/FusePoolPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -392,16 +392,13 @@ const AssetSupplyRow = ({
asset.underlyingToken.toLowerCase() ==
"0x04F2694C8fcee23e8Fd0dfEA1d4f5Bb8c352111F".toLowerCase();

const { data: stakedOHMApyData } = useQuery(
address + " tokenData",
async () => {
const data = (
await fetch("https://api.rari.capital/fuse/pools/18/apy")
).json();

return data as Promise<{ supplyApy: number; supplyWpy: number }>;
}
);
const { data: stakedOHMApyData } = useQuery("sOHM_APY", async () => {
const data = (
await fetch("https://api.rari.capital/fuse/pools/18/apy")
).json();

return data as Promise<{ supplyApy: number; supplyWpy: number }>;
});

const isMobile = useIsMobile();

Expand Down

2 comments on commit 69d4f0a

@vercel
Copy link

@vercel vercel bot commented on 69d4f0a Jun 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bundled size for the package is listed below:

build/static/media: 402.34 KB
build/static/js: 30.82 MB
build/static/css: 15.63 KB
build/static: 31.23 MB
build: 31.31 MB

Please sign in to comment.