Skip to content

Commit

Permalink
chore: Additional defaults for zkSync (#856)
Browse files Browse the repository at this point in the history
  • Loading branch information
pxrl committed Aug 7, 2023
1 parent 2727ef9 commit cb01201
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/clients/ProfitClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ export const GAS_TOKEN_BY_CHAIN_ID: { [chainId: number]: string } = {
10: WETH,
137: MATIC,
288: WETH,
324: WETH,
42161: WETH,
// Testnets:
5: WETH,
280: WETH,
421613: WETH,
};
// TODO: Make this dynamic once we support chains with gas tokens that have different decimals.
Expand Down
2 changes: 2 additions & 0 deletions src/common/Constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export const DATAWORKER_FAST_LOOKBACK: { [chainId: number]: number } = {
10: 1382400,
137: 138240,
288: 11520,
324: 4 * 24 * 60 * 60,
42161: 1382400,
};

Expand Down Expand Up @@ -120,6 +121,7 @@ export const BUNDLE_END_BLOCK_BUFFERS = {
10: 300, // At a conservative 1 TPS, 5 mins = 300 seconds = 300 transactions. And 1 block per txn.
137: 750, // At 2s/block, 25 mins = 25 * 60 / 2 = 750 blocks
288: 5, // At 60s/block, 50 blocks = 25 mins
324: 1500, // At 1s/block, 25 mins = 1500 blocks.
42161: 300, // At a conservative 1 TPS, 5 mins = 300 seconds = 300 transactions. And 1 block per txn.
// Testnets:
5: 0,
Expand Down

0 comments on commit cb01201

Please sign in to comment.