-
Notifications
You must be signed in to change notification settings - Fork 80
Open
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave program
Description
Description:
Validate oracle data freshness (staleness) and, where applicable, confidence intervals (e.g., Pyth) before accepting a result for resolution.
Requirements and Context:
- Must be secure, tested, and documented
- Should reject oracle result if data is older than configured max age (e.g., 60 seconds)
- Should for Pyth (or similar) validate confidence interval within threshold (e.g., 5%)
- Should allow admin to configure max staleness and confidence threshold per event or globally
- Should emit events when validation fails
- Must integrate with existing oracle resolution path
Suggested Execution:
-
Fork the repo and create a branch
git checkout -b feature/oracle-staleness-confidence
-
Implement changes
- Write contract: validation in oracle resolution path
- Update oracles module:
src/oracles.rs(staleness and confidence checks) - Update types and storage; add documentation and NatSpec-style comments
-
Test and commit
- Run tests; cover stale data rejected, confidence too wide rejected
- Include test output and security notes
Example Commit Message:
feat: implement oracle data staleness and confidence interval validation
Guidelines:
- Minimum 95 percent test coverage
- Clear documentation
- Timeframe: 72 hours
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave program