add block interval for zkevm polygon
This commit is contained in:
parent
a04a623094
commit
e6c376ae94
@ -252,6 +252,7 @@ impl AppConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// TODO: we can't query a provider because we need this to create a provider
|
/// 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 {
|
pub fn average_block_interval(chain_id: u64) -> Duration {
|
||||||
match chain_id {
|
match chain_id {
|
||||||
// ethereum
|
// ethereum
|
||||||
@ -266,6 +267,8 @@ pub fn average_block_interval(chain_id: u64) -> Duration {
|
|||||||
137 => Duration::from_secs(2),
|
137 => Duration::from_secs(2),
|
||||||
// fantom
|
// fantom
|
||||||
250 => Duration::from_secs(1),
|
250 => Duration::from_secs(1),
|
||||||
|
// zkevm polygon
|
||||||
|
1101 => Duration::from_secs(7),
|
||||||
// base
|
// base
|
||||||
8453 => Duration::from_secs(2),
|
8453 => Duration::from_secs(2),
|
||||||
// arbitrum
|
// arbitrum
|
||||||
|
Loading…
Reference in New Issue
Block a user