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()
function isLiquidationAllowed()
function getSequencerOracle()
function getGracePeriod()
function setSequencerOracle(address newSequencerOracle)
Can be called only by PoolAdmin.
function setGracePeriod(uint256 newGracePeriod)
Can be called only by PoolAdmin or RiskAdmin.
Type | Description |
---|---|
Type | Description |
---|---|
Type | Description |
---|---|
Type | Description |
---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
bool
Returns true if PriceOracle is up and grace period has passed
bool
Returns true if PriceOracle is up and grace period has passed
address
Address of the SequencerOracle.
uint256
The duration of the grace period in seconds.
newSequencerOracle
address
address of the new SequecerOracle to be set.
newGracePeriod
uint256
duration of new grace period in seconds.