Skip to content

Commit

Permalink
Merge pull request #368 from morpho-org/docs/duplicate-warning
Browse files Browse the repository at this point in the history
Add comment duplicate markets in maxDeposit/Mint
  • Loading branch information
MerlinEgalite authored Dec 28, 2023
2 parents 1d9cf0b + 905faba commit 8348124
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/MetaMorpho.sol
Original file line number Diff line number Diff line change
Expand Up @@ -497,11 +497,13 @@ contract MetaMorpho is ERC4626, ERC20Permit, Ownable2Step, Multicall, IMetaMorph
}

/// @inheritdoc IERC4626
/// @dev Warning: May be higher than the actual max deposit due to duplicate markets in the supplyQueue.
function maxDeposit(address) public view override returns (uint256) {
return _maxDeposit();
}

/// @inheritdoc IERC4626
/// @dev Warning: May be higher than the actual max mint due to duplicate markets in the supplyQueue.
function maxMint(address) public view override returns (uint256) {
uint256 suppliable = _maxDeposit();

Expand Down

0 comments on commit 8348124

Please sign in to comment.