Loopring’s New Relayer Added AMM Support

This article was first published on Loopring Protocol - Medium
-----

On October 9th, our team successfully submitted zkRollup AMM join, swap, and exit transactions on Ethereum’s Goerli network.

A few example transactions:

About Loopring’s AMM Design

An AMM swap circuit is now part of Loopring 3.6. The circuit implemented the Balancer curve:

Where

  • t ranges over the tokens in the pool;
  • Bt is the balance of the token in the pool;
  • Wt is the weight of the token, upgradable by the AMM pool’s managing contract.

Various AMM pools can be implemented differently in their own smart contracts; all pool join and exit transactions are on layer-2 using Loopring’s Transfer transactions. The pool’s smart contract verifies join/exit transactions data onchain and manages pool token issuance; Loopring only facilitates swap transaction settlement. Therefore, AMM pool contracts are not considered as part of the Loopring protocol.

Loopring 3.6 will match regular orderbook orders with AMM pools natively without the need for extra funds to do arbitrage. Orders can be filled partially with other orders and partially with AMM pools....

-----
To keep reading, please go to the original article at:
Loopring Protocol - Medium

Comments (No)

Leave a Reply