Skip to content

Commit

Permalink
Bean UI - Add Seed Value chart (#950)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brean0 authored Aug 6, 2024
2 parents b5a1e6e + 305042a commit 2fc960a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions projects/ui/src/components/Analytics/Silo/SeedsPerSeason.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
query SeedsPerSeason($token: String!, $first: Int) {
seasons: whitelistTokenHourlySnapshots(
orderDirection: desc,
orderBy: season,
first: $first,
where: {token_contains_nocase: $token}
) {
stalkEarnedPerSeason
season
createdAt
}
}
3 changes: 3 additions & 0 deletions projects/ui/src/components/Analytics/useChartSetupData.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

import React, { useMemo } from 'react';
import {
LiquiditySupplyRatioDocument,
Expand Down Expand Up @@ -121,13 +122,15 @@ export function useChartSetupData() {
sdk.tokens.BEAN,
sdk.tokens.BEAN_CRV3_LP,
sdk.tokens.BEAN_ETH_WELL_LP,
sdk.tokens.BEAN_WSTETH_WELL_LP,
sdk.tokens.UNRIPE_BEAN,
sdk.tokens.UNRIPE_BEAN_WSTETH,
];

const lpTokensToChart = [
sdk.tokens.BEAN_CRV3_LP,
sdk.tokens.BEAN_ETH_WELL_LP,
sdk.tokens.BEAN_WSTETH_WELL_LP,
sdk.tokens.BEAN_ETH_UNIV2_LP,
BEAN_LUSD_LP[1],
BEAN_CRV3_V1_LP[1],
Expand Down

0 comments on commit 2fc960a

Please sign in to comment.