Skip to content

Commit 5c382d4

Browse files
committed
fix: update usdc decimals
1 parent ab6034d commit 5c382d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

indexer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def calc_tvc(self, session, indx, block):
187187
for tvl_data_point in reversed(tvl_historical_data):
188188
if tvl_data_point["date"] < int(timestamp):
189189
# Update protocol's TVL
190-
protocol.tvl = tvl_data_point["totalLiquidityUSD"] * 1000000
190+
protocol.tvl = tvl_data_point["totalLiquidityUSD"] * (10**6)
191191

192192
# if protocol's TVL < coverage_amount => TVC = TVL, otherwise TVC = coverage_amount
193193
tvc = min(protocol.tvl, protocol_coverage.coverage_amount)

0 commit comments

Comments
 (0)