Skip to content

feat(price-guard): add per-asset source name allowlist (#84) - #1138

Closed
jeffrey-graham wants to merge 1 commit into
DevTobis:mainfrom
jeffrey-graham:feat/price-guard-source-allowlist-84
Closed

jeffrey-graham wants to merge 1 commit into
DevTobis:mainfrom
jeffrey-graham:feat/price-guard-source-allowlist-84

Conversation

@jeffrey-graham

Copy link
Copy Markdown

Closes #84

Summary

  • Adds DataKey::SourceEnabled(Address, Symbol), configure_source(env, admin, asset, name, enabled), and is_source_enabled(env, asset, name) -> bool to contracts/price-guard/src/lib.rs.
  • Reserves "issuer" exclusively for publish_nav and requires publish_source callers to use an admin-enabled source name for asset.
  • Updates scripts/deploy.sh and scripts/e2e-smoke.sh to enable secondary feed sources (redston, redemp) during asset setup and adds unit tests covering allowlist enforcement, disabling sources, and rejecting "issuer" in publish_source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an admin-managed allowlist of source names to PriceGuard

1 participant