Skip to content

Commit 8250995

Browse files
committed
fix error
1 parent e9882d9 commit 8250995

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

apps/fortuna/src/keeper.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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(),

0 commit comments

Comments
 (0)