Lucene search

K
code423n4Code4renaCODE423N4:2021-08-YIELD-FINDINGS-ISSUES-56
HistoryAug 14, 2021 - 12:00 a.m.

ERC20Rewards.sol: Consider making rewardsToken immutable

2021-08-1400:00:00
Code4rena
github.com
5

Handle

hickuphh3

Vulnerability details

Impact

While it might seem like a good feature to have, being able to switch reward tokens will only be useful for tokens which are equivalent in value (probably stablecoins, pegged tokens) since it carries over unclaimed rewards from the previous reward program. It would be safer to keep the reward token immutable as a safeguard against violations of this condition.


The text was updated successfully, but these errors were encountered:

All reactions