Skip to content

Define Missing SAC and Oracle Error Codes #113

@hman38705

Description

@hman38705

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.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions