Skip to content

Commit

Permalink
docs: improve
Browse files Browse the repository at this point in the history
  • Loading branch information
MathisGD committed Feb 8, 2024
1 parent e382c16 commit d446aed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/FixedRateIrm.sol
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ contract FixedRateIrm is IFixedRateIrm {
}

/// @inheritdoc IIrm
/// @dev Reverts on not set rate, so the rate has to be set before the market creation.
function borrowRate(MarketParams memory marketParams, Market memory) external view returns (uint256) {
uint256 borrowRateCached = _borrowRate[marketParams.id()];
require(borrowRateCached != 0, RATE_NOT_SET);
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IFixedRateIrm.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ import {Id} from "../../lib/morpho-blue/src/interfaces/IMorpho.sol";
interface IFixedRateIrm is IIrm {
/// @notice Sets the borrow rate for a market.
/// @dev A rate can be set by anybody, but only once.
/// @dev The creator of a market with this IRM would typically batch the creation with the setting of the rate.
/// @dev The creator of a market with this IRM would typically batch setting of the rate with the market creation.
function setBorrowRate(Id id, uint256 newBorrowRate) external;
}

0 comments on commit d446aed

Please sign in to comment.