We use necessary cookies for site function. For analytics and marketing, we need your consent. You can change your mind anytime. Privacy Policy

Automated Market Maker
Stellar · DeFi · AMM

DeFi Explained: What is an Automated Market Maker?

Olvis GilOlvis Gil  ·  EduNode  ·  5 min read

One of the most interesting ideas in DeFi is the concept of AMMs, so I thought it would be a good idea to talk about: What are AMMs? Why are they useful? And how they are being used in decentralized finance.

What are AMMs?

AMM stands for "Automated Market Maker" and we can describe them as a tool used to provide liquidity to decentralized applications. AMMs are basically a Smart Contract where the supply and the demand of the assets involved are determined by a mathematical algorithm.

Smart contract diagram
How it works: An AMM allows traders to buy and sell certain assets or tokens using an algorithm that dictates how expensive something should be, based on how much of it there is. As someone buys one asset, it gets more expensive because there is less of it — and as they give another asset, it gets cheaper because there is more of it.
AMM price curve

This is unlike traditional Market Makers, which are usually managed by one person or a group of people.

Traditional vs AMM comparison

State of the Art

There are several popular decentralized and permission-less exchanges that allow the trading of tokens, such as Uniswap and Aave. Uniswap in particular was one of the first widely used DApps that implemented AMMs for the trade of ERC-20 tokens. Uniswap and other DeFi Exchanges use a simple x*y=k equation to set the mathematical relationship between the particular assets held in the liquidity pools. Here you can find details about the DApps with the most locked value.

AMMs on Stellar

The release of protocol 18 on November 3rd brought the long-awaited AMM functionality to the Stellar network. This release is particularly exciting because it is a new way to bring liquidity by leveraging liquidity pools on the network.

Liquidity providers earn a 0.3% fee on all trades proportional to their share of the pool. Fees are added to the pool and accumulated in real time. Fees can be claimed by withdrawing your liquidity. You can find more details in this blog post written by Justin Rice.

AMMs are being used significantly, and one of the projects leveraging this new functionality on Stellar is called StellarX. On this blog post, written by Dima from the StellarX team, you can learn how you can create liquidity pools.

Another project leveraging AMMs on Stellar is Aquarius, a liquidity management layer for the Stellar Network. Aquarius is designed to supercharge trading on Stellar, bring more liquidity, and give control over how it is distributed across various market pairs. It adds incentives for SDEX traders ("market maker rewards") and rewards for AMM liquidity providers. https://aqua.network/

Aquarius on Stellar

Conclusion

AMMs are one of the most popular applications in decentralized finance and have proven to work as one of the best ways of generating liquidity across a great range of DeFi projects. We look forward to the future of AMMs, especially on the Stellar Network, where it has begun to gain serious momentum.

If you enjoy this blog post, feel free to share it with your friends and join our Discord server: https://discord.gg/pcenYYjPmd

Resources

[1] Introducing Automated Market Makers on Stellar

[2] AMMs on StellarX

[3] What Is an Automated Market Maker? — CoinDesk

[4] AMMs in the Stellar Ecosystem

Share this article
Olvis Gil
Olvis Gil

Founder of EduNode and MozartPay. Web3 educator, DeFi enthusiast, and payment technology expert based in Vienna, Austria.