Skip to content

Commit

Permalink
Merge pull request #379 from curvefi/fix-fetch-more-chart-data-bug
Browse files Browse the repository at this point in the history
fix: fetch more chart data bug
  • Loading branch information
OnlyJousting authored Oct 6, 2024
2 parents 7332a02 + ec82bf6 commit cc9ed8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/main/src/store/createPoolsSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ const createPoolsSlice = (set: SetState<State>, get: GetState<State>): PoolsSlic

if (selectedChartIndex === 0 || selectedChartIndex === 1) {
try {
const priceUnit = selectedChartIndex === 0 ? 'token0' : 'usd'
const priceUnit = selectedChartIndex === 0 ? 'usd' : 'token0'

const lpPriceRes = await fetch(
`https://prices.curve.fi/v1/lp_ohlc/${network}/${poolAddress}?agg_number=${interval}&agg_units=${timeUnit}&start=${start}&end=${end}&price_units=${priceUnit}`
Expand Down

0 comments on commit cc9ed8e

Please sign in to comment.