CappedRateAdmin ​
Inherits:Variables, Events, OracleError
State Variables ​
GOVERNANCE_SLOT ​
This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1 where current liquidity owner on proxy is stored
bytes32 internal constant GOVERNANCE_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;
Functions ​
onlyGuardians ​
only Liquidity Layer owner (governance) and guardians access modifier
modifier onlyGuardians();
onlyGovernance ​
only Liquidity Layer owner (governance) access modifier
modifier onlyGovernance();
updateAvoidForcedLiquidationsCol ​
Updates the avoidForcedLiquidations_ col side config flag. Only callable by Liquidity Layer guardians
function updateAvoidForcedLiquidationsCol(bool avoid_) external onlyGuardians;
updateAvoidForcedLiquidationsDebt ​
Updates the avoidForcedLiquidations_ debt side config flag. Only callable by Liquidity Layer guardians
function updateAvoidForcedLiquidationsDebt(bool avoid_) external onlyGuardians;
forceResetMaxRate ​
resets max reached rate to current _rate
value. Only callable by Liquidity Layer guardians
function forceResetMaxRate() external onlyGuardians;
updateMaxAPRPercent ​
Updates the maxAPRPercent_ config, in 1e4 percent (1% = 1e4). Only callable by Governance
function updateMaxAPRPercent(uint256 newMaxAPRPercent_) external onlyGuardians;
updateMaxDownFromMaxReachedPercentCol ​
Updates the _maxDownFromMaxReachedPercentCol config. Only callable by Liquidity Layer guardians. Set to 100% (1e6) to completely remove down peg (same as updateAvoidForcedLiquidationsCol = false)
function updateMaxDownFromMaxReachedPercentCol(uint256 newMaxDownFromMaxReachedPercent_) external onlyGuardians;
updateMaxDownFromMaxReachedPercentDebt ​
Updates the _maxDownFromMaxReachedPercentDebt config. Only callable by Liquidity Layer guardians. Set to 100% (1e6) to completely remove down peg.
function updateMaxDownFromMaxReachedPercentDebt(uint256 newMaxDownFromMaxReachedPercent_) external onlyGuardians;
updateMaxDebtUpCapPercent ​
Updates the _maxDebtUpCapPercent config. Only callable by Liquidity Layer guardians.
function updateMaxDebtUpCapPercent(uint256 newMaxDebtUpCapPercent_) external onlyGuardians;
updateMinHeartbeat ​
Updates the _minHeartbeat config. Only callable by Governance.
function updateMinHeartbeat(uint256 newMinHeartbeat_) external onlyGovernance;
updateMinUpdateDiffPercent ​
Updates the _minUpdateDiffPercent config. Only callable by Governance.
function updateMinUpdateDiffPercent(uint256 newMinUpdateDiffPercent_) external onlyGovernance;