Skip to content

Commit

Permalink
Fix x/prices exchange config (#664)
Browse files Browse the repository at this point in the history
* add NEAR exchange

* fix OKX LDO USDT
  • Loading branch information
yang-dydx authored Oct 19, 2023
1 parent 26463ac commit 3e82bb3
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
},
{
"exchangeName": "Okx",
"ticker": "LDO-USDT"
"ticker": "LDO-USDT",
"adjustByMarket": "USDT-USD"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
"exchangeName": "Mexc",
"ticker": "NEAR_USDT",
"adjustByMarket": "USDT-USD"
},
{
"exchangeName": "Okx",
"ticker": "NEAR-USDT",
"adjustByMarket": "USDT-USD"
}
]
}
4 changes: 2 additions & 2 deletions protocol/scripts/genesis/sample_pregenesis.json
Original file line number Diff line number Diff line change
Expand Up @@ -1312,7 +1312,7 @@
"pair": "TRX-USD"
},
{
"exchange_config_json": "{\"exchanges\":[{\"exchangeName\":\"Binance\",\"ticker\":\"NEARUSDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"CoinbasePro\",\"ticker\":\"NEAR-USD\"},{\"exchangeName\":\"Gate\",\"ticker\":\"NEAR_USDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Huobi\",\"ticker\":\"nearusdt\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Kucoin\",\"ticker\":\"NEAR-USDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Mexc\",\"ticker\":\"NEAR_USDT\",\"adjustByMarket\":\"USDT-USD\"}]}",
"exchange_config_json": "{\"exchanges\":[{\"exchangeName\":\"Binance\",\"ticker\":\"NEARUSDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"CoinbasePro\",\"ticker\":\"NEAR-USD\"},{\"exchangeName\":\"Gate\",\"ticker\":\"NEAR_USDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Huobi\",\"ticker\":\"nearusdt\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Kucoin\",\"ticker\":\"NEAR-USDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Mexc\",\"ticker\":\"NEAR_USDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Okx\",\"ticker\":\"NEAR-USDT\",\"adjustByMarket\":\"USDT-USD\"}]}",
"exponent": -9,
"id": 16,
"min_exchanges": 3,
Expand Down Expand Up @@ -1392,7 +1392,7 @@
"pair": "BLUR-USD"
},
{
"exchange_config_json": "{\"exchanges\":[{\"exchangeName\":\"Binance\",\"ticker\":\"LDOUSDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"CoinbasePro\",\"ticker\":\"LDO-USD\"},{\"exchangeName\":\"Kraken\",\"ticker\":\"LDOUSD\"},{\"exchangeName\":\"Kucoin\",\"ticker\":\"LDO-USDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Mexc\",\"ticker\":\"LDO_USDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Okx\",\"ticker\":\"LDO-USDT\"}]}",
"exchange_config_json": "{\"exchanges\":[{\"exchangeName\":\"Binance\",\"ticker\":\"LDOUSDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"CoinbasePro\",\"ticker\":\"LDO-USD\"},{\"exchangeName\":\"Kraken\",\"ticker\":\"LDOUSD\"},{\"exchangeName\":\"Kucoin\",\"ticker\":\"LDO-USDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Mexc\",\"ticker\":\"LDO_USDT\",\"adjustByMarket\":\"USDT-USD\"},{\"exchangeName\":\"Okx\",\"ticker\":\"LDO-USDT\",\"adjustByMarket\":\"USDT-USD\"}]}",
"exponent": -9,
"id": 26,
"min_exchanges": 3,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,8 @@ var (
AdjustByMarket: newMarketIdWithValue(MARKET_USDT_USD),
},
MARKET_LDO_USD: {
Ticker: "LDO-USDT",
Ticker: "LDO-USDT",
AdjustByMarket: newMarketIdWithValue(MARKET_USDT_USD),
},
MARKET_USDT_USD: {
Ticker: "USDC-USDT",
Expand All @@ -814,6 +815,10 @@ var (
Ticker: "XLM-USDT",
AdjustByMarket: newMarketIdWithValue(MARKET_USDT_USD),
},
MARKET_NEAR_USD: {
Ticker: "NEAR-USDT",
AdjustByMarket: newMarketIdWithValue(MARKET_USDT_USD),
},
},
},
exchange_common.EXCHANGE_ID_MEXC: {
Expand Down

0 comments on commit 3e82bb3

Please sign in to comment.