Constant Product Automated Market Maker | Solidity 0.8

Описание к видео Constant Product Automated Market Maker | Solidity 0.8

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
   • Constant Product AMM Math | DeFi  

Code
https://solidity-by-example.org/defi/...

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

Remix
https://remix.ethereum.org

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

Follow
https://odysee.com/@SmartContractProg...
  / programmersmart  
  / discord  
https://t.me/smartcontractprogrammer
https://smartcontractprogrammer.com

Комментарии

Информация по комментариям в разработке