openzeppelin_relayer::utils

Function get_resubmit_timeout_for_speed

Source
pub fn get_resubmit_timeout_for_speed(speed: &Option<Speed>) -> i64
Expand description

Gets the resubmit timeout for a given speed Returns the timeout in milliseconds based on the speed:

  • SafeLow: 10 minutes
  • Average: 5 minutes
  • Fast: 3 minutes
  • Fastest: 2 minutes If no speed is provided, uses the default transaction speed