Skip to content

Commit 5111b1f

Browse files
committed
queueWithdrawals with scaledShares
1 parent 2bfd448 commit 5111b1f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/ynEIGEN/WithdrawalsProcessor.sol

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,17 +287,20 @@ contract WithdrawalsProcessor is IWithdrawalsProcessor, Initializable, AccessCon
287287

288288
address _node = address(_nodes[j]);
289289
address _delegatedTo = delegationManager.delegatedTo(_node);
290+
291+
bytes32[] memory fullWithdrawalRoots = ITokenStakingNode(_node).queueWithdrawals(_strategy, _toWithdraw);
292+
IDelegationManagerTypes.Withdrawal memory queuedWithdrawal = _delegationManager.getQueuedWithdrawal(fullWithdrawalRoots[0]);
293+
290294
_queuedWithdrawals[_queuedId++] = QueuedWithdrawal(
291295
_node,
292296
address(_strategy),
293297
delegationManager.cumulativeWithdrawalsQueued(_node), // nonce
294-
_toWithdraw,
298+
queuedWithdraw.scaledShares[0],
295299
withdrawalQueueManager._tokenIdCounter(),
296300
uint32(block.number), // startBlock
297301
false, // completed,
298302
_delegatedTo // operator
299303
);
300-
ITokenStakingNode(_node).queueWithdrawals(_strategy, _toWithdraw);
301304
}
302305

303306
if (_pendingWithdrawalRequestsInShares == 0) {

0 commit comments

Comments
 (0)