Skip to content

Commit

Permalink
fix: ib Decimal TypeError
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler committed Nov 10, 2023
1 parent 0027047 commit f46fde3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions yearn/ironbank.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ async def describe(self, block=None):
)
output = defaultdict(dict)
for m, price in zip(markets, prices):
price = float(price)
res = results[m.vault]
exchange_rate = res["exchangeRateCurrent"] * 10 ** (m.cdecimals - m.decimals - 18)
for attr in ["getCash", "totalBorrows", "totalReserves"]:
Expand Down

0 comments on commit f46fde3

Please sign in to comment.