#41766 [SC-Insight] In `Yeet.sol`, storage slots only set in constructor should be declared `immutable`.
Description
Brief/Intro
Vulnerability Details
/// @notice yeetTokenAddress is the address of the YeetToken contract
//@audit (info) -----> Should be immutable
address public yeetTokenAddress;
/// @notice rewardsContract is the Reward contract
//@audit (info) -----> Should be immutable
Reward public rewardsContract;
/// @notice gameSettings is the YeetGameSettings contract
//@audit (info) -----> Should be immutable
YeetGameSettings public gameSettings;
/// @notice yeetback is the Yeetback contract
//@audit (info) -----> Should be immutable
Yeetback public yeetback;Impact Details
References
Proof of Concept
Proof of Concept
Previous#41765 [SC-Insight] Storage slots only set in constructor should be declared `immutable`Next#41823 [SC-Low] Changing the reward settings has a retroactive impact
Was this helpful?