diff --git a/app/assets/model.py b/app/assets/model.py index 44b1dc2..627b5cf 100644 --- a/app/assets/model.py +++ b/app/assets/model.py @@ -158,8 +158,6 @@ def dexscreener_price_in_stables(self): if ( prices["baseToken"]["address"].lower() == self.address.lower() and prices["baseToken"]["symbol"] == self.symbol - and not prices["quoteToken"]["address"].lower() - == "0x04068DA6C83AFCFA0e13ba15A6696662335D5B75".lower() ): # To avoid this kek... # ValueError: could not convert string to float: '1,272.43' @@ -178,7 +176,8 @@ def dexscreener_price_in_stables(self): return float(price) def aggregated_price_in_stables(self): - price = self.defillama_price_in_stables() + # price = self.defillama_price_in_stables() + price = 0 if price != 0: return price @@ -264,8 +263,9 @@ def _update_price(self): self.price = self.aggregated_price_in_stables() if self.price == 0: - # self.price = self.chain_price_in_stables() self.price = self.chain_price_in_native() + if self.price == 0: + self.price = self.chain_price_in_stables() # if self.price == 0: # self.price = self.debank_price_in_stables() diff --git a/docker-compose.yml b/docker-compose.yml index 243cc68..a512f53 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,7 +14,7 @@ services: - TOKENLISTS=https://raw.githubusercontent.com/Velocimeter/docs/main/tokenlists/base.json - DEFAULT_TOKEN_ADDRESS=0xd386a121991E51Eab5e3433Bf5B1cF4C8884b47a - OPTION_TOKEN_ADDRESS=0x762eb51D2e779EeEc9B239FFB0B2eC8262848f3E - - STABLE_TOKEN_ADDRESS=0x0b776552c1aef1dc33005dd25acda22493b6615d + - STABLE_TOKEN_ADDRESS=0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA - ROUTE_TOKEN_ADDRESSES=0x4200000000000000000000000000000000000006 - SYNC_WAIT_SECONDS=20 - IGNORED_TOKEN_ADDRESSES=0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000 diff --git a/env.example.base b/env.example.base index cfe71f2..927d1f5 100644 --- a/env.example.base +++ b/env.example.base @@ -1,4 +1,4 @@ -WEB3_PROVIDER_URI=https://mainnet.base.org/ +WEB3_PROVIDER_URI=https://base.blockpi.network/v1/rpc/public ROUTER_ADDRESS=0xE11b93B61f6291d35c5a2beA0A9fF169080160cF FACTORY_ADDRESS=0xe21Aac7F113Bd5DC2389e4d8a8db854a87fD6951 VOTER_ADDRESS=0xab9B68c9e53c94D7c0949FB909E80e4a29F9134A @@ -7,7 +7,7 @@ REWARDS_DIST_ADDRESS=0x71Eaf68c2A23b7Bd78Db4987c3eCdB41c3b3b388 TOKENLISTS=https://raw.githubusercontent.com/Velocimeter/docs/main/tokenlists/base.json DEFAULT_TOKEN_ADDRESS=0xd386a121991E51Eab5e3433Bf5B1cF4C8884b47a OPTION_TOKEN_ADDRESS=0x762eb51D2e779EeEc9B239FFB0B2eC8262848f3E -STABLE_TOKEN_ADDRESS=0x0b776552c1aef1dc33005dd25acda22493b6615d +STABLE_TOKEN_ADDRESS=0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA ROUTE_TOKEN_ADDRESSES=0x4200000000000000000000000000000000000006 SYNC_WAIT_SECONDS=20 IGNORED_TOKEN_ADDRESSES=0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000