Deploy a Uniswap V2 Pair Locally with Code the Easy Way & Add Liquidity | EthersJS | Hardhat
HTML-код
- Опубликовано: 7 сен 2024
- Get my free EthersJS cheatsheet to master Web3!
👉 blockman-codes...
------------------------------------------
Courses:
👉 Build a Uniswap V3 interface that can do swaps: bit.ly/3JkXYqL
------------------------------------------
How do you deploy a pair on Uniswap V2 with code
This is the equivalent of a pool on Uniswap V3.
Once a pool is deployed, you can add liquidity to earn fees and others can swap the tokens.
Deploying a pair locally allows you to experiment on a pool without wasting ether or test ether, because ether in a local environment is unlimited!
------------------------------------------
Starter Code:
gist.github.co...
Learn to use all of Uniswap's swap and liquidity functionality with code. bit.ly/3JkXYqL
Nice video! Did you forget the code in description?
Question.. do we also have to deploy the wrapped ether contract when we test and deploy to a testnet? Or do we just need the wrapped ether's address then? I'm just wondering what changes, if any, we need to make when we switch from testing on hardhat to a testnet and eventually mainnet.
FYI.. thought I'd mention that I couldn't see the console log output at the end of the video because the next video suggestion was covering it.
On testnet you can use the main weth contract, and the factory that has already been deployed by the uniswap team
Thanks for letting me know. I'll keep this in mind for future videos
Thank for an informative video.
Glad to help!
Love you bro thank u so much 😍
Thanks for the cheat sheet
My pleasure!
thanks really help full
Happy to hear that!
Can i use camelot (à fork of uniswap) in the same way ?
I'm not familiar with camelot. But you can check for these functions in the documentation
Can you show me how you would code a trading bot with account abstraction or ERC4337 i think it is? Please ....thanks bro 🤟🏼
Should i use the v2 or the v3 ?
V3 is more complicated and requires more skill, but better.
V2 is simpler.
@@blockmancodes thank you for the answer 💯
And that's the easy way😂😅