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

Поділитися
Вставка
  • Опубліковано 22 січ 2025

КОМЕНТАРІ • 100

  • @mohsin_raz
    @mohsin_raz 2 роки тому +37

    This channel is a hidden gem

  • @ouailtayarth4012
    @ouailtayarth4012 Рік тому +6

    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

  • @quantaraum
    @quantaraum 2 роки тому +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

  • @luiscallero6288
    @luiscallero6288 Рік тому

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

  • @BitcoinAndCryptoCurrency
    @BitcoinAndCryptoCurrency Рік тому

    I have watched many videos on crypto and this is the first one I watched twice - loved it

  • @josephdelgiorgio3997
    @josephdelgiorgio3997 2 роки тому +3

    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 роки тому +1

      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 11 місяців тому

    Awesome work my friend. Thank you for putting in the time to make this for us. It has been super helpful!

  • @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!!!

    • @vydesolaris
      @vydesolaris Рік тому

      My swap also keep reverting, do you happen to know what I missed?

  • @paraipan-rq2sj
    @paraipan-rq2sj 9 місяців тому +1

    very initeresting, but goerli is deprecated. how do i do to change to sepolia? im new to this . thank you .

  • @Xrp66644xp
    @Xrp66644xp 11 місяців тому

    Bro this channel is based asf. Good shit bro. You’re smart dev. Let me find out you launch Pepe

  • @samadams4751
    @samadams4751 2 роки тому +3

    Another great tutorial🙏

  • @Letssendit
    @Letssendit 5 місяців тому

    Brilliant presentation

  • @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?

  • @velafresh
    @velafresh 9 місяців тому +2

    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?

  • @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

  • @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

  • @ViralKiller
    @ViralKiller 2 роки тому

    is there a Python version of this?

  • @BitcoinAndCryptoCurrency
    @BitcoinAndCryptoCurrency Рік тому

    very good to learn the currency future

  • @pammroxire
    @pammroxire Рік тому

    Have you made a video where u can unclog the smart contract ?

  • @Codewriter5482
    @Codewriter5482 Рік тому

    sir how to add faucet in goerli link token and usdc

  • @konkard9503
    @konkard9503 2 роки тому +2

    Can you code a front run bot?

  • @xheikhfazi5481
    @xheikhfazi5481 2 роки тому

    Great Content learning lots of stuff....

  • @pratyushchauhan6944
    @pratyushchauhan6944 8 місяців тому

    amazing contribution ser!!!

  • @BitcoinAndCryptoCurrency
    @BitcoinAndCryptoCurrency Рік тому +1

    informative and educational thanks

  • @stepchild5453
    @stepchild5453 Рік тому

    So I just need to import the github link to remix? That's gona run the universal router?

  • @juanmosqueda2210
    @juanmosqueda2210 10 місяців тому

    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.

  • @אריאלסמיונוב-נ5ח
    @אריאלסמיונוב-נ5ח 8 місяців тому

    Thanks bro . great video !

  • @AnastasiiaZubenko
    @AnastasiiaZubenko 11 місяців тому

    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.

  • @shankarmettur1551
    @shankarmettur1551 2 роки тому

    I will create token new contract but I can not swap to another contract how to posible than liqudity pool make

  • @LoreBaculima
    @LoreBaculima Рік тому

    Super helpful, thank you!!!

  • @matinjiryaeisharahi4294
    @matinjiryaeisharahi4294 Рік тому

    I appreciate you , It was very useful

  • @ashishjanghel9340
    @ashishjanghel9340 2 роки тому

    I am facing issue on your flashloan tutorial while running on mainnet polygon....can you please help

  • @cirans1778
    @cirans1778 Місяць тому

    sir can you give idea about usdt flash coin creat code

  • @BitcoinAndCryptoCurrency
    @BitcoinAndCryptoCurrency Рік тому

    very good and informative video

  • @improvingmuslim
    @improvingmuslim 2 роки тому

    what if i want to do this on the polygon network?

  • @douglasduarte360
    @douglasduarte360 Рік тому

    And how about Uniswap Swap Router address SEPOLIA ? I Can't find

  • @kurdvevoofficial
    @kurdvevoofficial 2 роки тому +1

    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

  • @ramonmarino9396
    @ramonmarino9396 Рік тому

    Is it possible to do all this directly from etherscan?

  • @amalnathsathyan6029
    @amalnathsathyan6029 Рік тому

    30:27
    I think the Quoter contract can get the reserves and give the prices.

  • @sahbibayari7133
    @sahbibayari7133 2 роки тому

    Thanks for sharing this diamonds infos ❤️

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

  • @David-p6i7s
    @David-p6i7s Місяць тому

    Thank you for sharing this

  • @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 роки тому +1

      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 роки тому +1

      @@BlockExplorerMedia Thank you sir very much!
      Sir, Please do a complete video on hardhat Testing.

    • @BlockExplorerMedia
      @BlockExplorerMedia  2 роки тому +1

      I am planning to do a dedicated Hardhat video sometime soon.

  • @BitcoinAndCryptoCurrency
    @BitcoinAndCryptoCurrency Рік тому

    pleased I chose this video to learn from

  • @BitcoinAndCryptoCurrency
    @BitcoinAndCryptoCurrency Рік тому

    easy to understand thanks

  • @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 2 роки тому

    my questions have been answered

  • @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??.

  • @cvd2.0
    @cvd2.0 2 роки тому

    Hi, this code work for pancakeswap?

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

  • @basitkhan3853
    @basitkhan3853 2 роки тому

    Good content

  • @diiialee7012
    @diiialee7012 2 роки тому

    Do you prefer email? Or nah? Also is your patreon still accessible and you still use it.

  • @astrofoundation
    @astrofoundation Рік тому

    When are you back ?

  • @shq-cali6111
    @shq-cali6111 Рік тому

    hey man how r u . havent seen u active. i hope everything is okay

  • @harrydare8191
    @harrydare8191 Рік тому

    Why has he not been posting?

  • @diiialee7012
    @diiialee7012 2 роки тому

    How can I reach you sir?

  • @TheGaneshshow
    @TheGaneshshow 2 роки тому

    Hello sir,
    poolFee = 3000,
    what is 3000 here?
    Thank you.

    • @BlockExplorerMedia
      @BlockExplorerMedia  2 роки тому +1

      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 роки тому +2

      @@BlockExplorerMedia Thank you sir. I got it. There will no floating numbers.

  • @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 роки тому +3

      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 роки тому +1

      @@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 роки тому +1

      No I think that would be a good one. Let me see what I can do.

    • @milanis7a
      @milanis7a 2 роки тому +1

      @@BlockExplorerMedia A tutorail for a makerdao clone would be dope!

  • @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 2 роки тому

      @@BlockExplorerMedia do you mean if i created a token whenever someone swap my token to another i will get fees ? can you explain please

  • @vinayakshukla2653
    @vinayakshukla2653 2 роки тому

    thanksAloT very usefull

  • @feff232
    @feff232 2 роки тому

    This is absolutely 10million dollar knowledge and all it gets is 57 comments. Hilarious. Thanks man

  • @Arjun147gtk
    @Arjun147gtk 7 місяців тому

    7:58 VS code implementation

  • @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

  • @PdgTonga
    @PdgTonga 9 місяців тому

    Smart contrat in The video différent in your repo😂

  • @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 роки тому +1

      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 роки тому +1

      Anytime!

    • @TheGaneshshow
      @TheGaneshshow 2 роки тому

      @@BlockExplorerMedia Hello sir,
      I want to talk to you one on one,
      Please reply sir.
      Thank you.

    • @BlockExplorerMedia
      @BlockExplorerMedia  2 роки тому +1

      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!

  • @-bolboi1676
    @-bolboi1676 2 роки тому

    write a dex arbitrage trade bot

  • @codyharvey5644
    @codyharvey5644 3 місяці тому

    Help me trade my coin I’m stuck in and I’ll send you some crypto 🤦‍♂️👍🏻

  • @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 роки тому +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.