diff --git a/yearn/special.py b/yearn/special.py index c8c0c6c36..609fa9475 100644 --- a/yearn/special.py +++ b/yearn/special.py @@ -160,12 +160,12 @@ async def describe(self, block=None): return { 'totalAssets': yfi_locked, 'token price': yfi_price, - 'tvl': yfi_locked * yfi_price, + 'tvl': yfi_locked * float(yfi_price), } async def total_value_at(self, block=None): yfi_locked, yfi_price = await self._locked(block=block) - return yfi_locked * yfi_price + return yfi_locked * float(yfi_price) class Registry(metaclass = Singleton):