Skip to content

Commit

Permalink
fix: s3 mainnet Decimal err (#686)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Nov 23, 2023
1 parent 5e14dc1 commit 4b972d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yearn/apy/curve/simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,9 @@ async def calculate_simple(vault, gauge: Gauge, samples: ApySamples) -> Apy:
gauge.gauge_inflation_rate
* gauge_weight
* (SECONDS_PER_YEAR / gauge.gauge_working_supply)
* (PER_MAX_BOOST / float(pool_price))
* (PER_MAX_BOOST / pool_price)
* float(crv_price)
) / base_asset_price
) / float(base_asset_price)

if y_gauge_balance > 0:
y_boost = y_working_balance / (PER_MAX_BOOST * y_gauge_balance)
Expand Down

0 comments on commit 4b972d3

Please sign in to comment.