cowprotocol / cow-amm

An automated market maker running on top of CoW Protocol
17 stars 5 forks source link

feat: helper contract #82

Closed mfw78 closed 4 months ago

mfw78 commented 4 months ago

Description

This PR provides a helper contract that may be utilised by entities who are indexing ConstantProduct CoW AMMs, allowing them to generate a canonical order, corresponding pre-interaction and signature.

In providing the helper contract, a snapshot of legacy (safe-based) CoW AMMs is provided for Ethereum mainnet and Gnosis Chain. Legacy helper logic is separated from the standalone helper contract such to provide as clean as possible a reference implementation for AMMs implementing the ICOWAMMPoolHelper interface.

Testing of the helper contract is handled in #83.

Tasks

Replaces #72 Closes #76 Closes #77