Created on 14th March 2024
•
Uniswap v3 is an improvement over Uniswap v2 in the sense that multiple fee tiers can targeted (higher fees to adjust for higher volatility pairs), liquidity can be specified in different price ranges (to make capital more efficient), and NFTs are issued instead of ERC20 tokens. In this hackathon, scripts are written to deploy the Uniswap v3 contracts (Core and Periphery) to allow for quote preview, swap, and add liquidity.
The uniswap v3 contracts are deployed onto Conflux Espace Testnet (i.e. can view contract addresses in .env.sample) or deploy your own on Conflux Espace Testnet by following instructions on github readme. Example of one the contracts deployed on confluxscan (i.e. Position Manager Contract -
https://evmtestnet.confluxscan.io/address/0x902fa5369a3acfad4c4d7bb9cda69c61354c6781)
I ran out of time to build a frontend for adding liquidity. I overcame it by just writing a script that adds liquidity to my Uniswap v3 so that I can showcase trades being made on Ginseng Swap and trade on my Uniswap v3 contracts. The addition of liquidity is a powerful aspect of Uniswap v3 and it would have been good to add more tokens, fee ranges, and leverage the full use of the contract functions that were deployed.
Tracks Applied (1)
DWF Labs