Skip to content

Commit

Permalink
merged master
Browse files Browse the repository at this point in the history
  • Loading branch information
SurfingNerd committed Nov 28, 2024
2 parents 9bfeeb7 + f2d1c80 commit 48c8d16
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 341 deletions.
6 changes: 3 additions & 3 deletions contracts/StakingHbbft.sol
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ contract StakingHbbft is Initializable, OwnableUpgradeable, ReentrancyGuardUpgra
mapping(address => uint256) public poolNodeOperatorShare;

/// @dev The epoch number in which the operator's address can be changed.
mapping(address => uint256) internal _poolNodeOperatorLastChangeEpoch;
mapping(address => uint256) public poolNodeOperatorLastChangeEpoch;

// ============================================== Constants =======================================================

Expand Down Expand Up @@ -1491,15 +1491,15 @@ contract StakingHbbft is Initializable, OwnableUpgradeable, ReentrancyGuardUpgra
revert InvalidNodeOperatorConfiguration(_operatorAddress, _operatorSharePercent);
}

uint256 lastChangeEpoch = _poolNodeOperatorLastChangeEpoch[_stakingAddress];
uint256 lastChangeEpoch = poolNodeOperatorLastChangeEpoch[_stakingAddress];
if (lastChangeEpoch != 0 && lastChangeEpoch == stakingEpoch) {
revert OnlyOncePerEpoch(stakingEpoch);
}

poolNodeOperator[_stakingAddress] = _operatorAddress;
poolNodeOperatorShare[_stakingAddress] = _operatorSharePercent;

_poolNodeOperatorLastChangeEpoch[_stakingAddress] = stakingEpoch;
poolNodeOperatorLastChangeEpoch[_stakingAddress] = stakingEpoch;

emit SetNodeOperator(_stakingAddress, _operatorAddress, _operatorSharePercent);
}
Expand Down
163 changes: 0 additions & 163 deletions templates/artis_tau1.json

This file was deleted.

Loading

0 comments on commit 48c8d16

Please sign in to comment.