Skip to content

Commit

Permalink
fix: rename optional fund modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
failingtwice committed Jan 30, 2025
1 parent 19755bb commit fdb7a08
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions contracts/0.8.25/vaults/Dashboard.sol
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ contract Dashboard is Permissions {
/**
* @notice Disconnects the staking vault from the vault hub.
*/
function voluntaryDisconnect() external payable fundAndProceed {
function voluntaryDisconnect() external payable fundable {
uint256 shares = vaultHub.vaultSocket(address(stakingVault())).sharesMinted;

if (shares > 0) {
Expand Down Expand Up @@ -267,7 +267,7 @@ contract Dashboard is Permissions {
* @param _recipient Address of the recipient
* @param _amountOfShares Amount of stETH shares to mint
*/
function mintShares(address _recipient, uint256 _amountOfShares) external payable fundAndProceed {
function mintShares(address _recipient, uint256 _amountOfShares) external payable fundable {
_mintShares(_recipient, _amountOfShares);
}

Expand All @@ -277,7 +277,7 @@ contract Dashboard is Permissions {
* @param _recipient Address of the recipient
* @param _amountOfStETH Amount of stETH to mint
*/
function mintStETH(address _recipient, uint256 _amountOfStETH) external payable virtual fundAndProceed {
function mintStETH(address _recipient, uint256 _amountOfStETH) external payable virtual fundable {
_mintShares(_recipient, STETH.getSharesByPooledEth(_amountOfStETH));
}

Expand All @@ -286,7 +286,7 @@ contract Dashboard is Permissions {
* @param _recipient Address of the recipient
* @param _amountOfWstETH Amount of tokens to mint
*/
function mintWstETH(address _recipient, uint256 _amountOfWstETH) external payable fundAndProceed {
function mintWstETH(address _recipient, uint256 _amountOfWstETH) external payable fundable {
_mintShares(address(this), _amountOfWstETH);

uint256 mintedStETH = STETH.getPooledEthBySharesRoundUp(_amountOfWstETH);
Expand Down Expand Up @@ -399,7 +399,7 @@ contract Dashboard is Permissions {
* @notice Rebalances the vault by transferring ether
* @param _ether Amount of ether to rebalance
*/
function rebalanceVault(uint256 _ether) external payable fundAndProceed {
function rebalanceVault(uint256 _ether) external payable fundable {
_rebalanceVault(_ether);
}

Expand Down Expand Up @@ -459,7 +459,7 @@ contract Dashboard is Permissions {
/**
* @dev Modifier to fund the staking vault if msg.value > 0
*/
modifier fundAndProceed() {
modifier fundable() {
if (msg.value > 0) {
_fund(msg.value);
}
Expand Down

0 comments on commit fdb7a08

Please sign in to comment.