Summary
Add streaming payment support: invoices can define a stream_rate (amount per second) and payers drip funds over time instead of paying in full upfront.
Motivation
Streaming payments are the natural primitive for salaries, retainers, and compute billing. This is one of Stellar's key advantages over EVM chains.
Proposed Change
- Add
stream_enabled: bool and stream_rate: i128 to InvoiceOptions
- Add
stream_pay(payer, invoice_id) that transfers stream_rate * elapsed_seconds
- Track last stream timestamp per payer in storage
Acceptance Criteria
Summary
Add streaming payment support: invoices can define a
stream_rate(amount per second) and payers drip funds over time instead of paying in full upfront.Motivation
Streaming payments are the natural primitive for salaries, retainers, and compute billing. This is one of Stellar's key advantages over EVM chains.
Proposed Change
stream_enabled: boolandstream_rate: i128to InvoiceOptionsstream_pay(payer, invoice_id)that transfersstream_rate * elapsed_secondsAcceptance Criteria