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

Code for constant sum automated market maker.

0:00 - Intro
0:45 - State variables and constructor
3:35 - Internal functions - mint and burn
5:04 - Swap
13:20 - Refactor swap function
19:40 - Add liquidity
 23:48 - Remove liquidity
26:26 - Fix compilation errors
26:50 - Deploy
28:08 - Demo add liquidity
30:04 - Demo swap
31:36 - Demo remove liquidity

CSAMM math
https://youtu.be/-JhgcqvyYeM

Code
https://solidity-by-example.org/defi/constant-sum-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