From 1c670234d63070b6a12747283c6be6a9ab96c761 Mon Sep 17 00:00:00 2001 From: Chenyao Yu <4844716+chenyaoy@users.noreply.github.com> Date: Wed, 16 Oct 2024 13:42:33 -0400 Subject: [PATCH 1/5] Rename MATIC to POL in genesis and tests --- .../static_exchange_market_config_test.go | 9 +- .../testdata/matic_exchange_config.json | 42 - .../testdata/pol_exchange_config.json | 22 + .../handler/exchange_query_handler_test.go | 5 +- protocol/daemons/slinky/config/market.json | 3031 ----------------- protocol/daemons/slinky/config/oracle.json | 491 --- .../scripts/genesis/sample_pregenesis.json | 123 +- .../containertest/preupgrade_genesis.json | 73 +- protocol/testing/genesis.sh | 48 +- protocol/testing/mainnet/genesis.json | 6 +- protocol/testing/testnet-dev/dev.sh | 4 +- protocol/testing/testnet-staging/staging.sh | 4 +- protocol/testing/testnet/genesis.json | 6 +- protocol/testutil/constants/genesis.go | 129 +- protocol/testutil/constants/pricefeed.go | 6 +- protocol/testutil/constants/prices.go | 32 +- .../pricefeed/exchange_config/market_id.go | 4 +- .../exchange_config/static_market_names.go | 68 +- .../testnet_exchange_market_config.go | 32 +- 19 files changed, 260 insertions(+), 3875 deletions(-) delete mode 100644 protocol/daemons/pricefeed/client/constants/testdata/matic_exchange_config.json create mode 100644 protocol/daemons/pricefeed/client/constants/testdata/pol_exchange_config.json delete mode 100644 protocol/daemons/slinky/config/market.json delete mode 100644 protocol/daemons/slinky/config/oracle.json diff --git a/protocol/daemons/pricefeed/client/constants/static_exchange_market_config_test.go b/protocol/daemons/pricefeed/client/constants/static_exchange_market_config_test.go index 3e3d0cdb04..e5e9585ec3 100644 --- a/protocol/daemons/pricefeed/client/constants/static_exchange_market_config_test.go +++ b/protocol/daemons/pricefeed/client/constants/static_exchange_market_config_test.go @@ -1,9 +1,10 @@ package constants import ( - "github.com/dydxprotocol/v4-chain/protocol/testutil/daemons/pricefeed/exchange_config" "testing" + "github.com/dydxprotocol/v4-chain/protocol/testutil/daemons/pricefeed/exchange_config" + "github.com/dydxprotocol/v4-chain/protocol/daemons/pricefeed/client/types" "github.com/dydxprotocol/v4-chain/protocol/testutil/daemons/pricefeed" "github.com/dydxprotocol/v4-chain/protocol/testutil/json" @@ -27,9 +28,9 @@ func TestGenerateExchangeConfigJson(t *testing.T) { id: exchange_config.MARKET_LINK_USD, expectedExchangeConfigJsonFile: "link_exchange_config.json", }, - "MATIC exchange config": { - id: exchange_config.MARKET_MATIC_USD, - expectedExchangeConfigJsonFile: "matic_exchange_config.json", + "POL exchange config": { + id: exchange_config.MARKET_POL_USD, + expectedExchangeConfigJsonFile: "pol_exchange_config.json", }, "CRV exchange config": { id: exchange_config.MARKET_CRV_USD, diff --git a/protocol/daemons/pricefeed/client/constants/testdata/matic_exchange_config.json b/protocol/daemons/pricefeed/client/constants/testdata/matic_exchange_config.json deleted file mode 100644 index 80c78dc0fd..0000000000 --- a/protocol/daemons/pricefeed/client/constants/testdata/matic_exchange_config.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "exchanges": [ - { - "exchangeName": "Binance", - "ticker": "MATICUSDT", - "adjustByMarket": "USDT-USD" - }, - { - "exchangeName": "Bybit", - "ticker": "MATICUSDT", - "adjustByMarket": "USDT-USD" - }, - { - "exchangeName": "CoinbasePro", - "ticker": "MATIC-USD" - }, - { - "exchangeName": "Gate", - "ticker": "MATIC_USDT", - "adjustByMarket": "USDT-USD" - }, - { - "exchangeName": "Huobi", - "ticker": "maticusdt", - "adjustByMarket": "USDT-USD" - }, - { - "exchangeName": "Kraken", - "ticker": "MATICUSD" - }, - { - "exchangeName": "Kucoin", - "ticker": "MATIC-USDT", - "adjustByMarket": "USDT-USD" - }, - { - "exchangeName": "Okx", - "ticker": "MATIC-USDT", - "adjustByMarket": "USDT-USD" - } - ] -} diff --git a/protocol/daemons/pricefeed/client/constants/testdata/pol_exchange_config.json b/protocol/daemons/pricefeed/client/constants/testdata/pol_exchange_config.json new file mode 100644 index 0000000000..1af05f8980 --- /dev/null +++ b/protocol/daemons/pricefeed/client/constants/testdata/pol_exchange_config.json @@ -0,0 +1,22 @@ +{ + "exchanges": [ + { + "exchangeName": "Bybit", + "ticker": "POLUSDT", + "adjustByMarket": "USDT-USD" + }, + { + "exchangeName": "CoinbasePro", + "ticker": "POL-USD" + }, + { + "exchangeName": "CryptoCom", + "ticker": "POL_USD" + }, + { + "exchangeName": "Okx", + "ticker": "POL-USDT", + "adjustByMarket": "USDT-USD" + } + ] +} diff --git a/protocol/daemons/pricefeed/client/handler/exchange_query_handler_test.go b/protocol/daemons/pricefeed/client/handler/exchange_query_handler_test.go index b276a8b336..ac9c42273d 100644 --- a/protocol/daemons/pricefeed/client/handler/exchange_query_handler_test.go +++ b/protocol/daemons/pricefeed/client/handler/exchange_query_handler_test.go @@ -4,11 +4,12 @@ import ( "context" "errors" "fmt" - "github.com/dydxprotocol/v4-chain/protocol/testutil/daemons/pricefeed/exchange_config" "net/http" "testing" "time" + "github.com/dydxprotocol/v4-chain/protocol/testutil/daemons/pricefeed/exchange_config" + pf_constants "github.com/dydxprotocol/v4-chain/protocol/daemons/pricefeed/client/constants" "github.com/dydxprotocol/v4-chain/protocol/daemons/pricefeed/client/price_function" "github.com/dydxprotocol/v4-chain/protocol/daemons/pricefeed/client/types" @@ -310,7 +311,7 @@ func generateTestMarketPriceExponentMap() map[types.MarketId]types.Exponent { marketExponents[exchange_config.MARKET_BTC_USD] = constants.BtcUsdExponent marketExponents[exchange_config.MARKET_ETH_USD] = constants.EthUsdExponent marketExponents[exchange_config.MARKET_LINK_USD] = constants.LinkUsdExponent - marketExponents[exchange_config.MARKET_MATIC_USD] = constants.MaticUsdExponent + marketExponents[exchange_config.MARKET_POL_USD] = constants.PolUsdExponent marketExponents[exchange_config.MARKET_CRV_USD] = constants.CrvUsdExponent marketExponents[unavailableId] = unavailableExponent return marketExponents diff --git a/protocol/daemons/slinky/config/market.json b/protocol/daemons/slinky/config/market.json deleted file mode 100644 index 82e9654b73..0000000000 --- a/protocol/daemons/slinky/config/market.json +++ /dev/null @@ -1,3031 +0,0 @@ -{ - "tickers": { - "ADA/USD": { - "currency_pair": { - "Base": "ADA", - "Quote": "USD" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "ADA/USDC": { - "currency_pair": { - "Base": "ADA", - "Quote": "USDC" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "ADA/USDT": { - "currency_pair": { - "Base": "ADA", - "Quote": "USDT" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "APE/USD": { - "currency_pair": { - "Base": "APE", - "Quote": "USD" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "APE/USDC": { - "currency_pair": { - "Base": "APE", - "Quote": "USDC" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "APE/USDT": { - "currency_pair": { - "Base": "APE", - "Quote": "USDT" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "APT/USD": { - "currency_pair": { - "Base": "APT", - "Quote": "USD" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "APT/USDC": { - "currency_pair": { - "Base": "APT", - "Quote": "USDC" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "APT/USDT": { - "currency_pair": { - "Base": "APT", - "Quote": "USDT" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "ARB/USD": { - "currency_pair": { - "Base": "ARB", - "Quote": "USD" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "ARB/USDT": { - "currency_pair": { - "Base": "ARB", - "Quote": "USDT" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "ATOM/USD": { - "currency_pair": { - "Base": "ATOM", - "Quote": "USD" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "ATOM/USDC": { - "currency_pair": { - "Base": "ATOM", - "Quote": "USDC" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "ATOM/USDT": { - "currency_pair": { - "Base": "ATOM", - "Quote": "USDT" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "AVAX/USD": { - "currency_pair": { - "Base": "AVAX", - "Quote": "USD" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "AVAX/USDC": { - "currency_pair": { - "Base": "AVAX", - "Quote": "USDC" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "AVAX/USDT": { - "currency_pair": { - "Base": "AVAX", - "Quote": "USDT" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "BCH/USD": { - "currency_pair": { - "Base": "BCH", - "Quote": "USD" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "BCH/USDT": { - "currency_pair": { - "Base": "BCH", - "Quote": "USDT" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "BLUR/USD": { - "currency_pair": { - "Base": "BLUR", - "Quote": "USD" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "BLUR/USDT": { - "currency_pair": { - "Base": "BLUR", - "Quote": "USDT" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "BTC/USD": { - "currency_pair": { - "Base": "BTC", - "Quote": "USD" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "BTC/USDC": { - "currency_pair": { - "Base": "BTC", - "Quote": "USDC" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "BTC/USDT": { - "currency_pair": { - "Base": "BTC", - "Quote": "USDT" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "COMP/USD": { - "currency_pair": { - "Base": "COMP", - "Quote": "USD" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "COMP/USDT": { - "currency_pair": { - "Base": "COMP", - "Quote": "USDT" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "CRV/USD": { - "currency_pair": { - "Base": "CRV", - "Quote": "USD" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "CRV/USDT": { - "currency_pair": { - "Base": "CRV", - "Quote": "USDT" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "DOGE/USD": { - "currency_pair": { - "Base": "DOGE", - "Quote": "USD" - }, - "decimals": 18, - "min_provider_count": 1 - }, - "DOGE/USDT": { - "currency_pair": { - "Base": "DOGE", - "Quote": "USDT" - }, - "decimals": 18, - "min_provider_count": 1 - }, - "DOT/USD": { - "currency_pair": { - "Base": "DOT", - "Quote": "USD" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "DOT/USDT": { - "currency_pair": { - "Base": "DOT", - "Quote": "USDT" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "DYDX/USD": { - "currency_pair": { - "Base": "DYDX", - "Quote": "USD" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "DYDX/USDC": { - "currency_pair": { - "Base": "DYDX", - "Quote": "USDC" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "DYDX/USDT": { - "currency_pair": { - "Base": "DYDX", - "Quote": "USDT" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "ETC/USD": { - "currency_pair": { - "Base": "ETC", - "Quote": "USD" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "ETC/USDT": { - "currency_pair": { - "Base": "ETC", - "Quote": "USDT" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "ETH/BTC": { - "currency_pair": { - "Base": "ETH", - "Quote": "BTC" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "ETH/USD": { - "currency_pair": { - "Base": "ETH", - "Quote": "USD" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "ETH/USDC": { - "currency_pair": { - "Base": "ETH", - "Quote": "USDC" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "ETH/USDT": { - "currency_pair": { - "Base": "ETH", - "Quote": "USDT" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "FIL/USD": { - "currency_pair": { - "Base": "FIL", - "Quote": "USD" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "FIL/USDT": { - "currency_pair": { - "Base": "FIL", - "Quote": "USDT" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "LDO/USD": { - "currency_pair": { - "Base": "LDO", - "Quote": "USD" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "LDO/USDT": { - "currency_pair": { - "Base": "LDO", - "Quote": "USDT" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "LINK/USD": { - "currency_pair": { - "Base": "LINK", - "Quote": "USD" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "LINK/USDT": { - "currency_pair": { - "Base": "LINK", - "Quote": "USDT" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "LTC/USD": { - "currency_pair": { - "Base": "LTC", - "Quote": "USD" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "LTC/USDT": { - "currency_pair": { - "Base": "LTC", - "Quote": "USDT" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "MATIC/USD": { - "currency_pair": { - "Base": "MATIC", - "Quote": "USD" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "MATIC/USDT": { - "currency_pair": { - "Base": "MATIC", - "Quote": "USDT" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "MKR/USD": { - "currency_pair": { - "Base": "MKR", - "Quote": "USD" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "MKR/USDT": { - "currency_pair": { - "Base": "MKR", - "Quote": "USDT" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "MOG/USD": { - "currency_pair": { - "Base": "MOG", - "Quote": "USD" - }, - "decimals": 18, - "min_provider_count": 1 - }, - "NEAR/USD": { - "currency_pair": { - "Base": "NEAR", - "Quote": "USD" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "NEAR/USDT": { - "currency_pair": { - "Base": "NEAR", - "Quote": "USDT" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "OP/USD": { - "currency_pair": { - "Base": "OP", - "Quote": "USD" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "OP/USDT": { - "currency_pair": { - "Base": "OP", - "Quote": "USDT" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "OSMO/USD": { - "currency_pair": { - "Base": "OSMO", - "Quote": "USD" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "OSMO/USDC": { - "currency_pair": { - "Base": "OSMO", - "Quote": "USDC" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "OSMO/USDT": { - "currency_pair": { - "Base": "OSMO", - "Quote": "USDT" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "PEPE/USD": { - "currency_pair": { - "Base": "PEPE", - "Quote": "USD" - }, - "decimals": 18, - "min_provider_count": 1 - }, - "PEPE/USDT": { - "currency_pair": { - "Base": "PEPE", - "Quote": "USDT" - }, - "decimals": 18, - "min_provider_count": 1 - }, - "SEI/USD": { - "currency_pair": { - "Base": "SEI", - "Quote": "USD" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "SEI/USDT": { - "currency_pair": { - "Base": "SEI", - "Quote": "USDT" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "SHIB/USD": { - "currency_pair": { - "Base": "SHIB", - "Quote": "USD" - }, - "decimals": 18, - "min_provider_count": 1 - }, - "SHIB/USDT": { - "currency_pair": { - "Base": "SHIB", - "Quote": "USDT" - }, - "decimals": 18, - "min_provider_count": 1 - }, - "SOL/USD": { - "currency_pair": { - "Base": "SOL", - "Quote": "USD" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "SOL/USDC": { - "currency_pair": { - "Base": "SOL", - "Quote": "USDC" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "SOL/USDT": { - "currency_pair": { - "Base": "SOL", - "Quote": "USDT" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "SUI/USD": { - "currency_pair": { - "Base": "SUI", - "Quote": "USD" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "SUI/USDT": { - "currency_pair": { - "Base": "SUI", - "Quote": "USDT" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "TIA/USD": { - "currency_pair": { - "Base": "TIA", - "Quote": "USD" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "TIA/USDC": { - "currency_pair": { - "Base": "TIA", - "Quote": "USDC" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "TIA/USDT": { - "currency_pair": { - "Base": "TIA", - "Quote": "USDT" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "TRX/USD": { - "currency_pair": { - "Base": "TRX", - "Quote": "USD" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "TRX/USDT": { - "currency_pair": { - "Base": "TRX", - "Quote": "USDT" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "UNI/USD": { - "currency_pair": { - "Base": "UNI", - "Quote": "USD" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "UNI/USDT": { - "currency_pair": { - "Base": "UNI", - "Quote": "USDT" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "USDC/USD": { - "currency_pair": { - "Base": "USDC", - "Quote": "USD" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "USDC/USDT": { - "currency_pair": { - "Base": "USDC", - "Quote": "USDT" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "USDT/USD": { - "currency_pair": { - "Base": "USDT", - "Quote": "USD" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "WLD/USDT": { - "currency_pair": { - "Base": "WLD", - "Quote": "USDT" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "XLM/USD": { - "currency_pair": { - "Base": "XLM", - "Quote": "USD" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "XLM/USDT": { - "currency_pair": { - "Base": "XLM", - "Quote": "USDT" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "XRP/USD": { - "currency_pair": { - "Base": "XRP", - "Quote": "USD" - }, - "decimals": 8, - "min_provider_count": 1 - }, - "XRP/USDT": { - "currency_pair": { - "Base": "XRP", - "Quote": "USDT" - }, - "decimals": 8, - "min_provider_count": 1 - } - }, - "paths": {}, - "providers": { - "ADA/USD": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "ADAUSD" - }, - { - "name": "Kraken", - "off_chain_ticker": "ADA/USD" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "ADA-USD" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "ADA-USD" - }, - { - "name": "Okx", - "off_chain_ticker": "ADA-USD" - } - ] - }, - "ADA/USDC": { - "providers": [ - { - "name": "Mexc", - "off_chain_ticker": "ADAUSDC" - }, - { - "name": "Kucoin", - "off_chain_ticker": "ADA-USDC" - }, - { - "name": "Okx", - "off_chain_ticker": "ADA-USDC" - } - ] - }, - "ADA/USDT": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "ADAUSDT" - }, - { - "name": "Gate", - "off_chain_ticker": "ADA_USDT" - }, - { - "name": "Huobi", - "off_chain_ticker": "adausdt" - }, - { - "name": "Mexc", - "off_chain_ticker": "ADAUSDT" - }, - { - "name": "Binance", - "off_chain_ticker": "ADAUSDT" - }, - { - "name": "Kucoin", - "off_chain_ticker": "ADA-USDT" - }, - { - "name": "Bybit", - "off_chain_ticker": "ADAUSDT" - }, - { - "name": "Okx", - "off_chain_ticker": "ADA-USDT" - } - ] - }, - "APE/USD": { - "providers": [ - { - "name": "Kraken", - "off_chain_ticker": "APE/USD" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "APE-USD" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "APE-USD" - } - ] - }, - "APE/USDC": { - "providers": [ - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "APE-USDC" - }, - { - "name": "Kucoin", - "off_chain_ticker": "APE-USDC" - }, - { - "name": "Okx", - "off_chain_ticker": "APE-USDC" - } - ] - }, - "APE/USDT": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "APEUSDT" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "APE-USDT" - }, - { - "name": "Gate", - "off_chain_ticker": "APE_USDT" - }, - { - "name": "Mexc", - "off_chain_ticker": "APEUSDT" - }, - { - "name": "Binance", - "off_chain_ticker": "APEUSDT" - }, - { - "name": "Kucoin", - "off_chain_ticker": "APE-USDT" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "APE-USDT" - }, - { - "name": "Okx", - "off_chain_ticker": "APE-USDT" - } - ] - }, - "APT/USD": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "APTUSD" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "APT-USD" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "APT-USD" - } - ] - }, - "APT/USDC": { - "providers": [ - { - "name": "Okx", - "off_chain_ticker": "APT-USDC" - } - ] - }, - "APT/USDT": { - "providers": [ - { - "name": "Gate", - "off_chain_ticker": "APT_USDT" - }, - { - "name": "Huobi", - "off_chain_ticker": "aptusdt" - }, - { - "name": "Mexc", - "off_chain_ticker": "APTUSDT" - }, - { - "name": "Binance", - "off_chain_ticker": "APTUSDT" - }, - { - "name": "Kucoin", - "off_chain_ticker": "APT-USDT" - }, - { - "name": "Bybit", - "off_chain_ticker": "APTUSDT" - }, - { - "name": "Okx", - "off_chain_ticker": "APT-USDT" - } - ] - }, - "ARB/USD": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "ARBUSD" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "ARB-USD" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "ARB-USD" - } - ] - }, - "ARB/USDT": { - "providers": [ - { - "name": "Gate", - "off_chain_ticker": "ARB_USDT" - }, - { - "name": "Huobi", - "off_chain_ticker": "arbusdt" - }, - { - "name": "Mexc", - "off_chain_ticker": "ARBUSDT" - }, - { - "name": "Binance", - "off_chain_ticker": "ARBUSDT" - }, - { - "name": "Kucoin", - "off_chain_ticker": "ARB-USDT" - }, - { - "name": "Bybit", - "off_chain_ticker": "ARBUSDT" - }, - { - "name": "Okx", - "off_chain_ticker": "ARB-USDT" - } - ] - }, - "ATOM/USD": { - "providers": [ - { - "name": "Coingecko", - "off_chain_ticker": "cosmos/usd" - }, - { - "name": "KrakenAPI", - "off_chain_ticker": "ATOMUSD" - }, - { - "name": "Kraken", - "off_chain_ticker": "ATOM/USD" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "ATOM-USD" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "ATOM-USD" - }, - { - "name": "CryptoCom", - "off_chain_ticker": "ATOMUSD-PERP" - }, - { - "name": "Okx", - "off_chain_ticker": "ATOM-USD" - } - ] - }, - "ATOM/USDC": { - "providers": [ - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "ATOM-USDC" - }, - { - "name": "Mexc", - "off_chain_ticker": "ATOMUSDC" - }, - { - "name": "Kucoin", - "off_chain_ticker": "ATOM-USDC" - }, - { - "name": "Okx", - "off_chain_ticker": "ATOM-USDC" - } - ] - }, - "ATOM/USDT": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "ATOMUSDT" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "ATOM-USDT" - }, - { - "name": "Gate", - "off_chain_ticker": "ATOM_USDT" - }, - { - "name": "Huobi", - "off_chain_ticker": "atomusdt" - }, - { - "name": "Mexc", - "off_chain_ticker": "ATOMUSDT" - }, - { - "name": "Binance", - "off_chain_ticker": "ATOMUSDT" - }, - { - "name": "Kucoin", - "off_chain_ticker": "ATOM-USDT" - }, - { - "name": "Bybit", - "off_chain_ticker": "ATOMUSDT" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "ATOM-USDT" - }, - { - "name": "CryptoCom", - "off_chain_ticker": "ATOM_USDT" - }, - { - "name": "Okx", - "off_chain_ticker": "ATOM-USDT" - } - ] - }, - "AVAX/USD": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "AVAXUSD" - }, - { - "name": "Kraken", - "off_chain_ticker": "AVAX/USD" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "AVAX-USD" - }, - { - "name": "Bitstamp", - "off_chain_ticker": "avaxusd" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "AVAX-USD" - }, - { - "name": "CryptoCom", - "off_chain_ticker": "AVAXUSD-PERP" - }, - { - "name": "Okx", - "off_chain_ticker": "AVAX-USD" - } - ] - }, - "AVAX/USDC": { - "providers": [ - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "AVAX-USDC" - }, - { - "name": "Mexc", - "off_chain_ticker": "AVAXUSDC" - }, - { - "name": "Kucoin", - "off_chain_ticker": "AVAX-USDC" - }, - { - "name": "Bybit", - "off_chain_ticker": "AVAXUSDC" - }, - { - "name": "Okx", - "off_chain_ticker": "AVAX-USDC" - } - ] - }, - "AVAX/USDT": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "AVAXUSDT" - }, - { - "name": "Kraken", - "off_chain_ticker": "AVAX/USDT" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "AVAX-USDT" - }, - { - "name": "Gate", - "off_chain_ticker": "AVAX_USDT" - }, - { - "name": "Huobi", - "off_chain_ticker": "avaxusdt" - }, - { - "name": "Mexc", - "off_chain_ticker": "AVAXUSDT" - }, - { - "name": "Binance", - "off_chain_ticker": "AVAXUSDT" - }, - { - "name": "Kucoin", - "off_chain_ticker": "AVAX-USDT" - }, - { - "name": "Bybit", - "off_chain_ticker": "AVAXUSDT" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "AVAX-USDT" - }, - { - "name": "CryptoCom", - "off_chain_ticker": "AVAX_USDT" - }, - { - "name": "Okx", - "off_chain_ticker": "AVAX-USDT" - } - ] - }, - "BCH/USD": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "BCHUSD" - }, - { - "name": "Kraken", - "off_chain_ticker": "BCH/USD" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "BCH-USD" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "BCH-USD" - } - ] - }, - "BCH/USDT": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "BCHUSDT" - }, - { - "name": "Gate", - "off_chain_ticker": "BCH_USDT" - }, - { - "name": "Huobi", - "off_chain_ticker": "bchusdt" - }, - { - "name": "Mexc", - "off_chain_ticker": "BCHUSDT" - }, - { - "name": "Binance", - "off_chain_ticker": "BCHUSDT" - }, - { - "name": "Kucoin", - "off_chain_ticker": "BCH-USDT" - }, - { - "name": "Bybit", - "off_chain_ticker": "BCHUSDT" - }, - { - "name": "Okx", - "off_chain_ticker": "BCH-USDT" - } - ] - }, - "BLUR/USD": { - "providers": [ - { - "name": "Kraken", - "off_chain_ticker": "BLUR/USD" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "BLUR-USD" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "BLUR-USD" - } - ] - }, - "BLUR/USDT": { - "providers": [ - { - "name": "Gate", - "off_chain_ticker": "BLUR_USDT" - }, - { - "name": "Mexc", - "off_chain_ticker": "BLURUSDT" - }, - { - "name": "Kucoin", - "off_chain_ticker": "BLUR-USDT" - }, - { - "name": "Okx", - "off_chain_ticker": "BLUR-USDT" - } - ] - }, - "BTC/USD": { - "providers": [ - { - "name": "Coingecko", - "off_chain_ticker": "bitcoin/usd" - }, - { - "name": "KrakenAPI", - "off_chain_ticker": "XXBTZUSD" - }, - { - "name": "Kraken", - "off_chain_ticker": "XBT/USD" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "BTC-USD" - }, - { - "name": "Bitfinex", - "off_chain_ticker": "BTCUSD" - }, - { - "name": "Bitstamp", - "off_chain_ticker": "btcusd" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "BTC-USD" - }, - { - "name": "CryptoCom", - "off_chain_ticker": "BTCUSD-PERP" - }, - { - "name": "Okx", - "off_chain_ticker": "BTC-USD" - } - ] - }, - "BTC/USDC": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "XBTUSDC" - }, - { - "name": "Kraken", - "off_chain_ticker": "XBT/USDC" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "BTC-USDC" - }, - { - "name": "Huobi", - "off_chain_ticker": "btcusdc" - }, - { - "name": "Mexc", - "off_chain_ticker": "BTCUSDC" - }, - { - "name": "Binance", - "off_chain_ticker": "BTCUSDC" - }, - { - "name": "Kucoin", - "off_chain_ticker": "BTC-USDC" - }, - { - "name": "Bitstamp", - "off_chain_ticker": "btcusdc" - }, - { - "name": "Bybit", - "off_chain_ticker": "BTCUSDC" - }, - { - "name": "Okx", - "off_chain_ticker": "BTC-USDC" - } - ] - }, - "BTC/USDT": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "XBTUSDT" - }, - { - "name": "Kraken", - "off_chain_ticker": "XBT/USDT" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "BTC-USDT" - }, - { - "name": "Gate", - "off_chain_ticker": "BTC_USDT" - }, - { - "name": "Huobi", - "off_chain_ticker": "btcusdt" - }, - { - "name": "Mexc", - "off_chain_ticker": "BTCUSDT" - }, - { - "name": "Binance", - "off_chain_ticker": "BTCUSDT" - }, - { - "name": "Kucoin", - "off_chain_ticker": "BTC-USDT" - }, - { - "name": "Bitstamp", - "off_chain_ticker": "btcusdt" - }, - { - "name": "Bybit", - "off_chain_ticker": "BTCUSDT" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "BTC-USDT" - }, - { - "name": "CryptoCom", - "off_chain_ticker": "BTC_USDT" - }, - { - "name": "Okx", - "off_chain_ticker": "BTC-USDT" - } - ] - }, - "COMP/USD": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "COMPUSD" - }, - { - "name": "Kraken", - "off_chain_ticker": "COMP/USD" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "COMP-USD" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "COMP-USD" - } - ] - }, - "COMP/USDT": { - "providers": [ - { - "name": "Gate", - "off_chain_ticker": "COMP_USDT" - }, - { - "name": "Mexc", - "off_chain_ticker": "COMPUSDT" - }, - { - "name": "Binance", - "off_chain_ticker": "COMPUSDT" - }, - { - "name": "Okx", - "off_chain_ticker": "COMP-USDT" - } - ] - }, - "CRV/USD": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "CRVUSD" - }, - { - "name": "Kraken", - "off_chain_ticker": "CRV/USD" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "CRV-USD" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "CRV-USD" - } - ] - }, - "CRV/USDT": { - "providers": [ - { - "name": "Gate", - "off_chain_ticker": "CRV_USDT" - }, - { - "name": "Mexc", - "off_chain_ticker": "CRVUSDT" - }, - { - "name": "Binance", - "off_chain_ticker": "CRVUSDT" - }, - { - "name": "Kucoin", - "off_chain_ticker": "CRV-USDT" - }, - { - "name": "Okx", - "off_chain_ticker": "CRV-USDT" - } - ] - }, - "DOGE/USD": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "XDGUSD" - }, - { - "name": "Kraken", - "off_chain_ticker": "XDG/USD" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "DOGE-USD" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "DOGE-USD" - } - ] - }, - "DOGE/USDT": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "XDGUSDT" - }, - { - "name": "Gate", - "off_chain_ticker": "DOGE_USDT" - }, - { - "name": "Huobi", - "off_chain_ticker": "dogeusdt" - }, - { - "name": "Mexc", - "off_chain_ticker": "DOGEUSDT" - }, - { - "name": "Binance", - "off_chain_ticker": "DOGEUSDT" - }, - { - "name": "Kucoin", - "off_chain_ticker": "DOGE-USDT" - }, - { - "name": "Bybit", - "off_chain_ticker": "DOGEUSDT" - }, - { - "name": "Okx", - "off_chain_ticker": "DOGE-USDT" - } - ] - }, - "DOT/USD": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "DOTUSD" - }, - { - "name": "Kraken", - "off_chain_ticker": "DOT/USD" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "DOT-USD" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "DOT-USD" - } - ] - }, - "DOT/USDT": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "DOTUSDT" - }, - { - "name": "Gate", - "off_chain_ticker": "DOT_USDT" - }, - { - "name": "Mexc", - "off_chain_ticker": "DOTUSDT" - }, - { - "name": "Binance", - "off_chain_ticker": "DOTUSDT" - }, - { - "name": "Kucoin", - "off_chain_ticker": "DOT-USDT" - }, - { - "name": "Bybit", - "off_chain_ticker": "DOTUSDT" - }, - { - "name": "Okx", - "off_chain_ticker": "DOT-USDT" - } - ] - }, - "DYDX/USD": { - "providers": [ - { - "name": "Coingecko", - "off_chain_ticker": "dydx-chain/usd" - }, - { - "name": "KrakenAPI", - "off_chain_ticker": "DYDXUSD" - }, - { - "name": "Kraken", - "off_chain_ticker": "DYDX/USD" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "DYDX-USD" - }, - { - "name": "CryptoCom", - "off_chain_ticker": "DYDXUSD-PERP" - }, - { - "name": "Okx", - "off_chain_ticker": "DYDX-USD" - } - ] - }, - "DYDX/USDC": { - "providers": [ - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "DYDX-USDC" - } - ] - }, - "DYDX/USDT": { - "providers": [ - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "DYDX-USDT" - }, - { - "name": "Gate", - "off_chain_ticker": "DYDX_USDT" - }, - { - "name": "Huobi", - "off_chain_ticker": "dydxusdt" - }, - { - "name": "Mexc", - "off_chain_ticker": "DYDXUSDT" - }, - { - "name": "Binance", - "off_chain_ticker": "DYDXUSDT" - }, - { - "name": "Kucoin", - "off_chain_ticker": "DYDX-USDT" - }, - { - "name": "Bybit", - "off_chain_ticker": "DYDXUSDT" - }, - { - "name": "CryptoCom", - "off_chain_ticker": "DYDX_USDT" - }, - { - "name": "Okx", - "off_chain_ticker": "DYDX-USDT" - } - ] - }, - "ETC/USD": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "ETCUSD" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "ETC-USD" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "ETC-USD" - } - ] - }, - "ETC/USDT": { - "providers": [ - { - "name": "Gate", - "off_chain_ticker": "ETC_USDT" - }, - { - "name": "Huobi", - "off_chain_ticker": "etcusdt" - }, - { - "name": "Mexc", - "off_chain_ticker": "ETCUSDT" - }, - { - "name": "Binance", - "off_chain_ticker": "ETCUSDT" - }, - { - "name": "Kucoin", - "off_chain_ticker": "ETC-USDT" - }, - { - "name": "Okx", - "off_chain_ticker": "ETC-USDT" - } - ] - }, - "ETH/BTC": { - "providers": [ - { - "name": "Coingecko", - "off_chain_ticker": "ethereum/btc" - }, - { - "name": "KrakenAPI", - "off_chain_ticker": "XETHXXBT" - }, - { - "name": "Kraken", - "off_chain_ticker": "ETH/XBT" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "ETH-BTC" - }, - { - "name": "Gate", - "off_chain_ticker": "ETH_BTC" - }, - { - "name": "Huobi", - "off_chain_ticker": "ethbtc" - }, - { - "name": "Mexc", - "off_chain_ticker": "ETHBTC" - }, - { - "name": "Binance", - "off_chain_ticker": "ETHBTC" - }, - { - "name": "Kucoin", - "off_chain_ticker": "ETH-BTC" - }, - { - "name": "Bitfinex", - "off_chain_ticker": "ETHBTC" - }, - { - "name": "Bitstamp", - "off_chain_ticker": "ethbtc" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "ETH-BTC" - }, - { - "name": "CryptoCom", - "off_chain_ticker": "ETH_BTC" - }, - { - "name": "Okx", - "off_chain_ticker": "ETH-BTC" - } - ] - }, - "ETH/USD": { - "providers": [ - { - "name": "Coingecko", - "off_chain_ticker": "ethereum/usd" - }, - { - "name": "KrakenAPI", - "off_chain_ticker": "XETHZUSD" - }, - { - "name": "Kraken", - "off_chain_ticker": "ETH/USD" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "ETH-USD" - }, - { - "name": "Bitfinex", - "off_chain_ticker": "ETHUSD" - }, - { - "name": "Bitstamp", - "off_chain_ticker": "ethusd" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "ETH-USD" - }, - { - "name": "CryptoCom", - "off_chain_ticker": "ETHUSD-PERP" - }, - { - "name": "Okx", - "off_chain_ticker": "ETH-USD" - } - ] - }, - "ETH/USDC": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "ETHUSDC" - }, - { - "name": "Kraken", - "off_chain_ticker": "ETH/USDC" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "ETH-USDC" - }, - { - "name": "Huobi", - "off_chain_ticker": "ethusdc" - }, - { - "name": "Mexc", - "off_chain_ticker": "ETHUSDC" - }, - { - "name": "Binance", - "off_chain_ticker": "ETHUSDC" - }, - { - "name": "Kucoin", - "off_chain_ticker": "ETH-USDC" - }, - { - "name": "Bybit", - "off_chain_ticker": "ETHUSDC" - }, - { - "name": "Okx", - "off_chain_ticker": "ETH-USDC" - } - ] - }, - "ETH/USDT": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "ETHUSDT" - }, - { - "name": "Kraken", - "off_chain_ticker": "ETH/USDT" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "ETH-USDT" - }, - { - "name": "Gate", - "off_chain_ticker": "ETH_USDT" - }, - { - "name": "Huobi", - "off_chain_ticker": "ethusdt" - }, - { - "name": "Mexc", - "off_chain_ticker": "ETHUSDT" - }, - { - "name": "Binance", - "off_chain_ticker": "ETHUSDT" - }, - { - "name": "Kucoin", - "off_chain_ticker": "ETH-USDT" - }, - { - "name": "Bybit", - "off_chain_ticker": "ETHUSDT" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "ETH-USDT" - }, - { - "name": "CryptoCom", - "off_chain_ticker": "ETH_USDT" - }, - { - "name": "Okx", - "off_chain_ticker": "ETH-USDT" - } - ] - }, - "FIL/USD": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "FILUSD" - }, - { - "name": "Kraken", - "off_chain_ticker": "FIL/USD" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "FIL-USD" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "FIL-USD" - } - ] - }, - "FIL/USDT": { - "providers": [ - { - "name": "Gate", - "off_chain_ticker": "FIL_USDT" - }, - { - "name": "Huobi", - "off_chain_ticker": "filusdt" - }, - { - "name": "Mexc", - "off_chain_ticker": "FILUSDT" - }, - { - "name": "Binance", - "off_chain_ticker": "FILUSDT" - }, - { - "name": "Okx", - "off_chain_ticker": "FIL-USDT" - } - ] - }, - "LDO/USD": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "LDOUSD" - }, - { - "name": "Kraken", - "off_chain_ticker": "LDO/USD" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "LDO-USD" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "LDO-USD" - } - ] - }, - "LDO/USDT": { - "providers": [ - { - "name": "Mexc", - "off_chain_ticker": "LDOUSDT" - }, - { - "name": "Binance", - "off_chain_ticker": "LDOUSDT" - }, - { - "name": "Kucoin", - "off_chain_ticker": "LDO-USDT" - }, - { - "name": "Okx", - "off_chain_ticker": "LDO-USDT" - } - ] - }, - "LINK/USD": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "LINKUSD" - }, - { - "name": "Kraken", - "off_chain_ticker": "LINK/USD" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "LINK-USD" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "LINK-USD" - } - ] - }, - "LINK/USDT": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "LINKUSDT" - }, - { - "name": "Mexc", - "off_chain_ticker": "LINKUSDT" - }, - { - "name": "Binance", - "off_chain_ticker": "LINKUSDT" - }, - { - "name": "Kucoin", - "off_chain_ticker": "LINK-USDT" - }, - { - "name": "Bybit", - "off_chain_ticker": "LINKUSDT" - }, - { - "name": "Okx", - "off_chain_ticker": "LINK-USDT" - } - ] - }, - "LTC/USD": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "XLTCZUSD" - }, - { - "name": "Kraken", - "off_chain_ticker": "XLTCZ/USD" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "LTC-USD" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "LTC-USD" - } - ] - }, - "LTC/USDT": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "LTCUSDT" - }, - { - "name": "Huobi", - "off_chain_ticker": "ltcusdt" - }, - { - "name": "Mexc", - "off_chain_ticker": "LTCUSDT" - }, - { - "name": "Binance", - "off_chain_ticker": "LTCUSDT" - }, - { - "name": "Kucoin", - "off_chain_ticker": "LTC-USDT" - }, - { - "name": "Bybit", - "off_chain_ticker": "LTCUSDT" - }, - { - "name": "Okx", - "off_chain_ticker": "LTC-USDT" - } - ] - }, - "MATIC/USD": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "MATICUSD" - }, - { - "name": "Kraken", - "off_chain_ticker": "MATIC/USD" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "MATIC-USD" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "MATIC-USD" - } - ] - }, - "MATIC/USDT": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "MATICUSDT" - }, - { - "name": "Gate", - "off_chain_ticker": "MATIC_USDT" - }, - { - "name": "Huobi", - "off_chain_ticker": "maticusdt" - }, - { - "name": "Mexc", - "off_chain_ticker": "MATICUSDT" - }, - { - "name": "Binance", - "off_chain_ticker": "MATICUSDT" - }, - { - "name": "Kucoin", - "off_chain_ticker": "MATIC-USDT" - }, - { - "name": "Bybit", - "off_chain_ticker": "MATICUSDT" - }, - { - "name": "Okx", - "off_chain_ticker": "MATIC-USDT" - } - ] - }, - "MKR/USD": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "MKRUSD" - }, - { - "name": "Kraken", - "off_chain_ticker": "MKR/USD" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "MKR-USD" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "MKR-USD" - } - ] - }, - "MKR/USDT": { - "providers": [ - { - "name": "Mexc", - "off_chain_ticker": "MKRUSDT" - }, - { - "name": "Binance", - "off_chain_ticker": "MKRUSDT" - }, - { - "name": "Kucoin", - "off_chain_ticker": "MKR-USDT" - }, - { - "name": "Okx", - "off_chain_ticker": "MKR-USDT" - } - ] - }, - "MOG/USD": { - "providers": [ - { - "name": "GeckoTerminal", - "off_chain_ticker": "0xaaee1a9723aadb7afa2810263653a34ba2c21c7a" - } - ] - }, - "NEAR/USD": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "NEARUSD" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "NEAR-USD" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "NEAR-USD" - } - ] - }, - "NEAR/USDT": { - "providers": [ - { - "name": "Gate", - "off_chain_ticker": "NEAR_USDT" - }, - { - "name": "Huobi", - "off_chain_ticker": "nearusdt" - }, - { - "name": "Mexc", - "off_chain_ticker": "NEARUSDT" - }, - { - "name": "Binance", - "off_chain_ticker": "NEARUSDT" - }, - { - "name": "Kucoin", - "off_chain_ticker": "NEAR-USDT" - }, - { - "name": "Okx", - "off_chain_ticker": "NEAR-USDT" - } - ] - }, - "OP/USD": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "OPUSD" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "OP-USD" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "OP-USD" - } - ] - }, - "OP/USDT": { - "providers": [ - { - "name": "Gate", - "off_chain_ticker": "OP_USDT" - }, - { - "name": "Mexc", - "off_chain_ticker": "OPUSDT" - }, - { - "name": "Binance", - "off_chain_ticker": "OPUSDT" - }, - { - "name": "Kucoin", - "off_chain_ticker": "OP-USDT" - }, - { - "name": "Okx", - "off_chain_ticker": "OP-USDT" - } - ] - }, - "OSMO/USD": { - "providers": [ - { - "name": "Coingecko", - "off_chain_ticker": "osmosis/usd" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "OSMO-USD" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "OSMO-USD" - }, - { - "name": "CryptoCom", - "off_chain_ticker": "OSMO_USD" - } - ] - }, - "OSMO/USDC": { - "providers": [ - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "OSMO-USDC" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "OSMO-USDC" - } - ] - }, - "OSMO/USDT": { - "providers": [ - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "OSMO-USDT" - }, - { - "name": "Kucoin", - "off_chain_ticker": "OSMO-USDT" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "OSMO-USDT" - } - ] - }, - "PEPE/USD": { - "providers": [ - { - "name": "GeckoTerminal", - "off_chain_ticker": "0x6982508145454Ce325dDbE47a25d4ec3d2311933" - }, - { - "name": "KrakenAPI", - "off_chain_ticker": "PEPEUSD" - }, - { - "name": "Kraken", - "off_chain_ticker": "PEPE/USD" - } - ] - }, - "PEPE/USDT": { - "providers": [ - { - "name": "Gate", - "off_chain_ticker": "PEPE_USDT" - }, - { - "name": "Mexc", - "off_chain_ticker": "PEPEUSDT" - }, - { - "name": "Binance", - "off_chain_ticker": "PEPEUSDT" - }, - { - "name": "Kucoin", - "off_chain_ticker": "PEPE-USDT" - }, - { - "name": "Bybit", - "off_chain_ticker": "PEPEUSDT" - }, - { - "name": "Okx", - "off_chain_ticker": "PEPE-USDT" - } - ] - }, - "SEI/USD": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "SEIUSD" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "SEI-USD" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "SEI-USD" - } - ] - }, - "SEI/USDT": { - "providers": [ - { - "name": "Gate", - "off_chain_ticker": "SEI_USDT" - }, - { - "name": "Huobi", - "off_chain_ticker": "seiusdt" - }, - { - "name": "Mexc", - "off_chain_ticker": "SEIUSDT" - }, - { - "name": "Binance", - "off_chain_ticker": "SEIUSDT" - }, - { - "name": "Kucoin", - "off_chain_ticker": "SEI-USDT" - }, - { - "name": "Bybit", - "off_chain_ticker": "SEIUSDT" - } - ] - }, - "SHIB/USD": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "SHIBUSD" - }, - { - "name": "Kraken", - "off_chain_ticker": "SHIB/USD" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "SHIB-USD" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "SHIB-USD" - } - ] - }, - "SHIB/USDT": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "SHIBUSDT" - }, - { - "name": "Gate", - "off_chain_ticker": "SHIB_USDT" - }, - { - "name": "Mexc", - "off_chain_ticker": "SHIBUSDT" - }, - { - "name": "Binance", - "off_chain_ticker": "SHIBUSDT" - }, - { - "name": "Kucoin", - "off_chain_ticker": "SHIB-USDT" - }, - { - "name": "Bybit", - "off_chain_ticker": "SHIBUSDT" - }, - { - "name": "Okx", - "off_chain_ticker": "SHIB-USDT" - } - ] - }, - "SOL/USD": { - "providers": [ - { - "name": "Coingecko", - "off_chain_ticker": "solana/usd" - }, - { - "name": "KrakenAPI", - "off_chain_ticker": "SOLUSD" - }, - { - "name": "Kraken", - "off_chain_ticker": "SOL/USD" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "SOL-USD" - }, - { - "name": "Bitfinex", - "off_chain_ticker": "SOLUSD" - }, - { - "name": "Bitstamp", - "off_chain_ticker": "solusd" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "SOL-USD" - }, - { - "name": "CryptoCom", - "off_chain_ticker": "SOLUSD-PERP" - }, - { - "name": "Okx", - "off_chain_ticker": "SOL-USD" - } - ] - }, - "SOL/USDC": { - "providers": [ - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "SOL-USDC" - }, - { - "name": "Gate", - "off_chain_ticker": "SOL_USDC" - }, - { - "name": "Mexc", - "off_chain_ticker": "SOLUSDC" - }, - { - "name": "Binance", - "off_chain_ticker": "SOLUSDC" - }, - { - "name": "Kucoin", - "off_chain_ticker": "SOL-USDC" - }, - { - "name": "Bybit", - "off_chain_ticker": "SOLUSDC" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "SOL-USDC" - }, - { - "name": "Okx", - "off_chain_ticker": "SOL-USDC" - } - ] - }, - "SOL/USDT": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "SOLUSDT" - }, - { - "name": "Kraken", - "off_chain_ticker": "SOL/USDT" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "SOL-USDT" - }, - { - "name": "Gate", - "off_chain_ticker": "SOL_USDT" - }, - { - "name": "Huobi", - "off_chain_ticker": "solusdt" - }, - { - "name": "Mexc", - "off_chain_ticker": "SOLUSDT" - }, - { - "name": "Binance", - "off_chain_ticker": "SOLUSDT" - }, - { - "name": "Kucoin", - "off_chain_ticker": "SOL-USDT" - }, - { - "name": "Bybit", - "off_chain_ticker": "SOLUSDT" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "SOL-USDT" - }, - { - "name": "CryptoCom", - "off_chain_ticker": "SOL_USDT" - }, - { - "name": "Okx", - "off_chain_ticker": "SOL-USDT" - } - ] - }, - "SUI/USD": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "SUIUSD" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "SUI-USD" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "SUI-USD" - } - ] - }, - "SUI/USDT": { - "providers": [ - { - "name": "Gate", - "off_chain_ticker": "SUI_USDT" - }, - { - "name": "Huobi", - "off_chain_ticker": "suiusdt" - }, - { - "name": "Mexc", - "off_chain_ticker": "SUIUSDT" - }, - { - "name": "Binance", - "off_chain_ticker": "SUIUSDT" - }, - { - "name": "Kucoin", - "off_chain_ticker": "SUI-USDT" - }, - { - "name": "Bybit", - "off_chain_ticker": "SUIUSDT" - }, - { - "name": "Okx", - "off_chain_ticker": "SUI-USDT" - } - ] - }, - "TIA/USD": { - "providers": [ - { - "name": "Coingecko", - "off_chain_ticker": "celestia/usd" - }, - { - "name": "Kraken", - "off_chain_ticker": "TIA/USD" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "TIA-USD" - }, - { - "name": "Bitfinex", - "off_chain_ticker": "TIAUSD" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "TIA-USD" - }, - { - "name": "CryptoCom", - "off_chain_ticker": "TIAUSD-PERP" - }, - { - "name": "Okx", - "off_chain_ticker": "TIA-USD" - } - ] - }, - "TIA/USDC": { - "providers": [ - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "TIA-USDC" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "TIA-USDC" - } - ] - }, - "TIA/USDT": { - "providers": [ - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "TIA-USDT" - }, - { - "name": "Gate", - "off_chain_ticker": "TIA_USDT" - }, - { - "name": "Huobi", - "off_chain_ticker": "tiausdt" - }, - { - "name": "Kucoin", - "off_chain_ticker": "TIA-USDT" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "TIA-USDT" - }, - { - "name": "CryptoCom", - "off_chain_ticker": "TIA_USDT" - }, - { - "name": "Okx", - "off_chain_ticker": "TIA-USDT" - } - ] - }, - "TRX/USD": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "TRXUSD" - }, - { - "name": "Kraken", - "off_chain_ticker": "TRX/USD" - } - ] - }, - "TRX/USDT": { - "providers": [ - { - "name": "Gate", - "off_chain_ticker": "TRX_USDT" - }, - { - "name": "Huobi", - "off_chain_ticker": "trxusdt" - }, - { - "name": "Mexc", - "off_chain_ticker": "TRXUSDT" - }, - { - "name": "Binance", - "off_chain_ticker": "TRXUSDT" - }, - { - "name": "Kucoin", - "off_chain_ticker": "TRX-USDT" - }, - { - "name": "Bybit", - "off_chain_ticker": "TRXUSDT" - }, - { - "name": "Okx", - "off_chain_ticker": "TRX-USDT" - } - ] - }, - "UNI/USD": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "UNIUSD" - }, - { - "name": "Kraken", - "off_chain_ticker": "UNI/USD" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "UNI-USD" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "UNI-USD" - } - ] - }, - "UNI/USDT": { - "providers": [ - { - "name": "Gate", - "off_chain_ticker": "UNI_USDT" - }, - { - "name": "Binance", - "off_chain_ticker": "UNIUSDT" - }, - { - "name": "Kucoin", - "off_chain_ticker": "UNI-USDT" - }, - { - "name": "Bybit", - "off_chain_ticker": "UNIUSDT" - }, - { - "name": "Okx", - "off_chain_ticker": "UNI-USDT" - } - ] - }, - "USDC/USD": { - "providers": [ - { - "name": "Kraken", - "off_chain_ticker": "USDC/USD" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "USDC-USD" - }, - { - "name": "Okx", - "off_chain_ticker": "USDC-USD" - } - ] - }, - "USDC/USDT": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "USDCUSDT" - }, - { - "name": "Kraken", - "off_chain_ticker": "USDC/USDT" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "USDC-USDT" - }, - { - "name": "Gate", - "off_chain_ticker": "USDC_USDT" - }, - { - "name": "Huobi", - "off_chain_ticker": "usdcusdt" - }, - { - "name": "Mexc", - "off_chain_ticker": "USDCUSDT" - }, - { - "name": "Binance", - "off_chain_ticker": "USDCUSDT" - }, - { - "name": "Kucoin", - "off_chain_ticker": "USDC-USDT" - }, - { - "name": "Bitstamp", - "off_chain_ticker": "usdcusdt" - }, - { - "name": "Bybit", - "off_chain_ticker": "USDCUSDT" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "USDC-USDT" - }, - { - "name": "Okx", - "off_chain_ticker": "USDC-USDT" - } - ] - }, - "USDT/USD": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "USDTZUSD" - }, - { - "name": "Kraken", - "off_chain_ticker": "USDT/USD" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "USDT-USD" - }, - { - "name": "Binance", - "off_chain_ticker": "USDTUSD" - }, - { - "name": "Bitstamp", - "off_chain_ticker": "usdtusd" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "USDT-USD" - }, - { - "name": "CryptoCom", - "off_chain_ticker": "USDT_USD" - }, - { - "name": "Okx", - "off_chain_ticker": "USDT-USD" - } - ] - }, - "WLD/USDT": { - "providers": [ - { - "name": "Gate", - "off_chain_ticker": "WLD_USDT" - }, - { - "name": "Huobi", - "off_chain_ticker": "wldusdt" - }, - { - "name": "Mexc", - "off_chain_ticker": "WLDUSDT" - }, - { - "name": "Binance", - "off_chain_ticker": "WLDUSDT" - }, - { - "name": "Kucoin", - "off_chain_ticker": "WLD-USDT" - }, - { - "name": "Bybit", - "off_chain_ticker": "WLDUSDT" - }, - { - "name": "Okx", - "off_chain_ticker": "WLD-USDT" - } - ] - }, - "XLM/USD": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "XXLMZUSD" - }, - { - "name": "Kraken", - "off_chain_ticker": "XXLMZ/USD" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "XLM-USD" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "XLM-USD" - } - ] - }, - "XLM/USDT": { - "providers": [ - { - "name": "Mexc", - "off_chain_ticker": "XLMUSDT" - }, - { - "name": "Binance", - "off_chain_ticker": "XLMUSDT" - }, - { - "name": "Kucoin", - "off_chain_ticker": "XLM-USDT" - }, - { - "name": "Bybit", - "off_chain_ticker": "XLMUSDT" - }, - { - "name": "Okx", - "off_chain_ticker": "XLM-USDT" - } - ] - }, - "XRP/USD": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "XXRPZUSD" - }, - { - "name": "Kraken", - "off_chain_ticker": "XXRPZ/USD" - }, - { - "name": "CoinbaseProAPI", - "off_chain_ticker": "XRP-USD" - }, - { - "name": "CoinbasePro", - "off_chain_ticker": "XRP-USD" - } - ] - }, - "XRP/USDT": { - "providers": [ - { - "name": "KrakenAPI", - "off_chain_ticker": "XRPUSDT" - }, - { - "name": "Gate", - "off_chain_ticker": "XRP_USDT" - }, - { - "name": "Huobi", - "off_chain_ticker": "xrpusdt" - }, - { - "name": "Mexc", - "off_chain_ticker": "XRPUSDT" - }, - { - "name": "Binance", - "off_chain_ticker": "XRPUSDT" - }, - { - "name": "Kucoin", - "off_chain_ticker": "XRP-USDT" - }, - { - "name": "Bybit", - "off_chain_ticker": "XRPUSDT" - }, - { - "name": "Okx", - "off_chain_ticker": "XRP-USDT" - } - ] - } - } -} diff --git a/protocol/daemons/slinky/config/oracle.json b/protocol/daemons/slinky/config/oracle.json deleted file mode 100644 index 23a1738f70..0000000000 --- a/protocol/daemons/slinky/config/oracle.json +++ /dev/null @@ -1,491 +0,0 @@ -{ - "updateInterval": 1500000000, - "maxPriceAge": 120000000000, - "providers": [ - { - "name": "Binance", - "api": { - "enabled": true, - "timeout": 500000000, - "interval": 150000000, - "reconnectTimeout": 2000000000, - "maxQueries": 1, - "atomic": true, - "url": "https://api.binance.com/api/v3/ticker/price?symbols=%s%s%s", - "name": "Binance" - }, - "webSocket": { - "enabled": false, - "maxBufferSize": 0, - "reconnectionTimeout": 0, - "wss": "", - "name": "", - "readBufferSize": 0, - "writeBufferSize": 0, - "handshakeTimeout": 0, - "enableCompression": false, - "readTimeout": 0, - "writeTimeout": 0, - "pingInterval": 0, - "maxReadErrorCount": 0, - "maxSubscriptionsPerConnection": 0 - }, - "type": "price_provider" - }, - { - "name": "CoinbaseProAPI", - "api": { - "enabled": true, - "timeout": 500000000, - "interval": 100000000, - "reconnectTimeout": 2000000000, - "maxQueries": 5, - "atomic": false, - "url": "https://api.coinbase.com/v2/prices/%s/spot", - "name": "CoinbaseProAPI" - }, - "webSocket": { - "enabled": false, - "maxBufferSize": 0, - "reconnectionTimeout": 0, - "wss": "", - "name": "", - "readBufferSize": 0, - "writeBufferSize": 0, - "handshakeTimeout": 0, - "enableCompression": false, - "readTimeout": 0, - "writeTimeout": 0, - "pingInterval": 0, - "maxReadErrorCount": 0, - "maxSubscriptionsPerConnection": 0 - }, - "type": "price_provider" - }, - { - "name": "Coingecko", - "api": { - "enabled": true, - "timeout": 500000000, - "interval": 15000000000, - "reconnectTimeout": 2000000000, - "maxQueries": 1, - "atomic": true, - "url": "https://api.coingecko.com/api/v3", - "name": "Coingecko" - }, - "webSocket": { - "enabled": false, - "maxBufferSize": 0, - "reconnectionTimeout": 0, - "wss": "", - "name": "", - "readBufferSize": 0, - "writeBufferSize": 0, - "handshakeTimeout": 0, - "enableCompression": false, - "readTimeout": 0, - "writeTimeout": 0, - "pingInterval": 0, - "maxReadErrorCount": 0, - "maxSubscriptionsPerConnection": 0 - }, - "type": "price_provider" - }, - { - "name": "GeckoTerminal", - "api": { - "enabled": true, - "timeout": 500000000, - "interval": 5000000000, - "reconnectTimeout": 2000000000, - "maxQueries": 1, - "atomic": false, - "url": "https://api.geckoterminal.com/api/v2/simple/networks/eth/token_price/%s", - "name": "GeckoTerminal" - }, - "webSocket": { - "enabled": false, - "maxBufferSize": 0, - "reconnectionTimeout": 0, - "wss": "", - "name": "", - "readBufferSize": 0, - "writeBufferSize": 0, - "handshakeTimeout": 0, - "enableCompression": false, - "readTimeout": 0, - "writeTimeout": 0, - "pingInterval": 0, - "maxReadErrorCount": 0, - "maxSubscriptionsPerConnection": 0 - }, - "type": "price_provider" - }, - { - "name": "KrakenAPI", - "api": { - "enabled": true, - "timeout": 500000000, - "interval": 150000000, - "reconnectTimeout": 2000000000, - "maxQueries": 1, - "atomic": true, - "url": "https://api.kraken.com/0/public/Ticker?pair=%s", - "name": "KrakenAPI" - }, - "webSocket": { - "enabled": false, - "maxBufferSize": 0, - "reconnectionTimeout": 0, - "wss": "", - "name": "", - "readBufferSize": 0, - "writeBufferSize": 0, - "handshakeTimeout": 0, - "enableCompression": false, - "readTimeout": 0, - "writeTimeout": 0, - "pingInterval": 0, - "maxReadErrorCount": 0, - "maxSubscriptionsPerConnection": 0 - }, - "type": "price_provider" - }, - { - "name": "Bitfinex", - "api": { - "enabled": false, - "timeout": 0, - "interval": 0, - "reconnectTimeout": 0, - "maxQueries": 0, - "atomic": false, - "url": "", - "name": "" - }, - "webSocket": { - "enabled": true, - "maxBufferSize": 1000, - "reconnectionTimeout": 10000000000, - "wss": "wss://api-pub.bitfinex.com/ws/2", - "name": "Bitfinex", - "readBufferSize": 0, - "writeBufferSize": 0, - "handshakeTimeout": 45000000000, - "enableCompression": false, - "readTimeout": 45000000000, - "writeTimeout": 45000000000, - "pingInterval": 0, - "maxReadErrorCount": 100, - "maxSubscriptionsPerConnection": 0 - }, - "type": "price_provider" - }, - { - "name": "Bitstamp", - "api": { - "enabled": false, - "timeout": 0, - "interval": 0, - "reconnectTimeout": 0, - "maxQueries": 0, - "atomic": false, - "url": "", - "name": "" - }, - "webSocket": { - "enabled": true, - "maxBufferSize": 1024, - "reconnectionTimeout": 10000000000, - "wss": "wss://ws.bitstamp.net", - "name": "Bitstamp", - "readBufferSize": 0, - "writeBufferSize": 0, - "handshakeTimeout": 45000000000, - "enableCompression": false, - "readTimeout": 45000000000, - "writeTimeout": 45000000000, - "pingInterval": 10000000000, - "maxReadErrorCount": 100, - "maxSubscriptionsPerConnection": 0 - }, - "type": "price_provider" - }, - { - "name": "Bybit", - "api": { - "enabled": false, - "timeout": 0, - "interval": 0, - "reconnectTimeout": 0, - "maxQueries": 0, - "atomic": false, - "url": "", - "name": "" - }, - "webSocket": { - "enabled": true, - "maxBufferSize": 1000, - "reconnectionTimeout": 10000000000, - "wss": "wss://stream.bybit.com/v5/public/spot", - "name": "Bybit", - "readBufferSize": 0, - "writeBufferSize": 0, - "handshakeTimeout": 45000000000, - "enableCompression": false, - "readTimeout": 45000000000, - "writeTimeout": 45000000000, - "pingInterval": 15000000000, - "maxReadErrorCount": 100, - "maxSubscriptionsPerConnection": 0 - }, - "type": "price_provider" - }, - { - "name": "CoinbasePro", - "api": { - "enabled": false, - "timeout": 0, - "interval": 0, - "reconnectTimeout": 0, - "maxQueries": 0, - "atomic": false, - "url": "", - "name": "" - }, - "webSocket": { - "enabled": true, - "maxBufferSize": 1024, - "reconnectionTimeout": 10000000000, - "wss": "wss://ws-feed.exchange.coinbase.com", - "name": "CoinbasePro", - "readBufferSize": 0, - "writeBufferSize": 0, - "handshakeTimeout": 45000000000, - "enableCompression": false, - "readTimeout": 45000000000, - "writeTimeout": 5000000000, - "pingInterval": 0, - "maxReadErrorCount": 100, - "maxSubscriptionsPerConnection": 0 - }, - "type": "price_provider" - }, - { - "name": "CryptoCom", - "api": { - "enabled": false, - "timeout": 0, - "interval": 0, - "reconnectTimeout": 0, - "maxQueries": 0, - "atomic": false, - "url": "", - "name": "" - }, - "webSocket": { - "enabled": true, - "maxBufferSize": 1024, - "reconnectionTimeout": 10000000000, - "wss": "wss://stream.crypto.com/exchange/v1/market", - "name": "CryptoCom", - "readBufferSize": 0, - "writeBufferSize": 0, - "handshakeTimeout": 45000000000, - "enableCompression": false, - "readTimeout": 45000000000, - "writeTimeout": 45000000000, - "pingInterval": 0, - "maxReadErrorCount": 100, - "maxSubscriptionsPerConnection": 0 - }, - "type": "price_provider" - }, - { - "name": "Gate", - "api": { - "enabled": false, - "timeout": 0, - "interval": 0, - "reconnectTimeout": 0, - "maxQueries": 0, - "atomic": false, - "url": "", - "name": "" - }, - "webSocket": { - "enabled": true, - "maxBufferSize": 1000, - "reconnectionTimeout": 10000000000, - "wss": "wss://api.gateio.ws/ws/v4/", - "name": "Gate", - "readBufferSize": 0, - "writeBufferSize": 0, - "handshakeTimeout": 45000000000, - "enableCompression": false, - "readTimeout": 45000000000, - "writeTimeout": 45000000000, - "pingInterval": 0, - "maxReadErrorCount": 100, - "maxSubscriptionsPerConnection": 0 - }, - "type": "price_provider" - }, - { - "name": "Huobi", - "api": { - "enabled": false, - "timeout": 0, - "interval": 0, - "reconnectTimeout": 0, - "maxQueries": 0, - "atomic": false, - "url": "", - "name": "" - }, - "webSocket": { - "enabled": true, - "maxBufferSize": 1000, - "reconnectionTimeout": 10000000000, - "wss": "wss://api.huobi.pro/ws", - "name": "Huobi", - "readBufferSize": 0, - "writeBufferSize": 0, - "handshakeTimeout": 45000000000, - "enableCompression": false, - "readTimeout": 45000000000, - "writeTimeout": 45000000000, - "pingInterval": 0, - "maxReadErrorCount": 100, - "maxSubscriptionsPerConnection": 0 - }, - "type": "price_provider" - }, - { - "name": "Kraken", - "api": { - "enabled": false, - "timeout": 0, - "interval": 0, - "reconnectTimeout": 0, - "maxQueries": 0, - "atomic": false, - "url": "", - "name": "" - }, - "webSocket": { - "enabled": true, - "maxBufferSize": 1000, - "reconnectionTimeout": 10000000000, - "wss": "wss://ws.kraken.com", - "name": "Kraken", - "readBufferSize": 0, - "writeBufferSize": 0, - "handshakeTimeout": 45000000000, - "enableCompression": false, - "readTimeout": 45000000000, - "writeTimeout": 45000000000, - "pingInterval": 0, - "maxReadErrorCount": 100, - "maxSubscriptionsPerConnection": 0 - }, - "type": "price_provider" - }, - { - "name": "Kucoin", - "api": { - "enabled": false, - "timeout": 5000000000, - "interval": 60000000000, - "reconnectTimeout": 0, - "maxQueries": 1, - "atomic": false, - "url": "https://api.kucoin.com", - "name": "Kucoin" - }, - "webSocket": { - "enabled": true, - "maxBufferSize": 1024, - "reconnectionTimeout": 10000000000, - "wss": "wss://ws-api-spot.kucoin.com/", - "name": "Kucoin", - "readBufferSize": 0, - "writeBufferSize": 0, - "handshakeTimeout": 45000000000, - "enableCompression": false, - "readTimeout": 45000000000, - "writeTimeout": 45000000000, - "pingInterval": 10000000000, - "maxReadErrorCount": 100, - "maxSubscriptionsPerConnection": 0 - }, - "type": "price_provider" - }, - { - "name": "Mexc", - "api": { - "enabled": false, - "timeout": 0, - "interval": 0, - "reconnectTimeout": 0, - "maxQueries": 0, - "atomic": false, - "url": "", - "name": "" - }, - "webSocket": { - "enabled": true, - "maxBufferSize": 1000, - "reconnectionTimeout": 10000000000, - "wss": "wss://wbs.mexc.com/ws", - "name": "Mexc", - "readBufferSize": 0, - "writeBufferSize": 0, - "handshakeTimeout": 45000000000, - "enableCompression": false, - "readTimeout": 45000000000, - "writeTimeout": 45000000000, - "pingInterval": 20000000000, - "maxReadErrorCount": 100, - "maxSubscriptionsPerConnection": 20 - }, - "type": "price_provider" - }, - { - "name": "Okx", - "api": { - "enabled": false, - "timeout": 0, - "interval": 0, - "reconnectTimeout": 0, - "maxQueries": 0, - "atomic": false, - "url": "", - "name": "" - }, - "webSocket": { - "enabled": true, - "maxBufferSize": 1000, - "reconnectionTimeout": 10000000000, - "wss": "wss://ws.okx.com:8443/ws/v5/public", - "name": "Okx", - "readBufferSize": 0, - "writeBufferSize": 0, - "handshakeTimeout": 45000000000, - "enableCompression": false, - "readTimeout": 45000000000, - "writeTimeout": 45000000000, - "pingInterval": 0, - "maxReadErrorCount": 100, - "maxSubscriptionsPerConnection": 0 - }, - "type": "price_provider" - } - ], - "production": true, - "metrics": { - "prometheusServerAddress": "0.0.0.0:8002", - "enabled": true - } -} diff --git a/protocol/scripts/genesis/sample_pregenesis.json b/protocol/scripts/genesis/sample_pregenesis.json index 21ebb6f93d..dede4b7abd 100644 --- a/protocol/scripts/genesis/sample_pregenesis.json +++ b/protocol/scripts/genesis/sample_pregenesis.json @@ -2069,75 +2069,6 @@ "min_provider_count": 3 } }, - "MATIC/USD": { - "provider_configs": [ - { - "name": "binance_ws", - "normalize_by_pair": { - "Base": "USDT", - "Quote": "USD" - }, - "off_chain_ticker": "MATICUSDT" - }, - { - "name": "bybit_ws", - "normalize_by_pair": { - "Base": "USDT", - "Quote": "USD" - }, - "off_chain_ticker": "MATICUSDT" - }, - { - "name": "coinbase_ws", - "off_chain_ticker": "MATIC-USD" - }, - { - "name": "gate_ws", - "normalize_by_pair": { - "Base": "USDT", - "Quote": "USD" - }, - "off_chain_ticker": "MATIC_USDT" - }, - { - "name": "huobi_ws", - "normalize_by_pair": { - "Base": "USDT", - "Quote": "USD" - }, - "off_chain_ticker": "maticusdt" - }, - { - "name": "kraken_api", - "off_chain_ticker": "MATICUSD" - }, - { - "name": "kucoin_ws", - "normalize_by_pair": { - "Base": "USDT", - "Quote": "USD" - }, - "off_chain_ticker": "MATIC-USDT" - }, - { - "name": "okx_ws", - "normalize_by_pair": { - "Base": "USDT", - "Quote": "USD" - }, - "off_chain_ticker": "MATIC-USDT" - } - ], - "ticker": { - "currency_pair": { - "Base": "MATIC", - "Quote": "USD" - }, - "decimals": 10, - "enabled": true, - "min_provider_count": 3 - } - }, "MKR/USD": { "provider_configs": [ { @@ -2346,6 +2277,54 @@ "min_provider_count": 3 } }, + "POL/USD": { + "provider_configs": [ + { + "name": "bybit_ws", + "off_chain_ticker": "POLUSDT", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + }, + "invert": false, + "metadata_JSON": "" + }, + { + "name": "coinbase_ws", + "off_chain_ticker": "POL-USD", + "normalize_by_pair": null, + "invert": false, + "metadata_JSON": "" + }, + { + "name": "crypto_dot_com_ws", + "off_chain_ticker": "POL_USD", + "normalize_by_pair": null, + "invert": false, + "metadata_JSON": "" + }, + { + "name": "okx_ws", + "off_chain_ticker": "POL-USDT", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + }, + "invert": false, + "metadata_JSON": "" + } + ], + "ticker": { + "currency_pair": { + "Base": "POL", + "Quote": "USD" + }, + "decimals": "10", + "min_provider_count": "3", + "enabled": true, + "metadata_JSON": "" + } + }, "SEI/USD": { "provider_configs": [ { @@ -3093,7 +3072,7 @@ "liquidity_tier": 1, "market_id": 3, "market_type": 1, - "ticker": "MATIC-USD" + "ticker": "POL-USD" } }, { @@ -3444,12 +3423,12 @@ "pair": "LINK-USD" }, { - "exchange_config_json": "{\"exchanges\":[{\"exchangeName\":\"Binance\",\"ticker\":\"MATICUSDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Bybit\",\"ticker\":\"MATICUSDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"CoinbasePro\",\"ticker\":\"MATIC-USD\"},{\"exchangeName\":\"Gate\",\"ticker\":\"MATIC_USDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Huobi\",\"ticker\":\"maticusdt\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Kraken\",\"ticker\":\"MATICUSD\"},{\"exchangeName\":\"Kucoin\",\"ticker\":\"MATIC-USDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Okx\",\"ticker\":\"MATIC-USDT\",\"adjustByMarket\":\"USDT-USD\"}]}", + "exchange_config_json": "{\"exchanges\":[{\"exchangeName\":\"Bybit\",\"ticker\":\"POLUSDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"CoinbasePro\",\"ticker\":\"POL-USD\"},{\"exchangeName\":\"CryptoCom\",\"ticker\":\"POL_USD\"},{\"exchangeName\":\"Okx\",\"ticker\":\"POL-USDT\",\"adjustByMarket\":\"USDT-USD\"}]}", "exponent": -10, "id": 3, "min_exchanges": 3, "min_price_change_ppm": 2500, - "pair": "MATIC-USD" + "pair": "POL-USD" }, { "exchange_config_json": "{\"exchanges\":[{\"exchangeName\":\"Binance\",\"ticker\":\"CRVUSDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"CoinbasePro\",\"ticker\":\"CRV-USD\"},{\"exchangeName\":\"Gate\",\"ticker\":\"CRV_USDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Kraken\",\"ticker\":\"CRVUSD\"},{\"exchangeName\":\"Kucoin\",\"ticker\":\"CRV-USDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Okx\",\"ticker\":\"CRV-USDT\",\"adjustByMarket\":\"USDT-USD\"}]}", diff --git a/protocol/testing/containertest/preupgrade_genesis.json b/protocol/testing/containertest/preupgrade_genesis.json index 678634c694..426036685b 100644 --- a/protocol/testing/containertest/preupgrade_genesis.json +++ b/protocol/testing/containertest/preupgrade_genesis.json @@ -1426,72 +1426,51 @@ } ] }, - "MATIC/USD": { + "POL/USD": { "ticker": { "currency_pair": { - "Base": "MATIC", + "Base": "POL", "Quote": "USD" }, - "decimals": 10, - "min_provider_count": 3, - "enabled": true + "decimals": "10", + "min_provider_count": "3", + "enabled": true, + "metadata_JSON": "" }, "provider_configs": [ - { - "name": "binance_ws", - "off_chain_ticker": "MATICUSDT", - "normalize_by_pair": { - "Base": "USDT", - "Quote": "USD" - } - }, { "name": "bybit_ws", - "off_chain_ticker": "MATICUSDT", + "off_chain_ticker": "POLUSDT", "normalize_by_pair": { "Base": "USDT", "Quote": "USD" - } + }, + "invert": false, + "metadata_JSON": "" }, { "name": "coinbase_ws", - "off_chain_ticker": "MATIC-USD" - }, - { - "name": "gate_ws", - "off_chain_ticker": "MATIC_USDT", - "normalize_by_pair": { - "Base": "USDT", - "Quote": "USD" - } - }, - { - "name": "huobi_ws", - "off_chain_ticker": "maticusdt", - "normalize_by_pair": { - "Base": "USDT", - "Quote": "USD" - } - }, - { - "name": "kraken_api", - "off_chain_ticker": "MATICUSD" + "off_chain_ticker": "POL-USD", + "normalize_by_pair": null, + "invert": false, + "metadata_JSON": "" }, { - "name": "kucoin_ws", - "off_chain_ticker": "MATIC-USDT", - "normalize_by_pair": { - "Base": "USDT", - "Quote": "USD" - } + "name": "crypto_dot_com_ws", + "off_chain_ticker": "POL_USD", + "normalize_by_pair": null, + "invert": false, + "metadata_JSON": "" }, { "name": "okx_ws", - "off_chain_ticker": "MATIC-USDT", + "off_chain_ticker": "POL-USDT", "normalize_by_pair": { "Base": "USDT", "Quote": "USD" - } + }, + "invert": false, + "metadata_JSON": "" } ] }, @@ -3368,7 +3347,7 @@ }, { "params": { - "ticker": "MATIC-USD", + "ticker": "POL-USD", "id": 3, "market_id": 3, "atomic_resolution": -5, @@ -3799,12 +3778,12 @@ "exchange_config_json": "{\"exchanges\":[{\"exchangeName\":\"Binance\",\"ticker\":\"LINKUSDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Bybit\",\"ticker\":\"LINKUSDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"CoinbasePro\",\"ticker\":\"LINK-USD\"},{\"exchangeName\":\"Kraken\",\"ticker\":\"LINKUSD\"},{\"exchangeName\":\"Kucoin\",\"ticker\":\"LINK-USDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Okx\",\"ticker\":\"LINK-USDT\",\"adjustByMarket\":\"USDT-USD\"}]}" }, { - "pair": "MATIC-USD", + "pair": "POL-USD", "id": 3, "exponent": -10, "min_exchanges": 3, "min_price_change_ppm": 2500, - "exchange_config_json": "{\"exchanges\":[{\"exchangeName\":\"Binance\",\"ticker\":\"MATICUSDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Bybit\",\"ticker\":\"MATICUSDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"CoinbasePro\",\"ticker\":\"MATIC-USD\"},{\"exchangeName\":\"Gate\",\"ticker\":\"MATIC_USDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Huobi\",\"ticker\":\"maticusdt\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Kraken\",\"ticker\":\"MATICUSD\"},{\"exchangeName\":\"Kucoin\",\"ticker\":\"MATIC-USDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Okx\",\"ticker\":\"MATIC-USDT\",\"adjustByMarket\":\"USDT-USD\"}]}" + "exchange_config_json": "{\"exchanges\":[{\"exchangeName\":\"Bybit\",\"ticker\":\"POLUSDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"CoinbasePro\",\"ticker\":\"POL-USD\"},{\"exchangeName\":\"CryptoCom\",\"ticker\":\"POL_USD\"},{\"exchangeName\":\"Okx\",\"ticker\":\"POL-USDT\",\"adjustByMarket\":\"USDT-USD\"}]}" }, { "pair": "CRV-USD", diff --git a/protocol/testing/genesis.sh b/protocol/testing/genesis.sh index bf7a99cf2c..de2d6a431d 100755 --- a/protocol/testing/genesis.sh +++ b/protocol/testing/genesis.sh @@ -242,9 +242,9 @@ function edit_genesis() { dasel put -t int -f "$GENESIS" '.app_state.perpetuals.perpetuals.[2].params.liquidity_tier' -v '1' dasel put -t int -f "$GENESIS" '.app_state.perpetuals.perpetuals.[2].params.market_type' -v '1' - # Perpetual: MATIC-USD + # Perpetual: POL-USD dasel put -t json -f "$GENESIS" '.app_state.perpetuals.perpetuals.[]' -v "{}" - dasel put -t string -f "$GENESIS" '.app_state.perpetuals.perpetuals.[3].params.ticker' -v 'MATIC-USD' + dasel put -t string -f "$GENESIS" '.app_state.perpetuals.perpetuals.[3].params.ticker' -v 'POL-USD' dasel put -t int -f "$GENESIS" '.app_state.perpetuals.perpetuals.[3].params.id' -v '3' dasel put -t int -f "$GENESIS" '.app_state.perpetuals.perpetuals.[3].params.market_id' -v '3' dasel put -t int -f "$GENESIS" '.app_state.perpetuals.perpetuals.[3].params.atomic_resolution' -v '-5' @@ -607,26 +607,22 @@ function edit_genesis() { dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.LINK/USD.provider_configs.[]' -v '{"name": "okx_ws", "off_chain_ticker": "LINK-USDT", "normalize_by_pair": {"Base": "USDT", "Quote": "USD"}}' - # Marketmap: MATIC-USD - dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.MATIC/USD' -v "{}" - dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.MATIC/USD.ticker' -v "{}" + # Marketmap: POL-USD + dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.POL/USD' -v "{}" + dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.POL/USD.ticker' -v "{}" - dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.MATIC/USD.ticker.currency_pair' -v "{}" - dasel put -t string -f "$GENESIS" '.app_state.marketmap.market_map.markets.MATIC/USD.ticker.currency_pair.Base' -v 'MATIC' - dasel put -t string -f "$GENESIS" '.app_state.marketmap.market_map.markets.MATIC/USD.ticker.currency_pair.Quote' -v 'USD' + dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.POL/USD.ticker.currency_pair' -v "{}" + dasel put -t string -f "$GENESIS" '.app_state.marketmap.market_map.markets.POL/USD.ticker.currency_pair.Base' -v 'POL' + dasel put -t string -f "$GENESIS" '.app_state.marketmap.market_map.markets.POL/USD.ticker.currency_pair.Quote' -v 'USD' - dasel put -t int -f "$GENESIS" '.app_state.marketmap.market_map.markets.MATIC/USD.ticker.decimals' -v '10' - dasel put -t int -f "$GENESIS" '.app_state.marketmap.market_map.markets.MATIC/USD.ticker.min_provider_count' -v '3' - dasel put -t bool -f "$GENESIS" '.app_state.marketmap.market_map.markets.MATIC/USD.ticker.enabled' -v 'true' + dasel put -t int -f "$GENESIS" '.app_state.marketmap.market_map.markets.POL/USD.ticker.decimals' -v '10' + dasel put -t int -f "$GENESIS" '.app_state.marketmap.market_map.markets.POL/USD.ticker.min_provider_count' -v '3' + dasel put -t bool -f "$GENESIS" '.app_state.marketmap.market_map.markets.POL/USD.ticker.enabled' -v 'true' - dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.MATIC/USD.provider_configs.[]' -v '{"name": "binance_ws", "off_chain_ticker": "MATICUSDT", "normalize_by_pair": {"Base": "USDT", "Quote": "USD"}}' - dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.MATIC/USD.provider_configs.[]' -v '{"name": "bybit_ws", "off_chain_ticker": "MATICUSDT", "normalize_by_pair": {"Base": "USDT", "Quote": "USD"}}' - dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.MATIC/USD.provider_configs.[]' -v '{"name": "coinbase_ws", "off_chain_ticker": "MATIC-USD"}' - dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.MATIC/USD.provider_configs.[]' -v '{"name": "gate_ws", "off_chain_ticker": "MATIC_USDT", "normalize_by_pair": {"Base": "USDT", "Quote": "USD"}}' - dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.MATIC/USD.provider_configs.[]' -v '{"name": "huobi_ws", "off_chain_ticker": "maticusdt", "normalize_by_pair": {"Base": "USDT", "Quote": "USD"}}' - dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.MATIC/USD.provider_configs.[]' -v '{"name": "kraken_api", "off_chain_ticker": "MATICUSD"}' - dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.MATIC/USD.provider_configs.[]' -v '{"name": "kucoin_ws", "off_chain_ticker": "MATIC-USDT", "normalize_by_pair": {"Base": "USDT", "Quote": "USD"}}' - dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.MATIC/USD.provider_configs.[]' -v '{"name": "okx_ws", "off_chain_ticker": "MATIC-USDT", "normalize_by_pair": {"Base": "USDT", "Quote": "USD"}}' + dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.POL/USD.provider_configs.[]' -v '{"name": "bybit_ws", "off_chain_ticker": "POLUSDT", "normalize_by_pair": {"Base": "USDT", "Quote": "USD"}}' + dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.POL/USD.provider_configs.[]' -v '{"name": "coinbase_ws", "off_chain_ticker": "POL-USD"}' + dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.POL/USD.provider_configs.[]' -v '{"name": "crypto_dot_com_ws", "off_chain_ticker": "POL_USD"}' + dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.POL/USD.provider_configs.[]' -v '{"name": "okx_ws", "off_chain_ticker": "POL-USDT", "normalize_by_pair": {"Base": "USDT", "Quote": "USD"}}' # Marketmap: CRV-USD @@ -1322,9 +1318,9 @@ function edit_genesis() { link_exchange_config_json=$(cat "$EXCHANGE_CONFIG_JSON_DIR/link_exchange_config.json" | jq -c '.') dasel put -t string -f "$GENESIS" '.app_state.prices.market_params.[2].exchange_config_json' -v "$link_exchange_config_json" - # Market: MATIC-USD + # Market: POL-USD dasel put -t json -f "$GENESIS" '.app_state.prices.market_params.[]' -v "{}" - dasel put -t string -f "$GENESIS" '.app_state.prices.market_params.[3].pair' -v 'MATIC-USD' + dasel put -t string -f "$GENESIS" '.app_state.prices.market_params.[3].pair' -v 'POL-USD' dasel put -t int -f "$GENESIS" '.app_state.prices.market_params.[3].id' -v '3' dasel put -t int -f "$GENESIS" '.app_state.prices.market_params.[3].exponent' -v '-10' dasel put -t int -f "$GENESIS" '.app_state.prices.market_params.[3].min_exchanges' -v '3' @@ -1332,10 +1328,10 @@ function edit_genesis() { dasel put -t json -f "$GENESIS" '.app_state.prices.market_prices.[]' -v "{}" dasel put -t int -f "$GENESIS" '.app_state.prices.market_prices.[3].id' -v '3' dasel put -t int -f "$GENESIS" '.app_state.prices.market_prices.[3].exponent' -v '-10' - dasel put -t int -f "$GENESIS" '.app_state.prices.market_prices.[3].price' -v '6665746387' # $0.6666 = 1 MATIC. - # MATIC Exchange Config - matic_exchange_config_json=$(cat "$EXCHANGE_CONFIG_JSON_DIR/matic_exchange_config.json" | jq -c '.') - dasel put -t string -f "$GENESIS" '.app_state.prices.market_params.[3].exchange_config_json' -v "$matic_exchange_config_json" + dasel put -t int -f "$GENESIS" '.app_state.prices.market_prices.[3].price' -v '3703925550' # $0.370 = 1 POL. + # POL Exchange Config + pol_exchange_config_json=$(cat "$EXCHANGE_CONFIG_JSON_DIR/pol_exchange_config.json" | jq -c '.') + dasel put -t string -f "$GENESIS" '.app_state.prices.market_params.[3].exchange_config_json' -v "$pol_exchange_config_json" # Market: CRV-USD dasel put -t json -f "$GENESIS" '.app_state.prices.market_params.[]' -v "{}" @@ -1898,7 +1894,7 @@ function edit_genesis() { dasel put -t int -f "$GENESIS" '.app_state.clob.clob_pairs.[2].subticks_per_tick' -v '1000000' dasel put -t int -f "$GENESIS" '.app_state.clob.clob_pairs.[2].quantum_conversion_exponent' -v '-9' - # Clob: MATIC-USD + # Clob: POL-USD dasel put -t json -f "$GENESIS" '.app_state.clob.clob_pairs.[]' -v "{}" dasel put -t int -f "$GENESIS" '.app_state.clob.clob_pairs.[3].id' -v '3' dasel put -t string -f "$GENESIS" '.app_state.clob.clob_pairs.[3].status' -v "$INITIAL_CLOB_PAIR_STATUS" diff --git a/protocol/testing/mainnet/genesis.json b/protocol/testing/mainnet/genesis.json index 14a2fc1292..73a9e0afe6 100644 --- a/protocol/testing/mainnet/genesis.json +++ b/protocol/testing/mainnet/genesis.json @@ -2951,7 +2951,7 @@ }, { "params": { - "ticker": "MATIC-USD", + "ticker": "POL-USD", "id": 3, "market_id": 3, "atomic_resolution": -5, @@ -3317,12 +3317,12 @@ "exchange_config_json": "{\"exchanges\":[{\"exchangeName\":\"Binance\",\"ticker\":\"LINKUSDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Bybit\",\"ticker\":\"LINKUSDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"CoinbasePro\",\"ticker\":\"LINK-USD\"},{\"exchangeName\":\"Kraken\",\"ticker\":\"LINKUSD\"},{\"exchangeName\":\"Kucoin\",\"ticker\":\"LINK-USDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Mexc\",\"ticker\":\"LINK_USDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Okx\",\"ticker\":\"LINK-USDT\",\"adjustByMarket\":\"USDT-USD\"}]}" }, { - "pair": "MATIC-USD", + "pair": "POL-USD", "id": 3, "exponent": -10, "min_exchanges": 3, "min_price_change_ppm": 2500, - "exchange_config_json": "{\"exchanges\":[{\"exchangeName\":\"Binance\",\"ticker\":\"MATICUSDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Bybit\",\"ticker\":\"MATICUSDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"CoinbasePro\",\"ticker\":\"MATIC-USD\"},{\"exchangeName\":\"Gate\",\"ticker\":\"MATIC_USDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Huobi\",\"ticker\":\"maticusdt\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Kraken\",\"ticker\":\"MATICUSD\"},{\"exchangeName\":\"Kucoin\",\"ticker\":\"MATIC-USDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Mexc\",\"ticker\":\"MATIC_USDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Okx\",\"ticker\":\"MATIC-USDT\",\"adjustByMarket\":\"USDT-USD\"}]}" + "exchange_config_json": "{\"exchanges\":[{\"exchangeName\":\"Bybit\",\"ticker\":\"POLUSDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"CoinbasePro\",\"ticker\":\"POL-USD\"},{\"exchangeName\":\"CryptoCom\",\"ticker\":\"POL_USD\"},{\"exchangeName\":\"Okx\",\"ticker\":\"POL-USDT\",\"adjustByMarket\":\"USDT-USD\"}]}" }, { "pair": "CRV-USD", diff --git a/protocol/testing/testnet-dev/dev.sh b/protocol/testing/testnet-dev/dev.sh index 809c543346..91e20a45ff 100755 --- a/protocol/testing/testnet-dev/dev.sh +++ b/protocol/testing/testnet-dev/dev.sh @@ -85,7 +85,7 @@ VAULT_ACCOUNTS=( "dydx1c0m5x87llaunl5sgv3q5vd7j5uha26d2q2r2q0" # BTC vault "dydx14rplxdyycc6wxmgl8fggppgq4774l70zt6phkw" # ETH vault "dydx190te44zcctdgk0qmqtenve2m00g3r2dn7ntd72" # LINK vault - "dydx1a83cjn83vqh5ss2vccg6uuaeky7947xldp9r2e" # MATIC vault + "dydx1a83cjn83vqh5ss2vccg6uuaeky7947xldp9r2e" # POL vault "dydx1nkz8xcar6sxedw0yva6jzjplw7hfg6pp6e7h0l" # CRV vault ) # Number of each vault above, which for CLOB vaults is the ID of the clob pair it quotes on. @@ -93,7 +93,7 @@ VAULT_NUMBERS=( 0 # BTC clob pair ID 1 # ETH clob pair ID 2 # LINK clob pair ID - 3 # MATIC clob pair ID + 3 # POL clob pair ID 4 # CRV clob pair ID ) diff --git a/protocol/testing/testnet-staging/staging.sh b/protocol/testing/testnet-staging/staging.sh index ebd2871f97..57fcbcf4c8 100755 --- a/protocol/testing/testnet-staging/staging.sh +++ b/protocol/testing/testnet-staging/staging.sh @@ -139,7 +139,7 @@ VAULT_ACCOUNTS=( "dydx1c0m5x87llaunl5sgv3q5vd7j5uha26d2q2r2q0" # BTC vault "dydx14rplxdyycc6wxmgl8fggppgq4774l70zt6phkw" # ETH vault "dydx190te44zcctdgk0qmqtenve2m00g3r2dn7ntd72" # LINK vault - "dydx1a83cjn83vqh5ss2vccg6uuaeky7947xldp9r2e" # MATIC vault + "dydx1a83cjn83vqh5ss2vccg6uuaeky7947xldp9r2e" # POL vault "dydx1nkz8xcar6sxedw0yva6jzjplw7hfg6pp6e7h0l" # CRV vault ) # Number of each vault above, which for CLOB vaults is the ID of the clob pair it quotes on. @@ -147,7 +147,7 @@ VAULT_NUMBERS=( 0 # BTC clob pair ID 1 # ETH clob pair ID 2 # LINK clob pair ID - 3 # MATIC clob pair ID + 3 # POL clob pair ID 4 # CRV clob pair ID ) diff --git a/protocol/testing/testnet/genesis.json b/protocol/testing/testnet/genesis.json index 0dad18164a..4954d06eeb 100644 --- a/protocol/testing/testnet/genesis.json +++ b/protocol/testing/testnet/genesis.json @@ -5808,7 +5808,7 @@ "id": 3, "liquidity_tier": 1, "market_id": 3, - "ticker": "MATIC-USD" + "ticker": "POL-USD" } }, { @@ -6130,12 +6130,12 @@ "pair": "LINK-USD" }, { - "exchange_config_json": "{\"exchanges\":[{\"exchangeName\":\"Binance\",\"ticker\":\"MATICUSDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Bybit\",\"ticker\":\"MATICUSDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"CoinbasePro\",\"ticker\":\"MATIC-USD\"},{\"exchangeName\":\"Gate\",\"ticker\":\"MATIC_USDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Huobi\",\"ticker\":\"maticusdt\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Kraken\",\"ticker\":\"MATICUSD\"},{\"exchangeName\":\"Kucoin\",\"ticker\":\"MATIC-USDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Mexc\",\"ticker\":\"MATIC_USDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Okx\",\"ticker\":\"MATIC-USDT\",\"adjustByMarket\":\"USDT-USD\"}]}", + "exchange_config_json": "{\"exchanges\":[{\"exchangeName\":\"Bybit\",\"ticker\":\"POLUSDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"CoinbasePro\",\"ticker\":\"POL-USD\"},{\"exchangeName\":\"CryptoCom\",\"ticker\":\"POL_USD\"},{\"exchangeName\":\"Okx\",\"ticker\":\"POL-USDT\",\"adjustByMarket\":\"USDT-USD\"}]}", "exponent": -10, "id": 3, "min_exchanges": 3, "min_price_change_ppm": 2500, - "pair": "MATIC-USD" + "pair": "POL-USD" }, { "exchange_config_json": "{\"exchanges\":[{\"exchangeName\":\"Binance\",\"ticker\":\"CRVUSDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"CoinbasePro\",\"ticker\":\"CRV-USD\"},{\"exchangeName\":\"Gate\",\"ticker\":\"CRV_USDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Kraken\",\"ticker\":\"CRVUSD\"},{\"exchangeName\":\"Kucoin\",\"ticker\":\"CRV-USDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Mexc\",\"ticker\":\"CRV_USDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Okx\",\"ticker\":\"CRV-USDT\",\"adjustByMarket\":\"USDT-USD\"}]}", diff --git a/protocol/testutil/constants/genesis.go b/protocol/testutil/constants/genesis.go index ba7c2f1402..3eb50b7ad1 100644 --- a/protocol/testutil/constants/genesis.go +++ b/protocol/testutil/constants/genesis.go @@ -2557,83 +2557,6 @@ const GenesisState = `{ } ] }, - "MATIC/USD": { - "ticker": { - "currency_pair": { - "Base": "MATIC", - "Quote": "USD" - }, - "decimals": 10, - "min_provider_count": 3, - "enabled": true - }, - "provider_configs": [ - { - "name": "binance_ws", - "off_chain_ticker": "MATICUSDT", - "normalize_by_pair": { - "Base": "USDT", - "Quote": "USD" - } - }, - { - "name": "bybit_ws", - "off_chain_ticker": "MATICUSDT", - "normalize_by_pair": { - "Base": "USDT", - "Quote": "USD" - } - }, - { - "name": "coinbase_ws", - "off_chain_ticker": "MATIC-USD" - }, - { - "name": "gate_ws", - "off_chain_ticker": "MATIC_USDT", - "normalize_by_pair": { - "Base": "USDT", - "Quote": "USD" - } - }, - { - "name": "huobi_ws", - "off_chain_ticker": "maticusdt", - "normalize_by_pair": { - "Base": "USDT", - "Quote": "USD" - } - }, - { - "name": "kraken_api", - "off_chain_ticker": "MATICUSD" - }, - { - "name": "kucoin_ws", - "off_chain_ticker": "MATIC-USDT", - "normalize_by_pair": { - "Base": "USDT", - "Quote": "USD" - } - }, - { - "name": "mexc_ws", - "off_chain_ticker": "MATICUSDT", - "normalize_by_pair": { - "Base": "USDT", - "Quote": "USD" - } - }, - { - "name": "okx_ws", - "off_chain_ticker": "MATIC-USDT", - "normalize_by_pair": { - "Base": "USDT", - "Quote": "USD" - } - } - ] - }, "MKR/USD": { "ticker": { "currency_pair": { @@ -2874,6 +2797,54 @@ const GenesisState = `{ } ] }, + "POL/USD": { + "ticker": { + "currency_pair": { + "Base": "POL", + "Quote": "USD" + }, + "decimals": "10", + "min_provider_count": "3", + "enabled": true, + "metadata_JSON": "" + }, + "provider_configs": [ + { + "name": "bybit_ws", + "off_chain_ticker": "POLUSDT", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + }, + "invert": false, + "metadata_JSON": "" + }, + { + "name": "coinbase_ws", + "off_chain_ticker": "POL-USD", + "normalize_by_pair": null, + "invert": false, + "metadata_JSON": "" + }, + { + "name": "crypto_dot_com_ws", + "off_chain_ticker": "POL_USD", + "normalize_by_pair": null, + "invert": false, + "metadata_JSON": "" + }, + { + "name": "okx_ws", + "off_chain_ticker": "POL-USDT", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + }, + "invert": false, + "metadata_JSON": "" + } + ] + }, "SEI/USD": { "ticker": { "currency_pair": { @@ -4022,12 +3993,12 @@ const GenesisState = `{ "pair": "LINK-USD" }, { - "exchange_config_json": "{\"exchanges\":[{\"exchangeName\":\"Binance\",\"ticker\":\"\\\"MATICUSDT\\\"\"},{\"exchangeName\":\"BinanceUS\",\"ticker\":\"\\\"MATICUSD\\\"\"},{\"exchangeName\":\"CoinbasePro\",\"ticker\":\"MATIC-USD\"},{\"exchangeName\":\"Gate\",\"ticker\":\"MATIC_USDT\"},{\"exchangeName\":\"Huobi\",\"ticker\":\"maticusdt\"},{\"exchangeName\":\"Kucoin\",\"ticker\":\"MATIC-USDT\"},{\"exchangeName\":\"Okx\",\"ticker\":\"MATIC-USDT\"}]}", + "exchange_config_json": "{\"exchanges\":[{\"exchangeName\":\"Bybit\",\"ticker\":\"POLUSDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"CoinbasePro\",\"ticker\":\"POL-USD\"},{\"exchangeName\":\"CryptoCom\",\"ticker\":\"POL_USD\"},{\"exchangeName\":\"Okx\",\"ticker\":\"POL-USDT\",\"adjustByMarket\":\"USDT-USD\"}]}", "exponent": -10, "id": 3, "min_exchanges": 1, "min_price_change_ppm": 2000, - "pair": "MATIC-USD" + "pair": "POL-USD" }, { "exchange_config_json": "{\"exchanges\":[{\"exchangeName\":\"Binance\",\"ticker\":\"\\\"CRVUSDT\\\"\"},{\"exchangeName\":\"BinanceUS\",\"ticker\":\"\\\"CRVUSD\\\"\"},{\"exchangeName\":\"Bybit\",\"ticker\":\"CRVUSDT\"},{\"exchangeName\":\"CoinbasePro\",\"ticker\":\"CRV-USD\"},{\"exchangeName\":\"Gate\",\"ticker\":\"CRV_USDT\"},{\"exchangeName\":\"Huobi\",\"ticker\":\"crvusdt\"},{\"exchangeName\":\"Kraken\",\"ticker\":\"CRVUSD\"},{\"exchangeName\":\"Kucoin\",\"ticker\":\"CRV-USDT\"},{\"exchangeName\":\"Okx\",\"ticker\":\"CRV-USDT\"}]}", diff --git a/protocol/testutil/constants/pricefeed.go b/protocol/testutil/constants/pricefeed.go index f7bdf0e2c2..08ed480a3d 100644 --- a/protocol/testutil/constants/pricefeed.go +++ b/protocol/testutil/constants/pricefeed.go @@ -658,8 +658,8 @@ var ( }, { Id: MarketId11, - Pair: MaticUsdPair, - Exponent: MaticUsdExponent, + Pair: PolUsdPair, + Exponent: PolUsdExponent, MinExchanges: 1, }, } @@ -684,7 +684,7 @@ var ( MarketId8: EthUsdExponent, MarketId9: LtcUsdExponent, MarketId10: SolUsdExponent, - MarketId11: MaticUsdExponent, + MarketId11: PolUsdExponent, } TestExchangeQueryConfigs = map[string]*daemonClientTypes.ExchangeQueryConfig{ diff --git a/protocol/testutil/constants/prices.go b/protocol/testutil/constants/prices.go index 89c7ee360f..59c47ea5fc 100644 --- a/protocol/testutil/constants/prices.go +++ b/protocol/testutil/constants/prices.go @@ -21,23 +21,23 @@ func init() { } const ( - BtcUsdPair = "BTC-USD" - EthUsdPair = "ETH-USD" - MaticUsdPair = "MATIC-USD" - SolUsdPair = "SOL-USD" - LtcUsdPair = "LTC-USD" - IsoUsdPair = "ISO-USD" - Iso2UsdPair = "ISO2-USD" + BtcUsdPair = "BTC-USD" + EthUsdPair = "ETH-USD" + PolUsdPair = "POL-USD" + SolUsdPair = "SOL-USD" + LtcUsdPair = "LTC-USD" + IsoUsdPair = "ISO-USD" + Iso2UsdPair = "ISO2-USD" - BtcUsdExponent = -5 - EthUsdExponent = -6 - LinkUsdExponent = -8 - MaticUsdExponent = -9 - CrvUsdExponent = -10 - SolUsdExponent = -8 - LtcUsdExponent = -7 - IsoUsdExponent = -8 - Iso2UsdExponent = -7 + BtcUsdExponent = -5 + EthUsdExponent = -6 + LinkUsdExponent = -8 + PolUsdExponent = -9 + CrvUsdExponent = -10 + SolUsdExponent = -8 + LtcUsdExponent = -7 + IsoUsdExponent = -8 + Iso2UsdExponent = -7 CoinbaseExchangeName = "Coinbase" BinanceExchangeName = "Binance" diff --git a/protocol/testutil/daemons/pricefeed/exchange_config/market_id.go b/protocol/testutil/daemons/pricefeed/exchange_config/market_id.go index cb6fe6c4d6..9d8e0696b7 100644 --- a/protocol/testutil/daemons/pricefeed/exchange_config/market_id.go +++ b/protocol/testutil/daemons/pricefeed/exchange_config/market_id.go @@ -10,8 +10,8 @@ const ( MARKET_ETH_USD types.MarketId = 1 // MARKET_LINK_USD is the id for the LINK-USD market pair. MARKET_LINK_USD types.MarketId = 2 - // MARKET_MATIC_USD is the id for the MATIC-USD market pair. - MARKET_MATIC_USD types.MarketId = 3 + // MARKET_POL_USD is the id for the POL-USD market pair. + MARKET_POL_USD types.MarketId = 3 // MARKET_CRV_USD is the id for the CRV-USD market pair. MARKET_CRV_USD types.MarketId = 4 // MARKET_SOL_USD is the id for the SOL-USD market pair. diff --git a/protocol/testutil/daemons/pricefeed/exchange_config/static_market_names.go b/protocol/testutil/daemons/pricefeed/exchange_config/static_market_names.go index 6a27151ec2..77b706eb6e 100644 --- a/protocol/testutil/daemons/pricefeed/exchange_config/static_market_names.go +++ b/protocol/testutil/daemons/pricefeed/exchange_config/static_market_names.go @@ -8,39 +8,39 @@ var ( // StaticMarketNames maps marketIds to their human-readable market names. This list is // used for generating market exchange config that is then read back into the daemon. StaticMarketNames = map[types.MarketId]string{ - MARKET_BTC_USD: "BTC-USD", - MARKET_ETH_USD: "ETH-USD", - MARKET_LINK_USD: "LINK-USD", - MARKET_MATIC_USD: "MATIC-USD", - MARKET_CRV_USD: "CRV-USD", - MARKET_SOL_USD: "SOL-USD", - MARKET_ADA_USD: "ADA-USD", - MARKET_AVAX_USD: "AVAX-USD", - MARKET_FIL_USD: "FIL-USD", - MARKET_LTC_USD: "LTC-USD", - MARKET_DOGE_USD: "DOGE-USD", - MARKET_ATOM_USD: "ATOM-USD", - MARKET_DOT_USD: "DOT-USD", - MARKET_UNI_USD: "UNI-USD", - MARKET_BCH_USD: "BCH-USD", - MARKET_TRX_USD: "TRX-USD", - MARKET_NEAR_USD: "NEAR-USD", - MARKET_MKR_USD: "MKR-USD", - MARKET_XLM_USD: "XLM-USD", - MARKET_ETC_USD: "ETC-USD", - MARKET_COMP_USD: "COMP-USD", - MARKET_WLD_USD: "WLD-USD", - MARKET_APE_USD: "APE-USD", - MARKET_APT_USD: "APT-USD", - MARKET_ARB_USD: "ARB-USD", - MARKET_BLUR_USD: "BLUR-USD", - MARKET_LDO_USD: "LDO-USD", - MARKET_OP_USD: "OP-USD", - MARKET_PEPE_USD: "PEPE-USD", - MARKET_SEI_USD: "SEI-USD", - MARKET_SHIB_USD: "SHIB-USD", - MARKET_SUI_USD: "SUI-USD", - MARKET_XRP_USD: "XRP-USD", - MARKET_USDT_USD: "USDT-USD", + MARKET_BTC_USD: "BTC-USD", + MARKET_ETH_USD: "ETH-USD", + MARKET_LINK_USD: "LINK-USD", + MARKET_POL_USD: "POL-USD", + MARKET_CRV_USD: "CRV-USD", + MARKET_SOL_USD: "SOL-USD", + MARKET_ADA_USD: "ADA-USD", + MARKET_AVAX_USD: "AVAX-USD", + MARKET_FIL_USD: "FIL-USD", + MARKET_LTC_USD: "LTC-USD", + MARKET_DOGE_USD: "DOGE-USD", + MARKET_ATOM_USD: "ATOM-USD", + MARKET_DOT_USD: "DOT-USD", + MARKET_UNI_USD: "UNI-USD", + MARKET_BCH_USD: "BCH-USD", + MARKET_TRX_USD: "TRX-USD", + MARKET_NEAR_USD: "NEAR-USD", + MARKET_MKR_USD: "MKR-USD", + MARKET_XLM_USD: "XLM-USD", + MARKET_ETC_USD: "ETC-USD", + MARKET_COMP_USD: "COMP-USD", + MARKET_WLD_USD: "WLD-USD", + MARKET_APE_USD: "APE-USD", + MARKET_APT_USD: "APT-USD", + MARKET_ARB_USD: "ARB-USD", + MARKET_BLUR_USD: "BLUR-USD", + MARKET_LDO_USD: "LDO-USD", + MARKET_OP_USD: "OP-USD", + MARKET_PEPE_USD: "PEPE-USD", + MARKET_SEI_USD: "SEI-USD", + MARKET_SHIB_USD: "SHIB-USD", + MARKET_SUI_USD: "SUI-USD", + MARKET_XRP_USD: "XRP-USD", + MARKET_USDT_USD: "USDT-USD", } ) diff --git a/protocol/testutil/daemons/pricefeed/exchange_config/testnet_exchange_market_config.go b/protocol/testutil/daemons/pricefeed/exchange_config/testnet_exchange_market_config.go index 8ab6dc9ee5..54140c73a2 100644 --- a/protocol/testutil/daemons/pricefeed/exchange_config/testnet_exchange_market_config.go +++ b/protocol/testutil/daemons/pricefeed/exchange_config/testnet_exchange_market_config.go @@ -30,8 +30,8 @@ var ( Ticker: "LINKUSDT", AdjustByMarket: newMarketIdWithValue(MARKET_USDT_USD), }, - MARKET_MATIC_USD: { - Ticker: "MATICUSDT", + MARKET_POL_USD: { + Ticker: "POLUSDT", AdjustByMarket: newMarketIdWithValue(MARKET_USDT_USD), }, MARKET_CRV_USD: { @@ -224,8 +224,8 @@ var ( MARKET_USDT_USD: { Ticker: "USDTZUSD", }, - MARKET_MATIC_USD: { - Ticker: "MATICUSD", + MARKET_POL_USD: { + Ticker: "POLUSD", }, MARKET_MKR_USD: { Ticker: "MKRUSD", @@ -242,8 +242,8 @@ var ( Ticker: "DYDX_USDT", AdjustByMarket: newMarketIdWithValue(MARKET_USDT_USD), }, - MARKET_MATIC_USD: { - Ticker: "MATIC_USDT", + MARKET_POL_USD: { + Ticker: "POL_USDT", AdjustByMarket: newMarketIdWithValue(MARKET_USDT_USD), }, MARKET_CRV_USD: { @@ -443,8 +443,8 @@ var ( Ticker: "DOTUSDT", AdjustByMarket: newMarketIdWithValue(MARKET_USDT_USD), }, - MARKET_MATIC_USD: { - Ticker: "MATICUSDT", + MARKET_POL_USD: { + Ticker: "POLUSDT", AdjustByMarket: newMarketIdWithValue(MARKET_USDT_USD), }, MARKET_USDT_USD: { @@ -460,8 +460,8 @@ var ( exchange_common.EXCHANGE_ID_HUOBI: { Id: exchange_common.EXCHANGE_ID_HUOBI, MarketToMarketConfig: map[types.MarketId]types.MarketConfig{ - MARKET_MATIC_USD: { - Ticker: "maticusdt", + MARKET_POL_USD: { + Ticker: "polusdt", AdjustByMarket: newMarketIdWithValue(MARKET_USDT_USD), }, MARKET_SOL_USD: { @@ -554,8 +554,8 @@ var ( Ticker: "LINK-USDT", AdjustByMarket: newMarketIdWithValue(MARKET_USDT_USD), }, - MARKET_MATIC_USD: { - Ticker: "MATIC-USDT", + MARKET_POL_USD: { + Ticker: "POL-USDT", AdjustByMarket: newMarketIdWithValue(MARKET_USDT_USD), }, MARKET_CRV_USD: { @@ -700,8 +700,8 @@ var ( Ticker: "LINK-USDT", AdjustByMarket: newMarketIdWithValue(MARKET_USDT_USD), }, - MARKET_MATIC_USD: { - Ticker: "MATIC-USDT", + MARKET_POL_USD: { + Ticker: "POL-USDT", AdjustByMarket: newMarketIdWithValue(MARKET_USDT_USD), }, MARKET_CRV_USD: { @@ -834,8 +834,8 @@ var ( MARKET_LINK_USD: { Ticker: "LINK-USD", }, - MARKET_MATIC_USD: { - Ticker: "MATIC-USD", + MARKET_POL_USD: { + Ticker: "POL-USD", }, MARKET_CRV_USD: { Ticker: "CRV-USD", From 404ce72c5ed9310afaa1cbe22efb6cf445af4348 Mon Sep 17 00:00:00 2001 From: Chenyao Yu <4844716+chenyaoy@users.noreply.github.com> Date: Wed, 16 Oct 2024 15:05:05 -0400 Subject: [PATCH 2/5] fix --- .../static_exchange_market_config.go | 2 +- .../scripts/genesis/sample_pregenesis.json | 20 ++++---------- .../testnet_exchange_market_config.go | 27 +++++-------------- 3 files changed, 12 insertions(+), 37 deletions(-) diff --git a/protocol/daemons/pricefeed/client/constants/static_exchange_market_config.go b/protocol/daemons/pricefeed/client/constants/static_exchange_market_config.go index 2362e0cad4..9f1bd5a890 100644 --- a/protocol/daemons/pricefeed/client/constants/static_exchange_market_config.go +++ b/protocol/daemons/pricefeed/client/constants/static_exchange_market_config.go @@ -16,7 +16,7 @@ const ( // by the pricefeed daemon. This number was chosen to supply the minimum number of prices required to // compute an index price for a market, given exchange unavailability due to exchange geo-fencing, // downtime, etc. - MinimumRequiredExchangesPerMarket = 5 + MinimumRequiredExchangesPerMarket = 4 ) // GenerateExchangeConfigJson generates human-readable exchange config json for each market based on the contents diff --git a/protocol/scripts/genesis/sample_pregenesis.json b/protocol/scripts/genesis/sample_pregenesis.json index dede4b7abd..2643da3381 100644 --- a/protocol/scripts/genesis/sample_pregenesis.json +++ b/protocol/scripts/genesis/sample_pregenesis.json @@ -2281,37 +2281,27 @@ "provider_configs": [ { "name": "bybit_ws", - "off_chain_ticker": "POLUSDT", "normalize_by_pair": { "Base": "USDT", "Quote": "USD" }, - "invert": false, - "metadata_JSON": "" + "off_chain_ticker": "POLUSDT" }, { "name": "coinbase_ws", - "off_chain_ticker": "POL-USD", - "normalize_by_pair": null, - "invert": false, - "metadata_JSON": "" + "off_chain_ticker": "POL-USD" }, { "name": "crypto_dot_com_ws", - "off_chain_ticker": "POL_USD", - "normalize_by_pair": null, - "invert": false, - "metadata_JSON": "" + "off_chain_ticker": "POL_USD" }, { "name": "okx_ws", - "off_chain_ticker": "POL-USDT", "normalize_by_pair": { "Base": "USDT", "Quote": "USD" }, - "invert": false, - "metadata_JSON": "" + "off_chain_ticker": "POL-USDT" } ], "ticker": { @@ -3698,7 +3688,7 @@ { "exponent": -10, "id": 3, - "price": 6665746387 + "price": 3703925550 }, { "exponent": -10, diff --git a/protocol/testutil/daemons/pricefeed/exchange_config/testnet_exchange_market_config.go b/protocol/testutil/daemons/pricefeed/exchange_config/testnet_exchange_market_config.go index 54140c73a2..9260606c37 100644 --- a/protocol/testutil/daemons/pricefeed/exchange_config/testnet_exchange_market_config.go +++ b/protocol/testutil/daemons/pricefeed/exchange_config/testnet_exchange_market_config.go @@ -30,10 +30,6 @@ var ( Ticker: "LINKUSDT", AdjustByMarket: newMarketIdWithValue(MARKET_USDT_USD), }, - MARKET_POL_USD: { - Ticker: "POLUSDT", - AdjustByMarket: newMarketIdWithValue(MARKET_USDT_USD), - }, MARKET_CRV_USD: { Ticker: "CRVUSDT", AdjustByMarket: newMarketIdWithValue(MARKET_USDT_USD), @@ -224,9 +220,6 @@ var ( MARKET_USDT_USD: { Ticker: "USDTZUSD", }, - MARKET_POL_USD: { - Ticker: "POLUSD", - }, MARKET_MKR_USD: { Ticker: "MKRUSD", }, @@ -242,10 +235,6 @@ var ( Ticker: "DYDX_USDT", AdjustByMarket: newMarketIdWithValue(MARKET_USDT_USD), }, - MARKET_POL_USD: { - Ticker: "POL_USDT", - AdjustByMarket: newMarketIdWithValue(MARKET_USDT_USD), - }, MARKET_CRV_USD: { Ticker: "CRV_USDT", AdjustByMarket: newMarketIdWithValue(MARKET_USDT_USD), @@ -454,16 +443,16 @@ var ( }, }, exchange_common.EXCHANGE_ID_CRYPTO_COM: { - Id: exchange_common.EXCHANGE_ID_CRYPTO_COM, - MarketToMarketConfig: map[types.MarketId]types.MarketConfig{}, + Id: exchange_common.EXCHANGE_ID_CRYPTO_COM, + MarketToMarketConfig: map[types.MarketId]types.MarketConfig{ + MARKET_POL_USD: { + Ticker: "POL_USD", + }, + }, }, exchange_common.EXCHANGE_ID_HUOBI: { Id: exchange_common.EXCHANGE_ID_HUOBI, MarketToMarketConfig: map[types.MarketId]types.MarketConfig{ - MARKET_POL_USD: { - Ticker: "polusdt", - AdjustByMarket: newMarketIdWithValue(MARKET_USDT_USD), - }, MARKET_SOL_USD: { Ticker: "solusdt", AdjustByMarket: newMarketIdWithValue(MARKET_USDT_USD), @@ -554,10 +543,6 @@ var ( Ticker: "LINK-USDT", AdjustByMarket: newMarketIdWithValue(MARKET_USDT_USD), }, - MARKET_POL_USD: { - Ticker: "POL-USDT", - AdjustByMarket: newMarketIdWithValue(MARKET_USDT_USD), - }, MARKET_CRV_USD: { Ticker: "CRV-USDT", AdjustByMarket: newMarketIdWithValue(MARKET_USDT_USD), From 515976b1c78f53f6737b611645d97b97b803db1d Mon Sep 17 00:00:00 2001 From: Chenyao Yu <4844716+chenyaoy@users.noreply.github.com> Date: Wed, 16 Oct 2024 15:59:37 -0400 Subject: [PATCH 3/5] add binance --- .../static_exchange_market_config.go | 2 +- .../testdata/pol_exchange_config.json | 5 +++ .../scripts/genesis/sample_pregenesis.json | 15 ++++++--- .../containertest/preupgrade_genesis.json | 26 +++++++--------- protocol/testing/genesis.sh | 1 + protocol/testing/mainnet/genesis.json | 2 +- protocol/testing/testnet/genesis.json | 2 +- protocol/testutil/constants/genesis.go | 31 +++++++++---------- .../testnet_exchange_market_config.go | 4 +++ 9 files changed, 50 insertions(+), 38 deletions(-) diff --git a/protocol/daemons/pricefeed/client/constants/static_exchange_market_config.go b/protocol/daemons/pricefeed/client/constants/static_exchange_market_config.go index 9f1bd5a890..2362e0cad4 100644 --- a/protocol/daemons/pricefeed/client/constants/static_exchange_market_config.go +++ b/protocol/daemons/pricefeed/client/constants/static_exchange_market_config.go @@ -16,7 +16,7 @@ const ( // by the pricefeed daemon. This number was chosen to supply the minimum number of prices required to // compute an index price for a market, given exchange unavailability due to exchange geo-fencing, // downtime, etc. - MinimumRequiredExchangesPerMarket = 4 + MinimumRequiredExchangesPerMarket = 5 ) // GenerateExchangeConfigJson generates human-readable exchange config json for each market based on the contents diff --git a/protocol/daemons/pricefeed/client/constants/testdata/pol_exchange_config.json b/protocol/daemons/pricefeed/client/constants/testdata/pol_exchange_config.json index 1af05f8980..ba784b1f20 100644 --- a/protocol/daemons/pricefeed/client/constants/testdata/pol_exchange_config.json +++ b/protocol/daemons/pricefeed/client/constants/testdata/pol_exchange_config.json @@ -1,5 +1,10 @@ { "exchanges": [ + { + "exchangeName": "Binance", + "ticker": "POLUSDT", + "adjustByMarket": "USDT-USD" + }, { "exchangeName": "Bybit", "ticker": "POLUSDT", diff --git a/protocol/scripts/genesis/sample_pregenesis.json b/protocol/scripts/genesis/sample_pregenesis.json index 2643da3381..7f15e44022 100644 --- a/protocol/scripts/genesis/sample_pregenesis.json +++ b/protocol/scripts/genesis/sample_pregenesis.json @@ -2279,6 +2279,14 @@ }, "POL/USD": { "provider_configs": [ + { + "binance_ws", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + }, + "off_chain_ticker": "POLUSDT" + }, { "name": "bybit_ws", "normalize_by_pair": { @@ -2309,10 +2317,9 @@ "Base": "POL", "Quote": "USD" }, - "decimals": "10", - "min_provider_count": "3", - "enabled": true, - "metadata_JSON": "" + "decimals": 10, + "min_provider_count": 3, + "enabled": true } }, "SEI/USD": { diff --git a/protocol/testing/containertest/preupgrade_genesis.json b/protocol/testing/containertest/preupgrade_genesis.json index 426036685b..612ed3f5f5 100644 --- a/protocol/testing/containertest/preupgrade_genesis.json +++ b/protocol/testing/containertest/preupgrade_genesis.json @@ -1438,29 +1438,29 @@ "metadata_JSON": "" }, "provider_configs": [ + { + "name": "binance_ws", + "off_chain_ticker": "POLUSDT", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + } + }, { "name": "bybit_ws", "off_chain_ticker": "POLUSDT", "normalize_by_pair": { "Base": "USDT", "Quote": "USD" - }, - "invert": false, - "metadata_JSON": "" + } }, { "name": "coinbase_ws", - "off_chain_ticker": "POL-USD", - "normalize_by_pair": null, - "invert": false, - "metadata_JSON": "" + "off_chain_ticker": "POL-USD" }, { "name": "crypto_dot_com_ws", - "off_chain_ticker": "POL_USD", - "normalize_by_pair": null, - "invert": false, - "metadata_JSON": "" + "off_chain_ticker": "POL_USD" }, { "name": "okx_ws", @@ -1468,9 +1468,7 @@ "normalize_by_pair": { "Base": "USDT", "Quote": "USD" - }, - "invert": false, - "metadata_JSON": "" + } } ] }, diff --git a/protocol/testing/genesis.sh b/protocol/testing/genesis.sh index de2d6a431d..e9c60e5adc 100755 --- a/protocol/testing/genesis.sh +++ b/protocol/testing/genesis.sh @@ -619,6 +619,7 @@ function edit_genesis() { dasel put -t int -f "$GENESIS" '.app_state.marketmap.market_map.markets.POL/USD.ticker.min_provider_count' -v '3' dasel put -t bool -f "$GENESIS" '.app_state.marketmap.market_map.markets.POL/USD.ticker.enabled' -v 'true' + dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.POL/USD.provider_configs.[]' -v '{"name": "binance_ws", "off_chain_ticker": "POLUSDT", "normalize_by_pair": {"Base": "USDT", "Quote": "USD"}}' dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.POL/USD.provider_configs.[]' -v '{"name": "bybit_ws", "off_chain_ticker": "POLUSDT", "normalize_by_pair": {"Base": "USDT", "Quote": "USD"}}' dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.POL/USD.provider_configs.[]' -v '{"name": "coinbase_ws", "off_chain_ticker": "POL-USD"}' dasel put -t json -f "$GENESIS" '.app_state.marketmap.market_map.markets.POL/USD.provider_configs.[]' -v '{"name": "crypto_dot_com_ws", "off_chain_ticker": "POL_USD"}' diff --git a/protocol/testing/mainnet/genesis.json b/protocol/testing/mainnet/genesis.json index 73a9e0afe6..c535a63708 100644 --- a/protocol/testing/mainnet/genesis.json +++ b/protocol/testing/mainnet/genesis.json @@ -3322,7 +3322,7 @@ "exponent": -10, "min_exchanges": 3, "min_price_change_ppm": 2500, - "exchange_config_json": "{\"exchanges\":[{\"exchangeName\":\"Bybit\",\"ticker\":\"POLUSDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"CoinbasePro\",\"ticker\":\"POL-USD\"},{\"exchangeName\":\"CryptoCom\",\"ticker\":\"POL_USD\"},{\"exchangeName\":\"Okx\",\"ticker\":\"POL-USDT\",\"adjustByMarket\":\"USDT-USD\"}]}" + "exchange_config_json": "{\"exchanges\":[{\"exchangeName\":\"Binance\",\"ticker\":\"POLUSDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Bybit\",\"ticker\":\"POLUSDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"CoinbasePro\",\"ticker\":\"POL-USD\"},{\"exchangeName\":\"CryptoCom\",\"ticker\":\"POL_USD\"},{\"exchangeName\":\"Okx\",\"ticker\":\"POL-USDT\",\"adjustByMarket\":\"USDT-USD\"}]}" }, { "pair": "CRV-USD", diff --git a/protocol/testing/testnet/genesis.json b/protocol/testing/testnet/genesis.json index 4954d06eeb..3fe44a2f9b 100644 --- a/protocol/testing/testnet/genesis.json +++ b/protocol/testing/testnet/genesis.json @@ -6130,7 +6130,7 @@ "pair": "LINK-USD" }, { - "exchange_config_json": "{\"exchanges\":[{\"exchangeName\":\"Bybit\",\"ticker\":\"POLUSDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"CoinbasePro\",\"ticker\":\"POL-USD\"},{\"exchangeName\":\"CryptoCom\",\"ticker\":\"POL_USD\"},{\"exchangeName\":\"Okx\",\"ticker\":\"POL-USDT\",\"adjustByMarket\":\"USDT-USD\"}]}", + "exchange_config_json": "{\"exchanges\":[{\"exchangeName\":\"Binance\",\"ticker\":\"POLUSDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Bybit\",\"ticker\":\"POLUSDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"CoinbasePro\",\"ticker\":\"POL-USD\"},{\"exchangeName\":\"CryptoCom\",\"ticker\":\"POL_USD\"},{\"exchangeName\":\"Okx\",\"ticker\":\"POL-USDT\",\"adjustByMarket\":\"USDT-USD\"}]}", "exponent": -10, "id": 3, "min_exchanges": 3, diff --git a/protocol/testutil/constants/genesis.go b/protocol/testutil/constants/genesis.go index 3eb50b7ad1..ec81ede004 100644 --- a/protocol/testutil/constants/genesis.go +++ b/protocol/testutil/constants/genesis.go @@ -2805,33 +2805,32 @@ const GenesisState = `{ }, "decimals": "10", "min_provider_count": "3", - "enabled": true, - "metadata_JSON": "" + "enabled": true }, "provider_configs": [ + { + "name": "binance_ws", + "off_chain_ticker": "POLUSDT", + "normalize_by_pair": { + "Base": "USDT", + "Quote": "USD" + } + }, { "name": "bybit_ws", "off_chain_ticker": "POLUSDT", "normalize_by_pair": { "Base": "USDT", "Quote": "USD" - }, - "invert": false, - "metadata_JSON": "" + } }, { "name": "coinbase_ws", - "off_chain_ticker": "POL-USD", - "normalize_by_pair": null, - "invert": false, - "metadata_JSON": "" + "off_chain_ticker": "POL-USD" }, { "name": "crypto_dot_com_ws", - "off_chain_ticker": "POL_USD", - "normalize_by_pair": null, - "invert": false, - "metadata_JSON": "" + "off_chain_ticker": "POL_USD" }, { "name": "okx_ws", @@ -2839,9 +2838,7 @@ const GenesisState = `{ "normalize_by_pair": { "Base": "USDT", "Quote": "USD" - }, - "invert": false, - "metadata_JSON": "" + } } ] }, @@ -3993,7 +3990,7 @@ const GenesisState = `{ "pair": "LINK-USD" }, { - "exchange_config_json": "{\"exchanges\":[{\"exchangeName\":\"Bybit\",\"ticker\":\"POLUSDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"CoinbasePro\",\"ticker\":\"POL-USD\"},{\"exchangeName\":\"CryptoCom\",\"ticker\":\"POL_USD\"},{\"exchangeName\":\"Okx\",\"ticker\":\"POL-USDT\",\"adjustByMarket\":\"USDT-USD\"}]}", + "exchange_config_json": "{\"exchanges\":[{\"exchangeName\":\"Binance\",\"ticker\":\"POLUSDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Bybit\",\"ticker\":\"POLUSDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"CoinbasePro\",\"ticker\":\"POL-USD\"},{\"exchangeName\":\"CryptoCom\",\"ticker\":\"POL_USD\"},{\"exchangeName\":\"Okx\",\"ticker\":\"POL-USDT\",\"adjustByMarket\":\"USDT-USD\"}]}", "exponent": -10, "id": 3, "min_exchanges": 1, diff --git a/protocol/testutil/daemons/pricefeed/exchange_config/testnet_exchange_market_config.go b/protocol/testutil/daemons/pricefeed/exchange_config/testnet_exchange_market_config.go index 9260606c37..b785ae00bf 100644 --- a/protocol/testutil/daemons/pricefeed/exchange_config/testnet_exchange_market_config.go +++ b/protocol/testutil/daemons/pricefeed/exchange_config/testnet_exchange_market_config.go @@ -30,6 +30,10 @@ var ( Ticker: "LINKUSDT", AdjustByMarket: newMarketIdWithValue(MARKET_USDT_USD), }, + MARKET_POL_USD: { + Ticker: "POLUSDT", + AdjustByMarket: newMarketIdWithValue(MARKET_USDT_USD), + }, MARKET_CRV_USD: { Ticker: "CRVUSDT", AdjustByMarket: newMarketIdWithValue(MARKET_USDT_USD), From 451bab9a446c1034fa28ac51e508260c45ecd461 Mon Sep 17 00:00:00 2001 From: Chenyao Yu <4844716+chenyaoy@users.noreply.github.com> Date: Wed, 16 Oct 2024 16:33:18 -0400 Subject: [PATCH 4/5] fix --- protocol/scripts/genesis/sample_pregenesis.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/protocol/scripts/genesis/sample_pregenesis.json b/protocol/scripts/genesis/sample_pregenesis.json index 7f15e44022..d1889af4fa 100644 --- a/protocol/scripts/genesis/sample_pregenesis.json +++ b/protocol/scripts/genesis/sample_pregenesis.json @@ -2280,7 +2280,7 @@ "POL/USD": { "provider_configs": [ { - "binance_ws", + "name": "binance_ws", "normalize_by_pair": { "Base": "USDT", "Quote": "USD" @@ -2318,8 +2318,8 @@ "Quote": "USD" }, "decimals": 10, - "min_provider_count": 3, - "enabled": true + "enabled": true, + "min_provider_count": 3 } }, "SEI/USD": { @@ -3420,7 +3420,7 @@ "pair": "LINK-USD" }, { - "exchange_config_json": "{\"exchanges\":[{\"exchangeName\":\"Bybit\",\"ticker\":\"POLUSDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"CoinbasePro\",\"ticker\":\"POL-USD\"},{\"exchangeName\":\"CryptoCom\",\"ticker\":\"POL_USD\"},{\"exchangeName\":\"Okx\",\"ticker\":\"POL-USDT\",\"adjustByMarket\":\"USDT-USD\"}]}", + "exchange_config_json": "{\"exchanges\":[{\"exchangeName\":\"Binance\",\"ticker\":\"POLUSDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Bybit\",\"ticker\":\"POLUSDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"CoinbasePro\",\"ticker\":\"POL-USD\"},{\"exchangeName\":\"CryptoCom\",\"ticker\":\"POL_USD\"},{\"exchangeName\":\"Okx\",\"ticker\":\"POL-USDT\",\"adjustByMarket\":\"USDT-USD\"}]}", "exponent": -10, "id": 3, "min_exchanges": 3, From aebe9327aac9fb8978578e172d99d923469647d0 Mon Sep 17 00:00:00 2001 From: Chenyao Yu <4844716+chenyaoy@users.noreply.github.com> Date: Thu, 17 Oct 2024 10:16:02 -0400 Subject: [PATCH 5/5] fix --- protocol/testutil/constants/genesis.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocol/testutil/constants/genesis.go b/protocol/testutil/constants/genesis.go index ec81ede004..9061527728 100644 --- a/protocol/testutil/constants/genesis.go +++ b/protocol/testutil/constants/genesis.go @@ -2803,8 +2803,8 @@ const GenesisState = `{ "Base": "POL", "Quote": "USD" }, - "decimals": "10", - "min_provider_count": "3", + "decimals": 10, + "min_provider_count": 3, "enabled": true }, "provider_configs": [