Trader Joe Presents: Liquidity Book
New features like fungible liquidity bins and Surge Pricing maximizes AMM efficiency, minimizes slippage, and mitigates impermanent loss.
The Trader Joe decentralized exchange (DEX) launched on Avalanche on July 4, 2021. Since launch, the exchange has facilitated trading volume of over $88 billion and enables peer-to-peer trading for thousands of active users daily.
The current DEX’s trading algorithm is powered by the popular x*y=k automated market maker (AMM) formula. During the early days of its launch, this design experienced exponential growth and adoption across the entire decentralized finance (DeFi) market giving traders and liquidity providers an accessible, convenient way to trade tokens and provide passive liquidity. However, this design also has drawbacks, such as high capital inefficiency, high slippage on trades, and risks of impermanent loss.
Enter: Liquidity Book. This new design for AMMs fixes the inefficiencies of x*y=k, while still maintaining and improving the simple experience that generated the success seen in prior AMM models. What exactly makes Liquidity Book so innovative?
Liquidity is More Efficient, Flexible, and Composable with Liquidity Book
A groundbreaking innovation from Liquidity Book is how liquidity is stacked inside liquidity pools. Liquidity providers (LPs) deposit liquidity into discrete price bins, each bin is assigned a specific price and liquidity providers may provide liquidity to multiple bins. A key innovation is that all liquidity deposited into bins, are given fungible token receipts. This architecture is different from existing concentrated liquidity solutions, by adding liquidity into non-fungible token receipts.
LPs using Liquidity Book can earn more fees, while putting less capital at risk. Traders also indirectly benefit from improvements in efficiency by getting better prices and lower slippage on their trades. In traditional x*y=k AMMs, the deposited liquidity is distributed evenly across all price ranges–from zero to infinity. While this means that the liquidity pool always has tokens to buy and sell, it also means that a big part of the liquidity remains unused.
Liquidity Book solves this problem by allowing users to choose at what prices they want to provide liquidity. Liquidity Book provides more flexibility, by letting liquidity providers select any number of bins. Much less liquidity is sitting idle and efficiency improvements can scale up to as much as 20,000x higher.
LPs providing liquidity will be given fungible token receipts, thanks to the discrete bin architecture. Fungible token receipts are more composable, this opens up new possibilities for DeFi integrations with other protocols and products. The more composable the design, the bigger DeFi can grow.
Surge Pricing Compensates Liquidity Providers to Mitigate Impermanent Loss
Existing AMM’s typically have a flat fee for all trades. Liquidity Book introduces a fee structure that has two components, a base fee and a variable fee. The base fee represents the minimum fee rate for all trades, and the variable fee is adjusted to account for volatility. The more volatile the assets are in a Liquidity Pool, the higher the variable fee will be. This feature is what Trader Joe calls Surge Pricing.
Providing liquidity on concentrated liquidity exchanges can come with Impermanent Loss risk, which occurs when the prices of assets in the pool deviate from their initial prices. Impermanent Loss can be viewed as a cost of the price discovery, so it is highest during the most volatile times when the market tries to correctly price assets in the pair. Surge Pricing is a feature that is applied to trades during market volatility and this feature generates additional fees from trades, used to compensate LPs for the Impermanent Loss they experience during market volatility.
Surge Pricing is possible due to the novel mechanism called The Volatility Accumulator (VA). The VA is able to calculate instantaneous volatility for each Liquidity Pool, without relying on any outside oracles by tracking transactions across bins. The count from the Volatility Accumulator dictates the variable fee that is applied by the Surge Pricing feature for trades that are executed on Liquidity Book.
Surge Pricing is the ideal solution for liquidity providers to mitigate against value lost during of impermanent loss that is plaguing existing AMM models today.
Discretized Bins Make Zero Slippage Swaps Possible
Liquidity Book combines bins into one structure, aggregating liquidity from all of them to form a Liquidity Pool. Individually, bins act as constant sum pools with their own liquidity reserves, as opposed to existing AMM designs that use a constant product formula. This model uses pool reserves to calculate prices, which often result in Traders paying more for less tokens.
In Liquidity Book, the price is derived from an active bin and is constant inside it. As a result, if the trade occurs using reserves from the bin being used for a transaction, the trade will execute with zero slippage.
The price impact occurs when a trade requires a bin change, which happens when reserves in the currently active bin are not enough to fulfill the trade. This feature is particularly beneficial for swaps between stablecoins and other pegged assets, as their prices are expected to be equal to each other, most of the time.
The AMM model experienced fantastic innovation to date, but there are still some notable drawbacks and areas that need solutions and enhancements. With the Liquidity Book, traders get more efficient trades, and liquidity providers get enhanced efficiency, mitigation against impermanent loss, and maximum composability of their liquidity.
Liquidity Book is the next-generation automated market maker that will unlock active liquidity provisioning, without compromising the needs of key stakeholders. This is an exciting step forward for Avalanche DeFi that will unlock a new wave of innovation on-chain.
Sources:
Trader Joe is a one-stop-shop decentralized trading platform native to the Avalanche blockchain. Trader Joe offers a comprehensive DeFi platform where you can Trade, Lend and Leverage, participate in a Launchpad and shop for NFTs. Visit Trader Joe and discover what DeFi can really offer.