@@ -132,9 +132,9 @@ interface IMorphoBase {
132
132
/// @dev Either `assets` or `shares` should be zero. Most usecases should rely on `assets` as an input so the caller
133
133
/// is guaranteed to have `assets` tokens pulled from their balance, but the possibility to mint a specific amount
134
134
/// of shares is given for full compatibility and precision.
135
- /// @dev If the supply of a market gets depleted, the supply share price instantly resets to
136
- /// `VIRTUAL_ASSETS`:`VIRTUAL_SHARES`.
137
135
/// @dev Supplying a large amount can revert for overflow.
136
+ /// @dev Supplying an amount of shares may lead to supply more or fewer assets than expected due to slippage.
137
+ /// Consider using the `assets` parameter to avoid this.
138
138
/// @param marketParams The market to supply assets to.
139
139
/// @param assets The amount of assets to supply.
140
140
/// @param shares The amount of shares to mint.
@@ -175,10 +175,10 @@ interface IMorphoBase {
175
175
/// @dev Either `assets` or `shares` should be zero. Most usecases should rely on `assets` as an input so the caller
176
176
/// is guaranteed to borrow `assets` of tokens, but the possibility to mint a specific amount of shares is given for
177
177
/// full compatibility and precision.
178
- /// @dev If the borrow of a market gets depleted, the borrow share price instantly resets to
179
- /// `VIRTUAL_ASSETS`:`VIRTUAL_SHARES`.
180
178
/// @dev `msg.sender` must be authorized to manage `onBehalf`'s positions.
181
179
/// @dev Borrowing a large amount can revert for overflow.
180
+ /// @dev Borrowing an amount of shares may lead to borrow fewer assets than expected due to slippage.
181
+ /// Consider using the `assets` parameter to avoid this.
182
182
/// @param marketParams The market to borrow assets from.
183
183
/// @param assets The amount of assets to borrow.
184
184
/// @param shares The amount of shares to mint.
0 commit comments