Skip to content

Commit

Permalink
Change prices from minute to day to avoid issues in the db (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
PoloX2021 authored Jan 21, 2025
1 parent 447e75b commit bbd1899
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cowamm/tvl_by_tx_4059700.sql
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ tvl as (
price,
balance * price / POW(10, decimals) as tvl
from balances_by_tx as b
inner join prices.minute as p
inner join prices.day as p
on
p.timestamp = DATE_TRUNC('minute', evt_block_time)
p.timestamp = DATE_TRUNC('day', evt_block_time)
and b.token = p.contract_address
)

Expand Down

0 comments on commit bbd1899

Please sign in to comment.