Skip to content

Invoice Escrow: Add Grace Period Window for Overdue Invoice Settlement - #276

Open
nwosum113-ui wants to merge 2 commits into
StellarState:devfrom
nwosum113-ui:Issue-84
Open

Invoice Escrow: Add Grace Period Window for Overdue Invoice Settlement#276
nwosum113-ui wants to merge 2 commits into
StellarState:devfrom
nwosum113-ui:Issue-84

Conversation

@nwosum113-ui

Copy link
Copy Markdown

Summary

Introduces a configurable grace period for invoice escrow payments to handle delayed transactions or disputes.

Changes

  • Adds grace_period_seconds configuration parameter to control payment completion window
  • Updates error handling to account for grace period expirations
  • Modifies event emissions to track grace period start/end and completion status
  • Extends test coverage for grace period scenarios
  • Updates contract state transitions to respect grace period logic

Impact

  • Contracts: invoice-escrow module now supports delayed payment completion
  • Errors: New GracePeriodExpired error variant for expired payments
  • Events: New GracePeriodStarted and GracePeriodCompleted events
  • Tests: Expanded test cases for grace period edge cases
  • State: Payment statuses now include PendingGracePeriod state

closes #84

…erdue-invoices

Invoice Escrow: Add 7-day grace period for overdue payments
@drips-wave

drips-wave Bot commented Jul 28, 2026

Copy link
Copy Markdown

@nwosum113-ui 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

@chizzy192
chizzy192 changed the base branch from main to dev July 29, 2026 15:54
@chizzy192 chizzy192 closed this Jul 29, 2026
@chizzy192 chizzy192 reopened this Jul 29, 2026
@chizzy192

Copy link
Copy Markdown
Contributor

Hi @nwosum113-ui, please rebase your branch on dev to resolve storage layout conflicts in storage.rs and types.rs. Confirm that grace period expiration calculations work correctly against current Soroban ledger timestamps.

@chizzy192 chizzy192 closed this Jul 30, 2026
@chizzy192 chizzy192 reopened this Jul 30, 2026
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.

[CONTRACTS] Invoice Escrow: Add Grace Period Window for Overdue Invoice Settlement

2 participants