EquityOracleFactory lets you:
- Deploy an oracle for a stock token from a config struct
- Predict the oracle address before deploying
- Look up the oracle registered for a stock token
The source code is
src/oracles/EquityOracleFactory.sol on GitHub. The ABI is /abis/EquityOracleFactory.json.
Write methods
create
cfg or returns the existing one at the predicted address. Permissionless. Reverts with AlreadyListed if the stock token already has an oracle at a different address (a different config). The constructor may also revert with EquityOracle’s config errors.
Anyone can deploy. The oracle only matters once governance points a book at it through RiskRegistry.
Return values
Read methods
predict
create would use for cfg without deploying.
Input parameters
Return values
Events
OracleCreated
create, with the oracle, the stock token, and the full config.