Task: You have a reward contract (reach out to @ksshilov on telegram to request the code of the contract) which pays reward for staker/trader of STRIPS for trades and staking. You need to implement the additional functionality, that will lock claiming for X period length of time.
Implementation that need to be added:
- Each time someone do trade/stake the code should calculate available rewards for the current timestamp.
- View function should loop through array of actions of "trader/staker" and for each (now - Period >= timestamp) allow to unlock this amount of rewards.