File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -339,9 +339,12 @@ pub async fn run_keeper_threads(
339339 // fee percentage to be higher on that specific chain.
340340 chain_eth_config. gas_limit ,
341341 // NOTE: unwrap() here so we panic early if someone configures these values below -100.
342- u64:: try_from ( 100 + chain_eth_config. min_profit_pct ) . unwrap ( ) ,
343- u64:: try_from ( 100 + chain_eth_config. target_profit_pct ) . unwrap ( ) ,
344- u64:: try_from ( 100 + chain_eth_config. max_profit_pct ) . unwrap ( ) ,
342+ u64:: try_from ( 100 + chain_eth_config. min_profit_pct )
343+ . expect ( "min_profit_pct must be >= -100" ) ,
344+ u64:: try_from ( 100 + chain_eth_config. target_profit_pct )
345+ . expect ( "target_profit_pct must be >= -100" ) ,
346+ u64:: try_from ( 100 + chain_eth_config. max_profit_pct )
347+ . expect ( "max_profit_pct must be >= -100" ) ,
345348 chain_eth_config. fee ,
346349 )
347350 . in_current_span ( ) ,
You can’t perform that action at this time.
0 commit comments