Enters Rapid Swap

Rapidswap
4 min readFeb 15, 2021

Abstract: We introduce Rapid Swap, a collision and front-running resistant decentralized exchange protocol on Ethereum BlockChain that integrates verifiable delay functions (VDF) as a proof-of-elapsed-time to resolve same-block order conflicts while preventing front-running attacks. Our proposal is the only decentralized exchange protocol that is very quick, publicly verifiable, resolvable, liquidity neutral, and front-running resistant.

1. Introduction

This is the summer of DeFi. We’ve seen the release and growth of hundreds of projects in the space, which together have created a more powerful DeFi network; clean, intuitive interfaces; and an explosion in locked value. We’ve also seen the introduction of several new, novel projects.But the novel and well-designed aren’t the same things, and many of the underlying weaknesses of DeFi remain.

1.1. Speed and Usability

Above all else, DeFi is slow and expensive. It costs dollars to do a trade, and minutes for it to clear. This is fine for some use cases-but many customers prefer the fast, cheap execution of centralized exchanges. It’s hard to stare at your Metamask wallet waiting for a trade to be confirmed without missing centralized exchanges

1.2. Centralization

When you trace all the way through, most DeFi protocols bottom out in a centralized oracle-often in the most crucial step.Sometimes, this is a liquidation price oracle pointing to centralized exchange APIs. Other times it’s a council of token holders. Sometimes it’s the team of the protocol itself.

There’s a further problem too — most decentralizing protocols are computationally intensive. Fitting them into the ETH blockchain in a way that is cost-efficient and fast has mostly eluded the space.

That’s not to say that centralization is always bad! USDT, USDC, and similar tokens are great projects which have revolutionized the entire crypto industry. They power much of the volume, and if you want something that can be turned into a dollar 24/7 that’s the only game in town and probably always will be. Because fundamentally dollar bills aren’t on the blockchain, they’re in bank accounts.

But if what you want is pure DeFi, the options are few and far between.

1.3. Orderbooks

Uniswap has quietly revolutionized DeFi by allowing trading without order books.But the more remarkable thing is that Automated Market Making is necessary. AMM is a system where there are no limit orders, or even bids or offers; in an order book, you can decide the price, size, and direction you want to trade.

There are lots of disadvantages to AMM. You can’t provide liquidity unless you provide both sides; you can’t choose to only provide at a particular price; you can’t provide at a price other than the current market price, and you can’t select the size to provide there without providing way more behind it.

There’s a solution to this–it’s what the rest of finance does. But DeFi doesn’t have order books, by and large, because the ETH network is too slow and expensive to support them. Matching bids and offers with each other involve a bunch of operations.

1.4. Cross-chain Support

There have been many attempts at cross-chain support. WBTC is probably the most known, creating an ERC20 token wrapping BTC; Thorchain is building an entire protocol that allows for complete, fast cross-chain support.

There are lots of ways to attempt it. One thing all of the current versions have in common, though, is an oracle, or panel of token holders, or some other place where the truth is decided by people expected to be honest. Because, fundamentally, BTC isn’t on Ethereum, so how can a smart contract know or impact its transfers?

Rapidswap is not perfect; nothing is. There are fundamental tradeoffs between speed and decentralization; sophistication and ease of use. But RAPIDSWAP is different, and it’s powerful. Its software enables a fast DEX; it has cross-chain support, stable coins, wrapped coins, order books, and the ability to create custom and novel financial products; and while having all of those, it’s fully decentralized. There are no oracles to centralized price feeds; no tribunals whose honesty you rely on. Rapidswap is pure DeFi. And unlike current DeFi, it’s very fast and cheap.

2. Project RAPID SWAP

Project Rapidswap will unveil a fully functional decentralized exchange with trustless cross-chain trading, all at the speed and price that customers want. And despite living natively on Ethereum BlockChain, it will be interoperable with Ethereum. Rapidswap made of seven main ingredients:

--

--