Skip to content

Commit

Permalink
fix: fetch more chart data bug
Browse files Browse the repository at this point in the history
  • Loading branch information
OnlyJousting committed Oct 6, 2024
1 parent 7332a02 commit ec82bf6
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 ec82bf6

Please sign in to comment.