From f90a3ce3653204933c579ba49de9aac301380855 Mon Sep 17 00:00:00 2001 From: r4bbit <445106+0x-r4bbit@users.noreply.github.com> Date: Tue, 27 Aug 2024 14:08:33 +0200 Subject: [PATCH] chore(StakeManager): formatting as foundry changed its mind --- contracts/StakeManager.sol | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/contracts/StakeManager.sol b/contracts/StakeManager.sol index d2171e8..2c44342 100644 --- a/contracts/StakeManager.sol +++ b/contracts/StakeManager.sol @@ -168,7 +168,9 @@ contract StakeManager is Ownable { /** * leaves the staking pool and withdraws all funds; */ - function unstake(uint256 _amount) + function unstake( + uint256 _amount + ) external onlyVault onlyAccountInitialized(msg.sender) @@ -201,7 +203,9 @@ contract StakeManager is Ownable { * * @dev Reverts when resulting locked time is not in range of [MIN_LOCKUP_PERIOD, MAX_LOCKUP_PERIOD] */ - function lock(uint256 _timeToIncrease) + function lock( + uint256 _timeToIncrease + ) external onlyVault onlyAccountInitialized(msg.sender) @@ -312,7 +316,9 @@ contract StakeManager is Ownable { * @notice Migrate account to new manager. * @param _acceptMigration true if wants to migrate, false if wants to leave */ - function migrateTo(bool _acceptMigration) + function migrateTo( + bool _acceptMigration + ) external onlyVault onlyAccountInitialized(msg.sender)