Commit d6201317 authored by cartcrom's avatar cartcrom Committed by GitHub

feat: add 52 w highlow (#4791)

updated query
parent fc08ede5
...@@ -60,6 +60,12 @@ const tokenQuery = graphql` ...@@ -60,6 +60,12 @@ const tokenQuery = graphql`
value value
currency currency
} }
priceHigh52W: priceHighLow(duration: YEAR, highLow: HIGH) {
value
}
priceLow52W: priceHighLow(duration: YEAR, highLow: LOW) {
value
}
} }
project { project {
description description
......
...@@ -216,9 +216,8 @@ export default function TokenDetails() { ...@@ -216,9 +216,8 @@ export default function TokenDetails() {
<StatsSection <StatsSection
TVL={token.market?.totalValueLocked?.value} TVL={token.market?.totalValueLocked?.value}
volume24H={token.market?.volume24H?.value} volume24H={token.market?.volume24H?.value}
// TODO: Reenable these values once they're available in schema priceHigh52W={token.market?.priceHigh52W?.value}
// priceHigh52W={token.market?.priceHigh52W?.value} priceLow52W={token.market?.priceLow52W?.value}
// priceLow52W={token.market?.priceLow52W?.value}
/> />
<AboutSection <AboutSection
address={token.address ?? ''} address={token.address ?? ''}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment