StableOracle.sol
View Source: contracts/oracles/StableOracle.sol
StableOracle
Contract Members
Constants & Variables
Events
Functions
Creates a new stable oracle based on existing oracle
Arguments
Name | Type | Description |
_oracle | address | address of underlying oracle |
_evictPercentage | uint256 |
changeOracle
Updates medianizer address
Arguments
Name | Type | Description |
_oracle | address | Address of underlying oracle |
changeEvictPercentage
Updates eviction percentage
Arguments
Name | Type | Description |
_evictPercentage | uint256 | Percentage multiplied by 10**16 |
getCurrencyAddress
⤾ overrides IOracle.getCurrencyAddress
Returns address of oracle currency (0x0 for ETH)
Arguments
Name | Type | Description |
getCurrencySymbol
⤾ overrides IOracle.getCurrencySymbol
Returns symbol of oracle currency (0x0 for ETH)
Arguments
Name | Type | Description |
getCurrencyDenominated
⤾ overrides IOracle.getCurrencyDenominated
Returns denomination of price
Arguments
Name | Type | Description |
getPrice
⤾ overrides IOracle.getPrice
Returns price - should throw if not valid
Arguments
Name | Type | Description |
_change
Arguments
Name | Type | Description |
_newPrice | uint256 | |
_oldPrice | uint256 |
setManualPrice
Set a manual price. NA - this will only be used if manualOverride == true
Arguments
Name | Type | Description |
_price | uint256 | Price to set |
setManualOverride
Determine whether manual price is used or not
Arguments
Name | Type | Description |
_override | bool | Whether to use the manual override price or not |
Last updated