Remove obsolete ERC4626 mint NatSpec (#4837)
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
This commit is contained in:
committed by
GitHub
parent
d7490e4f59
commit
06eb785fcf
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user