Skip to content

Commit

Permalink
feat: overwrite _deposit and _withdraw
Browse files Browse the repository at this point in the history
  • Loading branch information
Stan Trenev committed Dec 8, 2023
1 parent 59f7301 commit d193902
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions contracts/SafeVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,24 @@ contract SafeVault is ISafeVault, ERC4626, Ownable, Pausable {
function unpause() external onlyOwner {
_unpause();
}

/**
* @dev See {ERC4626-_deposit}.
*/
function _deposit(address caller, address receiver, uint256 assets, uint256 shares) internal override {
super._deposit(caller, receiver, assets, shares);
}

/**
* @dev See {ERC4626-_withdraw}.
*/
function _withdraw(
address caller,
address receiver,
address owner,
uint256 assets,
uint256 shares
) internal override {
super._withdraw(caller, receiver, owner, assets, shares);
}
}

0 comments on commit d193902

Please sign in to comment.