Skip to content

Commit

Permalink
feat: renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
vp4242 committed Feb 27, 2025
1 parent 0827f4a commit f579763
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contracts/0.8.25/Accounting.sol
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ contract Accounting {
);

if (_update.totalVaultsTreasuryFeeShares > 0) {
_contracts.vaultHub.mintExternalSharesForFees(LIDO_LOCATOR.treasury(), _update.totalVaultsTreasuryFeeShares);
_contracts.vaultHub.mintVaultsTreasuryFeeShares(LIDO_LOCATOR.treasury(), _update.totalVaultsTreasuryFeeShares);
}

_notifyRebaseObserver(_contracts.postTokenRebaseReceiver, _report, _pre, _update);
Expand Down
4 changes: 2 additions & 2 deletions contracts/0.8.25/vaults/VaultHub.sol
Original file line number Diff line number Diff line change
Expand Up @@ -522,8 +522,8 @@ contract VaultHub is PausableUntilWithRoles {
}
}

function mintExternalSharesForFees(address _recipient, uint256 _amountOfShares) external {
if (msg.sender != ACCOUNTING) revert NotAuthorized("mintExternalSharesForFees", msg.sender);
function mintVaultsTreasuryFeeShares(address _recipient, uint256 _amountOfShares) external {
if (msg.sender != ACCOUNTING) revert NotAuthorized("mintVaultsTreasuryFeeShares", msg.sender);
STETH.mintExternalShares(_recipient, _amountOfShares);
}

Expand Down

0 comments on commit f579763

Please sign in to comment.