Skip to content

feat(stablecoin): expose redemption price state - #333

Open
3esmit wants to merge 1 commit into
feat/stablecoin-module-stability-fee-accumulatorfrom
feat/stablecoin-module-redemption-price-state
Open

feat(stablecoin): expose redemption price state#333
3esmit wants to merge 1 commit into
feat/stablecoin-module-stability-fee-accumulatorfrom
feat/stablecoin-module-redemption-price-state

Conversation

@3esmit

@3esmit 3esmit commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add pure stablecoin_ffi decoding for the singleton RedemptionPriceState account
  • add redemptionPriceState() with one derived public-account read and stable error mapping
  • preserve account IDs and all u128, signed i128, and u64 values as exact strings
  • document raw-state semantics without current-price projection or controller simulation

Validation

  • fixed PDA vector and signed/boundary integer decoder tests
  • absent, backend-error, wrong-PDA, wrong-owner, truncated, and trailing-data tests
  • universal module success/error contract tests
  • Rust format, TOML format, workspace Clippy, unit tests, integration tests, guest Clippy, guest builds, and tracked IDL checks
  • stablecoin_ffi, stablecoin-module, and stablecoin-module-tests Nix builds

Stack

Targets #332 to reuse its shared module-test harness. This change has no functional dependency on the accumulator API and should be retargeted to main after #332 merges.

Closes #324

Copilot AI lite review requested due to automatic review settings August 27, 2026 04:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

Expose redemption price state through stablecoin_module

2 participants