[RFC] Deploy Uniswap v3 on X Layer

Summary:
This proposes the deployment of Uniswap v3 on X Layer.

Background:
X Layer is a zkEVM Layer 2 network built on Ethereum, powered by Polygon CDK, a zkEVM stack for building Ethereum L2 scaling solutions. Developers can easily deploy their existing contracts on zkEVM, and users can move their assets from Ethereum and conduct transactions off-chain. These transactions are bundled into groups with zero-knowledge proofs to verify their validity.

Motivation:
Deploying an instance of Uniswap v3 on X Layer provides numerous opportunities for Uniswap to gain millions of new users from the OKX ecosystem which comprises of approximately 50m. This deployment will be a win-win for both parties as it provides Uniswap with a new user base and revenue stream and X Layer the chance to offer its users access to a battle tested DeFi primitive, which is Uniswap v3.

Boundless scalability: 100% EVM compatibility and easy-to-use developer tools for deployment.
X Layer is Powered by OKX: seamless integration to all OKX products, all-in-one Web3 gateway, and access to 50M+ users in the OKX ecosystem.
Security: rely on robust secure mechanisms from Ethereum, with trustless interoperability.
Low fee: same coding experience as Ethereum but 100x cheaper.
Portal to Web3: enter the world of Web3 via OKX Wallet, built with compact infrastructure modules to create innovative DApps.

Proposal Stakeholders
The following list of stakeholders is present to transparently communicate which entities and individuals are involved in proposal creation and implementation.

Proposer: Yohaan (X Layer DeFi Strategy)
This entity is responsible for authoring the proposal & managing the governance process

Deployer: GFX Labs
This entity is responsible for the technical deployment of the contracts on the target chain
• GFX Labs will help deploy the v3 contracts on X Layer and has a track record of safely deploying Uniswap v3 on various EVM-compatible chains

Frontend: Oku Trade
The initial frontend where users can interact with the new Uniswap v3 deployment
• Oku is built and managed by GFX Labs
• Oku was seeded by a Uniswap Foundation grant in 2022
• Oku supports twelve chains and continues to aid Uniswap’s expansion to new protocols

Note: Oku Trade has become the DAO’s go-to third party front-end for Uniswap deployments since the canonical front-end is owned and operated by Uniswap Labs

Bridge Provider: zkEVM Bridge
X Layer mainnet bridge allows you to seamlessly move value between Ethereum and X Layer mainnet and can also be used to send and claim messages to and from Ethereum and X Layer.

Call bridgeMessage:
To pass a message from Ethereum to X Layer, one needs to first call bridgeMessage as shown below:

name value desc
bridgeMessage
destinationNetwork 3 X Layer Network
destinationAddress YOUR_ADDRSS Which address wants to receive asset
forceUpdateGlobalExitRoot true Default as true
metadata 0x

ClaimMessage on X Layer:

  1. Request RPC Bridges to get the deposit count
  2. Request RPC merkle-proof to get the corresponding proof
  3. Claim on X Layer call claimMessage https://www.oklink.com/zh-hans/xlayer/address/0x2a3dd3eb832af982ec71669e178424b10dca2ede/contract#category=proxy-writ

Target Chain: X Layer
This is the chain that v3 contracts are deployed on

Proposal Sponsor: GFX Labs
This entity has >1M UNI and is therefore eligible for administering the onchain vote

Liquidity Bootstrapping and Incentives:

X Layer’s Commitment:
X Layer commits $1M worth of liquidity to Uniswap pools on X Layer for a minimum of 6 months. All liquidity will be provided on the day of launch. The tokens will be deployed on Uniswap through the X Layer integration with Oku Trade. All liquidity will be provided immediately upon deploying an instance of Uniswap v3 on X Layer.
Pools and liquidity committment:
• $500k in OKB/USDT 0.30%
• $200k in OKB/USDC 0.30%
• $200k in OKB/wETH 0.30%
• $100k in USDC/USDT 0.05%

Community Multisig for Liquidity Provisioning:
The liquidity committment made by X layer will be sent to a Gnosis Safe on X Layer prior to launch with signers from OKX, Oku Trade and select Uniswap Delegates.

Deployment Details:
If no major points of contention are posed by the DAO during the RFC, the Accountability Committee will
• Optimistically approve this deployment and consider the deployed contracts on the X layer as canonical, and a comment will be posted on this forum with all the verified contracts

As is the case with all canonical v3 deployments, this deployment will be subject to Ethereum Layer 1 Uniswap Protocol governance and control. The text record of the uniswap.eth ENS subdomain titled v3-deployments.uniswap.eth will be amended by the Accountability Committee to include the reference to the stated v3 contracts on X Layer.

Timeline:
July 2024: RFC
August 2024: Liquidity commitment Temp Check
August 2024: Onchain vote to approve onboarding package
September 2024: Uni v3 contracts as well as front end on Oku Trade will be deployed by GFX Labs

8 Likes


Considering $1M worth of liquidity will be 10% of total TVL right now at X Layer, it’s an interesting opportunity but at the same time, can the team provide the liquidity to escrow account so that “All liquidity will be provided immediately upon deploying an instance of Uniswap v3 on X Layer.”

3 Likes

The pools selected for liquidity commitment seem to be primarily aimed at bolstering OKX’s ecosystem token OKB. I would be in favor of this proposal if we amend it to place 30%+ of the liquidity commitments in non OKB-related pools.

Just so everyone is clear on the procedures, a recent change has been made such that all these deployments are optimistically approved and we (accountability committee) has confirmed this is the native team and not a malicious actor. X Layer is offering to incentive with their own funds, so it’s not a matter of voting yes or no, it is just what it is.

However, a future vote asking the Uniswap community if they are willing to pay for the costs of Oku front end and further incentives will likely also happen similar to prior chains. In this case, promising to escrow fund as @Doo_StableLab mentioned and reallocating towards non-OKX pools as @Jaylan28 mentioned would likely strengthen support for this, but that’s just my opinion.

3 Likes

Hey @jayyu23 , the gas token of X Layer is $OKB and hence most of the pools contain OKB liquidity so it makes sense to create $OKB denominated pool just like how pools in Polygon are denominated in $MATIC, Avalanche in $AVAX. Another advantage would be a lot of volumes to uniswap v3 via OKX CEX ↔ Uniswap v3 arbitrage which will result in a lot of volumes and fees for LPs.

We can definitely do the escrow for the pre-committed TVL. For the escrow, we propose a Gnosis Safe on X Layer with signers from X Layer, Uniswap Delegates and members from the Oku team as signers

2 Likes

Thanks for your transparency. Happy to be on part of Uniswap Delegates to be a signer.

1 Like

Sounds good, x deploys very well

We understand that ETH should be the main pair for OKB liquidity, as ETH not only has a healthier LVR compared to a stablecoin, but is also a token with very high utilization and is the bridge token (crucial for the in-out to X layer). Therefore, we believe that a higher percentage of deeper liquidity could be driven to the OKB/wETH pair. What do you think about this?

We also offer from SEED Gov to be on part of Uniswap Delegates to be a signer.

We actually think in practice, putting their own token OKB is not a deal breaker for us as

  1. that’s still in non OKB tokens in liquidity
  2. from what we understand, the liquidity works across pools meaning that OKB/USDT and OKB/wETH would mean wETH and USDT can be traded as well. And it would be liquid enough.

Yes, all tokens will be able to be trade against each other using Uniswap’s internal router since they have a common token which is $OKB that connects all pools

1 Like

Snapshot for the temperature check to deploy Uniswap v3 on X Layer is now live: https://snapshot.org/#/uniswapgovernance.eth/proposal/0x4d070edcd39b24b67e219f8f0f6308083c28d510ed0a1ac4ed3fb8d5879f3b6b

Thanks for the proposal. While we support a Uniswap v3 deployment on X layer, we request clarification regarding the following:

Will these be funds deployed as incentives or directly as liquidity pairs? If it is the latter, are these pools planned to be exempt from earning UNI rewards from the onboarding package?

1 Like

These funds will be deployed as liquidity and not incentives

1 Like

We will most probably use Merkl to distribute the incentives and our LPs will be blacklisted from earning any of the rewards

1 Like

@Yohaan_OKX we would be grateful for your response to our comments. Thanks

Definitely, thank you for the offer

We will vote for this deployment without any incentives. This is based on our analysis of the on-chain environment of X Layer.

While Curve has $5M TVL, the complete TVL is in a single USDC-USDT pool, with a wallet labelled “OKX Hot wallet” owning 100% of the pool. All other pools essentially have 0 liquidity and the DEX also has $0 24h volume.

Similarly, on Quickswap, there is a single wallet that has supplied $2.7M (76% of the total TVL).

Based on this, we feel incentives are premature.

1 Like

I similarly plan to vote for a deployment without incentives.

The amount of TVL on the OKX chain is quite low, significantly lower than even for Taiko and Polygon zkEVM:


For comparison, see the TVL on Bitcoin’s Rootstock, where Uniswap was deployed without any incentives from the DAO (if I’m not mistaken). While OKX can surely grow to the level of Taiko and zkEVM, it’s not even clear if incentives on these chains have been justified, at the time. Additionally, I expect that OKX is significantly less decentralized than these two chains, which should be a factor too IMO.

Thanks for the proposal Yohaan.
We at Revert are excited about the deployment and look forward to integrate our products for LPs as soon as possible.

1 Like