Skip to content

feat(driver): implement settlement notifications for third party liquidity sources #3452

@markin-io

Description

@markin-io

Problem

We at Liquorice providing PMM (Private Market Maker) liquidity to solvers.
Whenever PMMs providing firm quotes, they need to know as early as possible that their quote will be used for the settlement. This is crucial for PMM's risk management and leads to better pricing.

However, right now PMMs can only know this information after settlement already occurred on-chain, and if they were to know this right before the settlement, it would improve situation drastically.

Suggested solution

Implement pre-settlement notifications in CoW Driver that are sent directly to the configured list of external liquidity sources

Pull Request with the implementation #3451

Alternatives considered

An alternative solution would be using existing notification logic between Driver and Solver engines.
This scenario is more complicated and unreliable since it requires integration with each solver engine individually.

Additional context

About Liquorice

Acceptance criteria

  • Implement notification logic in CoW Driver
  • Implement corresponding integration and e2e tests

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions