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

Commit 52dcb97

Browse files
committed
OHM Interest Rate Model, eIP 34
1 parent 87aea63 commit 52dcb97

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

contracts/Constants.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ abstract contract Constants {
8585
uint internal constant MODULEID__IRM_CLASS__MEGA = 2_000_503;
8686
uint internal constant MODULEID__IRM_CLASS__LIDO = 2_000_504;
8787
uint internal constant MODULEID__IRM_CLASS__USDT = 2_000_505;
88+
uint internal constant MODULEID__IRM_CLASS__OHM = 2_000_506;
8889

8990
// Swap types
9091
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 IRMClassOHM is BaseIRMLinearKink {
9+
constructor(bytes32 moduleGitCommit_)
10+
BaseIRMLinearKink(MODULEID__IRM_CLASS__OHM, moduleGitCommit_,
11+
// Base=5% APY, Kink(80%)=20% APY Max=300% APY
12+
1546098748700444833, 1231511520, 44415215206, 3435973836
13+
) {}
14+
}

0 commit comments

Comments
 (0)