Skip to content

Commit

Permalink
chore: remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyonline committed Sep 19, 2024
1 parent 92540f4 commit 4731a19
Showing 1 changed file with 0 additions and 60 deletions.
60 changes: 0 additions & 60 deletions src/ynEIGEN/TokenStakingNodesManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ interface ITokenStakingNodesManagerEvents {
event RegisteredStakingNodeImplementationContract(address upgradeableBeaconAddress, address implementationContract);
event UpgradedStakingNodeImplementationContract(address implementationContract, uint256 nodesCount);
event NodeInitialized(address nodeAddress, uint64 initializedVersion);

// event PrincipalWithdrawalProcessed(uint256 nodeId, uint256 amountToReinvest, uint256 amountToQueue);//@todo
}

contract TokenStakingNodesManager is AccessControlUpgradeable, ITokenStakingNodesManager, ITokenStakingNodesManagerEvents {
Expand Down Expand Up @@ -55,8 +53,6 @@ contract TokenStakingNodesManager is AccessControlUpgradeable, ITokenStakingNode
bytes32 public constant TOKEN_STAKING_NODE_CREATOR_ROLE = keccak256("TOKEN_STAKING_NODE_CREATOR_ROLE");
bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");
bytes32 public constant UNPAUSER_ROLE = keccak256("UNPAUSER_ROLE");
// bytes32 public constant WITHDRAWAL_MANAGER_ROLE = keccak256("WITHDRAWAL_MANAGER_ROLE");
// bytes32 public constant STAKING_NODES_WITHDRAWER_ROLE = keccak256("STAKING_NODES_WITHDRAWER_ROLE");@todo

//--------------------------------------------------------------------------------------
//---------------------------------- VARIABLES ---------------------------------------
Expand All @@ -76,8 +72,6 @@ contract TokenStakingNodesManager is AccessControlUpgradeable, ITokenStakingNode
ITokenStakingNode[] public nodes;
uint256 public maxNodeCount;

// IRedemptionAssetsVaultExt public redemptionAssetsVault;@todo

//--------------------------------------------------------------------------------------
//---------------------------------- EVENTS ------------------------------------------
//--------------------------------------------------------------------------------------
Expand Down Expand Up @@ -134,15 +128,6 @@ contract TokenStakingNodesManager is AccessControlUpgradeable, ITokenStakingNode
maxNodeCount = init.maxNodeCount;
}

// function initializeV2(@todo
// address _redemptionAssetsVault,
// address _withdrawer
// ) external reinitializer(2) notZeroAddress(_redemptionAssetsVault) {
// redemptionAssetsVault = IRedemptionAssetsVaultExt(_redemptionAssetsVault);
// _grantRole(STAKING_NODES_WITHDRAWER_ROLE, _withdrawer);
// _grantRole(WITHDRAWAL_MANAGER_ROLE, _withdrawer);
// }

//--------------------------------------------------------------------------------------
//---------------------------------- STAKING NODE CREATION ---------------------------
//--------------------------------------------------------------------------------------
Expand Down Expand Up @@ -257,42 +242,6 @@ contract TokenStakingNodesManager is AccessControlUpgradeable, ITokenStakingNode
emit MaxNodeCountUpdated(_maxNodeCount);
}

// //--------------------------------------------------------------------------------------@todo
// //---------------------------------- WITHDRAWALS -------------------------------------
// //--------------------------------------------------------------------------------------

// function processPrincipalWithdrawals(
// WithdrawalAction[] calldata _actions
// ) public onlyRole(WITHDRAWAL_MANAGER_ROLE) {
// uint256 _len = _actions.length;
// for (uint256 i = 0; i < _len; ++i) {
// _processPrincipalWithdrawalForNode(_actions[i]);
// }
// }

// function _processPrincipalWithdrawalForNode(WithdrawalAction calldata _action) internal {

// uint256 _totalAmount = _action.amountToReinvest + _action.amountToQueue;

// ITokenStakingNode _node = nodes[_action.nodeId];
// _node.deallocateTokens(IERC20(_action.asset), _totalAmount);
// IERC20(_action.asset).safeTransferFrom(address(_node), address(this), _totalAmount);

// if (_action.amountToReinvest > 0) {
// IynEigen _ynEigen = IEigenStrategyManager(yieldNestStrategyManager).ynEigen();
// IERC20(_action.asset).forceApprove(address(_ynEigen), _action.amountToReinvest);
// _ynEigen.processWithdrawn(_action.amountToReinvest, _action.asset);
// }

// if (_action.amountToQueue > 0) {
// IRedemptionAssetsVaultExt _redemptionAssetsVault = redemptionAssetsVault;
// IERC20(_action.asset).forceApprove(address(_redemptionAssetsVault), _action.amountToQueue);
// _redemptionAssetsVault.deposit(_action.amountToQueue, _action.asset);
// }

// emit PrincipalWithdrawalProcessed(_action.nodeId, _action.amountToReinvest, _action.amountToQueue);
// }

//--------------------------------------------------------------------------------------
//---------------------------------- TokenStakingNode Roles --------------------------
//--------------------------------------------------------------------------------------
Expand Down Expand Up @@ -357,15 +306,6 @@ contract TokenStakingNodesManager is AccessControlUpgradeable, ITokenStakingNode
return nodes[nodeId];
}

// /**
// * @notice Checks if the given address has the STAKING_NODES_WITHDRAWER_ROLE.
// * @param _address The address to check.
// * @return True if the address has the STAKING_NODES_WITHDRAWER_ROLE, false otherwise.
// */
// function isStakingNodesWithdrawer(address _address) public view returns (bool) {
// return hasRole(STAKING_NODES_WITHDRAWER_ROLE, _address);
// }@todo

//--------------------------------------------------------------------------------------
//---------------------------------- MODIFIERS ---------------------------------------
//--------------------------------------------------------------------------------------
Expand Down

0 comments on commit 4731a19

Please sign in to comment.