IDenominatedOracleFactory
Inherits: IAuthorizable
Functions
deployDenominatedOracle
Deploys a new DenominatedOracle contract
The denomination quote should follow the format: (A / B) * (B / C) = A / C
If the quote is inverted, the format should be read as: (B / A)^-1 * (B / C) = A / C
function deployDenominatedOracle(
IBaseOracle _priceSource,
IBaseOracle _denominationPriceSource,
bool _inverted
) external returns (IBaseOracle _denominatedOracle);
Parameters
Name | Type | Description |
---|---|---|
_priceSource | IBaseOracle | Address of the price source for the DenominatedOracle contract |
_denominationPriceSource | IBaseOracle | Address of the denomination price source for the DenominatedOracle contract |
_inverted | bool | Boolean indicating if the denomination calculation quote should be inverted |
Returns
Name | Type | Description |
---|---|---|
_denominatedOracle | IBaseOracle | Address of the deployed DenominatedOracle contract |
denominatedOraclesList
Getter for the list of DenominatedOracle contracts
function denominatedOraclesList() external view returns (address[] memory _denominatedOraclesList);
Returns
Name | Type | Description |
---|---|---|
_denominatedOraclesList | address[] | List of DenominatedOracle contracts |
Events
NewDenominatedOracle
Emitted when a new DenominatedOracle contract is deployed
event NewDenominatedOracle(
address indexed _denominatedOracle, address _priceSource, address _denominationPriceSource, bool _inverted
);
Parameters
Name | Type | Description |
---|---|---|
_denominatedOracle | address | Address of the deployed DenominatedOracle contract |
_priceSource | address | Address of the price source for the DenominatedOracle contract |
_denominationPriceSource | address | Address of the denomination price source for the DenominatedOracle contract |
_inverted | bool | Boolean indicating if the denomination calculation quote should be inverted |