Skip to content

Commit

Permalink
Merge branch 'staging' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
shahthepro committed Aug 25, 2023
2 parents 1ee6d63 + af3ec1b commit 3fb58ed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eagleproject/core/blockchain/harvest/transaction_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -1619,8 +1619,11 @@ def _daily_rows(steps, latest_block_number, project, start_at=0):
s.apr = (
Decimal(100) * change * (Decimal(365) * BLOCKS_PER_DAY) / blocks
)
s.apy = to_apy(s.apr, 1)

otoken = ensure_asset("OUSD" if project == OriginTokens.OUSD else "OETH", s.block_number, project)
amo_supply = otoken.get_strat_holdings("ousd_metastrat" if project == OriginTokens.OUSD else "oeth_curve_amo")

try:
s.unboosted = to_apy(
(s.computed_supply - s.non_rebasing_supply)
Expand Down

0 comments on commit 3fb58ed

Please sign in to comment.