Skip to content

Commit

Permalink
queueWithdrawals with scaledShares
Browse files Browse the repository at this point in the history
  • Loading branch information
hpmaxi committed Feb 17, 2025
1 parent 2bfd448 commit 5111b1f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ynEIGEN/WithdrawalsProcessor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -287,17 +287,20 @@ contract WithdrawalsProcessor is IWithdrawalsProcessor, Initializable, AccessCon

address _node = address(_nodes[j]);
address _delegatedTo = delegationManager.delegatedTo(_node);

bytes32[] memory fullWithdrawalRoots = ITokenStakingNode(_node).queueWithdrawals(_strategy, _toWithdraw);
IDelegationManagerTypes.Withdrawal memory queuedWithdrawal = _delegationManager.getQueuedWithdrawal(fullWithdrawalRoots[0]);

_queuedWithdrawals[_queuedId++] = QueuedWithdrawal(
_node,
address(_strategy),
delegationManager.cumulativeWithdrawalsQueued(_node), // nonce
_toWithdraw,
queuedWithdraw.scaledShares[0],
withdrawalQueueManager._tokenIdCounter(),
uint32(block.number), // startBlock
false, // completed,
_delegatedTo // operator
);
ITokenStakingNode(_node).queueWithdrawals(_strategy, _toWithdraw);
}

if (_pendingWithdrawalRequestsInShares == 0) {
Expand Down

0 comments on commit 5111b1f

Please sign in to comment.