Skip to content

Commit

Permalink
Merge pull request #26 from ton-society/hotfix/tvl_rewards_2
Browse files Browse the repository at this point in the history
DeFi rewards fix
  • Loading branch information
shuva10v authored Jun 16, 2024
2 parents b5c42e4 + 6ac970a commit e1ced20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion seasons/defi_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def __init__(self, total_prize_pool, max_prize):
def calculate(self, metrics: List[ProjectStat]):
total_tvl_delta = 0
for project in metrics:
delta = project.metrics[ProjectStat.DEFI_TVL_DELTA]
delta = project.metrics[ProjectStat.DEFI_TVL_DELTA_COUNTED]
if delta > 0:
total_tvl_delta += delta
logger.info(f"Total positive TVL delta is {total_tvl_delta:0.2f}$")
Expand Down

0 comments on commit e1ced20

Please sign in to comment.