Difference between revisions of "ZKSwap"

From CryptoWiki

m (1 revision imported)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
== Basics ==
ZKSwap is a [[fork]] of [[ZkSync]] with added [[Automated Market Makers (AMM)|AMM]] functionality. Based on [[Rollups|ZK-Rollup]] technology, ZKSwap aims to execute the full functionality of [[Uniswap (UNI)|Uniswap]] on [[Layer Two|Layer 2]], while ensuring the core value of [[Decentralized Exchange (DEX)|decentralized exchange]].
 
==Basics ==
* Started in / Announced on:
* Started in / Announced on:
* [[Mainnet]] release: [https://www.theblockcrypto.com/linked/94848/zk-rollup-layer-2-dex-zkswap-mainnet-ethereum 15-2-2021]
* [[Mainnet]] release: [https://www.theblockcrypto.com/linked/94848/zk-rollup-layer-2-dex-zkswap-mainnet-ethereum 15-2-2021]
Line 7: Line 9:


== History ==
== History ==
==Audits & Exploits==
*[[Bug bounty]] program can be found [insert here].
*[https://l2beat.com/scaling/projects/zkswap2/ From] [[L2beat]] regarding ZKSwap V1 and V2 (31-10-2022):
''"Funds can be stolen if''
# ''the cryptography is broken or implemented incorrectly,''
# ''a [[Smart Contract (SC)|contract]] receives a malicious code upgrade. There is a 8 days delay on code upgrades,''
# ''the source code of unverified contracts contains malicious code (CRITICAL).''
''Funds can be lost if''
# ''the user is unable to generate the non-trivial zk proof for exodus withdraw.''
''Users can be censored if''
# ''the operator refuses to include their [[Transaction (Tx)|transactions]]. They can still exit the system.''
''[[Maximal Extractable Value (MEV)|MEV]] can be extracted if''
# ''the operator exploits their [[centralized]] position and [[Frontrunners|frontruns]] user transactions."''
*[https://ethhub.substack.com/p/ethhub-weekly-142?token=eyJ1c2VyX2lkIjoxMzk3OTAwLCJwb3N0X2lkIjoyMDgxNTgzOSwiXyI6ImM5eFJuIiwiaWF0IjoxNjA2ODE0NTMzLCJleHAiOjE2MDY4MTgxMzMsImlzcyI6InB1Yi0zOTEwIiwic3ViIjoicG9zdC1yZWFjdGlvbiJ9.Yfen6dwEIwWrhlG6-9La5ucxffHUwK5TcsRrhC_4Tvw From] (sponsored) [[EthHub]] (1-12-2020):
"C''ode is being audited by [[CertiK]].''"
===Bugs/Exploits===
==Governance==
===Admin Keys===
* [https://l2beat.com/scaling/projects/zkswap2/ From] [[L2beat]] regarding ZKSwap V1 and V2 (31-10-2022):
''"The system has a [[centralized]] operator. The operator is the only entity that can propose [[Block|blocks]]. A live and trustworthy operator is vital to the health of the system. Force exit allows the users to escape censorship by withdrawing their funds. The system allows users to force the withdrawal of funds by submitting a request directly to the [[Smart Contract (SC)|contract]] [[On Chain|on-chain]]. The request must be served within a defined time period. If this does not happen, the system will halt regular operation and permit trustless withdrawal of funds. If enough time passes and the forced exit is still ignored the user can put the system into Exodus Mode, disallowing further state updates. In that case everybody can withdraw by submitting a zero knowledge proof of their funds with their [[Layer One|L1]] [[Transaction (Tx)|transaction]].''
''The system uses the following set of [[permissioned]] [[Address|addresses]]:''
# ''zkSwap 2.0 Admin 0x9D73…6255 (EOA)'' ''This address is the master of Upgrade Gatekeeper contract, which is allowed to perform upgrades for Governance, Verifier, VerifierExit, PairManager and ZkSync contracts.''
# ''Active validator 0x3810…2ae4 (EOA)'' ''This actor is allowed to propose, revert and execute [[Layer Two|L2]] blocks on L1. A list of active [[Node|validators]] is kept inside Governance contract and can be updated by zkSwap 2.0 Admin."''
===DAO===
===Treasury===
== Token ==
== Token ==
=== Launch ===
=== Launch ===
Line 12: Line 51:
=== Utility ===
=== Utility ===
=== Token Details ===
=== Token Details ===
=== Stablecoin ===
== Technology ==
== Technology ==
* [[Whitepaper]] can be found [insert here].
*[[Whitepaper]] or docs can be found [https://en.wiki.zks.org/ here].
* Code can be viewed [insert here].
*Code can be viewed [https://github.com/l2labs/zkswap-contracts here].
* Built on: [[Ethereum]]  
*[[Fork]] of [[ZkSync]]
 
*Consensus mechanism:
* Programming language used:
*Algorithm:
=== Transaction Details ===
*[[Virtual Machine (VM)|Virtual Machine]]:
* Capacity ([[TPS]]):
*Development language used:
* [[Latency]]:
====Transaction Details====
=== How it works ===
*Capacity ([[TPS]]):
* [https://ethhub.substack.com/p/ethhub-weekly-142?token=eyJ1c2VyX2lkIjoxMzk3OTAwLCJwb3N0X2lkIjoyMDgxNTgzOSwiXyI6ImM5eFJuIiwiaWF0IjoxNjA2ODE0NTMzLCJleHAiOjE2MDY4MTgxMzMsImlzcyI6InB1Yi0zOTEwIiwic3ViIjoicG9zdC1yZWFjdGlvbiJ9.Yfen6dwEIwWrhlG6-9La5ucxffHUwK5TcsRrhC_4Tvw From] (sponsored) [[EthHub]] (1-12-2020):
*[[Latency]]:
===How it works===
*[https://l2beat.com/scaling/projects/zkswap2/ From] [[L2beat]] regarding ZKSwap V1 and V2 (31-10-2022):
''"Each update to the system state must be accompanied by a ZK Proof that ensures that the new [[state]] was derived by correctly applying a series of valid user [[Transaction (Tx)|transactions]] to the previous state. Once the proof is processed on the [[Ethereum (ETH)|Ethereum]] blockchain the [[Layer Two|L2]] [[block]] is instantly [[Finality|finalized]]. All the data that is used to construct the system [[state]] is published [[On Chain|on chain]] in the form of cheap calldata. This ensures that it will always be available when needed."''
*[https://ethhub.substack.com/p/ethhub-weekly-142?token=eyJ1c2VyX2lkIjoxMzk3OTAwLCJwb3N0X2lkIjoyMDgxNTgzOSwiXyI6ImM5eFJuIiwiaWF0IjoxNjA2ODE0NTMzLCJleHAiOjE2MDY4MTgxMzMsImlzcyI6InB1Yi0zOTEwIiwic3ViIjoicG9zdC1yZWFjdGlvbiJ9.Yfen6dwEIwWrhlG6-9La5ucxffHUwK5TcsRrhC_4Tvw From] (sponsored) [[EthHub]] (1-12-2020):
"''It uses [[Zk-SNARK's|zkSNARKs]]. All swap [[transactions]] execute on layer-2 in real-time with zero [[gas]] fees."''
"''It uses [[Zk-SNARK's|zkSNARKs]]. All swap [[transactions]] execute on layer-2 in real-time with zero [[gas]] fees."''
 
===Fees===
=== Mining ===
===Upgrades ===
=== Staking ===
===Staking===
=== Liquidity Mining ===
====Validator Stats====
=== Layer Two ===
===Liquidity Mining===
=== Different Implementations ===
===Scaling===
=== Interoperability ===
===Interoperability===
=== Other Details ===
===Other Details===
== Privacy Method being used ==
== Oracle Method ==
=== Compliance ===
== Oracle Method being used ==
== Their Other Projects ==
== Their Other Projects ==
=== DEX ===
== Governance ==
=== DAO ===
=== Treasury ===
== Upgrades ==
== Roadmap ==
== Roadmap ==
* Can be found [Insert link here].
* Can be found [Insert link here].
== Audits ==
* [[Bug bounty]] program can be found [insert here].
* [https://ethhub.substack.com/p/ethhub-weekly-142?token=eyJ1c2VyX2lkIjoxMzk3OTAwLCJwb3N0X2lkIjoyMDgxNTgzOSwiXyI6ImM5eFJuIiwiaWF0IjoxNjA2ODE0NTMzLCJleHAiOjE2MDY4MTgxMzMsImlzcyI6InB1Yi0zOTEwIiwic3ViIjoicG9zdC1yZWFjdGlvbiJ9.Yfen6dwEIwWrhlG6-9La5ucxffHUwK5TcsRrhC_4Tvw From] (sponsored) [[EthHub]] (1-12-2020):
"C''ode is being audited by [[CertiK]].''"
=== Bugs/Hacks ===
== Usage ==
== Usage ==
=== Projects that use or built on it ===
=== Projects that use or built on it ===
== Competition ==
== Competition ==
== Coin Distribution ==
== Pros and Cons ==
== Pros and Cons ==
=== Pros ===
=== Pros ===
=== Cons ===
=== Cons ===
== Team, Funding, Partnerships, etc. ==
 
* The system [https://en.wiki.zks.org/techonology#3-validator has] a [[centralized]] operator (31-10-2022).
 
== Team, Funding, Partners ==
=== Team ===
=== Team ===
* Full team can be found [here].
* Full team can be found [here].
 
*Developed by L2lab
* Developed by L2lab


=== Funding ===
=== Funding ===

Latest revision as of 13:09, 31 October 2022

ZKSwap is a fork of ZkSync with added AMM functionality. Based on ZK-Rollup technology, ZKSwap aims to execute the full functionality of Uniswap on Layer 2, while ensuring the core value of decentralized exchange.

Basics

"ZKSwap is the first zk-Rollups-based layer2 dex that is using an AMM model. Live on the Ethereum Ropsten testnet since Nov 16th, 2020 and will launch on Ethereum mainnet in 1-2 weeks."

History

Audits & Exploits

"Funds can be stolen if

  1. the cryptography is broken or implemented incorrectly,
  2. a contract receives a malicious code upgrade. There is a 8 days delay on code upgrades,
  3. the source code of unverified contracts contains malicious code (CRITICAL).

Funds can be lost if

  1. the user is unable to generate the non-trivial zk proof for exodus withdraw.

Users can be censored if

  1. the operator refuses to include their transactions. They can still exit the system.

MEV can be extracted if

  1. the operator exploits their centralized position and frontruns user transactions."

"Code is being audited by CertiK."

Bugs/Exploits

Governance

Admin Keys

  • From L2beat regarding ZKSwap V1 and V2 (31-10-2022):

"The system has a centralized operator. The operator is the only entity that can propose blocks. A live and trustworthy operator is vital to the health of the system. Force exit allows the users to escape censorship by withdrawing their funds. The system allows users to force the withdrawal of funds by submitting a request directly to the contract on-chain. The request must be served within a defined time period. If this does not happen, the system will halt regular operation and permit trustless withdrawal of funds. If enough time passes and the forced exit is still ignored the user can put the system into Exodus Mode, disallowing further state updates. In that case everybody can withdraw by submitting a zero knowledge proof of their funds with their L1 transaction.

The system uses the following set of permissioned addresses:

  1. zkSwap 2.0 Admin 0x9D73…6255 (EOA) This address is the master of Upgrade Gatekeeper contract, which is allowed to perform upgrades for Governance, Verifier, VerifierExit, PairManager and ZkSync contracts.
  2. Active validator 0x3810…2ae4 (EOA) This actor is allowed to propose, revert and execute L2 blocks on L1. A list of active validators is kept inside Governance contract and can be updated by zkSwap 2.0 Admin."

DAO

Treasury

Token

Launch

Token allocation

Utility

Token Details

Technology

Transaction Details

How it works

  • From L2beat regarding ZKSwap V1 and V2 (31-10-2022):

"Each update to the system state must be accompanied by a ZK Proof that ensures that the new state was derived by correctly applying a series of valid user transactions to the previous state. Once the proof is processed on the Ethereum blockchain the L2 block is instantly finalized. All the data that is used to construct the system state is published on chain in the form of cheap calldata. This ensures that it will always be available when needed."

"It uses zkSNARKs. All swap transactions execute on layer-2 in real-time with zero gas fees."

Fees

Upgrades

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

Pros and Cons

Pros

Cons

Team, Funding, Partners

Team

  • Full team can be found [here].
  • Developed by L2lab

Funding

"The team recently closed a $1.7 million Angel Round"

Partners