Swap Part 1 | Uniswap V3 Core Contract Explained - Part 20

  Рет қаралды 2,260

Smart Contract Programmer

Smart Contract Programmer

Күн бұрын

Пікірлер: 6
@smartcontractprogrammer
@smartcontractprogrammer Жыл бұрын
0:19 - Inputs and outputs 1:38 - Structs 3:15 - Swap function 4:00 - Check sqrt price limit 6:10 - Swap state 7:45 - Update sqrt price and tick 9:20 - Update liquidity 9:50 - Update fee growth global 10:40 - Calculate final amount 0 and amount 1 13:42 - Transfer tokens Code github.com/t4sk/clamm Take a course www.smartcontract.engineer/
@mohamedabuyounes3136
@mohamedabuyounes3136 Жыл бұрын
great explanation , thanks
@Rollex-rr2xq
@Rollex-rr2xq 11 ай бұрын
How can squareroot price change without changing tick?
@smartcontractprogrammer
@smartcontractprogrammer 11 ай бұрын
ticks increment by tick spacing for example if tick spacing is 10, during a swap the active tick would move but the change may be less than tick spacing
@Rollex-rr2xq
@Rollex-rr2xq 10 ай бұрын
@@smartcontractprogrammer Thanks for reply. I wonder why the tick spacing is being used? What is the purpose of introducting tick spacing.
@mcfincher29
@mcfincher29 10 ай бұрын
@@Rollex-rr2xq I think it's mostly for liquidity providers. It allows them to set a range for active liquidity.
Swap Part 2 | Uniswap V3 Core Contract Explained - Part 21
5:27
Smart Contract Programmer
Рет қаралды 1 М.
Uniswap V3 Price Oracle | DeFi
8:19
Smart Contract Programmer
Рет қаралды 12 М.
快乐总是短暂的!😂 #搞笑夫妻 #爱美食爱生活 #搞笑达人
00:14
朱大帅and依美姐
Рет қаралды 12 МЛН
Ice Cream or Surprise Trip Around the World?
00:31
Hungry FAM
Рет қаралды 21 МЛН
Equation of Real Reserves Curve | Uniswap V3 Core Contract Explained - Part 11
6:33
Smart Contract Programmer
Рет қаралды 2,8 М.
How to trade on Uniswap V3 using Solidity - Single Hop Swap (SCP)
18:36
Learn Python Debugging in VS Code - Under 5 Minutes!
4:29
Uniswap V3 Just In Time Liquidity | DeFi
3:25
Smart Contract Programmer
Рет қаралды 3,8 М.
快乐总是短暂的!😂 #搞笑夫妻 #爱美食爱生活 #搞笑达人
00:14
朱大帅and依美姐
Рет қаралды 12 МЛН