Skip to content

Commit

Permalink
Rename MATIC to POL in genesis and tests (#2503)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyaoy authored and adamfraser committed Nov 20, 2024
1 parent 3db9b39 commit cc021ff
Show file tree
Hide file tree
Showing 19 changed files with 248 additions and 3,876 deletions.
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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,
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"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"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down
Loading

0 comments on commit cc021ff

Please sign in to comment.