1/5
### Increasing Liquidity Once a position is created by calling the `mint` function on the `NonfungiblePositionManager`, and a user decides to increase liquidity to that position, the user will need to call the `increaseLiquidity` function on the `NonfungiblePositionManager` contract. To increase liquidity to an existing position which is managed by the `NonfungiblePositionManager` contract, the user will first call the function `increaseLiquidity`. ```javascript 1. increaseLiquidity ``` The `NonfungiblePositionManager` will then call the function `mint` on the `UniswapV3Pool`. ```javascript 2. mint ``` `UniswapV3Pool` will calculate the amount of tokens that are needed, and then call a callback called `uniswapV3MintCallback`. ```javascript 3. uniswapV3MintCallback ``` Inside this callback, token zero and token one that are needed to increase liquidity, are transferred over from the user to the `UniswapV3Pool` contract. ```javascript 4. transfer token0 and token1 ```
A comprehensive guide to increasing liquidity on Uniswap v3 using non-fungible positions - The lesson covers the steps involved in increasing liquidity on Uniswap v3, starting with calling the 'increaseLiquidity' function on the NonFungiblePositionManager, to the 'mint' function on Uniswap v3, and ending with the transfer of tokens.
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