Prechádzať zdrojové kódy

Remove obsolete ERC4626 `mint` NatSpec (#4837)

Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Dariusz Glowinski 1 rok pred
rodič
commit
06eb785fcf

+ 1 - 5
contracts/token/ERC20/extensions/ERC4626.sol

@@ -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) {