Skip to content

Commit

Permalink
Fix stake renew calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
r4reetik committed Mar 11, 2024
1 parent 2bcd7dc commit 7fcd49f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/stake/DelegateManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ abstract contract DelegateManager is BaseStaker {
require(stake.expiry < block.number, "DelegateManager: stake not expired");

uint8 multiplier = _calculateVoteMultiplier(newLockBlocks);
stake.expiry = block.number + newLockBlocks;
stake.expiry = multiplier == uint8(7) ? MAX_UINT_256 : block.number + newLockBlocks;
stake.votes = multiplier * stake.units;

stakes[stakeID] = stake;
Expand Down

0 comments on commit 7fcd49f

Please sign in to comment.