diff --git a/yearn/prices/curve.py b/yearn/prices/curve.py index 00d3ab276..74b528c16 100644 --- a/yearn/prices/curve.py +++ b/yearn/prices/curve.py @@ -576,6 +576,7 @@ 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, @@ -583,7 +584,7 @@ async def calculate_apy(self, gauge: Contract, lp_token: AddressOrContract, bloc "virtual price": virtual_price, "crv reward rate": rate, "crv apy": rate * crv_price, - "token price": token_price, + "token price": float(token_price), }