Uniswap – UNI Token

Stake tokens on Uniswap V3 with code, programmatically | Add liquidity with JavaScript




Subscribe Our Youtube Channel

Follow Twitter
Register CoinEX + 1.5% Receive

Let’s write code to add liquidity to Uniswap V3 programmatically (aka. stake tokens).
Uniswap’s documentation is a little confusing so I wanted to walk you through how it works.

If you find this video helpful, give it a like and subscribe!
————————————————————————————————
https://gist.github.com/BlockmanCodes/913da7b518d77e7452c1f8cb5da9725e

Source

0 0 votes
Article Rating

Subscribe
Notify of
guest
3 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
WibblerDibbler
WibblerDibbler
5 days ago

Excellent tutorial but I got Fail with error 'STF' on the AddLiquidity call. Saw your other video but I can see the approvals occuring before the call. const approvalAmount = ethers.utils.parseUnits('10', 18).toString() then I see liquidity: ethers.utils.parseUnits('0.01', 18) in the new Position constructor. What does this 0.01 mean?
How do I fix this?

Study Point
Study Point
5 days ago

Excellent tutorial, but can we develop "addLiquidity" function of uniSwap V3 within the same contract in which we code for ERC20 contract? if yes, please make a tutorial or give some guidelines.

Thanks.

Lupu Porlo
Lupu Porlo
5 days ago

great tutorial, thank you very much, would be nice if you can show us too to make ui for smart contracts

Back to top button
3
0
Would love your thoughts, please comment.x
()
x