Skip to content
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

Update MATIC special cases to POL #837

Merged
merged 1 commit into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/ethereum/fees/feeProviders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ export const fetchFeesFromEvmGasStation = async (
const jsonObj = await result.json()

const fees = asEthGasStation(jsonObj)
// Special case for MATIC fast and fastest being equivalent from gas station
if (currencyInfo.currencyCode === 'MATIC') {
// Special case for POL fast and fastest being equivalent from gas station
if (currencyInfo.currencyCode === 'POL') {
// Since the later code assumes EthGasStation's
// greater-by-a-factor-of-ten gas prices, we need to multiply the GWEI
// from Polygon Gas Station by 10 so they conform.
Expand Down Expand Up @@ -311,7 +311,7 @@ export const getEvmScanApiKey = (
)
return bscscanApiKey
}
if (currencyCode === 'MATIC' && polygonscanApiKey != null) {
if (currencyCode === 'POL' && polygonscanApiKey != null) {
log.warn(
"INIT OPTION 'polygonscanApiKey' IS DEPRECATED. USE 'evmScanApiKey' INSTEAD"
)
Expand Down
2 changes: 1 addition & 1 deletion src/ethereum/networkAdapters/RpcAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ export class RpcAdapter extends NetworkAdapter<RpcAdapterConfig> {
const ethBalCheckerContract = this.config.ethBalCheckerContract
if (ethBalCheckerContract == null) return tokenBal

// Address for querying ETH balance on ETH network, MATIC on MATIC, etc.
// Address for querying ETH balance on ETH network, POL on POL, etc.
const mainnetAssetAddr = '0x0000000000000000000000000000000000000000'
const balanceQueryAddrs = [mainnetAssetAddr]
for (const rawToken of Object.values(this.ethEngine.allTokensMap)) {
Expand Down
Loading