Allow rewards to be batch claimed onBehalf #65
Labels
architecture
Larger restructuring required, consideration needed
core dev
enhancement
New feature or request
smart-contract
StakingRewards.sol
Auditor Recommendation
It is regarded as best practice to allow keeper bots to claim rewards on users' behalf. This will allow users to receive their rewards even when they are inactive for a short period. This could be achieved by adding
a function similar to the following to the
StakingRewards
contract:By allowing a keeper bot to claim multiple users' rewards in a single transaction, the overall gas cost can be decreased to the gas refunds given for reaccessing storage slots.
The text was updated successfully, but these errors were encountered: