MakerDAOOracle.sol
View Source: contracts/oracles/MakerDAOOracle.sol
MakerDAOOracle
Contract Members
Constants & Variables
Events
Functions
Creates a new Maker based oracle
Arguments
Name | Type | Description |
_medianizer | address | Address of Maker medianizer |
_currencyAddress | address | Address of currency (0x0 for ETH) |
_currencySymbol | bytes32 | Symbol of currency |
changeMedianier
Updates medianizer address
Arguments
Name | Type | Description |
_medianizer | address | Address of Maker medianizer |
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 |
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