Skip to content

Commit

Permalink
fix: turn Decimal prices to floats (#675)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Nov 18, 2023
1 parent 250ba14 commit 094e00c
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,8 +193,8 @@ 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 / pool_price)
* crv_price
* (PER_MAX_BOOST / float(pool_price))
* float(crv_price)
) / base_asset_price

if y_gauge_balance > 0:
Expand Down

0 comments on commit 094e00c

Please sign in to comment.