add block interval for zkevm polygon

This commit is contained in:
Bryan Stitt 2023-09-18 15:21:02 -07:00
parent a04a623094
commit e6c376ae94

View File

@ -252,6 +252,7 @@ impl AppConfig {
}
/// TODO: we can't query a provider because we need this to create a provider
/// TODO: cache this
pub fn average_block_interval(chain_id: u64) -> Duration {
match chain_id {
// ethereum
@ -266,6 +267,8 @@ pub fn average_block_interval(chain_id: u64) -> Duration {
137 => Duration::from_secs(2),
// fantom
250 => Duration::from_secs(1),
// zkevm polygon
1101 => Duration::from_secs(7),
// base
8453 => Duration::from_secs(2),
// arbitrum