From b7e5536f4f8fca15e6235cb3fd0ec4f5958d65c5 Mon Sep 17 00:00:00 2001 From: Evgeny Taktarov Date: Wed, 29 Jan 2025 15:03:19 +0700 Subject: [PATCH] fix: remove onlyRole --- contracts/0.8.25/vaults/Dashboard.sol | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/contracts/0.8.25/vaults/Dashboard.sol b/contracts/0.8.25/vaults/Dashboard.sol index c2fc2c222..1fc804421 100644 --- a/contracts/0.8.25/vaults/Dashboard.sol +++ b/contracts/0.8.25/vaults/Dashboard.sol @@ -291,10 +291,7 @@ contract Dashboard is Permissions { * @param _recipient Address of the recipient * @param _amountStETH Amount of stETH to mint */ - function mintStETH( - address _recipient, - uint256 _amountStETH - ) external payable virtual onlyRole(DEFAULT_ADMIN_ROLE) fundAndProceed { + function mintStETH(address _recipient, uint256 _amountStETH) external payable virtual fundAndProceed { _mintShares(_recipient, STETH.getSharesByPooledEth(_amountStETH)); } @@ -381,7 +378,7 @@ contract Dashboard is Permissions { function burnSharesWithPermit( uint256 _amountShares, PermitInput calldata _permit - ) external virtual onlyRole(DEFAULT_ADMIN_ROLE) safePermit(address(STETH), msg.sender, address(this), _permit) { + ) external virtual safePermit(address(STETH), msg.sender, address(this), _permit) { STETH.transferSharesFrom(msg.sender, address(vaultHub), _amountShares); _burnShares(_amountShares); }