Skip to content

Commit

Permalink
[SKI-45] Remove MEXC exchange from dev/staging environments (#1611)
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher-Li authored Jun 5, 2024
1 parent dba7cb6 commit 4be6987
Show file tree
Hide file tree
Showing 35 changed files with 35 additions and 327 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package constants
import (
"encoding/json"
"fmt"
"github.com/dydxprotocol/v4-chain/protocol/testutil/daemons/pricefeed/exchange_config"
"sort"

"github.com/dydxprotocol/v4-chain/protocol/testutil/daemons/pricefeed/exchange_config"

"github.com/dydxprotocol/v4-chain/protocol/daemons/pricefeed/client/constants/exchange_common"
"github.com/dydxprotocol/v4-chain/protocol/daemons/pricefeed/client/types"
)
Expand All @@ -15,8 +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.
// Ok to drop this to 5 for some markets if needed, but 6 is better.
MinimumRequiredExchangesPerMarket = 6
MinimumRequiredExchangesPerMarket = 5
)

// GenerateExchangeConfigJson generates human-readable exchange config json for each market based on the contents
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@
"ticker": "ADA-USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Mexc",
"ticker": "ADA_USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Okx",
"ticker": "ADA-USDT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@
"ticker": "APE-USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Mexc",
"ticker": "APE_USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Okx",
"ticker": "APE-USDT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@
"ticker": "APT-USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Mexc",
"ticker": "APT_USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Okx",
"ticker": "APT-USDT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@
"ticker": "ARB-USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Mexc",
"ticker": "ARB_USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Okx",
"ticker": "ARB-USDT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@
"ticker": "ATOM-USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Mexc",
"ticker": "ATOM_USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Okx",
"ticker": "ATOM-USDT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@
"ticker": "BCH-USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Mexc",
"ticker": "BCH_USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Okx",
"ticker": "BCH-USDT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@
"ticker": "BLUR-USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Mexc",
"ticker": "BLUR_USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Okx",
"ticker": "BLUR-USDT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@
"ticker": "BTC-USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Mexc",
"ticker": "BTC_USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Okx",
"ticker": "BTC-USDT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@
"exchangeName": "Kraken",
"ticker": "COMPUSD"
},
{
"exchangeName": "Mexc",
"ticker": "COMP_USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Okx",
"ticker": "COMP-USDT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@
"ticker": "CRV-USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Mexc",
"ticker": "CRV_USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Okx",
"ticker": "CRV-USDT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@
"ticker": "DOGE-USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Mexc",
"ticker": "DOGE_USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Okx",
"ticker": "DOGE-USDT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@
"ticker": "DOT-USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Mexc",
"ticker": "DOT_USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Okx",
"ticker": "DOT-USDT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@
"ticker": "DYDX-USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Mexc",
"ticker": "DYDX_USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Okx",
"ticker": "DYDX-USDT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@
"ticker": "ETC-USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Mexc",
"ticker": "ETC_USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Okx",
"ticker": "ETC-USDT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@
"ticker": "ETH-USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Mexc",
"ticker": "ETH_USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Okx",
"ticker": "ETH-USDT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@
"exchangeName": "Kraken",
"ticker": "FILUSD"
},
{
"exchangeName": "Mexc",
"ticker": "FIL_USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Okx",
"ticker": "FIL-USDT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@
"ticker": "LDO-USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Mexc",
"ticker": "LDO_USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Okx",
"ticker": "LDO-USDT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@
"ticker": "LINK-USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Mexc",
"ticker": "LINK_USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Okx",
"ticker": "LINK-USDT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@
"ticker": "LTC-USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Mexc",
"ticker": "LTC_USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Okx",
"ticker": "LTC-USDT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@
"ticker": "MATIC-USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Mexc",
"ticker": "MATIC_USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Okx",
"ticker": "MATIC-USDT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@
"ticker": "MKR-USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Mexc",
"ticker": "MKR_USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Okx",
"ticker": "MKR-USDT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@
"ticker": "NEAR-USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Mexc",
"ticker": "NEAR_USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Okx",
"ticker": "NEAR-USDT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@
"ticker": "OP-USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Mexc",
"ticker": "OP_USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Okx",
"ticker": "OP-USDT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@
"ticker": "PEPE-USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Mexc",
"ticker": "PEPE_USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Okx",
"ticker": "PEPE-USDT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@
"exchangeName": "Kucoin",
"ticker": "SEI-USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Mexc",
"ticker": "SEI_USDT",
"adjustByMarket": "USDT-USD"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@
"ticker": "SHIB-USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Mexc",
"ticker": "SHIB_USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Okx",
"ticker": "SHIB-USDT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@
"ticker": "SOL-USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Mexc",
"ticker": "SOL_USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Okx",
"ticker": "SOL-USDT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@
"ticker": "SUI-USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Mexc",
"ticker": "SUI_USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Okx",
"ticker": "SUI-USDT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@
"ticker": "TRX-USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Mexc",
"ticker": "TRX_USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Okx",
"ticker": "TRX-USDT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@
"ticker": "WLD-USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Mexc",
"ticker": "WLD_USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Okx",
"ticker": "WLD-USDT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@
"ticker": "XLM-USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Mexc",
"ticker": "XLM_USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Okx",
"ticker": "XLM-USDT",
Expand Down
Loading

0 comments on commit 4be6987

Please sign in to comment.