Summary
Some invoices may need more time to reach their funding target. An extend_deadline function that updates the deadline_ledger for an open invoice would allow admins to give struggling invoices additional time without cancelling and re-registering them.
Scope
- Add extend_deadline(invoice_id: BytesN<32>, new_deadline_ledger: u32) callable only by the protocol admin
- Validate the invoice status is Open and new_deadline_ledger is greater than the current deadline_ledger
- Update deadline_ledger in persistent storage with a TTL bump
- Panic with DeadlineNotExtended if new_deadline_ledger is not greater than the current value
- Emit a deadline_extended event with invoice_id, old_deadline_ledger, and new_deadline_ledger
Acceptance Criteria
ETA: 24 hours
Coordinate on Telegram
Summary
Some invoices may need more time to reach their funding target. An extend_deadline function that updates the deadline_ledger for an open invoice would allow admins to give struggling invoices additional time without cancelling and re-registering them.
Scope
Acceptance Criteria
ETA: 24 hours
Coordinate on Telegram