This bounty is no longer available
Web3 DAO | strips-finance Logo

Claim rewards lockup feature.

Organization

strips-finance

Deadline

in over 262 years

Status

ENDED

302.03 USD

INSTRUCTIONS

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:

  1. Each time someone do trade/stake the code should calculate available rewards for the current timestamp.
  2. View function should loop through array of actions of "trader/staker" and for each (now - Period >= timestamp) allow to unlock this amount of rewards.