But just before we dive in, it's important to call out that there is no one perfect place to make a trade.
Depending on which AMM you're using, there are trade-offs.
Depending on which AMM you're using, there are trade-offs.
Whether you're a liquidity provider or a trader will dictate how you're affected and how your downside is protected.
Liquidity providers may gravitate toward a particular AMM for impermanent loss protection while traders may choose another for less slippage on a sizable swap.
Liquidity providers may gravitate toward a particular AMM for impermanent loss protection while traders may choose another for less slippage on a sizable swap.
Speaking of downside protection, a good protocol will leverage the tech in their AMM to:
1. service a segment of users willing to pay adequate fees
2. protect users from IL and/or slippage in a trade of two or more particular asset types.
So let's get started!
1. service a segment of users willing to pay adequate fees
2. protect users from IL and/or slippage in a trade of two or more particular asset types.
So let's get started!
The CPMM sets a price as a function of the ratio of assets held in the liquidity pool, with price then responding to demand.
Bancor's innovation led to what is one of the most popular DeFi primitives, used also by the likes of Uniswap and Balancer.
Bancor's innovation led to what is one of the most popular DeFi primitives, used also by the likes of Uniswap and Balancer.
The CSMM is put to use in Aave's wrapper contracts and Maker's Peg Stability Module.
CSMMs have stable exchange rates but are vulnerable to arbitrage and can sometimes fail to provide liquidity.
CSMMs have stable exchange rates but are vulnerable to arbitrage and can sometimes fail to provide liquidity.
These two examples are historic and represent more extreme types of AMMs with major trade-offs for both volatile and stable asset pairs.
Modern algorithms have taken the best from both approaches and combined them into what are some of the market leading AMMs.
Modern algorithms have taken the best from both approaches and combined them into what are some of the market leading AMMs.
Significant R&D has been invested into improving the previous two models, and as a result a number of very exotic and highly performative hybrid solutions have emerged.
The first of these solutions is Curve's StableSwap which has been adopted as the standard for pegged assets.
The first of these solutions is Curve's StableSwap which has been adopted as the standard for pegged assets.
CryptoSwap has the added benefit of concentrating liquidity around the current price, reducing slippage and allowing large trades to not drastically affect price.
Curve V2 pools have been refined over time and now form a major part of the liquidity backbone of DeFi.
Curve V2 pools have been refined over time and now form a major part of the liquidity backbone of DeFi.
A recent entry into the AMM market is Solidly, pioneered by the famed Andre Cronje.
$SOLID leverages SolidlyStable, an algorithm based on Uni V2, but with a couple of subtle differences, most notably, the lack of Uniswap's adjustment parameter.
$SOLID leverages SolidlyStable, an algorithm based on Uni V2, but with a couple of subtle differences, most notably, the lack of Uniswap's adjustment parameter.
If you're unsure how Solidly and many of the other forks leveraging Andre's work function, take a look at the following thread 👇
The previous AMMs have spun efficiency via transformation of their curve.
Kyberswap introduced another flavour to the mix with their Virtual Reserves AMM, multiplying the real balances of each asset to achieve capital efficiency, but at the cost of portfolio risk.
Kyberswap introduced another flavour to the mix with their Virtual Reserves AMM, multiplying the real balances of each asset to achieve capital efficiency, but at the cost of portfolio risk.
V3 has dominated the space and is by far the largest by volume, generating outsized returns for LPs and a seamless experience for traders.
The trade-off for LPs is that their V3 position requires active engagement and complex decision making.
Dashboard credit: @zackmarkman
The trade-off for LPs is that their V3 position requires active engagement and complex decision making.
Dashboard credit: @zackmarkman
To wrap-up each approach we have:
- StableSwap (Curve): excellent for 1:1 assets
- CryptoSwap (Curve): great for volatile pairs with the added benefit of some automated liquidity concentration
- StableSwap (Curve): excellent for 1:1 assets
- CryptoSwap (Curve): great for volatile pairs with the added benefit of some automated liquidity concentration
- SolidlySwap (Solidly): similar performance to StableSwap but somewhat easier to manage and is more forgiving to fluctuating pegs
- UniV3 (Uniswap): market leader with minimal slippage and massive volume on stable and volatile swaps leveraging virtual reserves.
- UniV3 (Uniswap): market leader with minimal slippage and massive volume on stable and volatile swaps leveraging virtual reserves.
This overview is by no means exhaustive and has focused on the primitives themselves.
Each approach discussed offers many additional features which skew the value prop for users in one direction or another.
Each approach discussed offers many additional features which skew the value prop for users in one direction or another.
Other considerations beyond the tech are financial KPIs and tokenomics, product engagement figures, ecosystem and community engagement figures alongside market share, CAGR and addressable vs obtainable markets.
If you'd like to dive deeper into how AMMs function be sure to check out @mattdeible's work at @semioticlabs along with Uni's, Curve's and Solidly's various whitepapers.
And check out these insightful researchers, educators and threadooors
@eli5_defi
@blocmatesdotcom
@defi_mochi
@crypto_condom
@DefiIgnas
@byChadManDan
@DAdvisoor
@crypthoem
@ViktorDefi
@LouisCooper_
@eli5_defi
@blocmatesdotcom
@defi_mochi
@crypto_condom
@DefiIgnas
@byChadManDan
@DAdvisoor
@crypthoem
@ViktorDefi
@LouisCooper_
Want more threaded DeFi insights with a side of dessert? Follow, like and retweet if we've added to your knowledge stack.
Pudding out 😋
Pudding out 😋
Loading suggestions...