-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
14 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,18 @@ import {Id} from "../../../lib/morpho-blue/src/interfaces/IMorpho.sol"; | |
/// @author Morpho Labs | ||
/// @custom:contact [email protected] | ||
interface IFixedRateIrm is IIrm { | ||
/* EVENTS */ | ||
|
||
/// @notice Emitted when a borrow rate is set. | ||
event SetBorrowRate(Id indexed id, uint256 newBorrowRate); | ||
|
||
/* EXTERNAL */ | ||
|
||
/// @notice Borrow rates. | ||
function borrowRateStored(Id id) external returns (uint256); | ||
|
||
/// @notice Sets the borrow rate for a market. | ||
/// @dev A rate can be set by anybody, but only once. | ||
/// @dev `borrowRate` reverts on rate not set, so the rate needs to be set before the market creation. | ||
function setBorrowRate(Id id, uint256 newBorrowRate) external; | ||
} |