-
Notifications
You must be signed in to change notification settings - Fork 82
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
Price improvemenet fee policy autopilot argument #2377
Conversation
@@ -380,6 +387,9 @@ impl FeePolicy { | |||
pub enum FeePolicyKind { | |||
/// How much of the order's surplus should be taken as a protocol fee. | |||
Surplus { factor: f64, max_volume_factor: f64 }, | |||
/// How much of the order's price improvement should be taken as a protocol |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be good to define price improvement
since this is a bit nuanced.
crates/autopilot/src/arguments.rs
Outdated
@@ -407,6 +417,22 @@ impl FromStr for FeePolicyKind { | |||
max_volume_factor, | |||
}) | |||
} | |||
"price-improvement" => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we currently tend to prefer camelCase
over all so it makes sense to also use it here IMO.
Description
Closes task n1 from #2287