Users can grief reward distributions by spending dust
If a reward is targeted for an epoch in the past, a user can front-run the txn in the mempool and call addRewardToEpoch() with a dust amount at an epoch after the one in question. This will cause the transaction in the mempool to revert
File: contracts/ExtraRewardsDistributor.sol #1
74 require(len == 0 || rewardEpochs[_token][len - 1] < _epoch, "Cannot backdate to this epoch");
Code inspection
Allow the backdating of rewards, which will cost more gas
The text was updated successfully, but these errors were encountered:
All reactions