Open sumasamurai opened 11 months ago
i think this is very bad design implementation to write the claimRewards(array)-
reasoning - taking epochs array which is inside of rounds mapping => Rounds.epoch (you wont be able to find all the epochs in efficient manner so i am doing it w/ just an epoch instead of an array pull over push method)
pull over push bc - it will leave no way to brick the contract via dos attack or gas greifs
Implement functionality that allows users to claim rewards for specific epochs. To achieve this, you need to create a function with the following signature:
function claimRewards(uint256[] calldata epochs) external;
Steps for implementation: