Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(fortuna): Add a couple more config values #2251

Merged
merged 6 commits into from
Jan 14, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix error
jayantk committed Jan 14, 2025
commit 82509955cef42d7083209b429da79b27515fc0a9
9 changes: 6 additions & 3 deletions apps/fortuna/src/keeper.rs
Original file line number Diff line number Diff line change
@@ -339,9 +339,12 @@ pub async fn run_keeper_threads(
// fee percentage to be higher on that specific chain.
chain_eth_config.gas_limit,
// NOTE: unwrap() here so we panic early if someone configures these values below -100.
u64::try_from(100 + chain_eth_config.min_profit_pct).unwrap(),
u64::try_from(100 + chain_eth_config.target_profit_pct).unwrap(),
u64::try_from(100 + chain_eth_config.max_profit_pct).unwrap(),
u64::try_from(100 + chain_eth_config.min_profit_pct)
.expect("min_profit_pct must be >= -100"),
u64::try_from(100 + chain_eth_config.target_profit_pct)
.expect("target_profit_pct must be >= -100"),
u64::try_from(100 + chain_eth_config.max_profit_pct)
.expect("max_profit_pct must be >= -100"),
chain_eth_config.fee,
)
.in_current_span(),