-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Labels
ETA - less than 12 hrsStellar WaveIssues in the Stellar wave programIssues in the Stellar wave programenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededsmart-contract
Description
Description:
Implement fallback oracle support and a resolution timeout; if primary oracle fails or timeout is reached, use fallback or trigger refund path.
Requirements and Context:
- Must be secure, tested, and documented
- Should allow configurable primary and fallback oracle per event
- Should allow resolution timeout (e.g., max time after event end to get oracle result)
- Should attempt fallback when primary fails; if both fail or timeout, allow admin refund or auto-refund
- Should emit events for fallback use and timeout
- Must not double-resolve or double-refund
Suggested Execution:
-
Fork the repo and create a branch
git checkout -b feature/oracle-fallback-timeout
-
Implement changes
- Write contract:
src/lib.rs(resolve with fallback, timeout check) - Update oracles module:
src/oracles.rs(fallback client) - Update types, storage, events
- Add documentation and NatSpec-style comments
- Write contract:
-
Test and commit
- Run tests; cover primary fail, fallback success/fail, timeout, refund
- Include test output and security notes
Example Commit Message:
feat: implement oracle fallback and resolution timeout with refund
Guidelines:
- Minimum 95 percent test coverage
- Clear documentation
- Timeframe: 96 hours
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
ETA - less than 12 hrsStellar WaveIssues in the Stellar wave programIssues in the Stellar wave programenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededsmart-contract