Skip to content

Commit

Permalink
fix: Add onlyYieldNestStrategyManager to sync
Browse files Browse the repository at this point in the history
  • Loading branch information
fzavalia committed Feb 13, 2025
1 parent f9c8910 commit 204e842
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ynEIGEN/TokenStakingNode.sol
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ contract TokenStakingNode is ITokenStakingNode, Initializable, ReentrancyGuardUp
* @notice Synchronizes both the delegatedTo address with the DelegationManager and the queued shares.
* @dev This function will be called by the trusted entity when the operator calls undelegate() or when a slashing event occurs to prevent accounting issues.
*/
function synchronize() public onlyDelegator {
function synchronize() public onlyDelegator onlyYieldNestStrategyManager {
IDelegationManagerExtended delegationManager = IDelegationManagerExtended(address(tokenStakingNodesManager.delegationManager()));
IAllocationManager allocationManager = delegationManager.allocationManager();

Expand Down

0 comments on commit 204e842

Please sign in to comment.