5/5
### Exercise 2 In this lesson, we'll be deploying a new Uniswap V3 pool contract, using tokens A and B, which were deployed inside the setup, with a 0.1% fee. To deploy the pool inside the Uniswap V3 Factory interface, we need to call the `createPool` function, passing in the inputs `tokenA`, `tokenB`, and `fee`. This function will return the address of the deployed pool. To do this, we'll declare the following variable: ```javascript address pool; ``` We can then call the `createPool` function, assigning the address of the deployed pool to the `pool` variable.
In this lesson, we'll be deploying a new Uniswap V3 pool contract, using tokens A and B, which were deployed inside the setup, with a 0.1% fee.
To deploy the pool inside the Uniswap V3 Factory interface, we need to call the createPool
function, passing in the inputs tokenA
, tokenB
, and fee
. This function will return the address of the deployed pool.
To do this, we'll declare the following variable:
We can then call the createPool
function, assigning the address of the deployed pool to the pool
variable.
A comprehensive guide to creating a new Uniswap V3 pool in Solidity. The lesson covers the process of creating a new Uniswap V3 pool using the Uniswap V3 factory contract, defining the tokens and the fee percentage of the pool, and testing the pool deployment.
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 August 11, 2025
Duration: 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 August 11, 2025