1.7 KiB
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 |
|
|
|
|
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:
- Port/adapt these contracts to work with the new enhanced bonding curve (TASK-5)
- Register Watch Tower for automated conditional order monitoring
- Test on Base Sepolia with GPv2Settlement (0x9008D19f58AAbD9eD0D60971565AA8510560ab41)
- Ensure tranche tokens (myUSD-S, myUSD-M) are tradeable via CoW batch auctions
- 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