We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d19e47e commit a111ee0Copy full SHA for a111ee0
1 file changed
src/mainnet/processors/protocol/protocol-sql-simple.ts
@@ -75,7 +75,7 @@ const upsertProtocolDailyStatDetails = async (ctx: Context, fromDate: string) =>
75
a.date,
76
'${product.product}' as product,
77
(a.date::date + interval '1 day' - interval '1 second')::timestamp as timestamp,
78
- COALESCE(ROUND(a.rate_usd * 1e18)::BIGINT, 0) as rate_usd,
+ COALESCE(ROUND(a.rate_usd * 1e18), 0) as rate_usd,
79
COALESCE(a.total_assets * a.rate_eth, 0) as earning_tvl,
80
COALESCE(a.total_assets * a.rate_eth, 0) as tvl,
81
COALESCE(a.total_supply * a.rate_eth, 0) as supply,
0 commit comments