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

Commit ab7f017

Browse files
eIP 52 implementation
1 parent dfaa778 commit ab7f017

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ contract IRMClassLido is BaseIRM {
3232
stETH = 0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84;
3333

3434
// Base=Lido APY, Kink(80%)=8% APY Max=200% APY
35-
slope1 = 709783723;
36-
slope2 = 37689273223;
37-
kink = 3435973836;
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)