Clearinghouse
Inherits: Policy, RolesConsumer, CoolerCallback
Title: Olympus Clearinghouse.
Olympus Clearinghouse (Policy) Contract.
The Olympus Clearinghouse is a lending facility built on top of Cooler Loans. The Clearinghouse ensures that OHM holders can take loans against their gOHM holdings according to the parameters approved by the community in OIP-144 and its subsequent RFCs. The Clearinghouse parameters are immutable, because of that, if backing was to increase substantially, a new governance process to fork this implementation with upgraded parameters should take place. Although the Cooler contracts allow lenders to transfer ownership of their repayment rights, the Clearinghouse doesn't implement any functions to use that feature.
Constants
reserve
ERC20 public immutable reserve;
sReserve
ERC4626 public immutable sReserve;
gohm
ERC20 public immutable gohm;
ohm
ERC20 public immutable ohm;
staking
IStaking public immutable staking;
INTEREST_RATE
uint256 public constant INTEREST_RATE = 5e15;
LOAN_TO_COLLATERAL
uint256 public constant LOAN_TO_COLLATERAL = 289292e16;
DURATION
uint256 public constant DURATION = 121 days;
FUND_CADENCE
uint256 public constant FUND_CADENCE = 7 days;
FUND_AMOUNT
uint256 public constant FUND_AMOUNT = 18_000_000e18;
MAX_REWARD
uint256 public constant MAX_REWARD = 1e17;
State Variables
CHREG
CHREGv1 public CHREG;
MINTR
MINTRv1 public MINTR;
TRSRY
TRSRYv1 public TRSRY;
active
determines whether the contract can be funded or not.
bool public active;