Skip to content

Feature/mock oracle configurable prices failure injection per asset#382

Open
soomtochukwu wants to merge 2 commits intoCommitlabs-Org:masterfrom
soomtochukwu:feature/mock-oracle-configurable-prices-failure-injection-per-asset
Open

Feature/mock oracle configurable prices failure injection per asset#382
soomtochukwu wants to merge 2 commits intoCommitlabs-Org:masterfrom
soomtochukwu:feature/mock-oracle-configurable-prices-failure-injection-per-asset

Conversation

@soomtochukwu
Copy link

@soomtochukwu soomtochukwu commented Mar 25, 2026

I updated the mock_oracle read entrypoints to honour test-mode price overrides consistently.
I added per-asset failure injection while preserving legacy global behaviour.
I expanded unit tests and verified cargo test -p mock_oracle passes.

$ cargo test -p mock_oracle
image

Closes #279

I implemented extensive unit tests covering APY validation, capacity validation, and invalid input handling for the register_pool function. The tests verify security boundaries, authorization requirements, and edge cases to ensure robust input validation.

Tests include boundary value testing, unauthorized access prevention, duplicate ID rejection, and proper error code handling. All tests follow the project's existing patterns and provide comprehensive coverage of the register_pool function's validation logic.
I updated mock_oracle read entrypoints to honor test-mode price overrides consistently.
I added per-asset failure injection while preserving legacy global behavior.
I expanded unit tests and verified `cargo test -p mock_oracle` passes.

Made-with: Cursor
@drips-wave
Copy link

drips-wave bot commented Mar 25, 2026

@soomtochukwu Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

Unit tests: configurable prices and failure injection for dependents

1 participant