Skip to content

Commit

Permalink
fix: remove onlyRole
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeday committed Jan 29, 2025
1 parent 34d4519 commit b7e5536
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions contracts/0.8.25/vaults/Dashboard.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down Expand Up @@ -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);
}

Check warning

Code scanning / Slither

Unused return Medium

Expand Down

0 comments on commit b7e5536

Please sign in to comment.