Skip to content

Commit

Permalink
feat: Update constants for Polyon Mumbai
Browse files Browse the repository at this point in the history
Note - we still need to bump contracts-v2 to get Mumbai contract
addresses.
  • Loading branch information
pxrl committed Sep 27, 2023
1 parent 632ead1 commit d7a26e9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/clients/ProfitClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ export const GAS_TOKEN_BY_CHAIN_ID: { [chainId: number]: string } = {
// Testnets:
5: WETH,
280: WETH,
421613: WETH,
80001: MATIC,
84531: WETH,
421613: WETH,
};
// TODO: Make this dynamic once we support chains with gas tokens that have different decimals.
const GAS_TOKEN_DECIMALS = 18;
Expand All @@ -68,8 +69,9 @@ const QUERY_HANDLERS: {
// Testnets:
5: relayFeeCalculator.EthereumQueries,
280: relayFeeCalculator.zkSyncGoerliQueries,
421613: relayFeeCalculator.ArbitrumQueries,
80001: relayFeeCalculator.PolygonQueries,
84531: relayFeeCalculator.BaseGoerliQueries,
421613: relayFeeCalculator.ArbitrumQueries,
};

const { PriceClient } = priceClient;
Expand Down
9 changes: 8 additions & 1 deletion src/common/Constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export const DEFAULT_MIN_DEPOSIT_CONFIRMATIONS = {
// Testnets:
5: 0,
280: 0,
80001: 0,
84531: 0,
421613: 0,
};
Expand All @@ -76,8 +77,9 @@ export const MIN_DEPOSIT_CONFIRMATIONS: { [threshold: number | string]: { [chain
// Testnets:
5: 0,
280: 0,
421613: 0,
80001: 0,
84531: 0,
421613: 0,
},
100: {
1: 16, // Mainnet reorgs are rarely > 4 blocks in depth so this is a very safe buffer
Expand All @@ -90,6 +92,7 @@ export const MIN_DEPOSIT_CONFIRMATIONS: { [threshold: number | string]: { [chain
// Testnets:
5: 0,
280: 0,
80001: 0,
84531: 0,
421613: 0,
},
Expand All @@ -114,6 +117,7 @@ export const CHAIN_MAX_BLOCK_LOOKBACK = {
// Testnets:
5: 10000,
280: 10000,
80001: 10000,
84531: 10000,
421613: 10000,
};
Expand All @@ -129,6 +133,7 @@ export const BUNDLE_END_BLOCK_BUFFERS = {
// Testnets:
5: 0,
280: 0,
80001: 0,
84531: 0,
421613: 0,
};
Expand Down Expand Up @@ -163,6 +168,7 @@ export const MAX_REORG_DISTANCE: { [chainId: number]: number } = {
// Testnets:
5: 0,
280: 0,
80001: 0,
84531: 0,
421613: 0,
};
Expand Down Expand Up @@ -192,6 +198,7 @@ export const multicall3Addresses = {
288: "0xcA11bde05977b3631167028862bE2a173976CA11",
8453: "0xcA11bde05977b3631167028862bE2a173976CA11",
42161: "0xcA11bde05977b3631167028862bE2a173976CA11",
80001: "0xcA11bde05977b3631167028862bE2a173976CA11",
84531: "0xcA11bde05977b3631167028862bE2a173976CA11",
421613: "0xcA11bde05977b3631167028862bE2a173976CA11",
};
Expand Down

0 comments on commit d7a26e9

Please sign in to comment.