50393 sc insight unused admin state variable increases deployment and storage costs
Description
Brief / Intro
Proof of Concept
// state declaration
address public admin;function initialize(address _spinContract, address _supraRouter) public initializer {
__AccessControl_init();
__UUPSUpgradeable_init();
spinContract = ISpin(_spinContract);
supraRouter = ISupraRouterContract(_supraRouter);
admin = msg.sender; // <--- The variable is set here
nextPrizeId = 1;
_grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
_grantRole(ADMIN_ROLE, msg.sender);
_grantRole(SUPRA_ROLE, _supraRouter);
}Proposed Solution
Previous51530 sc high validators can not claim pending accrued commission when reward tokens have been removed from the isrewardtoken mapping Next52796 sc low whitelist restriction in arctoken blocks all minting and burning
Was this helpful?