IViewOracle
Functions
getEurUsdPrice
Returns EUR/USD oracle price and validity flag
Minimal oracle interface used by optimization helpers.
Notes:
-
security: Validated oracle accessor
-
validation: Implementer should guarantee returned values follow protocol expectations
-
state-changes: Implementation-defined; production oracles may refresh their accepted baseline
-
events: Implementation-defined
-
errors: Implementation-defined
-
reentrancy: External oracle call
-
access: External interface method
-
oracle: Primary oracle read dependency
function getEurUsdPrice() external returns (uint256 price, bool isValid);
Returns
| Name | Type | Description |
|---|---|---|
price | uint256 | EUR/USD price in 18 decimals |
isValid | bool | Whether the reported price is valid |