PriceOracleSentinel
This contract validates if the operations are allowed depending on the PriceOracle health.
The
PriceOracle
is considered healthy once its completely up and the grace period has passed.function isBorrowAllowed()
Type | Description |
---|---|
bool | Returns true if PriceOracle is up and grace period has passed |
function isLiquidationAllowed()
Type | Description |
---|---|
bool | Returns true if PriceOracle is up and grace period has passed |
function getSequencerOracle()
Type | Description |
---|---|
address | Address of the SequencerOracle. |
function getGracePeriod()
Type | Description |
---|---|
uint256 | The duration of the grace period in seconds. |
function setSequencerOracle(address newSequencerOracle)
Can be called only by PoolAdmin.
Name | Type | Description |
---|---|---|
newSequencerOracle | address | address of the new SequecerOracle to be set. |
function setGracePeriod(uint256 newGracePeriod)
Can be called only by PoolAdmin or RiskAdmin.
Name | Type | Description |
---|---|---|
newGracePeriod | uint256 | duration of new grace period in seconds. |
Last modified 1yr ago