Skip to content

test(registry): test execute_param bps bounds at 10_000 and 10_001 (#109) - #1130

Closed
jeffrey-graham wants to merge 1 commit into
DevTobis:mainfrom
jeffrey-graham:test/issue-109-execute-param-bps-bounds
Closed

jeffrey-graham wants to merge 1 commit into
DevTobis:mainfrom
jeffrey-graham:test/issue-109-execute-param-bps-bounds

Conversation

@jeffrey-graham

Copy link
Copy Markdown

Closes #109

Summary

  • Tests Registry::execute_param at 10_000 bps (accepted) and 10_001 bps (panics with the field-specific "... cannot exceed 100%" / "must be in (0, 100%]" message) for HaircutBaseBps, HaircutFxBps, PriceBandBps, and DailyMoveBandBps.
  • Verifies that after a 10_001 bps panic, the stored AssetConfig retains its pre-execution value (10_000) and the PendingParam entry remains in persistent storage.

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.

Test Registry execute_param bps bounds at 10_000 and 10_001 for each field

1 participant