Constant Product AMM Math | DeFi
Smart Contract Programmer Smart Contract Programmer
53.2K subscribers
11,404 views
0

 Published On Jun 18, 2022

Math for constant product AMM (automated market maker).

0:00 - Intro
2:38 - Swap - How many tokens to return in a trade?
5:53 - Add liquidity - How many shares to mint? - Answer
6:20 - Add liquidity - Constraints
11:20 - How many shares to mint?
12:54 - How to measure liquidity?
16:04 - Simplify equation for shares to mint
22:05 - Remove liquidity - How many tokens to withdraw?

Notes
https://github.com/t4sk/notes

#Solidity #SmartContract #Ethereum #スマートコントラクト

Take a course
https://www.smartcontract.engineer/

Follow
  / programmersmart  
  / discord  
https://t.me/smartcontractprogrammer
https://smartcontractprogrammer.com

show more

Share/Embed