Skip to content

Commit

Permalink
fix: yeth type err
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler committed Oct 18, 2023
1 parent ac64c13 commit a85038d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yearn/yeth.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import logging
import os
import re
from datetime import datetime, timezone
from datetime import datetime
from pprint import pformat
from typing import Optional

Expand Down Expand Up @@ -55,7 +55,7 @@ async def get_supply(self, block: Optional[Block] = None) -> float:

async def get_price(self, block: Optional[Block] = None) -> Optional[float]:
try:
return await magic.get_price(YETH_TOKEN, block=block, sync=False)
return float(await magic.get_price(YETH_TOKEN, block=block, sync=False))
except yPriceMagicError as e:
if not isinstance(e.exception, PriceError):
raise e
Expand Down

0 comments on commit a85038d

Please sign in to comment.