From 52dcb975e4e8a748b8270dbfad99d3d8d53e1dda Mon Sep 17 00:00:00 2001 From: Doug Hoyte Date: Mon, 2 Jan 2023 14:57:00 -0500 Subject: [PATCH] OHM Interest Rate Model, eIP 34 --- contracts/Constants.sol | 1 + .../modules/interest-rate-models/IRMClassOHM.sol | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 contracts/modules/interest-rate-models/IRMClassOHM.sol diff --git a/contracts/Constants.sol b/contracts/Constants.sol index 586adc40..0a524352 100644 --- a/contracts/Constants.sol +++ b/contracts/Constants.sol @@ -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; diff --git a/contracts/modules/interest-rate-models/IRMClassOHM.sol b/contracts/modules/interest-rate-models/IRMClassOHM.sol new file mode 100644 index 00000000..743fa064 --- /dev/null +++ b/contracts/modules/interest-rate-models/IRMClassOHM.sol @@ -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 + ) {} +}