issues : 5
Great issue: Define Missing SAC and Oracle Error Codes
Description
The contract references error codes like ErrorCode::AssetClawedBack and ErrorCode::StalePrice that are not defined in the errors.rs manifest. This leads to compilation failures and prevents the system from safely handling critical edge cases like clawback-enabled assets or stale oracle data.
Requirements and context
- Synchronize
errors.rs with all error variants used across the module suite.
- Add
AssetClawedBack and StalePrice to the global error enum.
Suggested execution
- Fork the repo and create a branch:
git checkout -b fix/issue-5-error-codes
- Audit all modules for undefined error references.
Implementation changes
- Update
errors.rs with the missing variants mentioned across sac.rs and oracles.rs.
Test and commit
- Confirm full project build success.
- Trigger an oracle error path to ensure correct error propagation.
Example commit message
fix: synchronize errors.rs with missing enum variants
Guidelines
- Comprehensive error coverage.
- Timeframe: 24 hours.
issues : 5
Great issue: Define Missing SAC and Oracle Error Codes
Description
The contract references error codes like
ErrorCode::AssetClawedBackandErrorCode::StalePricethat are not defined in theerrors.rsmanifest. This leads to compilation failures and prevents the system from safely handling critical edge cases like clawback-enabled assets or stale oracle data.Requirements and context
errors.rswith all error variants used across the module suite.AssetClawedBackandStalePriceto the global error enum.Suggested execution
git checkout -b fix/issue-5-error-codesImplementation changes
errors.rswith the missing variants mentioned acrosssac.rsandoracles.rs.Test and commit
Example commit message
fix: synchronize errors.rs with missing enum variants
Guidelines