Skip to content

Commit

Permalink
hotfix dexscreener price
Browse files Browse the repository at this point in the history
  • Loading branch information
t0rbik committed Nov 15, 2023
1 parent 722090e commit cc99137
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions app/assets/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,15 +182,6 @@ def dexscreener_price_in_stables(self):
# ValueError: could not convert string to float: '1,272.43'
price = str(prices.get("priceUsd") or 0).replace(",", "")
break
else:
if (
prices["baseToken"]["address"].lower() == self.address.lower()
and prices["baseToken"]["symbol"].lower() in self.symbol.lower()
and not prices["quoteToken"]["address"].lower()
== "0x04068DA6C83AFCFA0e13ba15A6696662335D5B75".lower()
):
price = str(prices.get("priceUsd") or 0).replace(",", "")
break

return float(price)

Expand Down

0 comments on commit cc99137

Please sign in to comment.