Create a Token Staking Dapp & Earn Rewards 🤑 | React JS, EtherJs, Solidity Dapp | DeFi Series

Поделиться
HTML-код
  • Опубликовано: 21 авг 2024

Комментарии • 63

  • @Codeeater21
    @Codeeater21  9 месяцев назад +10

    Acha laga toh comment kr dena 👇👇

    • @meichannelhan
      @meichannelhan 9 месяцев назад

      bhai ek video layer 2 sequencing settlement execution (models) pr chahiye please. google kr kr k matha ghoom gaya. or modular blockhains like celestia k seq. set. exection model pa b plzz. 🥰from GB, PK.

    • @sadboystatus322
      @sadboystatus322 8 месяцев назад

      nft staking ka banao Bhai jisme nft stake kare aur token reward me mile

  • @panditdhamdhere
    @panditdhamdhere 7 месяцев назад +2

    One of the best video ! You're gem of Indian Blockchain community sir 😢❤ most underrated Chanel on RUclips ever

  • @awaisahmad5301
    @awaisahmad5301 9 месяцев назад +3

    Great sir keep making the videos like this sir. Its easy to understand.
    By the way, I like the loading feature 👌

  • @Shadow-dg1fd
    @Shadow-dg1fd 2 месяца назад +2

    Really enjoyed this video

  • @kotlaarunkumar4251
    @kotlaarunkumar4251 9 месяцев назад +1

    Been waiting for this.... finally we got it

  • @0xSatyajit
    @0xSatyajit 8 месяцев назад +1

    sir this video really helped mw to complete my project at ethindia

  • @Anit-singh
    @Anit-singh 8 месяцев назад +1

    hello sir me ap ko hi dundrha tha hindi me video koi nhi banata hai crypto ke bare me app shi se samjhate hai sir thanks

  • @asyncrohan
    @asyncrohan 9 месяцев назад +3

    The project i am waiting for😅

  • @HasanAli-yq4xu
    @HasanAli-yq4xu 9 месяцев назад +2

    Amazing project sir ❤❤

  • @AhmedKhan-rt6oz
    @AhmedKhan-rt6oz 9 месяцев назад +1

    Increase in amount of the users, decrease the rewards percentage but increase in stake amount can increase the rewards amount by a user.

  • @mmdls602
    @mmdls602 9 месяцев назад +2

    Do not need to include safe math. Solidity’s latest versions inherently take care of the math operations risk.

    • @Codeeater21
      @Codeeater21  9 месяцев назад

      Yes, it does. But still, it fails in various conditions. During type conversions, in unchecked {} and other conditions as well.

  • @bharathraj3333
    @bharathraj3333 9 месяцев назад +1

    cool background and project

  • @shreyanshsinghal2356
    @shreyanshsinghal2356 8 месяцев назад +1

    Great content🎉

  • @viveknath6073
    @viveknath6073 9 месяцев назад +1

    I am very excited

  • @muditsarda1600
    @muditsarda1600 5 месяцев назад

    For anyone who is writing the smart contract, make sure to check 2:45:47 before you deploy the final version. There is an extra 'required' statement which he forgot to code.

  • @sayandcode
    @sayandcode 8 месяцев назад +1

    If we calculate the reward per token based on total staked tokens at the time of withdrawal, aren't we forgetting about historical rewards? For example in 10 seconds if A was the only staker for 9 seconds, and then B came in at the 9th second with 1 token, then total rewards for A should be (9*10) + (0.5 * 10) = 95, whereas by your formula A will only get 50. B will get only 5. Who gets the remaining 45 tokens?

    • @MuhammadUmar-jm7ni
      @MuhammadUmar-jm7ni 7 месяцев назад

      (9*10) + (0.5 * 10) = 95
      Where does this 0.5 * 10 come from

    • @mayanksavaliya9100
      @mayanksavaliya9100 6 месяцев назад

      @@MuhammadUmar-jm7ni you can infer what hes trying to ask is, ((9*10)/1) + (1*10)/2) = 95. But For last second, we do (1*10)/2 here the denominator is 2 since thast last seconds reward will be shared by both the parties. I think the mathematical logic explained in the video for calculating reward is 100% correct. Because it keeps the running average of rewardsPerToekn. You can just calculate rewards earned for each user after that checkpoint by subtracting the userRewardPaidPerToken from RewardPerToken

    • @mayanksavaliya9100
      @mayanksavaliya9100 6 месяцев назад

      @CodeEater21 I think there is a mistake in the code in the updateRewardFunction at line
      rewards[account] = earned(account).
      It should actualy be ewards[account] = rewards[account] + +earned(account).

  • @Blockchain107
    @Blockchain107 9 месяцев назад +1

    awesome content ❤

  • @arnav9874
    @arnav9874 9 месяцев назад +1

    can you please comment on how to sign a transaction or produce a signature with the help of private key and message hash like what crypto wallets for example metamask do so that the private key is not compromised. It would be very helpful if you share your approach.
    Thank You

  • @rashidsiddiqui4502
    @rashidsiddiqui4502 9 месяцев назад +1

    Amazing sirr ❤

  • @aryanadlakha7266
    @aryanadlakha7266 8 месяцев назад +1

    Sir I followed every step but my token approval button is not working like it fails and it shows error "contract runner does not support sending transactions" it is working in remix ide

  • @rahul-ti9cm
    @rahul-ti9cm 9 месяцев назад +1

    great content

  • @realsahabia
    @realsahabia 4 месяца назад

    Please I need the English version of this video. I want to follow up

  • @harshshukla001
    @harshshukla001 9 месяцев назад +1

    Nice tutorial

  • @kelvinpansuriya4628
    @kelvinpansuriya4628 9 месяцев назад +2

    Hello Sir,
    Your Solidity Playlist Is The Best On RUclips But Can You Make New And More Advanced Playlist On Solidity....?
    Please Reply Me....

    • @kelvinpansuriya4628
      @kelvinpansuriya4628 9 месяцев назад +1

      Like PepCode Named Channel Has Also Playlist On Solidity....

  • @user-bb7og8qq1y
    @user-bb7og8qq1y 4 месяца назад +1

    bohat ala

  • @allmovies1420
    @allmovies1420 4 месяца назад

    sir what is RWA and kindly also create video on avax c chain and how to create avalaunch token

  • @prathamkalan7504
    @prathamkalan7504 3 месяца назад +1

    sir claim reward not working. please help

  • @SalmanArshad-wn7jy
    @SalmanArshad-wn7jy 9 месяцев назад +1

    Great

  • @aimanibnubayd7216
    @aimanibnubayd7216 4 месяца назад +1

    How can i build it on Solana?

  • @TheTrendstory1
    @TheTrendstory1 5 месяцев назад

    Sir kya app hume kuch yesa sikha sakte hai jo flasloan k jariye aasani se arbitrag trading kar sake polygon ko us karke

  • @AhmedKhan-rt6oz
    @AhmedKhan-rt6oz 9 месяцев назад

    here at 13:22, we need to divide first then multiply.

    • @Codeeater21
      @Codeeater21  9 месяцев назад

      ?

    • @AhmedKhan-rt6oz
      @AhmedKhan-rt6oz 9 месяцев назад

      @@Codeeater21 you did the true.
      I was committed to the explanation point ☝️ with timestamped

  • @AhmedKhan-rt6oz
    @AhmedKhan-rt6oz 9 месяцев назад

    Why we did not stake the Stable coin. This could be a good idea to stake the stable token rather than the variable price token, so that the price never varies frequently.

    • @Codeeater21
      @Codeeater21  9 месяцев назад

      Stable coin need to be pegged with something

  • @viveknath6073
    @viveknath6073 9 месяцев назад +1

    ❤️

  • @seema2522
    @seema2522 8 месяцев назад +1

    👌👌❤

  • @7stackstudio
    @7stackstudio 3 месяца назад

    It is possible to transfer flash usdt/usdc to our wallet for testing??

  • @mahreenabbad6068
    @mahreenabbad6068 6 месяцев назад

    sir handleAccountChange mei setState ko as argument lia hy. phir state b set kr di hy. kese ? ye prop b nai hy. 1:47:00

  • @piyushbhatnagar4735
    @piyushbhatnagar4735 8 месяцев назад

    Sir which programing language do I have to learn after Solidity Go or Rust.

  • @King_yaama
    @King_yaama 9 месяцев назад

    suberp sir 🤩🤩🤩❤

  • @rahmatullahnasir
    @rahmatullahnasir 9 месяцев назад

    Bhai love you from Pakistan. Please make a video on MEV Bot

  • @RBNToken
    @RBNToken 8 месяцев назад

    great

  • @golden-1910
    @golden-1910 9 месяцев назад

    Wow 😮😮

  • @impossibleisnothing9589
    @impossibleisnothing9589 9 месяцев назад

    Sir aapko kaise contact kare

  • @minustwo88
    @minustwo88 9 месяцев назад

    hamara kiya profit hoga ye learn ke. is taraka website banaynge to chalega.. koye stake karega

    • @Codeeater21
      @Codeeater21  9 месяцев назад

      agar apke token ki market value hai toh bilkul

    • @minustwo88
      @minustwo88 9 месяцев назад

      @@Codeeater21 ek coin kaise banake k market par list kare tutorial dedo.. Apke bug bounty video superb. Kaise blockchain crypto project ke bug hunting kare??

    • @Codeeater21
      @Codeeater21  9 месяцев назад

      @@minustwo88 market listing tbhi possible hai jb ek solid project hota hai token ko back krne ke liye

  • @arnav9874
    @arnav9874 9 месяцев назад

    can you please comment on how to sign a transaction or produce a signature with the help of private key and message hash like what crypto wallets for example metamask do so that the private key is not compromised. It would be very helpful if you share your approach.
    Thank You

    • @Codeeater21
      @Codeeater21  9 месяцев назад +1

      I have. Please watch a video on a decentralised wallet in the playlist.

    • @arnav9874
      @arnav9874 8 месяцев назад

      thank you sir video helped a lot. You are a great teacher. Eagerly waiting for you new blockchain course.😢