|
@@ -180,11 +180,7 @@ abstract contract ERC4626 is ERC20, IERC4626 {
|
|
|
return shares;
|
|
|
}
|
|
|
|
|
|
- /** @dev See {IERC4626-mint}.
|
|
|
- *
|
|
|
- * As opposed to {deposit}, minting is allowed even if the vault is in a state where the price of a share is zero.
|
|
|
- * In this case, the shares will be minted without requiring any assets to be deposited.
|
|
|
- */
|
|
|
+ /** @dev See {IERC4626-mint}. */
|
|
|
function mint(uint256 shares, address receiver) public virtual returns (uint256) {
|
|
|
uint256 maxShares = maxMint(receiver);
|
|
|
if (shares > maxShares) {
|