Solidity code example of swapping WETH to DAI on Uniswap V3
0:00 - Intro and setup
3:04 - Code swapExactInputSingle - use all input tokens, single hop
6:42 - Write test for swapExactInputSingle
13:05 - Execute test for swapExactInputSingle
13:25 - Code swapExactOutputSingle - buy exact amount of token, single hop
15:25 - Write test for swapExactOutputSingle
18:12 - Execute test for swapExactOutputSIngle
Code
github.com/t4sk/defi-by-examp...
Unisvap V3 Doc
docs.uniswap.org/protocol/gui...
Alchemy
www.alchemy.com/
#Solidity #SmartContract #Ethereum #スマートコントラクト
Take a course
www.smartcontract.engineer/
Follow
odysee.com/@SmartContractProg...
/ programmersmart
/ discord
t.me/smartcontractprogrammer
smartcontractprogrammer.com
Негізгі бет Ғылым және технология Uniswap V3 - Single Hop Swap | DeFi
Пікірлер: 38