Uniswap V3 Tutorial | Uniswap Smart Contract (Single Swap) | DeFi Tutorial

  Рет қаралды 49,071

Block Explorer

Block Explorer

Күн бұрын

Пікірлер: 97
@PenguinTriedCoding
@PenguinTriedCoding 2 жыл бұрын
This channel is a hidden gem
@BlockExplorerMedia
@BlockExplorerMedia 2 жыл бұрын
Thanks my friend!
@ouailtayarth4012
@ouailtayarth4012 Жыл бұрын
I've been looking for this type of high-quality DeFi content for almost a month, and I just found it! Thank you for your efforts, and please keep up the good work
@luiscallero6288
@luiscallero6288 10 ай бұрын
Love it how you go step by step and give it a clear and simple explanation of the contract provided by Uniswap. Uniswap should attach this video to better explain the documentation. Uniswap documentation is very poor. So your review is awesome!! Thanks!!
@quantaraum
@quantaraum 2 жыл бұрын
i lovr the red string pullinh through your tutorial. you help us really understand the different sections and connecting each point on our own. Big props! much appreciated
@BitcoinAndCryptoCurrency
@BitcoinAndCryptoCurrency Жыл бұрын
I have watched many videos on crypto and this is the first one I watched twice - loved it
@josephdelgiorgio3997
@josephdelgiorgio3997 2 жыл бұрын
Great video. I just applied to work at UniSwap, chances of getting hired are slim, but they have a great product and its awesome to see it work in realtime through the lens of these tutorials. Thank you!
@BlockExplorerMedia
@BlockExplorerMedia 2 жыл бұрын
Awesome! Glad you liked it and good luck : )
@harris998
@harris998 Жыл бұрын
​@@BlockExplorerMedia hello there, is there a way I can contact you regarding a Coding service question, maybe tw or email
@codywatt7775
@codywatt7775 9 ай бұрын
Awesome work my friend. Thank you for putting in the time to make this for us. It has been super helpful!
@velafresh
@velafresh 7 ай бұрын
My token got split up into two routes 90% and 10% but I never received the 10% so basically I instantly lost $106 what exactly happen here do you think?
@dannithomx
@dannithomx Жыл бұрын
Thanks for this video, I was stuck up on this tiny thing that I just couldn't see it. It caused my swaps to keep reverting, thanks to you I was able to spot it and move past it. Great work, keep up the good work chief!!!
@redbeet4772
@redbeet4772 Жыл бұрын
My swap also keep reverting, do you happen to know what I missed?
@paraipan-rq2sj
@paraipan-rq2sj 7 ай бұрын
very initeresting, but goerli is deprecated. how do i do to change to sepolia? im new to this . thank you .
@AnastasiiaZubenko
@AnastasiiaZubenko 9 ай бұрын
Thank you for this video! It provides a great explanation! However I have one question. This example perfectly works on my edu project, but contract can`t take and return money directly to the "owner", metamask account. The swap works great before i try to connect it with the client metamask. I will be so grateful if you can help me to pair contract with metamask. Thanks in advance.
@Abdulkadir-vb3vj
@Abdulkadir-vb3vj 2 жыл бұрын
Thanks for the great tutorial. Where can I get those test tokens? I mean LINK and USDC especially. I found no faucet for addresses you used.
@BitcoinAndCryptoCurrency
@BitcoinAndCryptoCurrency Жыл бұрын
very good to learn the currency future
@thedemonlord300
@thedemonlord300 Жыл бұрын
Hey could you tell me why we chose to write the functions of the IERC20 interface at the start of the contract instead of just importing the entire IERC20 contract like in the Flash Loan contract?
@Xrp66644xp
@Xrp66644xp 9 ай бұрын
Bro this channel is based asf. Good shit bro. You’re smart dev. Let me find out you launch Pepe
@Letssendit
@Letssendit 3 ай бұрын
Brilliant presentation
@pammroxire
@pammroxire Жыл бұрын
Have you made a video where u can unclog the smart contract ?
@samadams4751
@samadams4751 2 жыл бұрын
Another great tutorial🙏
@BlockExplorerMedia
@BlockExplorerMedia 2 жыл бұрын
Thanks brother!
@dtory
@dtory Жыл бұрын
Hey, can you explain the use of ask Incase we want to deployed it on other network and Testnet other than bsc and Eth/tesnet
@BitcoinAndCryptoCurrency
@BitcoinAndCryptoCurrency Жыл бұрын
informative and educational thanks
@xlogic5020
@xlogic5020 Жыл бұрын
That's a great educational video ! l have a question. For example we have a wallet and l have eth in it. l want to swap eth to "x" token with a transfer prosess with this system. If l send eths to this contract. Can this contract do this for me or should l do some different changes ? l am looking forward your respond.
@roxanabraescu6180
@roxanabraescu6180 Жыл бұрын
Hi, Thanks for your videos they are very educational..... Question ⁉️ I want a flashloan but I don't know how to code it or if it's possible... Example I want to buy eg, Eth from binance at lower price and then sell the Eth to eg, Kucoin for more. How can I specify in the code to buy from binance and sell on kucoin and then pay the flashloan??.
@kurdvevoofficial
@kurdvevoofficial 2 жыл бұрын
first thanks for you content tutu hope you make tut about erc20 token and full video and include all function such as : Tax Transferable Tradable Mintable Burnable Transfer Ownership Secure
@diiialee7012
@diiialee7012 Жыл бұрын
Do you prefer email? Or nah? Also is your patreon still accessible and you still use it.
@juanmosqueda2210
@juanmosqueda2210 8 ай бұрын
I know this is kind an off topic but I'll take my shoot here too. Is possible to get the routerAddress by code? I am trying to replicate this in to the Fuji testnet but I can't find it in any documentation (Uniswap or Avalanche) so I'm wondering if it possible to code something that return that address but based in what I researched it looks like is simple not possible. Any help I will really appreciate it.
@pratyushchauhan6944
@pratyushchauhan6944 6 ай бұрын
amazing contribution ser!!!
@stepchild5453
@stepchild5453 Жыл бұрын
So I just need to import the github link to remix? That's gona run the universal router?
@amalnathsathyan6029
@amalnathsathyan6029 Жыл бұрын
30:27 I think the Quoter contract can get the reserves and give the prices.
@konkard9503
@konkard9503 Жыл бұрын
Can you code a front run bot?
@shq-cali6111
@shq-cali6111 Жыл бұрын
hey man how r u . havent seen u active. i hope everything is okay
@אריאלסמיונוב-נ5ח
@אריאלסמיונוב-נ5ח 6 ай бұрын
Thanks bro . great video !
@BitcoinAndCryptoCurrency
@BitcoinAndCryptoCurrency Жыл бұрын
very good and informative video
@xheikhfazi5481
@xheikhfazi5481 2 жыл бұрын
Sir if you can help us that how we can get price of a pair on different exchanges like uniswap,sushiswap it will be a great favour...
@BitcoinAndCryptoCurrency
@BitcoinAndCryptoCurrency Жыл бұрын
pleased I chose this video to learn from
@AlfredDavid-k9f
@AlfredDavid-k9f Жыл бұрын
where can i get copious amoutn of test tokens for usdc / weth ; unable to start with a 1000 each; any pointers will help even for polygon testnetwork
@BitcoinAndCryptoCurrency
@BitcoinAndCryptoCurrency Жыл бұрын
my questions have been answered
@astrofoundation
@astrofoundation Жыл бұрын
When are you back ?
@LoreBaculima
@LoreBaculima Жыл бұрын
Super helpful, thank you!!!
@douglasduarte360
@douglasduarte360 11 ай бұрын
And how about Uniswap Swap Router address SEPOLIA ? I Can't find
@matinjiryaeisharahi4294
@matinjiryaeisharahi4294 Жыл бұрын
I appreciate you , It was very useful
@Codewriter5482
@Codewriter5482 Жыл бұрын
sir how to add faucet in goerli link token and usdc
@BitcoinAndCryptoCurrency
@BitcoinAndCryptoCurrency Жыл бұрын
easy to understand thanks
@deethekingstevens7146
@deethekingstevens7146 2 жыл бұрын
Another good tutorial on Dex, but how can I get commission for every swap?
@BlockExplorerMedia
@BlockExplorerMedia 2 жыл бұрын
Thank you! When you become a liquidity provider you would earn interest based on the fees paid by other users doing swaps.
@razorjhon2622
@razorjhon2622 Жыл бұрын
@@BlockExplorerMedia do you mean if i created a token whenever someone swap my token to another i will get fees ? can you explain please
@ashishjanghel9340
@ashishjanghel9340 2 жыл бұрын
I am facing issue on your flashloan tutorial while running on mainnet polygon....can you please help
@shankarmettur1551
@shankarmettur1551 2 жыл бұрын
I will create token new contract but I can not swap to another contract how to posible than liqudity pool make
@ViralKiller
@ViralKiller Жыл бұрын
is there a Python version of this?
@baselkelziye4552
@baselkelziye4552 2 жыл бұрын
hey man can you list some mid-advanced common projects that would improve my skills in sol, thanks for the great content btw
@BlockExplorerMedia
@BlockExplorerMedia 2 жыл бұрын
absolutely. i have been thinking about what level to target as I'm not quite sure if most of the viewers are beginner, intermediate or advanced. i think I need to do all of the above. anything in particular you'd like to see? I have some ideas for intermediate / common tutorials and maybe even do some more beginner ones. thanks!
@baselkelziye4552
@baselkelziye4552 2 жыл бұрын
@@BlockExplorerMedia im thinking of a multisig wallet as a practice for myself not sure if it will fit for the audience :D
@BlockExplorerMedia
@BlockExplorerMedia 2 жыл бұрын
No I think that would be a good one. Let me see what I can do.
@milanis7a
@milanis7a 2 жыл бұрын
@@BlockExplorerMedia A tutorail for a makerdao clone would be dope!
@sahbibayari7133
@sahbibayari7133 Жыл бұрын
Thanks for sharing this diamonds infos ❤️
@feff232
@feff232 Жыл бұрын
This is absolutely 10million dollar knowledge and all it gets is 57 comments. Hilarious. Thanks man
@ramonmarino9396
@ramonmarino9396 Жыл бұрын
Is it possible to do all this directly from etherscan?
@harrydare8191
@harrydare8191 Жыл бұрын
Why has he not been posting?
@PdgTonga
@PdgTonga 7 ай бұрын
Smart contrat in The video différent in your repo😂
@astrofoundation
@astrofoundation 2 жыл бұрын
Hi block Explore.... Can you make a tut where we can get buy and sell transactions for a token just like poocoin does
@improvingmuslim
@improvingmuslim Жыл бұрын
what if i want to do this on the polygon network?
@basitkhan3853
@basitkhan3853 2 жыл бұрын
Good content
@TheGaneshshow
@TheGaneshshow 2 жыл бұрын
hello sir, 3.08 seconds, why you will get 4 lp shares or 12 pool tokens? Thank you sir.
@BlockExplorerMedia
@BlockExplorerMedia 2 жыл бұрын
I don't think the numbers in this slide are technically 100% accurate - the main idea is to show that in v2 liquidity tokens are distributed to liquidity providers in proportion to their contribution. Also note that in v3 they don't use liquidity tokens at all - instead an ERC-721 is issued representing the provider's share of the pool.
@TheGaneshshow
@TheGaneshshow 2 жыл бұрын
@@BlockExplorerMedia Thank you sir very much! Sir, Please do a complete video on hardhat Testing.
@BlockExplorerMedia
@BlockExplorerMedia 2 жыл бұрын
I am planning to do a dedicated Hardhat video sometime soon.
@vinayakshukla2653
@vinayakshukla2653 2 жыл бұрын
thanksAloT very usefull
@nocareit
@nocareit 2 жыл бұрын
Hi, this code work for pancakeswap?
@TheGaneshshow
@TheGaneshshow 2 жыл бұрын
Hello sir, poolFee = 3000, what is 3000 here? Thank you.
@BlockExplorerMedia
@BlockExplorerMedia 2 жыл бұрын
Expression of "0.3%" in Solidity since Solidity doesn't support floating point numbers. The conversion must take place in the Uniswap Pool contract.
@TheGaneshshow
@TheGaneshshow 2 жыл бұрын
@@BlockExplorerMedia Thank you sir. I got it. There will no floating numbers.
@diiialee7012
@diiialee7012 Жыл бұрын
How can I reach you sir?
@Arjun147gtk
@Arjun147gtk 5 ай бұрын
7:58 VS code implementation
@-bolboi1676
@-bolboi1676 Жыл бұрын
write a dex arbitrage trade bot
@TheGaneshshow
@TheGaneshshow 2 жыл бұрын
Hello Sir, 14.47 secs, pool fee is 0.3%, But of which amount, it is 0.3%? Thank you sir.
@BlockExplorerMedia
@BlockExplorerMedia 2 жыл бұрын
The middle-tier fee is 0.3% of the desired token swap price. More info here: docs.uniswap.org/protocol/concepts/V3-overview/fees
@TheGaneshshow
@TheGaneshshow 2 жыл бұрын
@@BlockExplorerMedia Thank you sir. My doubt is cleared.
@BlockExplorerMedia
@BlockExplorerMedia 2 жыл бұрын
Anytime!
@TheGaneshshow
@TheGaneshshow 2 жыл бұрын
@@BlockExplorerMedia Hello sir, I want to talk to you one on one, Please reply sir. Thank you.
@BlockExplorerMedia
@BlockExplorerMedia 2 жыл бұрын
hey 20s - it's difficult for me to provide any support outside of the channel due to other obligations but you can reach me at my personal email at 'jgspruance' at g mail and I will try my best to get to it. thanks!
@codyharvey5644
@codyharvey5644 Ай бұрын
Help me trade my coin I’m stuck in and I’ll send you some crypto 🤦‍♂️👍🏻
@xheikhfazi5481
@xheikhfazi5481 2 жыл бұрын
Great Content learning lots of stuff....
@difference018
@difference018 2 жыл бұрын
I keep getting this error Source "@uniswap/v3-periphery/contracts/interfaces/ISwapRouter.sol" not found: File import callback not supported. I think it is a problem with the remappings. Any help would be appreciated
@BlockExplorerMedia
@BlockExplorerMedia 2 жыл бұрын
hi, what are you doing at the time when this error occurs and are you encountering it in Visual Code or in Remix. Please check that you are using the correct import for each environment - relative for VC and direct github url for Remix. You can find both in the video description.
@difference018
@difference018 2 жыл бұрын
@@BlockExplorerMedia I solved the problem. In the remappings settings you should put "@uniswap/=node_modules/@uniswap/", "@openzeppelin/=node_modules/@openzeppelin/" Just thought others should know if they are having problems as well. Also set the optimizer to true in your hardhat config if you are getting the "stack too deep" error
@BlockExplorerMedia
@BlockExplorerMedia 2 жыл бұрын
Great - thanks for sharing.
ERC4626 Vault Smart Contract tutorial | DeFi Vault tutorial
1:05:35
Block Explorer
Рет қаралды 10 М.
Uniswap V3 Made Easy
20:18
Owen Thurm
Рет қаралды 4,2 М.
Кто круче, как думаешь?
00:44
МЯТНАЯ ФАНТА
Рет қаралды 5 МЛН
Real Man relocate to Remote Controlled Car 👨🏻➡️🚙🕹️ #builderc
00:24
Uniswap V3 - Single Hop Swap | DeFi
18:22
Smart Contract Programmer
Рет қаралды 10 М.
UNISWAP V3 - New Era Of AMMs? Architecture Explained
16:49
Finematics
Рет қаралды 177 М.
Developer walks you through the code of Uniswap V3
21:38
EatTheBlocks
Рет қаралды 20 М.
Deploying Your Own ERC-20 Token and Uniswap V3 Liquidity!
16:20
Roger Ethereum
Рет қаралды 1,5 М.
Flash Loan Arbitrage | Aave Flash Loan Tutorial
48:34
Block Explorer
Рет қаралды 153 М.
Uniswap Tutorial for Beginners - How to Use Uniswap DeX
16:04