Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitomir2 committed Jun 7, 2024
1 parent 602e734 commit 51826bd
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions contracts/RewardPool/modules/StakingRewards.sol
Original file line number Diff line number Diff line change
Expand Up @@ -67,25 +67,6 @@ abstract contract StakingRewards is RewardPoolBase, Vesting, RewardsWithdrawal {
* @inheritdoc IRewardPool
*/
function onNewStakePosition(address staker, uint256 durationWeeks) external onlyValidatorSet {
// DelegationPool storage delegation = delegationPools[validator];
// uint256 balance = delegation.balanceOf(delegator);
// uint256 newBalance = balance + amount;
// if (newBalance < minDelegation) revert DelegateRequirement({src: "vesting", msg: "DELEGATION_TOO_LOW"});

// VestingPosition memory position = delegationPositions[validator][delegator];
// if (position.isMaturing()) {
// revert DelegateRequirement({src: "vesting", msg: "POSITION_MATURING"});
// }

// if (position.isActive()) {
// revert DelegateRequirement({src: "vesting", msg: "POSITION_ACTIVE"});
// }

// // ensure previous rewards are claimed
// if (delegation.claimableRewards(delegator) > 0) {
// revert DelegateRequirement({src: "vesting", msg: "REWARDS_NOT_CLAIMED"});
// }

if (positions[staker].isStakerInVestingCycle()) {
revert StakeRequirement({src: "vesting", msg: "ALREADY_IN_VESTING"});
}
Expand Down

0 comments on commit 51826bd

Please sign in to comment.