Difference between revisions of "CowSwap"

From CryptoWiki

wiki_crypto>Zeb.dyor
 
 
(5 intermediate revisions by 2 users not shown)
Line 13: Line 13:
*Scored [https://docs.defisafety.com/master/cowswap-process-quality-review 90%] on [[DeFi Safety]] (23-9-2021):
*Scored [https://docs.defisafety.com/master/cowswap-process-quality-review 90%] on [[DeFi Safety]] (23-9-2021):


''"Activity is 400 transactions a day on contract [https://etherscan.io/address/0x9008D19f58AAbD9eD0D60971565AA8510560ab41#analytics Gnosis Protocol: GPv2Settlement].''
''"Activity is 400 [[transactions]] a day on [[contract]] [https://etherscan.io/address/0x9008D19f58AAbD9eD0D60971565AA8510560ab41#analytics Gnosis Protocol: GPv2Settlement].''


''As per the [https://docs.defisafety.com/master/cowswap-process-quality-review#sloc-appendix SLOC,] there is 73% commenting to code (CtC). GPv2/CowSwap has 97% code coverage according to the [https://coveralls.io/github/gnosis/gp-v2-contracts?branch=main coveralls report]. No formal verification could be found. Cowswap has been deployed to [https://github.com/gnosis/gp-v2-contracts/tree/main/deployments multiple testnets]. One [https://github.com/gnosis/gp-v2-contracts/blob/main/audits/GnosisProtocolV2May2021.pdf audit] was released shortly after Cowswap's deployment, but was started beforehand. While the results are public it is very short at just 3 pages."''
''As per the [https://docs.defisafety.com/master/cowswap-process-quality-review#sloc-appendix SLOC,] there is 73% commenting to code (CtC). GPv2/CowSwap has 97% code coverage according to the [https://coveralls.io/github/gnosis/gp-v2-contracts?branch=main coveralls report]. No [[Formal Verification|formal verification]] could be found. Cowswap has been deployed to [https://github.com/gnosis/gp-v2-contracts/tree/main/deployments multiple testnets]. One [https://github.com/gnosis/gp-v2-contracts/blob/main/audits/GnosisProtocolV2May2021.pdf audit] was released shortly after Cowswap's deployment, but was started beforehand. While the results are public it is very short at just 3 pages."''


*From the [[Gnosis (GNO)|Gnosis]] [https://medium.com/@gnosisPM/cowswap-upgrades-to-final-version-by-fully-integrating-with-balancer-v2-21f4d635da1 blog] (12-8-2021):
*From the [[Gnosis (GNO)|Gnosis]] [https://medium.com/@gnosisPM/cowswap-upgrades-to-final-version-by-fully-integrating-with-balancer-v2-21f4d635da1 blog] (12-8-2021):


''"Today is an important day as CowSwap will upgrade to audited smart contracts that include a tight integration with [[Balancer (BAL)|Balancer’s]] new vault architecture. This upgrade will mark the evolution of CowSwap from Alpha to its final stable version, its first stable and [https://github.com/gnosis/gp-v2-contracts/blob/main/audits/GnosisProtocolV2May2021.pdf audited] version."''
''"Today is an important day as CowSwap will upgrade to audited smart [[contracts]] that include a tight integration with [[Balancer (BAL)|Balancer’s]] new [[vault]] architecture. This upgrade will mark the [[evolution]] of CowSwap from [[Alpha]] to its final stable version, its first stable and [https://github.com/gnosis/gp-v2-contracts/blob/main/audits/GnosisProtocolV2May2021.pdf audited] version."''


*From their [https://cowswap.exchange/#/faq FAQ] (14-6-2021):
*From their [https://cowswap.exchange/#/faq FAQ] (14-6-2021):
Line 31: Line 31:
* [https://docs.defisafety.com/master/cowswap-process-quality-review From] [[DeFi Safety]] (23-9-2021):
* [https://docs.defisafety.com/master/cowswap-process-quality-review From] [[DeFi Safety]] (23-9-2021):


''"The [https://docs.cowswap.exchange/overview-1/road-to-decentralization documents] detailing the planned [[Decentralized|decentralisation]] process clearly state the status of [[Admin Key|access controls]]. All the core executing contracts are [[immutable]]. No pause control can be used on the GPv2/CowSwap core executing smart contracts due to their immutability."''
''"The [https://docs.cowswap.exchange/overview-1/road-to-decentralization documents] detailing the planned [[Decentralized|decentralisation]] process clearly [[state]] the [[status]] of [[Admin Key|access controls]]. All the core executing contracts are [[immutable]]. No pause control can be used on the GPv2/CowSwap core executing [[smart contracts]] due to their [[immutability]]."''


===DAO===
===DAO===
===Treasury===
===Treasury===
The CoW Swap X account [https://www.dlnews.com/articles/defi/how-cow-swap-protocol-will-make-money-off-its-trading-volume announced] (24-1-2024) the protocol would start taking 50% of the surplus generated on trades. The surplus is the positive difference between the price quote CoW Swap provides users before they submit a trade and the price the protocol executes it at.
==Token==
==Token==
===Launch===
===Launch===
* vCOW went [https://twitter.com/MEVprotection/status/1492242607686266885 live] on 12-2-2022.
===Token Allocation===
===Token Allocation===
===Utility===
===Utility===
Line 42: Line 47:
* From their [https://cowswap.exchange/#/faq FAQ] (14-6-2021):
* From their [https://cowswap.exchange/#/faq FAQ] (14-6-2021):


''"There is currently no plan for a CowSwap specific token. At the moment the value is already captured by the [[Gnosis (GNO)|GNO]] token, as CowSwap is built on top of Gnosis Protocol. If you are curious about how the value is captured, you can read [https://forum.gnosis.io/t/gpv2-fee-model/1266 this forum post]."''
''"There is currently no plan for a CowSwap specific [[token]]. At the moment the value is already captured by the [[Gnosis (GNO)|GNO]] token, as CowSwap is built on top of [[Gnosis]] Protocol. If you are curious about how the value is captured, you can read [https://forum.gnosis.io/t/gpv2-fee-model/1266 this forum post]."''


===Other Details===
===Other Details===
Line 62: Line 67:
* From [[Uncommon Core]] (29-5-2021):
* From [[Uncommon Core]] (29-5-2021):


#''"First, you no longer publish a fee-paying [[Transaction (Tx)|transaction]] to the public [[mempool]]. Instead, you sign a transaction and submit it off-chain to the CowSwap [[Relays|relayer]], which handles all the execution. For you, this means you can safely set a very low slippage tolerance because you only ever pay a fee if your trade succeeds.''
#''"First, you no longer publish a fee-paying [[Transaction (Tx)|transaction]] to the public [[mempool]]. Instead, you sign a [[transaction]] and submit it [[off-chain]] to the CowSwap [[Relays|relayer]], which handles all the execution. For you, this means you can safely set a very low slippage tolerance because you only ever pay a fee if your trade succeeds.''
#''Second, and this gets us to real innovation, CowSwap looks for so-called “coincidents of wants” or CoWs before sending your order to the regular on-chain exchanges. For example, if one trader wants to buy [[Ethereum (ETH)|ETH]] at a certain price and another wants to sell it, these two can be matched without paying any [[Liquidity Provider (LP)|LP]] fees. Off-chain solvers can look at this orderbook and submit optimal matchings that among others, guarantee that all trades in a certain batch have to settle at the same uniform price. Because there’s no point in reordering trades that have the same price, this also eliminates [[Miner Extractable Value (MEV)|MEV]] as well.''
#''Second, and this gets us to real innovation, CowSwap looks for so-called “coincidents of wants” or CoWs before sending your order to the regular [[on-chain]] exchanges. For example, if one trader wants to buy [[Ethereum (ETH)|ETH]] at a certain price and another wants to sell it, these two can be matched without paying any [[Liquidity Provider (LP)|LP]] [[fees]]. [[Off-Chain|Off-chain]] solvers can look at this orderbook and submit optimal matchings that among others, guarantee that all trades in a certain batch have to settle at the same uniform price. Because there’s no point in reordering trades that have the same price, this also eliminates [[Miner Extractable Value (MEV)|MEV]] as well.''
#''Only after all coincidents have been exhausted, CowSwap sends the rest of the order to the on-chain exchanges via smart routers like [[1inch Network (1INCH)|1Inch]]"''
#''Only after all coincidents have been exhausted, CowSwap sends the rest of the order to the on-chain exchanges via smart routers like [[1inch Network (1INCH)|1Inch]]"''


Line 87: Line 92:
===Interoperability===
===Interoperability===
===Other Details===
===Other Details===
==Privacy Method==
==Compliance==
==Oracle Method==
==Oracle Method==
==Their Other Projects==
==Their Other Projects==
==Roadmap==
==Roadmap==


*Can be found [Insert link here].
*Can be found [Insert [[LINK|link]] here].


==Usage==
==Usage==
===Projects that use or built on it===
===Projects that use or built on it===
==Competition==
==Competition==
* CowSwap [https://dune.com/cowprotocol/cowswap-high-level-metrics-dashboard?Aggregate+by_e71f7a=Week achieved] 11% of aggregator market share (11-2022). [[1inch Network (1INCH)|1inch]] still has 74%.
*[https://doseofdefi.substack.com/p/mevs-new-chapter-beyond-ethereums From] [[Dose Of DeFi|Dose of DeFi]] (10-12-2022):
''"There are a lot of similarities between CoW Protocol and what [[Flashbots]] are proposing with SUAVE. CoW is focused on “trading intent expression” while SUAVE intends to capture “generalized intent expression”. This is a fancy way of saying, “What do you want to buy or sell and for how much?” The protocol will then auction off this intent to either solvers (CoW) or builders (SUAVE). The key difference is that SUAVE is designed to extract most of its value from transaction ordering, whereas with CoW, trade order doesn’t matter because all tokens have the same price within a block. The other key difference is that SUAVE is intended as a single place to submit orders for multiple blockchains, though CoW may also move in this direction."''
==Pros and Cons==
==Pros and Cons==
===Pros===
===Pros===
===Cons===
===Cons===
==Team, Funding, Partnerships, etc.==
==Team, Funding, Partners==
===Team===
===Team===


Line 108: Line 116:


===Funding===
===Funding===
* CoWDAO [https://ethhub.substack.com/p/ethhub-weekly-209?token=eyJ1c2VyX2lkIjoxMzk3OTAwLCJwb3N0X2lkIjo1MTU3NTU2NSwiXyI6IjF0QzNBIiwiaWF0IjoxNjQ5NTc3NzYyLCJleHAiOjE2NDk1ODEzNjIsImlzcyI6InB1Yi0zOTEwIiwic3ViIjoicG9zdC1yZWFjdGlvbiJ9.BLQrrNruJgbHqxbZOFqhSsyRliLzX-NUqnr8zY1hVX8&s=r closed] a $23M investment round (5-4-2022).
===Partners===
===Partners===
==(:==
==(:==
Line 114: Line 125:
Making these free wiki pages is fun but takes a lot of effort and time.
Making these free wiki pages is fun but takes a lot of effort and time.


If you have enjoyed reading, tips are appreciated :) This will help us to keep expanding this archive of information.
If you have enjoyed reading, tips are appreciated :) This will help us to [[keep]] expanding this archive of information.


[[ETH]] tip [[address]]: 0x83460bE5F218b1520B69D702cE60A1DE37dD8E31
[[ETH]] tip [[address]]: 0x83460bE5F218b1520B69D702cE60A1DE37dD8E31


Also check out [https://cointr.ee/zeb CoinTr.ee] for more content.
Also check out [https://cointr.ee/zeb CoinTr.ee] for more content.

Latest revision as of 04:16, 25 January 2024

Basics

History

Audits & Exploits

  • The GPv2/CowSwap Bug Bounty program rewards participating users with up to 50k for bug finds. Program information can be found here (9-2021).
  • Scored 90% on DeFi Safety (23-9-2021):

"Activity is 400 transactions a day on contract Gnosis Protocol: GPv2Settlement.

As per the SLOC, there is 73% commenting to code (CtC). GPv2/CowSwap has 97% code coverage according to the coveralls report. No formal verification could be found. Cowswap has been deployed to multiple testnets. One audit was released shortly after Cowswap's deployment, but was started beforehand. While the results are public it is very short at just 3 pages."

"Today is an important day as CowSwap will upgrade to audited smart contracts that include a tight integration with Balancer’s new vault architecture. This upgrade will mark the evolution of CowSwap from Alpha to its final stable version, its first stable and audited version."

  • From their FAQ (14-6-2021):

"CowSwap is in ongoing development, and that is why this is not a beta product but rather a proof-of-concept dapp for the community to test and leverage before the final version is released. The code has been carefully tested, peer-reviewed and fully audited."

Bugs/Exploits

Governance

Admin Key

"The documents detailing the planned decentralisation process clearly state the status of access controls. All the core executing contracts are immutable. No pause control can be used on the GPv2/CowSwap core executing smart contracts due to their immutability."

DAO

Treasury

The CoW Swap X account announced (24-1-2024) the protocol would start taking 50% of the surplus generated on trades. The surplus is the positive difference between the price quote CoW Swap provides users before they submit a trade and the price the protocol executes it at.

Token

Launch

  • vCOW went live on 12-2-2022.

Token Allocation

Utility

  • From their FAQ (14-6-2021):

"There is currently no plan for a CowSwap specific token. At the moment the value is already captured by the GNO token, as CowSwap is built on top of Gnosis Protocol. If you are curious about how the value is captured, you can read this forum post."

Other Details

Stablecoin

Coin Distribution

Technology

"With 1712 commits and 72 branches, Cowswap's development history is beautifully rich and detailed."

Implementations

  • Built on: Ethereum, plus it relies on Gnosis Protocol v2’s network of solvers that match orders in five minute batches and then submits the solution on chain (4-6-2021).

How it works

  1. "First, you no longer publish a fee-paying transaction to the public mempool. Instead, you sign a transaction and submit it off-chain to the CowSwap relayer, which handles all the execution. For you, this means you can safely set a very low slippage tolerance because you only ever pay a fee if your trade succeeds.
  2. Second, and this gets us to real innovation, CowSwap looks for so-called “coincidents of wants” or CoWs before sending your order to the regular on-chain exchanges. For example, if one trader wants to buy ETH at a certain price and another wants to sell it, these two can be matched without paying any LP fees. Off-chain solvers can look at this orderbook and submit optimal matchings that among others, guarantee that all trades in a certain batch have to settle at the same uniform price. Because there’s no point in reordering trades that have the same price, this also eliminates MEV as well.
  3. Only after all coincidents have been exhausted, CowSwap sends the rest of the order to the on-chain exchanges via smart routers like 1Inch"
  • From their FAQ (14-6-2021):

"Each executed order has a fee which is captured by the protocol. Part of the fee is paid to solvers [on Gnosis Protocol v2] (entities which provide order settlement solutions) to incentivize their participation.

The fee consists of the "base cost to execute the trade" and the "protocol fee" (although it is only exposed to the user as one fee). As a user, you are only signing a message to submit your trade and the underlying solver will end up submitting the transaction for you. Essentially you are paying this "base cost to execute the trade" aka "gas costs" with your sell token and the cost is already included in your price estimation. The protocol is currently subsidizing a portion of the gas costs, while the protocol fee is currently switched off.

Note that you will only have to pay fees IF your trade is executed. No more gas-costs on any failed transactions!"

Fees

Upgrades

"Today is an important day as CowSwap will upgrade to audited smart contracts that include a tight integration with Balancer’s new vault architecture. This upgrade will mark the evolution of CowSwap from Alpha to its final stable version, its first stable and audited version."

Staking

Validator Stats

Liquidity Mining

Scaling

Interoperability

Other Details

Oracle Method

Their Other Projects

Roadmap

  • Can be found [Insert link here].

Usage

Projects that use or built on it

Competition

"There are a lot of similarities between CoW Protocol and what Flashbots are proposing with SUAVE. CoW is focused on “trading intent expression” while SUAVE intends to capture “generalized intent expression”. This is a fancy way of saying, “What do you want to buy or sell and for how much?” The protocol will then auction off this intent to either solvers (CoW) or builders (SUAVE). The key difference is that SUAVE is designed to extract most of its value from transaction ordering, whereas with CoW, trade order doesn’t matter because all tokens have the same price within a block. The other key difference is that SUAVE is intended as a single place to submit orders for multiple blockchains, though CoW may also move in this direction."

Pros and Cons

Pros

Cons

Team, Funding, Partners

Team

Funding

  • CoWDAO closed a $23M investment round (5-4-2022).

Partners

(:

Knowledge empowers all and will help us get closer to the decentralised world we all want to live in!

Making these free wiki pages is fun but takes a lot of effort and time.

If you have enjoyed reading, tips are appreciated :) This will help us to keep expanding this archive of information.

ETH tip address: 0x83460bE5F218b1520B69D702cE60A1DE37dD8E31

Also check out CoinTr.ee for more content.