Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhe8x committed Apr 21, 2024
1 parent 3300a05 commit 7758f9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/RewardsStaking.sol
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ contract RewardsStaking is IRewardsStaking, Initializable, OwnableUpgradeable {
// apply _runnerStakeWeight
uint256 _runnerStakeWeight = runnerStakeWeight();
newDelegation = MathUtil.mulDiv(newDelegation, _runnerStakeWeight, PER_MILL);
if (_previousRunnerStakeWeights[runner] != _runnerStakeWeight) {
_previousRunnerStakeWeights[runner] = _runnerStakeWeight;
if (_previousRunnerStakeWeights[_runner] != _runnerStakeWeight) {
_previousRunnerStakeWeights[_runner] = _runnerStakeWeight;
}
// end
delegation[_runner][_runner] = newDelegation;
Expand Down

0 comments on commit 7758f9b

Please sign in to comment.