Skip to main content

IPriceBound

Functions

setOracleFloorBasisPoints

function setOracleFloorBasisPoints(
uint256 newFloor
) external

sets the floor price in BP

Parameters

NameTypeDescription
newFlooruint256

setOracleCeilingBasisPoints

function setOracleCeilingBasisPoints(
uint256 newCeiling
) external

sets the ceiling price in BP

Parameters

NameTypeDescription
newCeilinguint256

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
oldFlooruint256
newFlooruint256

OracleCeilingUpdate

event OracleCeilingUpdate(
uint256 oldCeiling,
uint256 newCeiling
)

event emitted when maximum ceiling price is updated

Parameters

NameTypeDescription
oldCeilinguint256
newCeilinguint256