add block times for optimism and base

This commit is contained in:
Bryan Stitt 2023-09-18 10:54:55 -07:00
parent ac2c053519
commit c72db731bd

@ -258,12 +258,16 @@ pub fn average_block_interval(chain_id: u64) -> Duration {
1 => Duration::from_secs(12), 1 => Duration::from_secs(12),
// ethereum-goerli // ethereum-goerli
5 => Duration::from_secs(12), 5 => Duration::from_secs(12),
// optimism
10 => Duration::from_secs(2),
// binance // binance
56 => Duration::from_secs(3), 56 => Duration::from_secs(3),
// polygon // polygon
137 => Duration::from_secs(2), 137 => Duration::from_secs(2),
// fantom // fantom
250 => Duration::from_secs(1), 250 => Duration::from_secs(1),
// base
8453 => Duration::from_secs(2),
// arbitrum // arbitrum
42161 => Duration::from_millis(500), 42161 => Duration::from_millis(500),
// anything else // anything else