Skip to content

Commit bbd1899

Browse files
authored
Change prices from minute to day to avoid issues in the db (#122)
1 parent 447e75b commit bbd1899

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cowamm/tvl_by_tx_4059700.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ tvl as (
5454
price,
5555
balance * price / POW(10, decimals) as tvl
5656
from balances_by_tx as b
57-
inner join prices.minute as p
57+
inner join prices.day as p
5858
on
59-
p.timestamp = DATE_TRUNC('minute', evt_block_time)
59+
p.timestamp = DATE_TRUNC('day', evt_block_time)
6060
and b.token = p.contract_address
6161
)
6262

0 commit comments

Comments
 (0)