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...

Комментарии • 20

  • @blockmancodes
    @blockmancodes  Год назад

    Learn to use all of Uniswap's swap and liquidity functionality with code. bit.ly/3JkXYqL

  • @-theJoker-
    @-theJoker- 5 месяцев назад

    Nice video! Did you forget the code in description?

  • @devjacksparrow
    @devjacksparrow Год назад +1

    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.

    • @devjacksparrow
      @devjacksparrow Год назад +2

      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.

    • @blockmancodes
      @blockmancodes  Год назад +1

      On testnet you can use the main weth contract, and the factory that has already been deployed by the uniswap team

    • @blockmancodes
      @blockmancodes  Год назад +1

      Thanks for letting me know. I'll keep this in mind for future videos

  • @prasenjitgpt1
    @prasenjitgpt1 Год назад

    Thank for an informative video.

  • @robertCwalk
    @robertCwalk 11 месяцев назад

    Love you bro thank u so much 😍

  • @jerrywang3225
    @jerrywang3225 Год назад

    Thanks for the cheat sheet

  • @cosmicknox
    @cosmicknox Год назад

    thanks really help full

  • @bossgd100
    @bossgd100 Год назад

    Can i use camelot (à fork of uniswap) in the same way ?

    • @blockmancodes
      @blockmancodes  Год назад +1

      I'm not familiar with camelot. But you can check for these functions in the documentation

  • @iamgadgetboy
    @iamgadgetboy Год назад

    Can you show me how you would code a trading bot with account abstraction or ERC4337 i think it is? Please ....thanks bro 🤟🏼

  • @bossgd100
    @bossgd100 Год назад

    Should i use the v2 or the v3 ?

    • @blockmancodes
      @blockmancodes  Год назад +1

      V3 is more complicated and requires more skill, but better.
      V2 is simpler.

    • @bossgd100
      @bossgd100 Год назад

      @@blockmancodes thank you for the answer 💯

  • @Alpqmzasd
    @Alpqmzasd Год назад +1

    And that's the easy way😂😅