IPriceBound
Methods
ceiling
function ceiling() external view returns (uint256)
get the ceiling price in basis points
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
floor
function floor() external view returns (uint256)
get the floor price in basis points
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
isPriceValid
function isPriceValid() external view returns (bool)
return wether the current oracle price is valid or not
Returns
Name | Type | Description |
---|---|---|
_0 | bool | undefined |
setOracleCeilingBasisPoints
function setOracleCeilingBasisPoints(uint256 newCeiling) external nonpayable
sets the ceiling price in BP
Parameters
Name | Type | Description |
---|---|---|
newCeiling | uint256 | undefined |
setOracleFloorBasisPoints
function setOracleFloorBasisPoints(uint256 newFloor) external nonpayable
sets the floor price in BP
Parameters
Name | Type | Description |
---|---|---|
newFloor | uint256 | undefined |
Events
OracleCeilingUpdate
event OracleCeilingUpdate(uint256 oldCeiling, uint256 newCeiling)
event emitted when maximum ceiling price is updated
Parameters
Name | Type | Description |
---|---|---|
oldCeiling | uint256 | undefined |
newCeiling | uint256 | undefined |
OracleFloorUpdate
event OracleFloorUpdate(uint256 oldFloor, uint256 newFloor)
event emitted when minimum floor price is updated
Parameters
Name | Type | Description |
---|---|---|
oldFloor | uint256 | undefined |
newFloor | uint256 | undefined |