Mooniswap brings its next-generation AMM protocol by 1inch to NEAR

By November 24, 2020 No Comments

In less than a month since the unrestricted Mainnet has been live, the NEAR community is hard at work to bring best in class applications to the platform. Mooniswap by 1inch.exchange is the latest addition to a vibrant ecosystem of protocols building on NEAR.

NEAR’s focus on both the usability and performance is opening up new opportunities for DeFi in the industry by supporting at-scale real world applications with lower gas fees, low latency, and a flexible account model. 1inch’s decentralized exchange (DEX) aggregator is designed to roll liquidity and pricing from all major DEXes into one platform, making it easy to get the best price for the desired trade. Mooniswap building on NEAR will bring next generation Automated Market Making possibilities to the OpenWeb.

We spoke with Sergej Kunz, CEO and co-founder of 1inch, about the growth of their platform and why Mooniswap is excited to be building on NEAR.

“We see substantial potential in NEAR as it is already offering what Ethereum just promises to offer. By building on NEAR, we’ll be able to experiment with sharding and be prepared for the arrival of Ethereum 2.0.”

NEAR delivering on the promise of sharding ahead of Ethereum 2.0 has caught the attention of decentralized applications that need scale to grow. Mooniswap is just the first of many applications building on NEAR that will leverage the performance, cost efficiency, and portability of the Rainbow Bridge.

Front Running Exploitation in Decentralized Exchanges

Blockchain applications have long sought to solve the issue of fairness and transparency in financial trading ecosystems. However, even today due to the public nature of blockchains one can easily identify the widespread use of nefarious tactics like arbitrage bots which exploit inefficiencies in decentralized exchanges. Similar to high-frequency traders on Wall Street, arbitrage bots are able to anticipate ordinary user’s trades and optimize for network latency in order to maximize profit at the expense of ordinary users. This problem is commonly referred to as “Front Running”, the primary problem that inspired the 1inch team to launch Mooniswap.

Because transactions and gas fees are publicly visible before a block is mined, arbitrage bots are able to predict the direction a market is headed and submit a transaction with a higher gas price forcing their transaction to be mined first. By trading on price swings, arbitrage traders use Front Running to essentially steal from liquidity providers.

The Mooniswap Solution

Mooniswap sought to solve this problem by simply using time to combat arbitrage bots. Virtual balances normalize pricing over a short 5 minute period keeping slippage revenue in a pool to be distributed more equitably.

When a swap occurs, the Mooniswap AMM does not immediately improve price in the opposite direction, but gradually opens it over time. These high-slippage trades are the opportunity arbitrageurs seek to profit on, but in the fairer, more transparent ecosystem on Mooniswap, the actual balance of the exchange does not immediately reflect changes from slippage. Any new trades are still executed at the old price.

Over a five minute period, the price gradually updates to its true value based on the pool balances. This leaves only small windows of arbitrage opportunities, limiting exposure to average users in a more fair ecosystem.

Additionally, during that short window, the exchange takes a much higher percentage of the trader’s profit forcing arbitrageurs to return a higher proportion of the price slippage to the pool.

On Mooniswap, arbitrageurs can only collect a portion of the slippage, and the rest remains in the pool and is shared among liquidity providers. Since prices are not updated immediately, no profit can be obtained by simply being faster than someone else.

Mooniswap’s Preparation for Sharding

NEAR’s launch introduced a scalable model for sharding to the blockchain industry. A first among leading protocols promising to deliver on real world usable blockchain. This presents a unique opportunity for existing dapps to start building and testing their infrastructure on sharding now to experience the benefits of scale that other blockchains promise to deliver in future versions.

“As a previous bridge developer of NEAR, I’m quite excited to see the game-changing Mooniswap innovation build on the game-changing innovation that is NEAR protocol,”

says Anton Bukov, 1inch co-founder and CTO.

“Mooniswap’s move to NEAR highlights the community synergy and virtuous circle that make up the overall blockchain and DeFi space. Moreover, this synergy underscores 1inch’s ultimate mission: to improve DeFi technology as much as possible for as many users as possible.”

 

To start, Mooniswap will migrate their protocol to NEAR’s virtual machine along with establishing a native liquidity protocol on NEAR. The NEAR EVM and Rainbow bridge create a seamless path to market on NEAR in the short term while they architect long term solutions for even more scale. Eventually, they will rebuild their core protocol native to NEAR, based on a sharded architecture, and become the first sharded decentralized exchange.

Key Milestones for Mooniswap

The team has recently launched 1inch version 2. Its major highlights are Pathfinder, an API that contains a new discovery and routing algorithm, and an intuitive, user-friendly UI. Thanks to the improvements, users will get even better rates on swaps, while response time will be cut even further. Many more products and features are in the works to power a more fair and transparent future for scalable decentralized exchanges.

Welcome to the Community

Please join us in welcoming the 1inch team to the NEAR community. We look forward to supporting their goal in creating more fair and transparent scalable decentralized exchanges. Stay tuned as we have a number of great partners joining with applications across the ecosystem.

If you’re just learning about NEAR for the first time and are seeing this post, we invite you to join us on the journey to make blockchain accessible to everyday people with NEAR. If you’re a developer, be sure to sign up for our developer program and join the conversation in our Discord chat. You can also keep up to date on future releases, announcements, and event invitations by subscribing to our newsletter for the latest news on NEAR.