diff --git a/contracts/Constants.sol b/contracts/Constants.sol index 0a524352..e6f00b95 100644 --- a/contracts/Constants.sol +++ b/contracts/Constants.sol @@ -86,6 +86,7 @@ abstract contract Constants { uint internal constant MODULEID__IRM_CLASS__LIDO = 2_000_504; uint internal constant MODULEID__IRM_CLASS__USDT = 2_000_505; uint internal constant MODULEID__IRM_CLASS__OHM = 2_000_506; + uint internal constant MODULEID__IRM_CLASS__LSD = 2_000_507; // Swap types uint internal constant SWAP_TYPE__UNI_EXACT_INPUT_SINGLE = 1; diff --git a/contracts/modules/interest-rate-models/IRMClassLSD.sol b/contracts/modules/interest-rate-models/IRMClassLSD.sol new file mode 100644 index 00000000..1870e4b2 --- /dev/null +++ b/contracts/modules/interest-rate-models/IRMClassLSD.sol @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0-or-later + +pragma solidity ^0.8.0; + +import "../../BaseIRMLinearKink.sol"; + + +contract IRMClassLSD is BaseIRMLinearKink { + constructor(bytes32 moduleGitCommit_) + BaseIRMLinearKink(MODULEID__IRM_CLASS__LSD, moduleGitCommit_, + // Base=0% APY, Kink(70%)=5% APY Max=200% APY + 0, 514255952, 25819008208, 3006477107 + ) {} +} diff --git a/contracts/modules/interest-rate-models/IRMClassLido.sol b/contracts/modules/interest-rate-models/IRMClassLido.sol index 64815d88..b6611336 100644 --- a/contracts/modules/interest-rate-models/IRMClassLido.sol +++ b/contracts/modules/interest-rate-models/IRMClassLido.sol @@ -32,9 +32,9 @@ contract IRMClassLido is BaseIRM { stETH = 0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84; // Base=Lido APY, Kink(80%)=8% APY Max=200% APY - slope1 = 709783723; - slope2 = 37689273223; - kink = 3435973836; + slope1 = 514255952; + slope2 = 25819008208; + kink = 3006477107; } function computeInterestRateImpl(address, uint32 utilisation) internal override returns (int96) {