0/5
## Graphing Constant Product AMM Liquidity Let's review the constant product AMM, specifically, how changes in liquidity affect the graph of a constant product AMM. To begin, we have a graph of a constant product AMM in pink, where the liquidity is equal to 5. We will also draw a second constant product AMM, in green, with a liquidity of 5 as well. As we increase the liquidity of the second constant product AMM, we can see the graph of that curve moves in a diagonal direction towards the top right of the screen. We can also see the graph becomes more flat compared to the constant product AMM with less liquidity. Now, let's decrease the liquidity of the green graph. We can see that the graph moves towards the bottom left of the screen, towards the origin, x, y = 0, 0. Further, we also notice the curvature increases as liquidity decreases.
A comprehensive course on Vyper smart contract development using Moccasin. The course covers setting up a development environment, deploying and interacting with smart contracts, using Titanoboa and Web3.py, and testing with a variety of methods. This course is designed for beginners to expert blockchain developers to understand the fundamentals of Vyper smart contract development.
Previous lesson
Previous
Next lesson
Next
Give us feedback
Course Overview
About the course
AMM math for Curve Cryptoswap
How liquidity is concentrated
Price-repegging
How function calls interact with the AMM
Curve Cryptoswap state variables
How the function exchange works
How to swap tokens
How to add and remove liquidity
Math for Curve Cryptoswap’s internal price oracle
Implicit differentiation
Smart Contract Auditor
$100,000 - $200,000 (avg. salary)
Blockchain Financial Analyst
$100,000 - $150,000 (avg. salary)
DeFi Developer
$75,000 - $200,000 (avg. salary)
Smart Contract Engineer
$100,000 - $150,000 (avg. salary)
Web3 developer
$60,000 - $150,000 (avg. salary)
Web3 Developer Relations
$85,000 - $125,000 (avg. salary)
Last updated on May 15, 2025
DeFi Developer
Curve CryptoswapDuration: 4min
Duration: 1h 21min
Duration: 28min
Duration: 26min
Duration: 14min
Duration: 24min
Duration: 59min
Duration: 5min
Course Overview
About the course
AMM math for Curve Cryptoswap
How liquidity is concentrated
Price-repegging
How function calls interact with the AMM
Curve Cryptoswap state variables
How the function exchange works
How to swap tokens
How to add and remove liquidity
Math for Curve Cryptoswap’s internal price oracle
Implicit differentiation
Smart Contract Auditor
$100,000 - $200,000 (avg. salary)
Blockchain Financial Analyst
$100,000 - $150,000 (avg. salary)
DeFi Developer
$75,000 - $200,000 (avg. salary)
Smart Contract Engineer
$100,000 - $150,000 (avg. salary)
Web3 developer
$60,000 - $150,000 (avg. salary)
Web3 Developer Relations
$85,000 - $125,000 (avg. salary)
Last updated on May 15, 2025