Gas cost reduced by 55 times? Let’s try Uniswap V2 on Arbitrum Rollup

Gas cost reduced by 55 times? Let’s try Uniswap V2 on Arbitrum Rollup

Loading

Gas 成本降低 55 倍?来试试 Arbitrum Rollup 上的 Uniswap V2

Original title: “Announcement | Arbiswap: Uniswap V2 running on Arbitrum Rollup”

Written by: Offchain Labs

Translation & Proofreading: Min Min & A Jian

Too long to see: a simple transplant can reduce gas cost by more than 55 times. Try it today!

Earlier this month, we officially announced the new Arbitrum Rollup testnet. Arbitrum Rollup is a full-featured Optimistic Rollup solution that allows anyone to immediately deploy Layer 2 contracts. Today, we are in one of the most popular portable Ethernet Square dApp, to show the magic Arbitrum. This is Arbiswap: Uniswap V2 running on the Arbitrum Rollup testnet.

Next try Arbiswap. For convenience, we made a faucet to send your tokens directly to the Arbitrum chain. However, if you already hold Ether or some ERC20 tokens on Kovan, you can also directly Arbiswap, no need to claim tokens from the tap. After completing the exchange, you can check your transaction directly on the Arbitrum Rollup block explorer to understand its gas usage.

Extended benchmark

It takes approximately 109,500 gas to trade tokens on Uniswap of Ethereum Layer 1; the gas limit of each block is 10 million, and one block is mined approximately every 13 seconds. In other words, Ethereum Layer 1 can process up to 7 Uniswap token transactions per second.

Arbiswap: With the Arbiswap Rollup chain running at full capacity, the gas cost of Layer 1 drops to 1965 gas per transaction. In other words, Layer 1 can process up to 390 transactions per second, reducing gas costs by 55 times!

However, our goal is more than that. In the next version of the Arbitrum testnet, we will support BLS signatures and other compression techniques to reduce gas usage by one to two times.

What are the functions of Arbiswap?

Arbiswap is neither a proof of concept nor an application like Uniswap, but a fully functional Uniswap V2 running on Rollup (it runs on Layer 2, so it has other advantages). We adopted the Uniswap code base and migrated it all to Arbitrum.

Token bridge . All Rollup chains are inseparable from a key function, that is, allowing tokens to be transferred in both directions between Ethereum and Rollup chains. If you can’t do this, Uniswap (or any other DeFi application) will not be very useful, because you can’t use it to exchange ether or any ERC20 tokens.

Arbitrum has a user-friendly token bridge function that can facilitate the transfer of assets between Ethereum and the Arbitrum Rollup chain. To be more cool, we integrated the token bridge directly into Uniswap’s user interface. In our demo, you can trade real (testnet) ether directly on Uniswap. In fact, you can port any token you like to our demo so that you can trade directly. There is no routine here. It’s that simple!

Wallet support . We are happy to announce that we have added wallet support. Now you can use Arbiswap on three wallets: Metamask, Fortmatic and Portis. We are very grateful to the Magic and Portis teams for their support, and we are also actively supporting other wallets. Please pay attention to follow-up announcements.

The next lucky person is you!

Since Arbiswap’s demo is so cool, don’t you want to port your application to Arbitrum? Presumably you will have some questions to answer.

How complicated is it to port my dApp to Arbtrum?

Not complicated at all! You only need to change your RPC endpoint to.

Do I need to rewrite most of the code in the code base?

Do not! You do not need to modify the code at all.

Where can I download the Arbitrum tool?

You don’t need to download any new software to deploy contracts on Arbitrum. You don’t even need to recompile your contract.

Can I use existing Ethereum development facilities?

can! Arbitrum supports EVM languages ​​such as Solidity, Vyper, Yul, and Ethereum development tools such as Truffle, Hardhat, ethers.js, and The Graph.

What if I have a problem?

If you encounter any problems, please send us a message on Discord. We will help you!

I want to experience Arbiswap and build on Arbitrum. Can you start now?

Of course. I am glad you have this interest.

Arbiswap is a demo built by Offchain Labs using Uniswap’s open source code, but it does not belong to Uniswap. We welcome the Uniswap community to experience Arbiswap and publish Uniswap examples on Arbitrum’s upcoming mainnet.

Arbiswap:

Developer documentation:

Testnet landing page:

Block explorer:

community: