Deploy Uniswap V3 on Linea

Point of Contact:

Cameron O’Donnell: cameron.odonnell@consensys.net

Outline:

  1. Proposal Details
  2. About Linea
  3. Benefits to Uniswap
  4. Additional Information
  5. Partner Details
  6. Timeline & Engagement Structure

Proposal Details

Proposal Summary

ConsenSys is proposing a recognized Uniswap V3 deployment for its incubated zkEVM, Linea.

Proposal Overview

Consensys is seeking a Uniswap V3 deployment for Linea’s mainnet launch, looking to further integrate Uniswap with the Consensys product ecosystem (MetaMask, Infura, Linea, et. al). A key aspect of Linea’s value proposition is its synergistic relationship with ConsenSys products. Establishing Uniswap as a dominant DEX on Linea would encourage more trading volume for the protocol and strengthen ties to current Consensys product users.

Motivation

Linea’s testnet has impressively handled more than 12 million transactions. Many of these transactions are part of the ongoing Voyage quest, a crucial initiative designed to help stress-test the network. This exercise aids in identifying potential issues and performance impediments before transitioning to Linea mainnet.

Moreover, Linea is aligned with developers throughout the broader ecosystem via our relationships with MetaMask, Infura, and Truffle, emphasizing our commitment in serving developers, protocols, and builders.


Source: Linea Explorer

Users will conveniently find Linea natively supported in the MetaMask network dropdown list, and it will support the full range of MetaMask curated experiences. These experiences include On/Off Ramp, MetaBridge, MetaMask Swaps, Portfolio dApp, and MetaMask SDK - all of which could leverage the Uniswap protocol.

Linea

About

Linea aims to be a Type 2 zkEVM and achieve EVM-equivalence, handling native EVM bytecode for proving and verification. This allows for the execution of Solidity smart contracts and enables developers to build while using familiar tools and infrastructure at extremely low switching costs. The network does not use transpilers or custom compilers on bytecode. By taking the compiled bytecode directly from solidity, we significantly reduce the surface area risk for bugs and hacks.

Linea seeks innovation, pushing the boundaries of the Web3 space while maintaining top security and full EVM compatibility as top priorities. One (of the many) things worth mentioning is Linea’s full support of EIP-4337 (Account Abstraction). Working with key stakeholders, the network already uses the single-entry-point contract and runs multiple networks of bundlers and paymasters services.

Vortex - Lattice-Based SNARKs

What is particularly exciting about Linea is its ability to consolidate transactions and submit proofs to the Ethereum mainnet using a novel prover mechanism. This process enhances throughput and minimizes transaction fees while maintaining the inherent security of the Ethereum network.

Vortex, a cryptographic primitive under development at ConsenSys, aims to increase the performance of Linea. It leverages a novel type of zkProof called a recursive aggregation proof. This is based on Ring-SIS, a well-known premise from lattice-based cryptography. This proofing system enables the batching of transactions to increase the network’s throughput while reducing fees. Linea also employs zk circuits to conduct computations. These cryptographic circuits facilitate secure and efficient computations.

For more information on the technical aspects of Linea, please refer to the sources section at the bottom of the proposal.

Market Adoption

Since the inception of Ethereum, ConsenSys was established to become the most potent proponent of decentralization worldwide. We believe that networks such as Ethereum can empower humanity to reach greater heights. With our experience handling web3 infrastructure, wallets, developer tools, public goods, and more, we are confident in our ability to steward Linea to complete decentralization and openness.

Linea is the result of more than 20 months of R&D from our award-winning research team that has released and maintains successful projects in the zk space like the GNARK library. Linea represents advancements in the zkEVM realm and the general field of cryptography. With the Linea network being incubated via Consensys, adoption will be encouraged through existing Consensys products and partnerships.


Source: Linea.Build

Some of these integrations include but are not limited to:

  • MetaMask - Largest Web3 wallet, easy user onboarding with default integration.
  • Infura - Simplified deployment lets developers ship faster and scale with the confidence of 99.9% uptime.
  • Truffle - Build, test, debug, and deploy Solidity smart contracts with tools like Truffle, Hardhat, and more.
  • Besu - Optimized execution for zkEVM transactions using Ethereum battle-tested components.
  • Lastly, nearly all EVM-specific development tools are Linea compatible.

Decentralization Roadmap

Linea is committed to actively pursuing decentralization. Over the following year, the Linea team plans to implement decentralizing features. Examples include introducing a DAO, decentralized sequencers and prover systems.

Benefits for Uniswap

There are many benefits to a Uniswap deployment on Linea. In the following sections, we highlight our top three…

  1. Early Establishment in the Linea AMM Market
  2. Increased Volume through MetaMask Swaps Integration
  3. Cross Promotion

Early Establishment in the Linea AMM Market

Observing Uniswap market share across crucial Layer 2 solutions reveals that the protocol enjoys several advantages x-chain. These include a strong community, brand recognition, and, most importantly, the first-mover advantage.

Total value locked (TVL) of Uniswap across significant roll-up ecosystems:

  • Arbitrum - 316.12M
  • Optimism - 82.5M

We anticipate that Uniswap will replicate its success in capturing market share on Linea, and we also hope that this deployment will serve as a model for the DAO on how Uniswap will perform with all upcoming L2/zkEVM launches over the next 6-8 months.

Increased Volume through Swaps Integration

MetaMask Swaps is an aggregation product built natively into MetaMask. Across all integrated chains, as of last week, Swaps had an average weekly volume of ~$133M. Uniswap is consistently the largest leveraged dex of this weekly volume, executing ~58%, or $77.1M of trades.


Source: Swaps - Dune

Most of this volume is directed through Ethereum; however, observing comparable L2 deployments shows that Swaps contributed nearly 100M of volume to Arbitrum since integration.


Source: Swaps - Dune

Products like Swaps leverage many service providers, and only a few of them will be deployed on Linea day 1, providing Uniswap the opportunity to capture an even bigger market share of L2 volume produced from the product.

Cross Promotion

Another benefit for the protocol is the cross-promotion between Consensys and Uniswap, and to double down on the shared mission of contributing to the growth of the Ethereum ecosystem. The team plans to promote the network’s usage and the protocols that operate on it. This, combined with utilizing a recognized deployment of Uniswap, will aid in establishing Uniswap on Linea and in the greater ecosystem.

Additional Information

Costs and Incentives

Consensys will cover all deployment costs, and is willing to contribute any engineering resources required for the deployment.

Cross Chain Messaging

The Linea team operates and maintains a canonical Open Messaging Service (OMS). The OMS allows for messages to pass to and from Ethereum & Linea. The Ethereum network verifies smart contracts on the L1 that enforce a valid state on Linea.

Security Considerations

The OMS will be operated in-house. The design implements a relayer and leverages the rollup to maintain state/security.

Example Walk-Through of Cross-Chain Message Passing

A technical walk-through of the future-state, cross-chain governance on mainnet is as follows:

  1. The Uniswap Governor Bravo Contract will send a message to the L1 bridge contract (implementing the IBridge.sol interface) by calling the dispatchMessage method.
  2. The L1 bridge contract emits a MessageDispatched event.
  3. The roll-up relayer catches the event and sends an L2 transaction to the L2 bridge contract by calling the deliverMessage function.
  4. The L2 contract calls the contract defined in the to field. The L2 contract should authenticate the call by calling the sender() method on the L2 bridge upon reception of the deliverMessage call, verifying that this corresponds to a known L1 address.
  5. The L1 bridge contract verifies the message execution and emits an event MessageConfirmed, once the next L2 block is finalized and the zk proof is verified.

Source: Modified from Linea Documentation (links in documentation)

Success Criteria

Although it is difficult to quantify success criteria, we can confidently state that establishing Uniswap as an early, dominant DEX from Day 1 is a priority.

The overarching success of the Uniswap deployment will be determined through increasing key DeFi metrics that include TVL, Volume, Users, and Swaps. Upon deployment, we will provide a dashboard to monitor Uniswap’s progress and assess market performance.

Proposer Details

Proposer Details

ConsenSys is a leading Ethereum and decentralized protocols software company. We enable developers, enterprises, and people worldwide to build next-generation web3 applications, launch modern financial infrastructure, and access the decentralized web. Our product suite, composed of MetaMask, Infura, Truffle, Diligence, and CNFT, serves millions of users. ConsenSys has the technical expertise to deploy Uniswap.

Conflict of Interest

ConsenSys is an active delegate and provides software services to Uniswap Labs. However, these developments and contractual relationships do not impact the organization’s independence.

Proposal Stakeholders

Proposer: Consensys
Deployer: Consensys
Bridge Provider: Linea Native Bridge
Target Chain: Linea
Proposal Sponsor: Consensys

Engagement Terms

Linea Mainnet Timeline

Linea mainnet aims to launch in the month of July. We understand that deployment relies on mainnet, and we will proceed with the on-chain portion of this proposal at the appropriate time.

As for now, and as outlined here, the timing of the official recognition will occur after deployment.

Deployment Process/Timeline

  1. The request for comment will be at least seven days.

  2. After, a temperature check will be made on Snapshot and remain live for five days.
    (The temperature check solely assesses the DAO’s desire to deploy on linea.)

  3. If 10m votes support the proposal, ConsenSys and the Linea team will prepare an on-chain proposal.

  4. Under appropriate conditions, we will move to an on-chain vote that lasts ~11 days (7-day voting window).

Sources

14 Likes

Hi all,

We are formally moving this to a Temperature Check, Please find the Snapshot link here.

We also have an open line of communication, if you would like to set up a meeting around this proposal, please find time here!

6 Likes

Hi Community - Quick update regarding this proposal.

We are beginning the process of bringing this vote onchain. This week, we will start working with the accountability committee (@rafaelsolari & @Kydo) to ensure we have the appropriate pieces and meet all required criteria for an onchain vote.

We look forward to speaking with stakeholders and delegates about this proposal. If you are a delegate/voter, no matter the size, and we were unable to talk – Please reach out using the links below!


Contact:

TG
Email
Calendly

8 Likes

Hi!

Over the past week, Consensys spoke with the accountability committee and worked directly with @Getty (GFX) on the deployment, review, and proposal posting. Thank you for all the help in getting to the vote.

Please see the live vote link here: Deploy V3 on Linea

Same open-door policy applies. Please post anything here or reach out as appropriate.

4 Likes

Blockworks Research is voting in favor of this proposal. We believe that the DAO should recognize one implementation of Uniswap per chain so that the DAO may hold control over the fee switch as long as the accountability committee comprehensively reviews the implementation.

2 Likes

Hi Community,

Due to the unforeseen movement in delegation, the original proposal was unexpectedly cancelled. However, a new vote was put up and is presented with no changes to its content, objectives, and outcomes.

You can find the new vote to Deploy V3 on Linea here.

We apologize for delegates having to vote again, please reach out privately if you are having troubles. We are here to assist as needed.

3 Likes

The below response reflects the views of L2Beat’s governance team, composed of @kaereste and @Sinkas, and it’s based on the combined research, fact-checking and ideation of the two.

As L2Beat, we’ll be voting in favor of the proposal.

As mentioned in the proposal to deploy Uniswap V3 on Base, we’re very supportive of Ethereum L2s and we believe that it’s important to officially deploy one instance of Uniswap per L2. The DAO has supported similar deployments in the past and we do not see anything concerning in this proposal.

3 Likes

We would like to express our gratitude to the GFX Labs team for providing a comprehensive proposal. As the ITU Blockchain Delegation team, we have carefully reviewed the proposal and reached the following conclusions:

Linea has demonstrated significant success during the Linea Testnet phase, facilitating over 12 million transactions. Additionally, Linea’s association with Consensys, backed by a highly competent team, is another factor that sets Linea apart. The partnership between Linea and Uniswap will have a highly positive impact on Linea’s potential market share, given the prominence of both Consensys and Uniswap.

Moreover, the collaboration between Linea and Uniswap will enable the integration of Consensys products into Linea’s ecosystem. For instance, utilizing Uniswap for the native token swaps feature of Metamask will allow users to benefit from Uniswap’s deep liquidity and lay a robust foundation for decentralized finance within the early stages of the Linea ecosystem.

Also, Linea is well-positioned for seamless integration with various industry-leading Ethereum tools and services. Developers benefit from the simplified deployment process offered by Infura, allowing faster shipping and scalability with a high uptime assurance of 99.9%. Truffle empowers developers to build, test, debug, and deploy Solidity smart contracts, along with other compatible tools like Hardhat. Additionally, Linea’s compatibility with nearly all EVM-specific development tools makes it a convenient choice for developers seeking optimized execution for zkEVM transactions, leveraging Ethereum’s battle-tested components provided by Besu.

In essence, the key point is Uniswap becoming the leading decentralized exchange on Linea, propelling the ecosystem forward. We believe that both parties are giants in their respective markets and commencing this partnership will secure Linea’s future success. The high level of interest users show towards Linea can be inferred from the provided figures in the proposal.

Furthermore, as mentioned in the proposal, we appreciate the Consensys team’s commitment to handling all workload during the deployment of Uniswap onto Linea. We interpret this offer as a reflection of the goodwill behind the proposal. Additionally, we would like to highlight GFX Labs’ long-standing role as a Uniswap delegate and acknowledge their longstanding contributions to Uniswap’s benefit.

Additionally, considering the early integration of Uniswap, we observe that other rollups like Arbitrum and Optimism have achieved TVL (Total Value Locked) figures of $320 million and $82 million, respectively.

In conclusion, we find the proposal compelling and believe that the collaboration between Linea and Uniswap, along with Consensys’ support, will greatly enhance the growth and success of Linea’s ecosystem. Therefore, we are in favor of this proposal and vote “for”.

5 Likes

The Deployment Accountability Committee has reviewed the proposal and found following commitments that should be tracked in the future.

The first one is subjective but if Uniswap deploys on Linea “early”, then can be considered as fulfilled

The second commitment will be kept once Metamask Swaps integration includes Uniswap on Linea

The third commitment will be kept if there are concrete promotion campaigns in the future.