Skip to content

Commit

Permalink
fix: db.set_price (#379)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Oct 4, 2023
1 parent a6b73a8 commit 9ffd42e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion y/_db/utils/price.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def _set_price(address: str, block: int, price: Decimal) -> None:
Price(
block = get_block(block, sync=True),
token = get_token(address, sync=True),
price = price,
price = Decimal(price),
)
commit()
except TransactionIntegrityError:
Expand All @@ -48,3 +48,5 @@ def _set_price(address: str, block: int, price: Decimal) -> None:
)) and p.price == Decimal(price), (p.price, price)

__tasks: List[asyncio.Task] = []

from y.datatypes import UsdPrice

0 comments on commit 9ffd42e

Please sign in to comment.