Skip to content

test(deposit): cover oracle price update before execution#350

Open
Dreamstore2046 wants to merge 1 commit into
SO4-Markets:mainfrom
Dreamstore2046:codex/so4-deposit-current-price-regression
Open

test(deposit): cover oracle price update before execution#350
Dreamstore2046 wants to merge 1 commit into
SO4-Markets:mainfrom
Dreamstore2046:codex/so4-deposit-current-price-regression

Conversation

@Dreamstore2046

Copy link
Copy Markdown

Summary

Notes

The current �xecute_deposit path already reads fresh oracle prices before calling get_market_token_price; this PR pins that behavior with the requested same-ledger price-move coverage.

Closes #253

Testing

  • git diff --check
  • Not run: cargo test -p deposit-handler second_deposit_uses_current_price_after_oracle_update -- --nocapture (cargo/
    ustup are not installed in this local environment)

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.

deposit_handler: market token minting uses stale pool value after price update in same ledger

1 participant