IPriceBound

Functions

setOracleFloorBasisPoints

function setOracleFloorBasisPoints(
    uint256 newFloor
) external

sets the floor price in BP

Parameters

NameTypeDescription

newFloor

uint256

setOracleCeilingBasisPoints

function setOracleCeilingBasisPoints(
    uint256 newCeiling
) external

sets the ceiling price in BP

Parameters

NameTypeDescription

newCeiling

uint256

floor

function floor() external returns (uint256)

get the floor price in basis points

ceiling

function ceiling() external returns (uint256)

get the ceiling price in basis points

isPriceValid

function isPriceValid() external returns (bool)

return wether the current oracle price is valid or not

Events

OracleFloorUpdate

event OracleFloorUpdate(
    uint256 oldFloor,
    uint256 newFloor
)

event emitted when minimum floor price is updated

Parameters

NameTypeDescription

oldFloor

uint256

newFloor

uint256

### OracleCeilingUpdate

event OracleCeilingUpdate(
    uint256 oldCeiling,
    uint256 newCeiling
)

event emitted when maximum ceiling price is updated

Parameters

NameTypeDescription

oldCeiling

uint256

newCeiling

uint256

Last updated