Add storage gap to RewardsStreamerMP
to reserve storage slots for future upgrades
#131
Labels
Milestone
RewardsStreamerMP
to reserve storage slots for future upgrades
#131
The
RewardsStreamerMP
contract (aka stake manager) is upgradeable.To reduce the likelihood of storage collisions in the future, for cases when new fields are added (like how it happened in #123 ), it's a recommended practice to introduce a storage gap.
The idea is to add a static array declaration to the contract, which reserves the same amount of storage slots as the size of the array.
The text was updated successfully, but these errors were encountered: