Constant Product AMM Math | DeFi
Channel: Smart Contract Programmer
Date: 2022-06-18

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 
https://twitter.com/ProgrammerSmart
https://discord.gg/bt8FK2wkcW
https://t.me/smartcontractprogrammer
https://smartcontractprogrammer.com