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.
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.
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 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
@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).
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
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
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 ek coin kaise banake k market par list kare tutorial dedo.. Apke bug bounty video superb. Kaise blockchain crypto project ke bug hunting kare??
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
Acha laga toh comment kr dena 👇👇
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.
nft staking ka banao Bhai jisme nft stake kare aur token reward me mile
One of the best video ! You're gem of Indian Blockchain community sir 😢❤ most underrated Chanel on RUclips ever
Great sir keep making the videos like this sir. Its easy to understand.
By the way, I like the loading feature 👌
Really enjoyed this video
Been waiting for this.... finally we got it
sir this video really helped mw to complete my project at ethindia
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
The project i am waiting for😅
Amazing project sir ❤❤
Increase in amount of the users, decrease the rewards percentage but increase in stake amount can increase the rewards amount by a user.
Do not need to include safe math. Solidity’s latest versions inherently take care of the math operations risk.
Yes, it does. But still, it fails in various conditions. During type conversions, in unchecked {} and other conditions as well.
cool background and project
Great content🎉
I am very excited
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.
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?
(9*10) + (0.5 * 10) = 95
Where does this 0.5 * 10 come from
@@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
@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).
awesome content ❤
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
Amazing sirr ❤
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
great content
Please I need the English version of this video. I want to follow up
Nice tutorial
Hello Sir,
Your Solidity Playlist Is The Best On RUclips But Can You Make New And More Advanced Playlist On Solidity....?
Please Reply Me....
Like PepCode Named Channel Has Also Playlist On Solidity....
bohat ala
sir what is RWA and kindly also create video on avax c chain and how to create avalaunch token
sir claim reward not working. please help
Great
How can i build it on Solana?
Sir kya app hume kuch yesa sikha sakte hai jo flasloan k jariye aasani se arbitrag trading kar sake polygon ko us karke
here at 13:22, we need to divide first then multiply.
?
@@Codeeater21 you did the true.
I was committed to the explanation point ☝️ with timestamped
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.
Stable coin need to be pegged with something
❤️
👌👌❤
It is possible to transfer flash usdt/usdc to our wallet for testing??
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
Sir which programing language do I have to learn after Solidity Go or Rust.
suberp sir 🤩🤩🤩❤
Bhai love you from Pakistan. Please make a video on MEV Bot
great
Wow 😮😮
Sir aapko kaise contact kare
hamara kiya profit hoga ye learn ke. is taraka website banaynge to chalega.. koye stake karega
agar apke token ki market value hai toh bilkul
@@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??
@@minustwo88 market listing tbhi possible hai jb ek solid project hota hai token ko back krne ke liye
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
I have. Please watch a video on a decentralised wallet in the playlist.
thank you sir video helped a lot. You are a great teacher. Eagerly waiting for you new blockchain course.😢