0

Experimenting with the Uniswap v3 exchange. I'm trying to figure out how to add liquidity using the v3 SDK, does anyone have examples of how to do this?

Looking at the docs, it seems like NonFungiblePositionManager may be the method to call.

Can anyone confirm, and/or provide an example?

1 Answer 1

0

Better late than never.

The uniswap v3 docs have some good examples:

To my understanding, what all these examples actually leave out is the part of executing the trade by communicating with the blockchain via ethers.

But in the ethers docs you can find how to get a signer (necessary part to access your wallet/address via ethers and authorize a transaction). The final step is then to interact with the contract and do the transaction, and this is greatly simplified through the uniswap sdk, as their examples provide all the necessary parameters.

1
  • Add liquidity link is no longer working
    – Maxareo
    Commented Jul 3, 2023 at 13:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.