diff --git a/crates/autopilot/src/arguments.rs b/crates/autopilot/src/arguments.rs index c2fcfbd199..58cae5d8e0 100644 --- a/crates/autopilot/src/arguments.rs +++ b/crates/autopilot/src/arguments.rs @@ -170,7 +170,7 @@ pub struct Arguments { pub additional_deadline_for_rewards: usize, /// Cap used for CIP20 score calculation. Defaults to 0.01 ETH. - #[clap(long, env, default_value = "10000000000000000")] + #[clap(long, env, default_value = "0.01", value_parser = shared::arguments::wei_from_ether)] pub score_cap: U256, /// The amount of time that the autopilot waits looking for a settlement diff --git a/crates/solver/src/arguments.rs b/crates/solver/src/arguments.rs index 21bfd3bffa..dbe434bb7b 100644 --- a/crates/solver/src/arguments.rs +++ b/crates/solver/src/arguments.rs @@ -320,7 +320,7 @@ pub struct Arguments { pub risk_params: risk_computation::Arguments, /// Cap used for CIP20 score calculation. Defaults to 0.01 ETH. - #[clap(long, env, default_value = "10000000000000000")] + #[clap(long, env, default_value = "0.01", value_parser = shared::arguments::wei_from_ether)] pub score_cap: U256, /// Should we skip settlements with non-positive score for solver