chore: Allow configuring contracts which are exempt from protocol fees #2461
Labels
E:4.2 Protocol Fee Implementation
See https://github.com/cowprotocol/pm/issues/29 for details
help wanted
Extra attention is needed
Background
Our CoW AMM experiment is placing a lot of limit orders, some of which are being classified as out of market orders (mainly because they are partially fillable and usually a bit larger than what is currently fillable at the specified price).
It therefore pays significant protocol fees, impacting it's own PnL (cf. https://cowservices.slack.com/archives/C067ZLV8U13/p1709148518771459). In the next phase of the experiment, we want solvers to settle CoW AMM orders as JIT liquidity (thus not paying any protocol fee) and will think about monetizing this type of order separately.
Details
While it would be nice to index all CoW AMM orders automatically and exempt them from fees, I think the easiest and most pragmatic way for now would be to allow for a list of exempt traders (possibly with a discount factor).
In the future, we may have on-chain registries and more complicated logic for fee discounts (e.g. holding X CoW token results in X fee discount), but we can cross that bridge when we get there.
Acceptance criteria
https://explorer.cow.fi/address/0xBEEf5aFE88eF73337e5070aB2855d37dBF5493A4 no longer pays any protocol fees.
The text was updated successfully, but these errors were encountered: