flowfi icon indicating copy to clipboard operation
flowfi copied to clipboard

[Contracts] Provide an arbiter activation path for the dispute/escrow subsystem

Open blurbeast opened this issue 1 week ago â€ĸ 4 comments

Overview & Background

The entire dispute/escrow subsystem is dead code in production. Every stream constructor hardcodes arbiter: None (lib.rs:499, 635, 730, 1129, 1229, 1414, 2857) and no entrypoint ever writes stream.arbiter, so request_dispute/resolve_dispute always fail with DisputeNotSupported. Tests only exercise it by injecting the field directly into storage (test.rs:6822-6836: "The arbiter slot is intentionally immutable through the public API, so tests reach in the same way the escrow deployment flow would"). The same story applies to yield_enabled (always false, never settable) and the YieldStrategy trait nothing implements.


Technical Specification & Architecture

  1. Add a sender-authorized way to set the arbiter at creation time or via an update call (and a yield toggle), or drop the feature until it has a real activation path.
  2. If kept, add integration tests going through the public API only.

Target Files

  • contracts/stream_contract/src/lib.rs
  • contracts/stream_contract/src/test.rs
  • contracts/stream_contract/src/yield_strategy.rs

Acceptance Criteria

  • [ ] Dispute flows are reachable through public entrypoints, or removed.
  • [ ] Tests exercise the feature via the public API, not storage injection.
  • [ ] No always-false feature flags remain without an activation path.

blurbeast avatar Nov 18 '26 19:11 blurbeast

@danvenger has applied to work on this issue as part of the Stellar Wave Program's 11th wave.

Hi team! đŸĻŠ I'm ready to tackle this task. My technical background aligns well with this issue, and I can have a clean, tested Pull Request ready for review within your expected timeframe. Please assign me so I can begin.

â„šī¸ Repo Maintainers: To accept this application, review their application or assign @danvenger to this issue.

danvenger avatar Nov 20 '26 22:11 danvenger

@achiever2110 has applied to work on this issue as part of the Stellar Wave Program's 11th wave.

i can solve

â„šī¸ Repo Maintainers: To accept this application, review their application or assign @achiever2110 to this issue.

achiever2110 avatar Nov 21 '26 07:11 achiever2110

Congratulations, @achiever2110! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on November 25, 2026.

🧑‍đŸ’ģ @achiever2110: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

🌊 Happy Wave 🌊

drips-wave[bot] avatar Nov 21 '26 07:11 drips-wave[bot]

This issue has been completed by @achiever2110 as part of the Stellar Wave Program's 11th Wave đŸĨŗ

😎 @achiever2110: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

🧑‍đŸ’ģ Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

drips-wave[bot] avatar Nov 24 '26 09:11 drips-wave[bot]