quorum_oracle_source contract is a source contract compatible with the oracle_adapter source interface. It accepts submissions from three configured publishers and stores a source price when at least two publishers agree within the configured deviation threshold.
Responsibilities
- Store the configured admin and three publisher addresses.
- Reject duplicate publisher addresses during initialization.
- Require publisher authorization for submissions.
- Reject non-positive prices and future timestamps.
- Reject duplicate submissions from the same publisher for the same asset and timestamp.
- Store the midpoint of the closest agreeing publisher pair when quorum is reached.
- Expose
lastpriceandpricemethods expected by the oracle adapter source interface.