Skip to content

Add tests for oracle freshness check (stale data) #481

Description

@Levi-Ojukwu

Description:

The oracle freshness check in fund_invoice needs tests for stale data scenarios.

Why it matters: Stale oracle data is a security risk that could allow funding of unverified payers.

Acceptance Criteria:

  • Test fund_invoice rejection when oracle data is stale
  • Test fund_invoice success when oracle data is fresh
  • Test with max_oracle_age_ledgers = 0 (check disabled)
  • Test with no oracle configured (fail-open)

Relevant Files: contracts/invoice_liquidity/src/tests_oracle_freshness.rs


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