Skip to content

Commit

Permalink
Peter/fix pools daily volumes (#1421)
Browse files Browse the repository at this point in the history
* chore: update monetary to latest 0.7.3

* fix: change pools fetching query to work when first record is younger than requested period
  • Loading branch information
peterslany authored Jul 5, 2023
1 parent b4223c3 commit 491eaa0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/hooks/api/use-get-dex-volume.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ const GET_DEX_VOLUMES = gql`
query poolVolumes($start: DateTime, $end: DateTime) {
startVolumes: cumulativeDexTradingVolumes(
limit: 1
orderBy: tillTimestamp_DESC
where: { tillTimestamp_lte: $start }
orderBy: tillTimestamp_ASC
where: { tillTimestamp_gte: $start }
) {
tillTimestamp
amounts {
Expand Down

2 comments on commit 491eaa0

@vercel
Copy link

@vercel vercel bot commented on 491eaa0 Jul 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 491eaa0 Jul 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.