You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Governance can adjust the DAO fee by adding or removing the RSR token as a distribution target.
Mitigation
The issue is properly addressed by preventing both RSR and RToken from being set as distribution targets.
function _setDistribution(addressdest, RevenueShare memoryshare) internal {
require(dest !=address(0), "dest cannot be zero");
require(
dest !=address(furnace) && dest !=address(stRSR),
"destination cannot be furnace or strsr directly"
);
require(
dest !=address(rsr) && dest !=address(rToken), // @audit, here"destination cannot be rsr or rToken"
);
}
The text was updated successfully, but these errors were encountered:
Lines of code
Vulnerability details
Original issue
Governance can adjust the
DAO fee
by adding or removing theRSR
token as a distribution target.Mitigation
The issue is properly addressed by preventing both
RSR
andRToken
from being set as distribution targets.The text was updated successfully, but these errors were encountered: