-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename MATIC to POL in genesis and tests #2503
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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 |
---|---|---|
|
@@ -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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Issue Found: Remaining References to MATIC in Several instances of "MATIC" are still present in 🔗 Analysis chainLGTM: Market configuration updated from MATIC to POL. The market configuration has been correctly updated from MATIC to POL in the To ensure consistency across the codebase, please run the following script to check for any remaining references to MATIC: If the script returns any results, please ensure that those occurrences are also updated to POL where appropriate. 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Check for any remaining references to MATIC in the codebase.
# Search for MATIC in all files, excluding this PR's changes
git grep -i "MATIC" -- ':!protocol/daemons/pricefeed/client/handler/exchange_query_handler_test.go'
# Search for MARKET_MATIC in all files
git grep -i "MARKET_MATIC"
# Check if there are any MATIC-related constants that need to be renamed
git grep -i "MaticUsd"
Length of output: 13958 |
||
marketExponents[exchange_config.MARKET_CRV_USD] = constants.CrvUsdExponent | ||
marketExponents[unavailableId] = unavailableExponent | ||
return marketExponents | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codebase verification
Issues found: Remaining
MATIC
references detected in the codebase.The verification script identified multiple instances of
MATIC
that were not renamed toPOL
. Please address these remaining references to ensure a complete and consistent rename throughout the codebase.CurrencyPair: slinkytypes.CurrencyPair{Base: "MATIC", Quote: "USD"}
OffChainTicker: "MATICUSDT"
genesis
related toPOL/USD
still referenceMATIC
.🔗 Analysis chain
LGTM: POL test case added correctly.
The new test case for POL exchange config has been added correctly, replacing the previous MATIC test case. This change aligns with the PR objective of renaming MATIC to POL.
To ensure consistency, please run the following script to verify that all MATIC references have been replaced with POL throughout the codebase:
Please review the output of this script to ensure that:
pol_exchange_config.json
file exists in the appropriate location.🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 492
Script:
Length of output: 7200