1/5
### Decrease Liquidity Once a user has a position created by the NonfungiblePositionManager, if they decide to decrease liquidity, they will call the function `decreaseLiquidity`. ```javascript decreaseLiquidity ``` This function will be called on the NonfungiblePositionManager. Next, the NonfungiblePositionManager will call the function `burn` on the UniswapV3Pool contract. ```javascript burn ``` When the function `burn` is called on UniswapV3Pool, it decreases liquidity, but doesn't transfer the tokens. When the user calls the `decreaseLiquidity` function, which calls the `burn` function, no token is transferred over to the user. To actually transfer the tokens, the user will call another function called `collect`. ```javascript collect ```
A detailed explanation of the decrease liquidity function in Uniswap V3. The lesson covers the two main functions involved in the decrease liquidity process: 'decreaseLiquidity' and 'burn'. The video walks through each function, detailing how the process works and how tokens are transferred.
Previous lesson
Previous
Next lesson
Next
Give us feedback
Course Overview
About the course
Concentrated liquidity and derive its equations
Uniswap V3 math
How to calculate the spot price of tokens
Single and multi position swapping
Factory contract architecture
How to calculate liquidity requirements
Uniswap V3 fee algorithm
Flash loans
TWAP price oracle
Smart Contract Auditor
$100,000 - $200,000 (avg. salary)
Blockchain Financial Analyst
$100,000 - $150,000 (avg. salary)
DeFi Developer
$75,000 - $200,000 (avg. salary)
Smart Contract Engineer
$100,000 - $150,000 (avg. salary)
Web3 developer
$60,000 - $150,000 (avg. salary)
Web3 Developer Relations
$85,000 - $125,000 (avg. salary)
Last updated on May 15, 2025
DeFi Developer
Uniswap V3Duration: 3min
Duration: 35min
Duration: 25min
Duration: 22min
Duration: 1h 43min
Duration: 11min
Duration: 1h 03min
Duration: 12min
Duration: 51min
Duration: 41min
Duration: 10min
Duration: 7min
Course Overview
About the course
Concentrated liquidity and derive its equations
Uniswap V3 math
How to calculate the spot price of tokens
Single and multi position swapping
Factory contract architecture
How to calculate liquidity requirements
Uniswap V3 fee algorithm
Flash loans
TWAP price oracle
Smart Contract Auditor
$100,000 - $200,000 (avg. salary)
Blockchain Financial Analyst
$100,000 - $150,000 (avg. salary)
DeFi Developer
$75,000 - $200,000 (avg. salary)
Smart Contract Engineer
$100,000 - $150,000 (avg. salary)
Web3 developer
$60,000 - $150,000 (avg. salary)
Web3 Developer Relations
$85,000 - $125,000 (avg. salary)
Last updated on May 15, 2025