Skip to content

feat(stablecoin): expose stability fee accumulator - #332

Open
3esmit wants to merge 1 commit into
mainfrom
feat/stablecoin-module-stability-fee-accumulator
Open

feat(stablecoin): expose stability fee accumulator#332
3esmit wants to merge 1 commit into
mainfrom
feat/stablecoin-module-stability-fee-accumulator

Conversation

@3esmit

@3esmit 3esmit commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add a pure decoder that derives and validates the stability fee accumulator PDA, owner, and exact account data
  • expose no-argument stabilityFeeAccumulator() with base58/hex IDs and exact decimal integer strings
  • add stable error mapping plus Rust boundary tests and C++ one-read response tests

Scope

Returns the stored accumulator snapshot only. No clock projection, redemption state, position, or quote behavior is included.

Validation

  • cargo +nightly fmt --all -- --check
  • taplo fmt --check .
  • RISC0_SKIP_BUILD=1 cargo +1.94.0 clippy --workspace --all-targets -- -D warnings
  • RISC0_DEV_MODE=1 cargo +1.94.0 test --workspace --exclude integration_tests
  • RISC0_DEV_MODE=1 cargo +1.94.0 test -p integration_tests
  • make clippy-guest
  • make build-programs
  • committed IDL drift check
  • nix build path:.#stablecoin_ffi path:.#stablecoin-module
  • nix build path:.#stablecoin-module-tests

Closes #323

Copilot AI lite review requested due to automatic review settings August 27, 2026 02:43

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 stability fee accumulator state through stablecoin_module

2 participants