all files / contracts/modules/interest-rate-models/test/ IRMFixed.sol

100% Statements 1/1
100% Branches 0/0
100% Functions 2/2
100% Lines 1/1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15                      63×      
// SPDX-License-Identifier: GPL-2.0-or-later
 
pragma solidity ^0.8.0;
 
import "../../../BaseIRM.sol";
 
 
contract IRMFixed is BaseIRM {
    constructor(bytes32 moduleGitCommit_) BaseIRM(MODULEID__IRM_FIXED, moduleGitCommit_) {}
 
    function computeInterestRateImpl(address, uint32) internal override pure returns (int96) {
        return int96(int(uint(1e27 * 0.1) / (86400 * 365))); // not SECONDS_PER_YEAR to avoid breaking tests
    }
}