Dutch Auction | Solidity 0.8

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 พ.ย. 2024

ความคิดเห็น • 37

  • @smartcontractprogrammer
    @smartcontractprogrammer  2 ปีที่แล้ว +1

    1:00 - State variables
    3:05 - Constructor
    6:31 - Get current price
    7:40 - Buy
    10:43 - Deploy and demo

  • @chip_klutzy6384
    @chip_klutzy6384 2 ปีที่แล้ว +2

    your explain solidity in layman's terms that even a toddler can grasp it

  • @ronycleg8167
    @ronycleg8167 2 ปีที่แล้ว +2

    Your videos are very educative, you're explaining everything so well. Thanks a lot!

  • @meka4996
    @meka4996 ปีที่แล้ว

    This is amazing! Thanks

  • @福瑞黃
    @福瑞黃 2 ปีที่แล้ว +1

    Excellent! Very Interesting and clear! Thanks a lot!

  • @vladislavkhomchenko1718
    @vladislavkhomchenko1718 2 ปีที่แล้ว

    Thank you for your lessons. You are doing the right thing!

  • @moazamali2434
    @moazamali2434 2 ปีที่แล้ว

    very informative video

  • @dennisdecoene
    @dennisdecoene 2 ปีที่แล้ว

    Very cool. Love your channel.

  • @therealxavi3r
    @therealxavi3r 2 ปีที่แล้ว

    great work!

  • @suvodeep475
    @suvodeep475 2 ปีที่แล้ว

    Your videos are so good like so so good....for and intermediate but little bit tough for beginners!!!i can tell you that just because I've previously seen your videos that time these are little bit tough for me.. but now as in intermediate level these are so so good!!!!!

  • @davidkulman2291
    @davidkulman2291 2 ปีที่แล้ว

    Amazing vid! Thanks

  • @ahmetayyildiz7935
    @ahmetayyildiz7935 2 ปีที่แล้ว

    Very great tutorial! Thanks a lot for your great explanation!

  • @D3athW1ng
    @D3athW1ng 2 ปีที่แล้ว +1

    Wow part of me knew the buyNFT function would be like this ... it's like sometimes you think about coding something then you overthink it and end up somewhere else .. NGMI :D

  • @asui2620
    @asui2620 ปีที่แล้ว

    Nice videos 👍
    I have a question. How will the interface IERC721 work if its oz file is not imported or even if it is imported we can call the function directly without the need of an interface

  • @ChrisWi88
    @ChrisWi88 2 ปีที่แล้ว

    Nice one. Cheers 👍

  • @aliciabasilio3520
    @aliciabasilio3520 2 ปีที่แล้ว

    Great video, I was wondering.. if seller change aprovals to other address the whole buy transaction would revert right? so no founds losed... only a seller that decided to do not sell

  • @Henryr67
    @Henryr67 2 ปีที่แล้ว

    Awesome 👍 I also have a question: why do we selfdestruct at the end? Why not just transfering to winner and use again the auction (Also taking off "constant" from state variables)? is there any vulnerability?

  • @FahadAlQallaf
    @FahadAlQallaf 2 ปีที่แล้ว

    Awesome 😎 thanks for creating this.

  • @bikahs92
    @bikahs92 2 ปีที่แล้ว

    Thank you for the videos! I've a question if you may, since the contract doesn't enforce the seller to transfer his nft to the contract; does that mean that the seller doesn't have any commitment to the contract and that he can sell his nft outside of this contract during this contract?

    • @smartcontractprogrammer
      @smartcontractprogrammer  ปีที่แล้ว +1

      If the seller is no longer the owner, the transaction to buy will fail

  • @MrCoreyTexas
    @MrCoreyTexas 4 หลายเดือนก่อน

    Wanted to point out there are 604,800 seconds in 7 days, so your starting price of 1 million wei does make sense. Something you would need to take into account. Also wonder what happens if 7 days and no one buys?

  • @MrCoreyTexas
    @MrCoreyTexas 4 หลายเดือนก่อน

    Wouldn't it make more sense to call approve() on the NFT contract BEFORE you deploy the dutch auction ? Edit: I guess that doesn't make sense, as if the dutch auction contract isn't there it can't be approved by the NFT? I'll admit my knowledge here is insufficient. Maybe you could set the start of the dutch auction to block.timestamp + some time period as a workaround?

  • @SuperPeterweb
    @SuperPeterweb 2 ปีที่แล้ว

    Amazing video! I was looking for this to put it on my entire collection not a single token, is it possible? and how?
    Thank you

  • @0xmetario
    @0xmetario 2 ปีที่แล้ว

    Bro I love your content, please create video on how to code and deploy a flash loans

  • @bhok5228
    @bhok5228 2 ปีที่แล้ว

    Nice video, but what happens if two persons buy the nft at same block with the same price?

  • @basma-ba
    @basma-ba 2 ปีที่แล้ว

    sir could you please make a tutorial video of linking the dutch auction smart contract with the frontend react or nextjs minting dapp. am learning web3 development and i really cannot find a tutorial in this kind of minting UI :(

  • @zhaofour9833
    @zhaofour9833 2 ปีที่แล้ว

    Sir, I followed your Ganache-cli vids, and they are great. But when I tried to some test using WETH, I always got this error: "Sender's account only has: 0." Any suggestions how to solve this? I basically followed your codes and method. Thanks so much!

  • @muscle__rr
    @muscle__rr 2 ปีที่แล้ว

    10:44 sir can you please explain the ERC721 token standard(just like you did for the ERC20 standard) ? I'm not getting any explainer video for the ERC721 , everybody just copy or import the code from OpenZepplin , nobody is explaining the code :(
    I'm also unable to find any article that explain the ERC721 code . so I'm just stuck :(

    • @smartcontractprogrammer
      @smartcontractprogrammer  2 ปีที่แล้ว +1

      Maybe

    • @ArbazKhan-gn4xo
      @ArbazKhan-gn4xo 2 ปีที่แล้ว

      @@smartcontractprogrammer yes sir kindly

    • @MrCoreyTexas
      @MrCoreyTexas 4 หลายเดือนก่อน

      It's an abrupt introduction to ERC721 NFTs, but to be fair to you there's quite a bit to cover in Ethereum. It shouldn't be too hard to find articles or videos on this topic as they've been around for a while now.

  • @MultiTeamwork
    @MultiTeamwork 2 ปีที่แล้ว

    at 5:39 ... _startingPrice >= _discountRate*DURATION .. in this duration is in days and discountrate would be in seconds .. dont we need to apply the conversion ??