What if you could swap for near 0 fees on Ethereum?
0x5feF
December 16th, 2021

To be honest, I’m always wondering about new use cases for web3 and improvements that can be made on current DeFi, and I know many of you think the same.

Why not have a quick talk about that? (grab a coffee)

First, let’s have a bit of history.

Despite being such a young industry, decentralized finance has quickly seen a lighting growth as real crypto enthusiasts found a way to truly live the world they’ve dreamed of, a decentralized universe where basically no banker could tell you to f-word off because you did not have the “financial stability” required to take a student loan, while monitoring and judging all your financial activity.

All of that, through Ethereum.

Nevertheless, as the network grew, more people onboarded, thus slowing the whole UX + making it more expensive, due to technical limitations (block-size, block-time, etc…).

Although being negative for the users (in appearance), it was the condition to make Ethereum a truly secured and decentralized network, where pretty much anyone could participate and help it run with basic hardware and an internet connection.

“To maximize the number of users who can run a node, we'll focus on regular consumer hardware.

See “The Limits to Blockchain Scalability” by Vitalik.

Nowadays, users are offered multiple solutions to access DeFi services such as swaps, lending, derivatives, or staking at way cheaper fees than on Ethereum, with faster transaction time. But at what cost?

Other layer 1 solutions (especially PoS ones) rather bet on UX than decentralization and security, to not give any name. Moreover, most of them had their initial token distribution process aimed towards quick financing thus allowing insiders, VCs, and other billion-dollar worth companies/individuals to benefit from it way more than the average crypto user.

This article is not about other L1s so I’ll try to be short, but please refer to the following documents and writings to know more about that specific debate which has set heat on CT (Crypto Twitter) and the whole “crypto sphere”.

Nevertheless, this has not stopped people from using Ethereum. Scaling solutions have been made (ex: Layer 2 Rollups). In late 2021, anyone can hop on a layer 2 and take profit from Ethereum security while paying significantly less on gas.

Anyway, I think you got the point from here. If not, feel free to read more about scaling solutions for Ethereum.


Now, what if I told you that you could swap with near 0 fees on Ethereum? Without any slippage or price impact? What if we combine this solution with L2s?

Introducing Kromatika, or what I see as “The most innovative solution against Ethereum swap fees”.

Links to Kromatika:


1 - Uniswap v3

To understand Kromatika, you first have to understand Uniswap V3. Uniswap is the leading DEX and one of the biggest DeFI protocols that exist today. The V3 of Uniswap introduced many interesting and innovative features (multiple fee tiers, improved Uniswap Oracles…). But we’ll focus on one of them. Learn more here

  • Uniswap V2 vs V3 & Concentrated liquidity
    • Before, on V2, users who provided LPs had their liquidity evenly spread across all theoretically possible prices ($0 to infinity, as the upward price growth of an asset, is potentially unlimited). This was to ensure that whatever the price was at, swaps were technically possible.
    • Unfortunately, this was not optimal, especially for Uniswap V2 stablecoin pools (Ex: DAI/USDC).
      • As they are dollar-pegged, the vast majority of swaps occur in a +/- 1% price variation from $1 ($0.99-$1.01 price range).
      • This means that provided liquidity in that pool will most likely never be used outside of that price range. Nobody wants to sell 1 USDC for $0.97 as much as nobody wants to buy 1 DAI for $1.03.Thus, this unused liquidity generates no swap fees and providers receive smaller, unoptimized rewards.
      • The DAI/USDC pool example makes the flaws of V2 easier to understand.
Example for the DAI/USDC LP
Example for the DAI/USDC LP
  • Uniswap V3’s Concentrated liquidity
    • In V3, liquidity is not evenly spread on the whole price curve. Instead, users can manually choose the price range they want to “concentrate” their LPs.
      • Example: Imagine you are putting liquidity in the ETH/DAI pool. You’re putting 1 $ETH and 4000 $DAI. You choose to concentrate your liquidity in the $3800-$4200 price range. This simply means that whenever someone swaps $ETH for any amount of $DAI between 3800-4200 $DAI, you get to earn the fees from that swap. If $ETH is traded outside the 3800-4200 $DAI range, then you get 0 fees.
Example for ETH/DAI LP
Example for ETH/DAI LP
  • This improves capital efficiency, as every user can set their own LP strategy, and target a specific price range to fit their personal analysis.
Concentrated liquidity makes higher capital efficiency
Concentrated liquidity makes higher capital efficiency
  • Uniswap V3’s Range orders

    Now that you know more about the concept of concentrated liquidity, understanding range orders should be easier.

    Users only deposit 1 single asset instead of 2, at a price range of their choice. This price range has to be above the current market price.

    • If this market price is hit, then the token will be sold against the other underlying asset.
      • Example: Take the DAI/USDC pool. The current $USDC market price is 1.001 $DAI. Imagine you put 1M $DAI at the price range of 1.002-1.003 $USDC.When the price of $DAI reaches your price range, your $DAI will instantly be converted into $USDC and you’ll also earn fees for that exact transaction, as you’re providing liquidity.
    • Do not mistake this for limit sell orders. To transform range orders into limit sell orders, users have to manually remove their deposited single asset liquidity as soon as it gets converted (when the price range is hit).
      • Example: You provided $DAI, your tokens got converted into $USDC, which means that your price range has been hit.
    • However, if the market price goes down again, it re-triggers your price range thus reconverting your $USDC into $DAI (remember, you are providing liquidity which is concentrated in your target price range, you are not limit selling, you do that to earn swap fees).
    • This means that to do limit selling on Uniswap V3, users have to constantly monitor their LP position and the current market price, and that is negative for UX.

2 - Leveraging Uniswap V3 for limit orders

Kromatika dApp
Kromatika dApp

Now you know more about concentrated liquidity and range orders.

But what does Kromatika bring to the table after all?

Basically, Kromatika does all the steps users have to do in Uniswap V3 range orders on their behalf. The protocol automates the process of removing the liquidity after your price range has been hit.

From a user’s perspective, the only interaction is to select a token and place a limit order on Kromatika. The rest is done by the protocol itself, reducing the steps by a lot.

How does it work?

Smart contracts alone can't trigger or initiate their own functions at arbitrary times or under arbitrary conditions. State change will only occur when a transaction is initiated by another account (such as user, oracle, or contract).

Chainlink Keepers provide users with a decentralized network of nodes that are incentivized to perform all registered jobs (or Upkeeps) without competing with each other.

https://docs.chain.link/docs/chainlink-keepers/introduction/

When placing a limit order on Kromatika, you are placing a range order on Uniswap v3.

Kromatika uses Chainlink Keepers to monitor everyone’s position so that when a user’s target is hit, the amount deposited gets automatically swapped then sent to the user’s wallet.

Keepers will simply check 24/7 if your target price is reached or not. If it is, then they will remove your liquidity (which has already been swapped for the desired token), and send the intended swapped mount + swap fees directly to your wallet.

$KROM token is the token users pay as service fees to Kromatika. (They cover Chainlink keepers fees and network fees). This means $KROM has an intrinsic value, being a utility token. Service fees are also inverse proportional to the $KROM price, as Keepers fees and network fees do not grow (in the quantity of ETH).

What are the benefits of using Kromatika rather than other DEXes?

  • Krom provides liquidity (Kromatika limit order = doing LPs)
  • You earn additional fees through Kromatika’s limit orders
  • Other projects such as 1inch have also implemented limit orders, but they are simple swaps that are triggered at a target price (as they are doing it over Uniswap V2, not V3).
  • Not everyone wants to spend ETH at each TX. Lots of people want to stack this token, so paying in $KROM is better in that sense.

Who is behind Kromatika?

The core team is composed of three people, who are all developers.


Thank you for reading,

@heinzyeth

Arweave TX
am-UZfim6v1mLcQkK5k1b8RHykyFATHxxaKDJUOWM3Y
Ethereum Address
0x5feFDb8E576BDA70f63E8e8EdaAc7426C67C6B5a
Content Digest
gziK5J7VHSoYvqPoAQVpam94H0ww58oY5Px2ue0so08