Skip to content
This repository was archived by the owner on May 24, 2024. It is now read-only.

Commit d297d9c

Browse files
eIP 52 implementation
1 parent dfaa778 commit d297d9c

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

contracts/Constants.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ abstract contract Constants {
8686
uint internal constant MODULEID__IRM_CLASS__LIDO = 2_000_504;
8787
uint internal constant MODULEID__IRM_CLASS__USDT = 2_000_505;
8888
uint internal constant MODULEID__IRM_CLASS__OHM = 2_000_506;
89+
uint internal constant MODULEID__IRM_CLASS__LSD = 2_000_507;
8990

9091
// Swap types
9192
uint internal constant SWAP_TYPE__UNI_EXACT_INPUT_SINGLE = 1;
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// SPDX-License-Identifier: GPL-2.0-or-later
2+
3+
pragma solidity ^0.8.0;
4+
5+
import "../../BaseIRMLinearKink.sol";
6+
7+
8+
contract IRMClassLSD is BaseIRMLinearKink {
9+
constructor(bytes32 moduleGitCommit_)
10+
BaseIRMLinearKink(MODULEID__IRM_CLASS__LSD, moduleGitCommit_,
11+
// Base=0% APY, Kink(70%)=5% APY Max=200% APY
12+
0, 514255952, 25819008208, 3006477107
13+
) {}
14+
}

contracts/modules/interest-rate-models/IRMClassLido.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ contract IRMClassLido is BaseIRM {
3131
lidoOracle = 0x442af784A788A5bd6F42A01Ebe9F287a871243fb;
3232
stETH = 0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84;
3333

34-
// Base=Lido APY, Kink(80%)=8% APY Max=200% APY
35-
slope1 = 709783723;
36-
slope2 = 37689273223;
37-
kink = 3435973836;
34+
// Base=Lido APY, Kink(70%)=5% APY Max=200% APY
35+
slope1 = 514255952;
36+
slope2 = 25819008208;
37+
kink = 3006477107;
3838
}
3939

4040
function computeInterestRateImpl(address, uint32 utilisation) internal override returns (int96) {

0 commit comments

Comments
 (0)