Skip to content

CappedRateAdmin ​

Git Source

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

solidity
bytes32 internal constant GOVERNANCE_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;

Functions ​

onlyGuardians ​

only Liquidity Layer owner (governance) and guardians access modifier

solidity
modifier onlyGuardians();

onlyGovernance ​

only Liquidity Layer owner (governance) access modifier

solidity
modifier onlyGovernance();

updateAvoidForcedLiquidationsCol ​

Updates the avoidForcedLiquidations_ col side config flag. Only callable by Liquidity Layer guardians

solidity
function updateAvoidForcedLiquidationsCol(bool avoid_) external onlyGuardians;

updateAvoidForcedLiquidationsDebt ​

Updates the avoidForcedLiquidations_ debt side config flag. Only callable by Liquidity Layer guardians

solidity
function updateAvoidForcedLiquidationsDebt(bool avoid_) external onlyGuardians;

forceResetMaxRate ​

resets max reached rate to current _rate value. Only callable by Liquidity Layer guardians

solidity
function forceResetMaxRate() external onlyGuardians;

updateMaxAPRPercent ​

Updates the maxAPRPercent_ config, in 1e4 percent (1% = 1e4). Only callable by Governance

solidity
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)

solidity
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.

solidity
function updateMaxDownFromMaxReachedPercentDebt(uint256 newMaxDownFromMaxReachedPercent_) external onlyGuardians;

updateMaxDebtUpCapPercent ​

Updates the _maxDebtUpCapPercent config. Only callable by Liquidity Layer guardians.

solidity
function updateMaxDebtUpCapPercent(uint256 newMaxDebtUpCapPercent_) external onlyGuardians;

updateMinHeartbeat ​

Updates the _minHeartbeat config. Only callable by Governance.

solidity
function updateMinHeartbeat(uint256 newMinHeartbeat_) external onlyGovernance;

updateMinUpdateDiffPercent ​

Updates the _minUpdateDiffPercent config. Only callable by Governance.

solidity
function updateMinUpdateDiffPercent(uint256 newMinUpdateDiffPercent_) external onlyGovernance;