DefiPlaza: Making DeFi on Ethereum affordable again

Jazzer 9F
7 min readOct 12, 2021

--

Since the publication of the original Medium article on DefiPlaza, a lot has happened. Among other things, EIP-1559 has finally been implemented which many people had hoped would help reducing gas prices. Unfortunately, prices haven’t come down at all and Ethereum transactions are more expensive than ever. Thus, the DefiPlaza value proposition is as relevant now as it ever was. Last week the new and improved DefiPlaza v2 has launched and now is a good time to remind ourselves what DefiPlaza is all about:

DefiPlaza aims to bring DEX services to our customers at the lowest fees and gas costs on Ethereum. This includes swaps, adding/removing liquidity as well as staking transactions.

The way that DefiPlaza can achieve significantly lower costs is by using a different economic model. Rather than having trading pairs like in UniSwap (2 tokens per pair), DefiPlaza uses a multi-token pool with 16 of the highest volume tokens in the DeFi space. By doing all this in a single smart contract and highly optimizing for gas consumption, the costs of a swap transaction to the end-user can be significantly reduced.

Effectively, we’re trying to do for DeFi what the low cost brokers did for the stock market: tremendously bring down the barrier for entry and the costs to the end-user. The idea is to leverage a superior economic model to the pair based exchanges that currently dominate the DeFi space. In this post we’ll dive a little deeper into DEX transaction economics when viewed from the end-user side. In the next article we’ll explore the economics from the liquidity provider side of things.

Total end-user cost of a DEX transaction

If we look closely at any DEX transaction, we find that the total cost of a swap to the consumer can be broken down into three components:

  1. Gas fees. This is the most visible cost, as it is explicitly shown for each transaction. A swap between two ERC20 tokens which are directly pooled together in UniSwap usually costs in the order of 100.000–150.000 gas. This amount is independent of the amount swapped, and is thus disproportionally effecting users who are swapping relatively small amounts. Since the Ethereum network is congested this issue is not expected to go away anytime soon. Ethereum 2.0 will not solve it either, since that breaks composability and thus is not suitable for DeFi.
  2. Exchange fees. Every exchange uses their own fee model. The benchmark fee as set by UniSwap is 0.3% of the amount exchanged for pairs of dissimilar tokens. This fee directly goes into the pool and thus into the pockets of the liquidity providers. To make a swapping pair between two tokens economically attractive for the LPs, a 0.3% is roughly what’s required to get an appropriately balanced risk/reward ratio for dissimilar tokens.
  3. Bonding curve slippage. The spot price on a UniSwap pair is given by the ratio of the tokens held in reserve. When a trade is executed, the pair moves along the invariant curve x*y=k. Therefore, the price is changing as trades happen and the actual price paid for tokens in a swap will always be slightly worse than the spot price, which results in an additional cost to the user. Slippage is small for small trades but increases rapidly when the size of the trade grows relative to the liquidity in the pool.

As an example cost breakdown, let’s consider the UniSwap V2 pool for USDC/ETH, which contains roughly $240m in total liquidity as I’m writing this. Since DefiPlaza only launched last week, it doesn’t have the same liquidity yet. For an apples to apples comparison, let’s consider what would happen if DefiPlaza would contain the same $240m in total liquidity ($15m for each of the 16 tokens). For a swap of $10k in USDC to ETH, we would get the following cost breakdown (assuming gas at 100 GWei and ETH at $3500 as we have today).

We can observe that the total cost to the user for a DefiPlaza transaction is lower than just the gas costs for a UniSwap transaction. That means that DefiPlaza will be cheaper, regardless of what fees/slippage are used on UniSwap! For the $240m total liquidity example, a trade of 10k$ USDC to ETH would be ~45% cheaper than the same trade on UniSwapV2 is today.

The above cost breakdown is just for the USDC/ETH pair on DefiPlaza, but with in DefiPlaza the same $240m liquidity is split over 16 tokens, allowing 119 other pairs to trade on top of the USDC/ETH pair, all at the similar low total transaction costs. The multi-token pool model is vastly more economical than the pair-based model, especially in congested networks like Ethereum.

Reference transactions for gas costs:
1. DefiPlaza USDC to ETH, spending all USDC (59,844 gas)
2. UniSwapV2 USDC to ETH, spending all USDC (118,150 gas)

What about UniSwap v3?

The comparison above was done against the UniSwap v2 pool because it’s difficult to have an apples-to-apples comparison with v3 due to the concentrated liquidity mechanism. The upcoming post on liquidity provision economics will discuss concentrated liquidity in more detail, but for now let’s make the following general observations.

1. Gas costs of swaps have increased going from v2 to v3.
2. Fees for dissimilar tokens are still at 0.3% for most tokens.
3. After nearly 5 months the liquidity on v2 is still significantly larger than the liquidity on v3.

UniSwap v2 liquidity (left) is still significant larger than UniSwap v3 liquidity (right). Not on the same scale.

Put very bluntly, when the same fees are used the end-user UniSwap v2 simply gives a better deal than UniSwap v3. The high gas price combined with increased gas cost for v3 hinders adoption of the new version of UniSwap. In my opinion UniSwap has implemented very impressive new features from a technical point of view, but somewhat neglected improving the end-user value proposition.

Some pairs on v3 are now using the fee level intended for similar tokens (0.05%) for dissimilar tokens to attract more volume, but even against that lower fee DefiPlaza remains the better offering due to the gas costs factor.

Non-direct pairing swaps

The comparison for USDC to ETH transaction above focused on a type of transaction that UniSwap specialises in: swaps between two tokens that are directly paired together in a liquidity pool. As shown above, even under those conditions Defi Plaza comfortably offers the better value proposition at the same level of liquidity.

However, if a transaction involves two tokens which are not paired directly, the UniSwap router will automatically create a transaction which makes multiple hops. These additional hops introduce additional trading fees and additional gas costs. A 2-hop transaction will cost around 170k gas (±60$) on UniSwap v2 and around 250k gas (±87.5$) on UniSwap v3 in pure gas consumption.

In contrast, DefiPlaza doesn’t need hops for any of the 120 trading pairs, so it will result in the same low gas costs for all pairs. Swapping two ERC20 tokens costs around 77k gas (±26.5$) for most tokens, with swaps against ETH costing even less!

DefiPlaza liquidity program

In summary, we believe that DefiPlaza offers great value to both the end users (discussed in this article) and the liquidity providers (next article). The product is already out there and is working well. The code has been audited. What is still needed now is to grow the liquidity and the volume, through marketing, brand awareness, listings and integrations with aggregators.

We believe that the best way to gain traction is by increasing the liquidity, which is an enabler for low slippage trades. With sufficient liquidity DefiPlaza will become the lowest cost option for the vast majority of all DeFi token trades on Ethereum. To gain momentum, DefiPlaza is running a liquidity rewards program for 1 year (until Oct 6th 2022).

DefiPlaza.net/stake interface snapshot. Actual APR fluctuates over time. As this article is published it is 490%.

Over this one year, a total of 50M governance tokens are released to the liquidity holders on the exchange. A further 5M tokens are reserved for the team and the community fund, and another 12.7 M tokens are carried over from DefiPlaza version 1. The governance token will be used to vote on critical matters in the DefiPlaza ecosystem, such as which tokens are listed on the exchange and on the fees on the platform.

Check out our website at defiplaza.net
Check out our telegram channel at t.me/defiplaza

--

--

Jazzer 9F
Jazzer 9F

Written by Jazzer 9F

Main dev of DefiPlaza.net which is a DEX that brings a step change in fees and gas cost to Ethereum swap users. 65% lower cost, 15x capital efficiency.