Skip to content

Commit

Permalink
fix: moar decimal conversions (#683)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Nov 19, 2023
1 parent 827f298 commit f02e359
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yearn/prices/curve.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,14 +576,15 @@ async def calculate_apy(self, gauge: Contract, lp_token: AddressOrContract, bloc
except ZeroDivisionError:
rate = 0

crv_price = float(crv_price)
return {
"crv price": crv_price,
"relative weight": relative_weight,
"inflation rate": inflation_rate,
"virtual price": virtual_price,
"crv reward rate": rate,
"crv apy": rate * crv_price,
"token price": token_price,
"token price": float(token_price),
}


Expand Down

0 comments on commit f02e359

Please sign in to comment.