Skip to content

Commit a86ca21

Browse files
committed
Add custom docstrings to tell OZ upgrades to allow renaming state vars
See https://docs.openzeppelin.com/upgrades-plugins/1.x/faq#how-to-rename
1 parent 1861cf7 commit a86ca21

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

contracts/staking/TokenStaking.sol

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,16 @@ contract TokenStaking is Initializable, IStaking, Checkpoints {
9292
address public governance;
9393
uint96 public minTStakeAmount;
9494
uint256 public authorizationCeiling;
95+
96+
// This variable is deprecated, we keep it to respect existing state
97+
// storage layout
98+
/// @custom:oz-renamed-from stakeDiscrepancyPenalty
9599
// slither-disable-next-line constable-states
96100
uint96 private legacyStakeDiscrepancyPenalty;
101+
102+
// This variable is deprecated, we keep it to respect existing state
103+
// storage layout
104+
/// @custom:oz-renamed-from stakeDiscrepancyRewardMultiplier
97105
// slither-disable-next-line constable-states
98106
uint256 private legacyStakeDiscrepancyRewardMultiplier;
99107

0 commit comments

Comments
 (0)