PriceOracleSentinel

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

isBorrowAllowed

function isBorrowAllowed()

Return Value

TypeDescription

bool

Returns true if PriceOracle is up and grace period has passed

isLiquidationAllowed

function isLiquidationAllowed()

Return Value

TypeDescription

bool

Returns true if PriceOracle is up and grace period has passed

getSequencerOracle

function getSequencerOracle()

Return Value

TypeDescription

address

Address of the SequencerOracle.

getGracePeriod

function getGracePeriod()

Return Value

TypeDescription

uint256

The duration of the grace period in seconds.


Write Methods

setSequencerOracle

function setSequencerOracle(address newSequencerOracle)

Can be called only by PoolAdmin.

Call Params

NameTypeDescription

newSequencerOracle

address

address of the new SequecerOracle to be set.

setGracePeriod

function setGracePeriod(uint256 newGracePeriod)

Can be called only by PoolAdmin or RiskAdmin.

Call Params

NameTypeDescription

newGracePeriod

uint256

duration of new grace period in seconds.


Last updated