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

Price improvemenet fee policy autopilot argument #2377

Merged
merged 4 commits into from
Feb 7, 2024

Conversation

squadgazzz
Copy link
Contributor

Description

Closes task n1 from #2287

@squadgazzz squadgazzz marked this pull request as ready for review February 6, 2024 18:29
@squadgazzz squadgazzz requested a review from a team as a code owner February 6, 2024 18:29
@@ -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
Copy link
Contributor

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.

@@ -407,6 +417,22 @@ impl FromStr for FeePolicyKind {
max_volume_factor,
})
}
"price-improvement" => {
Copy link
Contributor

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.

@squadgazzz squadgazzz enabled auto-merge (squash) February 7, 2024 13:34
@squadgazzz squadgazzz merged commit fa1cc57 into main Feb 7, 2024
9 checks passed
@squadgazzz squadgazzz deleted the 2287/autopilot-argument branch February 7, 2024 13:39
@github-actions github-actions bot locked and limited conversation to collaborators Feb 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants