-
Notifications
You must be signed in to change notification settings - Fork 157
feat: Remove uniform clearing prices #3396
Copy link
Copy link
Open
Labels
Description
Problem
With the new mechanism described in CIP-67, uniform clearing prices are removed from the mechanism. But these clearing prices are currently still required on APIs and they are post-processed with derived values stored in the data base (e.g. executed fee amounts).
Suggested solution
Uniform clearing should be removed from the code base.
Additional context
Uniform clearing prices do appear in a few places and it is not obvious how easy it is to remove them.
- They appear in the autopilot<>driver API. Removing them would be a breaking change but should be easy to handle.
- They appear in the driver<>solvre API. Removing them would be a breaking change and a bit more difficult to handle.
- Fee amounts are currently used in the solver accounting.
- There is at least one external dependence in the form of the front end using derived fee amounts to show to users.
- They might appear in other places as well. Generally, though, it should be safe to work with executed amounts instead of clearing prices for
Acceptance criteria
- Uniform clearing should be removed from the autopilot.
- Uniform clearing prices should ideally also be removed from the reference driver. But that has lower priority.
Reactions are currently unavailable