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.
View Methods
function isBorrowAllowed()
Return Value
Type | Description |
---|---|
bool | Returns true if PriceOracle is up and grace period has passed |
function isLiquidationAllowed()
Return Value
Type | Description |
---|---|
bool | Returns true if PriceOracle is up and grace period has passed |
function getSequencerOracle()
Return Value
Type | Description |
---|---|
address | Address of the SequencerOracle. |
function getGracePeriod()
Return Value
Type | Description |
---|---|
uint256 | The duration of the grace period in seconds. |
Write Methods
function setSequencerOracle(address newSequencerOracle)
Can be called only by PoolAdmin.
Call Params
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.
Call Params
Name | Type | Description |
---|---|---|
newGracePeriod | uint256 | duration of new grace period in seconds. |
ABI
Last updated