anyone got a good tutorial on how to create a staking contract? i know how to create the deposit and withdraw functions. but how do i increment staker's rewards every block?
May 15, 2021, 3:25 AM
You don't actively increase anything. You calculate the rewards when someone asks for them (withdraw or view)
May 15, 2021, 6:45 AM
Thanks. Do you have a link to an elegant and simple staking contract I can reference as a good example?
May 15, 2021, 8:21 AM