Skip to content

Commit

Permalink
fix: update usdc decimals
Browse files Browse the repository at this point in the history
  • Loading branch information
rcstanciu committed Jun 6, 2022
1 parent ab6034d commit 5c382d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def calc_tvc(self, session, indx, block):
for tvl_data_point in reversed(tvl_historical_data):
if tvl_data_point["date"] < int(timestamp):
# Update protocol's TVL
protocol.tvl = tvl_data_point["totalLiquidityUSD"] * 1000000
protocol.tvl = tvl_data_point["totalLiquidityUSD"] * (10**6)

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

0 comments on commit 5c382d4

Please sign in to comment.