Grant Title:
CoW BYOS Security Audit
Author:
@jean-neiverth @yvesfracari @mendesfabio
About You:
bleu collaborates with companies and DAOs as a web3 technology and user experience partner. We’re passionate about bridging the experience gap we see in blockchain and web3. We have completed 12+ grants for CoW Protocol, building core infrastructure and developer tooling across the CoW ecosystem.
Additional Links:
Our work for CoW Protocol includes:
-
Offline Development Mode: Self-contained offline environment for CoW Protocol backend engineers. Deep integration with autopilot, driver, baseline solver, and the full CoW settlement stack. Deployed core and periphery contracts (GPv2Settlement, CoWShed, ComposableCoW, HooksTrampoline) on a local chain with deterministic CREATE2 addressing.
-
Framework-agnostic SDK: Refactored the CoW SDK into a modular monorepo supporting multiple EVM adapters (ethers v5/v6, viem, wagmi). Deep work inside the CoW SDK internals: order signing, order book, subgraph, composable orders, CoW Shed, bridging, and trading modules.
-
Programmatic Orders API: Indexing infrastructure for all programmatic order types — Composable CoW (TWAP, Stop Loss, Perpetual Swap, Good After Time, Trade Above Threshold), flash loan orders, and CoWShed ownership mapping.
-
CoW BYOS: The BYOS system itself — solver engine, Trampoline and Escrow contracts, public Proposal API, and mainnet deployment. The contracts produced by BYOS are the subject of this audit. (Snapshot)
Grant Category:
Security & Auditing
Grant Description:
The CoW BYOS grant explicitly deferred the security audit cost to a separate coordination with CoW DAO, which will be covered by this grant. It includes the quoting process, funding and supporting the security audit of the BYOS smart contracts (Trampoline factory, per-sub-solver Trampoline instances, and Escrow contract) before official production deployment.
Auditor selection
We solicited proposals from eight firms:
- Arctek
- Olympix
- ChainSecurity
- Ack3
- Spearbit / Cantina
- yAudit
- Sherlock
- Verdise
- Koshki (mfw)
After comparing proposals across time-to-start, auditor qualifications, track record, previous experience with CoW and budget, we concluded Koshki’s proposal is the best fit for this project.
Scope
The audit covers the BYOS smart contracts:
- Trampoline contract: per-sub-solver CREATE2 instances, factory deployer, signature-gated
execute, zero-balance sweep, native ETH wrap/unwrap. - Escrow contract: owner/operator role separation, blanket debit authority, all-or-nothing withdrawal with cooldown, freeze semantics, permissionless debit sweep.
Audit remediation work (applying fixes identified in the report) is covered under M3 of the BYOS development grant and is not part of this request.
Grant Goals and Impact:
- Safe mainnet deployment. The Trampoline and Escrow contracts handle real user funds and sub-solver collateral. An independent audit is a prerequisite before BYOS goes live on mainnet.
- Community confidence. A published audit report from a reputable firm gives sub-solvers and the CoW community a verifiable basis for trusting the system.
- Completion of the BYOS roadmap. The BYOS development grant explicitly noted that audit coordination would be handled separately with CoW DAO. This grant closes that open item.
Milestones:
This is a single-milestone project. The sole deliverable is an audit review document produced by Koshki, shared with CoW DAO upon completion. Target delivery date is November 20, 2026.
Payment:
bleu will manage payment to Koshki in two installments of 5,000 USDC and share the report in this forum upon delivery.
Funding Request:
Total: 10,000 USDC or other stablecoin, paid in two installments of 5,000 USDC: first part upfront, second part on audit document delivery.
Budget Breakdown:
The requested amount (10,000 USDC) fully covers the Koshki security audit.
No bleu development time is billed in this grant. Remediation engineering following the audit is covered under the BYOS development grant (M3).
Address to receive the grant (Mainnet or Gnosis):
0x5D40015034DA6cD75411c54dd826135f725c2498
Disclosure:
mfw, member of grants committee and previous CoW contributor, will be the reviewer at Koshki and has a direct financial interest in this engagement. He shall not vote on this grant application.
Other Information:
We are happy to share the full vendor comparison with the CoW grants team on request.
Terms and Conditions:
By submitting this grant application, we acknowledge and agree to be bound by the CoW DAO Participation Agreement and the CoW Grant Terms and Conditions.