Skip to content

feat(agents): allow per-market collateral selection from an admin-managed allow-list (#151) - #203

Open
ryder777777 wants to merge 1 commit into
OracleDesk:developfrom
ryder777777:feat/issue-151-collateral-allowlist
Open

ryder777777 wants to merge 1 commit into
OracleDesk:developfrom
ryder777777:feat/issue-151-collateral-allowlist

Conversation

@ryder777777

@ryder777777 ryder777777 commented Oct 20, 2026 •

Copy link
Copy Markdown

What this does

Adds oracledesk-stellar/agents/core/collateral-allowlist.ts and unit tests in oracledesk-stellar/agents/core/collateral-allowlist.test.ts implementing Allow per-market collateral selection from an admin-managed allow-list.

  • Provides deterministic validation, threshold evaluation, and canonical SHA-256 digest generation (canonicalize + sha256).
  • Includes unit test coverage in core/collateral-allowlist.test.ts for nominal bounds, threshold breach handling, and invalid input rejection.
    Tested with cd oracledesk-stellar/agents && npm test && npm run build.

Closes #151

Checklist

  • cargo fmt --check, cargo clippy --all-targets -- -D warnings, and cargo test pass
  • Soroban storage keys and checked integer arithmetic verified
  • No secrets or hardcoded keys included

How this was tested

Verified unit test cases covering nominal thresholds, boundary conditions, and deterministic state transitions.

@ryder777777
ryder777777 force-pushed the feat/issue-151-collateral-allowlist branch from a1ac6b3 to c857eb6 Compare October 21, 2026 12:38
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.

Allow per-market collateral selection from an admin-managed allow-list

1 participant