Skip to content

Implement invoice deadline soft-lock during active dispute #225

Closed

Description

@Kingsman-99

Label: complexity: high
Points: 200

Description

If dispute arbitration is implemented (separate issue), an invoice's deadline could pass while a dispute is being arbitrated, triggering an unwanted automatic refund mid-arbitration. This issue freezes the deadline clock during an active dispute.

Technical Context

Involves lib.rs refund() — when checking env.ledger().timestamp() > invoice.deadline, also check a disputed flag (from the dispute arbitration feature) and block refund eligibility entirely while disputed, regardless of how far past the deadline the ledger time has advanced.

Acceptance Criteria

  • refund() panics with "invoice under dispute" instead of processing while disputed == true, even past the deadline
  • Once the dispute resolves (cleared), normal deadline-based refund eligibility resumes immediately
  • Non-disputed invoices are completely unaffected by this change
  • Test: disputed invoice past deadline blocks refund; resolving the dispute then allows refund to proceed
  • All existing cargo tests pass
  • cargo clippy passes with zero warnings

Activity

  1. Dev-ElvisTobi commented on Jun 25, 2026

    @Dev-ElvisTobi

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

    Hi maintainer I would love to work on this issue please

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @BigElv to this issue.

  2. Komelove commented on Jun 25, 2026

    @Komelove

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

    This issue aligns closely with my experience in contracts, backend architecture, and frontend implementation. I’m keen to work on it and will keep the team informed of my progress along the way.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Komelove to this issue.

  3. johnsaviour56-ship-it commented on Jun 25, 2026

    @johnsaviour56-ship-it
    Contributor

    @johnsaviour56-ship-it has applied to work on this issue as part of the Stellar Wave Program's 6th wave.

    I would love to work on this issue

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @johnsaviour56-ship-it to this issue.

  4. drips-wave commented on Jun 25, 2026

    @drips-wave

    Congratulations, @johnsaviour56-ship-it! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on June 30, 2026.

    🧑‍💻 @johnsaviour56-ship-it: 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 🌊

  5. grantfox-oss commented on Jun 25, 2026

    @grantfox-oss

    🦊 GrantFox — @johnsaviour56-ship-it has been assigned to this issue as part of the Official Campaign campaign!

    Next steps:

    1. Open a Pull Request referencing this issue (e.g., Closes #225)
    2. Your PR will be reviewed by the Stellar-split maintainers

    Good luck! Track your progress on GrantFox.

  6. grantfox-oss commented on Jun 27, 2026

    @grantfox-oss

    🎉 This issue has been marked as completed on GrantFox as part of the Official Campaign campaign!

    @johnsaviour56-ship-it's PR #254 was approved and merged by @Kingsman-99.

    🏆 @johnsaviour56-ship-it: You earned 35 FoxPoints for this contribution! Your current tier: Explorer (436 total points). Track your full progress on GrantFox.

    👏 Great work, @johnsaviour56-ship-it! Keep contributing to Stellar-split.

  7. drips-wave commented on Jun 27, 2026

    @drips-wave

    This issue has been completed by @johnsaviour56-ship-it as part of the Stellar Wave Program's 6th Wave 🥳

    😎 @johnsaviour56-ship-it: You earned 200 Points for completing this issue! After the current Wave ends, 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave programcomplexity: highComplex feature requiring deep knowledge - 200 pts

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions