Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions contracts/mocks/docs/ERC4626Fees.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ abstract contract ERC4626Fees is ERC4626 {

// === Overrides ===

/// @dev Maximum amount of the underlying asset that can be withdrawn from the owner's balance.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// @dev Maximum amount of the underlying asset that can be withdrawn from the owner's balance.
/// @dev Maximum amount of the underlying asset that can be withdrawn from the owner's balance after subtracting fees.

function maxWithdraw(address owner) public view virtual override returns (uint256) {
return previewRedeem(maxRedeem(owner));
}

/// @dev Preview taking an entry fee on deposit. See {IERC4626-previewDeposit}.
function previewDeposit(uint256 assets) public view virtual override returns (uint256) {
uint256 fee = _feeOnTotal(assets, _entryFeeBasisPoints());
Expand Down
Loading