Skip to content

Commit 9879f74

Browse files
committed
take ethusd rate from mainnet
1 parent 7ea0fdf commit 9879f74

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/mainnet/processors/protocol/protocol-sql-simple.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,8 @@ const upsertProtocolDailyStats = async (ctx: Context, fromDate: string) => {
205205
COALESCE((
206206
SELECT rate
207207
FROM exchange_rate
208-
WHERE pair = 'ETH_USD'
208+
WHERE pair = 'ETH_USD'
209+
AND chain_id = 1
209210
AND timestamp <= (date::date + interval '1 day')::timestamp
210211
ORDER BY timestamp DESC
211212
LIMIT 1

0 commit comments

Comments
 (0)