smart-contracts/backlog/tasks/task-6 - Integrate-CoW-Prot...

1.7 KiB

id title status assignee created_date labels dependencies references documentation priority
TASK-6 Integrate CoW Protocol for MEV-Protected Community Token Trading To Do
2026-04-03 21:40
solidity
cow-protocol
mev
TASK-5
/home/jeffe/Github/payment-infra/contracts/
backlog/docs/CoW_Protocol_Research.md
backlog/docs/CoW_Integration_Summary.md
medium

Description

Wire up existing CoW Protocol integration from payment-infra for MEV-protected batch auction trading of community tokens.

Existing contracts (payment-infra):

  • BondingCurveAdapter.sol — pre-interaction hook for GPv2Settlement
  • MycoConditionalOrder.sol — IConditionalOrder handler for ComposableCoW
  • Plus: MycoLimitOrder, MycoTWAPOrder, MycoDCAOrder variants

Work needed:

  1. Port/adapt these contracts to work with the new enhanced bonding curve (TASK-5)
  2. Register Watch Tower for automated conditional order monitoring
  3. Test on Base Sepolia with GPv2Settlement (0x9008D19f58AAbD9eD0D60971565AA8510560ab41)
  4. Ensure tranche tokens (myUSD-S, myUSD-M) are tradeable via CoW batch auctions
  5. Implement custom solver hints for bonding curve pricing

MEV protection for community tokens:

  • Private order flow (never in mempool)
  • Uniform clearing prices (all trades in batch at same price)
  • Coincidence of Wants matching (peer-to-peer, no AMM slippage)

Acceptance Criteria

  • #1 BondingCurveAdapter works with new enhanced bonding curve
  • #2 Conditional orders execute correctly via Watch Tower
  • #3 Tranche tokens tradeable via CoW batch auctions
  • #4 Integration tested on Base Sepolia