Wiretap Wednesday: Bridging Layer 2 Chains for DeFi Summer 2.0 w/ DeGate

DeGate is putting a twist on Decentralized Exchange with their combination AMM and Order Book. Take a look at how cross-chain composability solves problems in DeFi.

DeFi Slate Fam:

We are thrilled to collaborate with some of the brightest minds in crypto in an effort to help bring Layer 2 tech to the masses.

You’ve probably been exposed to the fast transactions speeds and low fees as a result of Layer 2. If not, seriously check out our videos on Polygon and earlier articles navigating L2.

Now, the movement is towards unlocking the power of an all-in-one DeFi trading suite with access to the entire cross-chain ecosystem.

DeGate is a Zk-Rollup style L2 bridge and DEX blending multiple aspects of cutting edge DeFi tech. Learn more below about how DeGate combines AMM and Order Book trading styles to provide a cutting edge trading experience for the Degen community.

Enjoy!

-Rob


It’s harvest season. Earn interest without taking market risk on mstable :) (Recently launched on Polygon for gas-free farming)

Aave is the non-custodial money market protocol leading the #DeFi charge.

Use the app as a high-yield savings account & access leverage on your crypto.


Understanding DeGate Order-Book trading

There are good reasons why the order-book model has not taken off in decentralized exchanges, compared to the AMM model:

1. The trading depth cannot compete with that of centralized exchanges.

2. Every pending and canceled order must be packaged on-chain, consuming gas fee.

3. The TPS of the infrastructure is limited, and the transaction matching response is not timely.

In view of this, DeGate hopes to bring users a smoother and more economical order-book trading experience with a uniquely designed Match Node model (Layer 3). We have also designed a unique economic incentive model to encourage Makers to take part in the system as liquidity providers. Our design goals are as follows:

Instantly place and cancel orders: response time as fast as centralized exchanges

Place & cancel orders for free: free to place and cancel orders without 

Subsidized gas for Makers: including trading fee and gas fee

Direct trade for Takers: no pre-deposit needed

The following is an illustration of the transaction experience process from the user's perspective, after completing the process of moving assets from L1 to L2:

Taker (route 1 in the figure) does not need to deposit funds and can directly place a market order to complete the transaction on L2.

Maker (route 2 in the figure) can place a limit order after depositing without waiting. The limit order will show in the order-book of exchanges immediately, and the transaction can be completed when Taker takes the order. No fee is needed for Maker for the whole process.

Main Features of the DeGate Architecture

Match node

The term Match node refers to a "Layer 3" specially designed by DeGate to optimize the user's trading experience. It is responsible for placing orders, canceling orders, maintaining order-book, and matching orders during user trading. The matching results are generated into zero-knowledge proof and submitted to L2 for verification in batches eventually.

The design features of Match node are as follows:

1. Priority given to large orders

In our design, the Taker in a transaction bears the trading fee and gas fee of Maker. If a Taker order is matched with multiple Maker orders at the same time, fees of multiple Makers will be paid by the Taker. Correspondingly, exchanges may also launch a dusting attack (since Makers place orders for free, attackers can launch massive amounts of dusting orders at low cost). To solve this problem, our matching engine will implement a large order priority strategy. The order with the largest initial amount will be matched first among orders at the same price.

2. Order canceling compatible with off-chain & on-chain processing

The operation of canceling orders is processed in Match node by default without any fee, but some users may be concerned about the hidden dangers of centralized processing (for example, the Match node could be malicious and discard users' canceled orders). Therefore, the feature of directly canceling orders onchain is also provided by the protocol.

3. Prevent Front-running

There is a possible situation where a user learns in advance that his order is matched through the API interface of the Match node or Mempool pre-run, and initiates a withdrawal or unapprove operation before zero-knowledge proof containing the matched transaction is settled on the chain, thereby causing the transaction to fail due to insufficient user's assets. To avoid such attacks, DeGate adds checkpoints to Match node and adds a design for delayed withdrawal.

4. API calls and open protocols

The functions of Match node can be called through API like centralized exchanges so that third parties can deploy and develop their UI interface and focus on user operation without caring about the underlying implementation details. Furthermore, third parties can deploy and operate their own Match node independently in the future. We believe that this development policy will make the DeGate protocol more robust and open.

5. Zero-knowledge proof

Zero-knowledge proof is a method by which the prover can convince the verifier that a certain assertion is correct without providing any useful information to the verifier.

In general, each node performs the same computation for each transaction in the block and verifies whether their results are consistent with the results of other nodes in a blockchain system.

In other words, each transaction on the chain will be executed by each node, which is one of the main reasons for the relatively low performance of the blockchain.

We do not need to recalculate every time to verify the transaction, and it would effectively improve the performance of the blockchain if the calculation only occurs once for a single transaction, and each other node only performs the verification, when the verification cost is much lower than the calculation cost.

Zk Rollup is using ZK-SNARK technology, which is essentially a technology that can significantly reduce the verification cost, generally by several orders of magnitude compared to the calculation cost (from linear to constant or logarithmic).

Based on this same idea, Match node also generates the batch results of the off-chain order matching into zero-knowledge proof, which is passed to L2 for verification. This is expected to reduce the network cost on L2 by more than 10 times. 

Super conduct channel

Arbitrage trading is ubiquitous in a decentralized world, and arbitrageurs can quickly reduce the price difference between different protocols once they find profit margins. DeGate hopes to use what we term a super conduct channel to bring trading fees of arbitrage transactions between order-book transactions and AMM transactions close to zero. For arbitrageurs, this makes arbitrage between DeGate protocols more competitive than between third-party protocols, and for ordinary users, they will also get better capital utilization and market depth.

Market Strategies

DeGate will prioritize the use of proven market strategies, including:

Looking Ahead to a secure, low-cost Decentralised Exchange with order book function 

Against the backdrop of a fast-developing Ethereum Layer 2 and ETH 2.0 ecosystem, DeGate will work with the community to focus on the essence of transaction and user experience, continue to empower the Ethereum ecosystem, lower the threshold for mainstream users to conduct decentralized transactions, and enable the technology and concept of blockchain to serve a wider range of people.

  • Order-book Liquidity Mining: DG tokens are only rewarded to Makers who complete transactions in proportion.

  • Liquidity Mining for AMM: DG tokens are rewarded to liquidity providers according to industry standards in liquidity mining.

  • Referral program: UI providers such as KOLs and User Interfaces by wallet providers are rewarded with trading fee rebates and DG tokens in the initial bootstrapping phase.

Looking Ahead to a secure, low-cost Decentralised Exchange with order book function 

Against the backdrop of a fast-developing Ethereum Layer 2 and ETH 2.0 ecosystem, DeGate will work with the community to focus on the essence of transaction and user experience, continue to empower the Ethereum ecosystem, lower the threshold for mainstream users to conduct decentralized transactions, and enable the technology and concept of blockchain to serve a wider range of people.


👀 Sponsor Update: DeGate is a Decentralized Layer 2 Decentralized Exchange based on optimistic rollups. DeGate will offer secure order-book trading that is faster and cheaper.

Degate also offers a fast and efficient L1 - L2 Bridge, testnet is operating now. Try it HERE


⚠️ DISCLAIMER: Investing into cryptocurrency and DeFi platforms comes with inherent risk including technical risk, human error, platform failure and more. At certain points throughout this post, we might get commission for promoting certain projects, if this is the case we will always make sure it is clear. We are strictly an educational content platform, nothing we offer is financial advice. We are not professionals or licensed advisors.


Liked this post? Share with a friend :)

Share

Join Our Inner Circle And Become A Certified DeFi Degen!

🌐Check Us Out On Twitter!

🚀Join the community on Telegram Channel to get our free V.1. yield farming guide!

🎤Subscribe to our YouTube channel!

Last week in review:

Check out some previous post and interviews: