Difference between revisions of "CowSwap"
m (1 revision imported) |
(→Launch) |
||
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 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."'' | ||
Line 19: | Line 19: | ||
*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=== | ||
Line 37: | Line 37: | ||
==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 45: | ||
* 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 65: | ||
* 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 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 114: | Line 117: | ||
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. |
Revision as of 05:15, 11 March 2022
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
- From DeFi Safety (23-9-2021):
"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
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
- Whitepaper can be found here.
- Code can be viewed here. From DeFi Safety (23-9-2021):
"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
- From Uncommon Core (29-5-2021):
- "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.
- 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.
- 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
Privacy Method
Compliance
Oracle Method
Their Other Projects
Roadmap
- Can be found [Insert link here].
Usage
Projects that use or built on it
Competition
Pros and Cons
Pros
Cons
Team, Funding, Partnerships, etc.
Team
- Full team can be found here (9-2021).
- Felix Leupold
Funding
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.