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