How to create an ERC20 staking app

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

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

  • @thirdweb_
    @thirdweb_  Год назад +3

    Thank you for watching! Be sure to leave a comment with what you'd like to see us build next. 👇
    If you haven't already, hit the subscribe button to be notified every time we drop a web3 development tutorial. 💫

  • @sinicvukaj2974
    @sinicvukaj2974 Год назад +6

    My friend I did everything you taught me and it worked, you are a great teacher and web3 master. Thank you

  • @aviationjunkie1
    @aviationjunkie1 Год назад +1

    this looks amazing! what I have been searching forever. Will rewatch tutorial at home and start a test this weekend!

  • @whitehh15
    @whitehh15 Год назад +2

    Is there any possible negative outcome from removing the require that enforces the rewardToken != staking token?

  • @jozmat2268
    @jozmat2268 Год назад +2

    Hello, good afternoon, the videos are excellent, is there a video or guide on how to do it, for example, charge users in usdt (erc20 token) and give them their earnings in token (erc20) I have a custom contract for a lottery but the ticket price values ​​are always considered with the main currency of the network where I display the contract. how can i tell you The contract that I want to charge in usdt and the prizes in usdt, any guide or light on this?

  • @benhub6983
    @benhub6983 Год назад +8

    why cant the reward token be the same as the token im staking

    • @RastCrypt
      @RastCrypt Год назад

      Do you already try it?

    • @geebsayshi
      @geebsayshi Год назад

      Did you find a way around this?

    • @jozmat2268
      @jozmat2268 Год назад

      We need know how impllement Erc20 interface for usdc token in polygon for example, in the clain contract... But no body explaind that in thirdweb team i guess . :( Isbthe same cuestion i put in this video and others.. and the discord to... :(

  • @dvrk6140
    @dvrk6140 Год назад +2

    Hello and thank you for this tutorial. Is there any way I could contact the dev team

    • @thirdweb_
      @thirdweb_  Год назад

      If you join the Discord our support team can get you connected with the correct people.

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

    Great video. Do you know if it's possible to add any additional configurations, such as a time multiplier? I also want to create epochs with a fixed reward pool for each epoch. Is this possible with ThirdWeb ERC20 staking app?

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

      Pre-built contracts are fully customizable and you can add any functionality to the smart contract and deploy through thirdweb.

  • @VoiceHole
    @VoiceHole 7 месяцев назад +1

    Is there a way to use the staking contract to set a set APY insted of token per unit of time ?

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

    very nice and usefull, can i display the staking pool?

  • @benhub6983
    @benhub6983 Год назад +1

    if you guys built an embed for this app it would be so helpful

  • @mohameddhanish6176
    @mohameddhanish6176 11 месяцев назад

    Why staking is not working in live server? it shows error "getActiveClaimConditionId" function is not found in your contract

  • @tzaff3616
    @tzaff3616 11 месяцев назад

    Can you show how to implement a logic so stakers can withdraw their tokens 30 days after their initial stake please!?

    • @jolt_exe460
      @jolt_exe460 10 месяцев назад

      Just hide the unstake button and add a countdown timer and update it once it's over

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

    is it possible to set up staking contract but give out weth as rewards? also the weth would have to be distributed proportionally to stakers

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

      You can fully customize the staking contract with your own functionality. Create a new contract with thirdweb CLI then import the staking contract and override any of the functionality to your own then deploy.

  • @uyiedos
    @uyiedos Год назад

    I tried this on Pulsechain blockchain and though the app works but after connecting wallet i am not able to fetch staking or reward info and also wallet cant show PLS balance. VS threw and error on fetchstakeinfo and react during deploy

    • @thirdweb_
      @thirdweb_  Год назад

      If you need more help troubleshooting you can open a support ticket in our Discord and provide more details of the error.

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

    Who is paying the reward and why? Lets say I decide the reward is ETH. Who pays ETH?

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

    Is it compatible with BEP20?

  • @sinicvukaj2974
    @sinicvukaj2974 Год назад

    Can this dapp be deployed/hosted on IPFS and if so how can I do it

  • @peterpham3308
    @peterpham3308 Год назад

    hello, what is the name of beautiful terminal you used at 11:28?

    • @thirdweb_
      @thirdweb_  Год назад

      In this tutorial iTerm is the terminal that is being used with some theme customization.

  • @andresborges3766
    @andresborges3766 Год назад

    How do you know what the value of the tokens is, as in USD?

  • @geebsayshi
    @geebsayshi Год назад

    I want the reward token to be the same as the stake token but got an error. Why?

    • @thirdweb_
      @thirdweb_  Год назад

      For this contract the stake token and reward token must be 2 different tokens.

  • @Wabi888
    @Wabi888 Год назад

    Is it possible to make the rewards Token native matic?

    • @sherpya
      @sherpya Год назад

      you will need a different contract or use wmatic

  • @VishnuvaibhavreddyDevireddy
    @VishnuvaibhavreddyDevireddy Год назад

    How can I do it for bep - 20

  • @ricardofeliciano7025
    @ricardofeliciano7025 Год назад

    can we use a lp address for the staking token?

    • @thirdweb_
      @thirdweb_  Год назад

      You will have to use the contract address of the token.

  • @disciple7521
    @disciple7521 Год назад

    do i need to create two tokens ?

    • @thirdweb_
      @thirdweb_  Год назад

      Yes. Out staking contract requires 2 different tokens, a staking token and a reward token.

  • @cryptominero8820
    @cryptominero8820 Год назад

    THANKS FOR THE SHARING

  • @sherpya
    @sherpya Год назад +1

    who asks for rewards in same token is just thinking about making a ponzi 😅

  • @nuremon4974
    @nuremon4974 Год назад

    yarn dev command not working in 13:41
    please solve this

    • @thirdweb_
      @thirdweb_  Год назад

      Do you have yarn installed? If not, try running "npm run dev" instead.

  • @genieapplications4809
    @genieapplications4809 Год назад

    Hi chakra/-ui dont work tried multiple time could you help me

    • @thirdweb_
      @thirdweb_  Год назад +1

      Have you installed Chakra to your project. Here's a link to Chakra's docs: chakra-ui.com/getting-started

    • @MerKaBahDNA888
      @MerKaBahDNA888 Год назад

      Same problem getting syntax error:invalid character l:’#’

  • @tokunbosuleimon4802
    @tokunbosuleimon4802 Год назад

    I want the reward token to be the same as the original token and everyone be able to buy my token

    • @thirdweb_
      @thirdweb_  Год назад

      This staking contract doesn't support staking and reward token to be the same

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

      isn't it possible by changing one line of code in the contract?@@thirdweb_

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

      I would also really want to use it to reward users with the same token