Currently, if an user wants to claim his reward in TempleGoldStaking
, he could only call getReward
to get rewards for an certain index. To claim rewards from multiple
stakings, he has to call the function multiple times. This increases costs for users and discourage them from staking multiple times.
In TempleGoldStaking
, if an user wants to claim his reward, he could only call getReward
to get rewards for an certain index.
To claim rewards from multiple
stakings, he has to call the function multiple times since currently there is no function allowing him to collect rewards from multiple staking in 1 function call. This increases costs for users and discourage them from staking multiple times.
Lack of such function disallows claiming reward for multiple stakings and thus discouraging users from staking and claiming.
Manual
Add a function getReward(address staker, uint[] indexes)
to enable claiming rewards for multiple stakings.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.