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

Commit

Permalink
OHM Interest Rate Model, eIP 34
Browse files Browse the repository at this point in the history
  • Loading branch information
hoytech committed Jan 2, 2023
1 parent 87aea63 commit 52dcb97
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions contracts/Constants.sol
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ abstract contract Constants {
uint internal constant MODULEID__IRM_CLASS__MEGA = 2_000_503;
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;

// Swap types
uint internal constant SWAP_TYPE__UNI_EXACT_INPUT_SINGLE = 1;
Expand Down
14 changes: 14 additions & 0 deletions contracts/modules/interest-rate-models/IRMClassOHM.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// SPDX-License-Identifier: GPL-2.0-or-later

pragma solidity ^0.8.0;

import "../../BaseIRMLinearKink.sol";


contract IRMClassOHM is BaseIRMLinearKink {
constructor(bytes32 moduleGitCommit_)
BaseIRMLinearKink(MODULEID__IRM_CLASS__OHM, moduleGitCommit_,
// Base=5% APY, Kink(80%)=20% APY Max=300% APY
1546098748700444833, 1231511520, 44415215206, 3435973836
) {}
}

0 comments on commit 52dcb97

Please sign in to comment.