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

Commit 4c2abae

Browse files
author
Denis Ermolin
committed
fix: revert withdraw exchange rate calculation
1 parent 0c0e95f commit 4c2abae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contracts/staking/validatorShare/ValidatorShare.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ contract ValidatorShare is IValidatorShare, ERC20NonTradable, OwnableLockable, I
2828
uint256 public totalStake_deprecated;
2929
uint256 public rewardPerShare;
3030
uint256 public activeAmount_deprecated;
31-
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 < 9) {
79+
if (validatorId < 8) {
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)