relevant tag icon
UniswapV3Factory
copy icon
Uniswap-Labs
• version 1.0.0
Token
ERC20
DEX

UniswapV3Factory

Uniswap V3 factory. Its purpose is to deploy Uniswap V3 pools and manage the ownership and control over pool protocol fees. It allows the deployment of Uniswap V3 pools, which are used to trade tokens using liquidity pools.

*Visit desktop site to download or deploy

Version

1.0.0

Recent Use

🍞 0xd861 downloaded
🥐 0xa595 downloaded

Last Publish

1/13/2023
Any contract you deploy is yours.
Fully owned and controlled by your wallet.
Documentation
Source Code
createPool(address,address,uint24) :
This function creates a pool for two tokens, tokenA and tokenB, with a given fee. It first checks that the two tokens are not the same, and then sets token0 and token1 to the two tokens, with token0 being the one with the lower address. It then checks that token0 is not address 0, and that the given fee has a valid tick spacing. It then deploys the pool, sets the getPool mapping for both token0 and token1, and emits a PoolCreated event. (autogenerated documentation)
setOwner(address) :
This function allows the owner of the contract to change the owner address. It requires that the message sender is the current owner, and then emits an event to signal that the owner has changed. Finally, it sets the new owner address. (autogenerated documentation)
enableFeeAmount(uint24,int24) :
This function enables a fee amount for a given fee and tick spacing. It requires that the sender of the message is the owner, that the fee is less than 1 million, and that the tick spacing is greater than 0 and less than 16384. If these conditions are met, the fee amount and tick spacing are stored in the feeAmountTickSpacing mapping and an event is emitted. (autogenerated documentation)

Get Cookin'
share iconShare

copy iconDownload Source
copy iconnpx cookbookdev i UniswapV3Factory
copy icon

Recent Use

🍞 0xd861 downloaded
🥐 0xa595 downloaded

Last Publish

1/13/2023

Version

1.0.0

Cookbook is free.
Any contract you deploy is yours.
Your contract is owned and controlled by you.