From 2d33fc63e53eeffa662e9332d895c3135c27ebf0 Mon Sep 17 00:00:00 2001 From: BobTheBuidler <70677534+BobTheBuidler@users.noreply.github.com> Date: Thu, 19 Oct 2023 22:18:47 -0400 Subject: [PATCH] fix: wrap yfi price in float (#648) --- yearn/special.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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):