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
github.com/t4sk/notes
#Solidity #SmartContract #Ethereum #スマートコントラクト
Take a course
www.smartcontract.engineer/
Follow
/ programmersmart
/ discord
t.me/smartcontractprogrammer
smartcontractprogrammer.com
Негізгі бет Ғылым және технология Constant Product AMM Math | DeFi
Пікірлер: 46