Constant Product Automated Market Maker | Solidity 0.8
Channel: Smart Contract Programmer
Date: 2022-06-29

Code for constant product automated market maker.

0:00 - State variables and constructor
2:38: Internal functions - mint and burn
3:55 - Public functions - swap, add liquidity and remove liquidity
5:03 - swap
13:47 - addLiquidity
20:10 - removeLiquidity
24:33 - Demo - deploy contracts
25:32 - Demo - add liquidity
26:53 - Demo - swap
28:14 - Demo - remove liquidity

CPAMM math
https://youtu.be/QNPyFs8Wybk

Code
https://solidity-by-example.org/defi/constant-product-amm

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

Remix
https://remix.ethereum.org

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

Follow 
https://odysee.com/@SmartContractProgrammer:8
https://twitter.com/ProgrammerSmart
https://discord.gg/bt8FK2wkcW
https://t.me/smartcontractprogrammer
https://smartcontractprogrammer.com