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: Market orders protocol fee #2548

Closed
squadgazzz opened this issue Mar 20, 2024 · 0 comments · Fixed by #2550
Closed

feat: Market orders protocol fee #2548

squadgazzz opened this issue Mar 20, 2024 · 0 comments · Fixed by #2550
Assignees
Labels
E:4.2 Protocol Fee Implementation See https://github.com/cowprotocol/pm/issues/29 for details

Comments

@squadgazzz
Copy link
Contributor

squadgazzz commented Mar 20, 2024

Problem

More context: https://cowservices.slack.com/archives/C05N1FNP3MX/p1710852670240979

Suggested solution

Refactor the current policy fee config to split into 2 optional params: for market and limit orders.

Acceptance criteria

Another e2e test should probably needed to covert the new logic.

@squadgazzz squadgazzz added the E:4.2 Protocol Fee Implementation See https://github.com/cowprotocol/pm/issues/29 for details label Mar 20, 2024
@squadgazzz squadgazzz self-assigned this Mar 20, 2024
@squadgazzz squadgazzz changed the title feat: In-market orders protocol fee feat: market orders protocol fee Mar 20, 2024
@squadgazzz squadgazzz changed the title feat: market orders protocol fee feat: Market orders protocol fee Mar 20, 2024
squadgazzz added a commit that referenced this issue Mar 25, 2024
# Description
Separate protocol fees config for in and out of market orders.

## How to test
`protocol_fee.rs` tests work with in-market orders. Removing
`in_market_fee_policy_kind` makes the tests fail.


## Related Issues
Fixes #2548
fleupold pushed a commit that referenced this issue Mar 26, 2024
# Description
Separate protocol fees config for in and out of market orders.

## How to test
`protocol_fee.rs` tests work with in-market orders. Removing
`in_market_fee_policy_kind` makes the tests fail.


## Related Issues
Fixes #2548
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E:4.2 Protocol Fee Implementation See https://github.com/cowprotocol/pm/issues/29 for details
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant