Skip to content
This repository was archived by the owner on Mar 1, 2024. It is now read-only.

Commit 0c0e95f

Browse files
author
Denis Ermolin
committed
fix: storage layout
1 parent c1f09bf commit 0c0e95f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contracts/staking/validatorShare/ValidatorShare.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ contract ValidatorShare is IValidatorShare, ERC20NonTradable, OwnableLockable, I
2626
uint256 public minAmount;
2727

2828
uint256 public totalStake_deprecated;
29-
uint256 public activeAmount_deprecated;
30-
3129
uint256 public rewardPerShare;
30+
uint256 public activeAmount_deprecated;
31+
3232
bool public delegation;
3333

3434
uint256 public withdrawPool;
@@ -76,7 +76,7 @@ contract ValidatorShare is IValidatorShare, ERC20NonTradable, OwnableLockable, I
7676

7777
function withdrawExchangeRate() public view returns (uint256) {
7878
uint256 precision = _getRatePrecision();
79-
if (validatorId < 8) {
79+
if (validatorId < 9) {
8080
// fix of potentially broken withdrawals for future unbonding
8181
// foundation validators have no slashing enabled and thus we can return default exchange rate
8282
// because without slashing rate will stay constant

0 commit comments

Comments
 (0)