Skip to content

Commit

Permalink
feat: make vault notification methods internal (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaketimothy authored Oct 28, 2024
1 parent f2892d8 commit ca5624f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nest/src/ComponentToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ abstract contract ComponentToken is
* @param shares Amount of shares to receive in exchange
* @param controller Controller of the request
*/
function notifyDeposit(uint256 assets, uint256 shares, address controller) public virtual {
function _notifyDeposit(uint256 assets, uint256 shares, address controller) internal virtual {
if (assets == 0) {
revert ZeroAmount();
}
Expand Down Expand Up @@ -363,7 +363,7 @@ abstract contract ComponentToken is
* @param shares Amount of shares that was redeemed by `requestRedeem`
* @param controller Controller of the request
*/
function notifyRedeem(uint256 assets, uint256 shares, address controller) public virtual {
function _notifyRedeem(uint256 assets, uint256 shares, address controller) internal virtual {
if (shares == 0) {
revert ZeroAmount();
}
Expand Down

0 comments on commit ca5624f

Please sign in to comment.