feat: add 52 w highlow (#4791)

updated query
This commit is contained in:
cartcrom 2022-10-05 10:44:09 -04:00 committed by GitHub
parent fc08ede58a
commit d62013177d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

@ -60,6 +60,12 @@ const tokenQuery = graphql`
value
currency
}
priceHigh52W: priceHighLow(duration: YEAR, highLow: HIGH) {
value
}
priceLow52W: priceHighLow(duration: YEAR, highLow: LOW) {
value
}
}
project {
description

@ -216,9 +216,8 @@ export default function TokenDetails() {
<StatsSection
TVL={token.market?.totalValueLocked?.value}
volume24H={token.market?.volume24H?.value}
// TODO: Reenable these values once they're available in schema
// priceHigh52W={token.market?.priceHigh52W?.value}
// priceLow52W={token.market?.priceLow52W?.value}
priceHigh52W={token.market?.priceHigh52W?.value}
priceLow52W={token.market?.priceLow52W?.value}
/>
<AboutSection
address={token.address ?? ''}