Skip to content

Commit

Permalink
Merge pull request #789 from tellor-io/source-updates
Browse files Browse the repository at this point in the history
remove broken usdm sources
  • Loading branch information
0xSpuddy authored Jul 25, 2024
2 parents 88ee7f4 + 2fa2ca3 commit d707469
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 12 deletions.
4 changes: 0 additions & 4 deletions src/telliot_feeds/feeds/usdm_usd_feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
from telliot_feeds.queries.price.spot_price import SpotPrice
from telliot_feeds.sources.price.spot.coingecko import CoinGeckoSpotPriceSource
from telliot_feeds.sources.price.spot.coinpaprika import CoinpaprikaSpotPriceSource
from telliot_feeds.sources.price.spot.curvefiprice import CurveFiUSDPriceSource
from telliot_feeds.sources.price.spot.uniswapV3Pool import UniswapV3PoolPriceSource
from telliot_feeds.sources.price_aggregator import PriceAggregator


Expand All @@ -15,9 +13,7 @@
algorithm="median",
sources=[
CoinGeckoSpotPriceSource(asset="usdm", currency="usd"),
CurveFiUSDPriceSource(asset="usdm", currency="usd"),
CoinpaprikaSpotPriceSource(asset="usdm-mountain-protocol-usd", currency="usd"),
UniswapV3PoolPriceSource(asset="usdm", currency="usd"),
],
),
)
1 change: 0 additions & 1 deletion src/telliot_feeds/sources/price/spot/curvefiprice.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@


ethereum_contract_map = {
"usdm": "0x59D9356E565Ab3A36dD77763Fc0d87fEaf85508C",
"sdai": "0x83F20F44975D03b1b09e64809B757c47f942BEeA",
"sfrax": "0xA663B02CF0a4b149d2aD41910CB81e23e1c41c32",
"eth": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
Expand Down
1 change: 0 additions & 1 deletion src/telliot_feeds/sources/price/spot/uniswapV3Pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
uniswapV3token0__pool_map = {
"oeth": "0x52299416c469843f4e0d54688099966a6c7d720f",
"primeeth": "0xb6934f4cf655c93e897514dc7c2af5a143b9ca22",
"usdm": "0x4a25dbdf9629b1782c3e2c7de3bdce41f1c7f801",
}


Expand Down
4 changes: 0 additions & 4 deletions src/telliot_feeds/sources/wusdm_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
from telliot_feeds.pricing.price_source import PriceSource
from telliot_feeds.sources.price.spot.coingecko import CoinGeckoSpotPriceSource
from telliot_feeds.sources.price.spot.coinpaprika import CoinpaprikaSpotPriceSource
from telliot_feeds.sources.price.spot.curvefiprice import CurveFiUSDPriceSource
from telliot_feeds.sources.price.spot.uniswapV3Pool import UniswapV3PoolPriceSource
from telliot_feeds.sources.price_aggregator import PriceAggregator
from telliot_feeds.utils.log import get_logger

Expand Down Expand Up @@ -66,9 +64,7 @@ async def get_price(self, asset: str, currency: str) -> OptionalDataPoint[float]
algorithm="median",
sources=[
CoinGeckoSpotPriceSource(asset="usdm", currency="usd"),
CurveFiUSDPriceSource(asset="usdm", currency="usd"),
CoinpaprikaSpotPriceSource(asset="usdm-mountain-protocol-usd", currency=currency),
UniswapV3PoolPriceSource(asset="usdm", currency=currency),
],
)

Expand Down
2 changes: 1 addition & 1 deletion tests/feeds/test_usdm_usd_feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async def test_usdm_usd_median_feed(caplog):

assert v is not None
assert v > 0
assert "sources used in aggregate: 4" in caplog.text.lower()
assert "sources used in aggregate: 2" in caplog.text.lower()
print(f"USDM/ETH Price: {v}")
# Get list of data sources from sources dict
source_prices = usdm_usd_median_feed.source.latest[0]
Expand Down
2 changes: 1 addition & 1 deletion tests/feeds/test_wusdm_usd_feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ async def test_wusdm_usd_feed(caplog):

assert v is not None
assert v > 0
assert "sources used in aggregate: 4" in caplog.text.lower()
assert "sources used in aggregate: 2" in caplog.text.lower()
print(f"wusdm/usd Price: {v}")

# Get list of data sources from sources dict
Expand Down

0 comments on commit d707469

Please sign in to comment.