Skip to content

Commit

Permalink
fix: wrap yfi price in float (#648)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Oct 20, 2023
1 parent abbaa77 commit 2d33fc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yearn/special.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 2d33fc6

Please sign in to comment.