Idea 02
PayFi Invoice Market
Turn a 60-day invoice into cash today, and yield for the pool that funded it.
- Category
- PayFi × RWA
- Difficulty
- Advanced
- Theme
- PayFi
- Soroban
- USDC
- SAC
Problem
A business with a $10,000 invoice payable in 60 days has the revenue and none of the cash. Waiting the full term ties up working capital.
Idea
Unpaid invoices become programmable assets that investors can finance. After a verifier approves the invoice, a Soroban contract opens a financing position. A USDC pool advances $9,700 now. When the buyer pays $10,000, the pool receives principal plus yield.
Why now
PayFi is a core Stellar theme. Stellar describes tokenized receivables, working-capital financing, and payment-linked yield as the applications this stack is for.
User story
A supplier uploads an invoice. A verifier approves it. Liquidity providers fund the position, the supplier receives USDC the same day, and repayment later settles the pool automatically.
Architecture
01
Business submits a $10,000 invoice, payable in 60 days
02
Verifier approves it
03
Contract tokenizes a financing position
04
LP supplies USDC
05
Business receives $9,700 now
06
Buyer pays $10,000
07
Pool receives principal + yield
MVP
- Invoice submission with amount, debtor, and due date.
- A verifier role that approves or rejects.
- A financing position that records advance, face value, and maturity.
- An LP deposit of USDC that funds the advance.
- Payout to the business.
- Repayment that splits principal and yield back to the pool.
Soroban contracts
Invoice registry
Stores the invoice hash, amount, debtor, and due date.
Verifier
Approves a position before it can be financed.
Financing pool
Holds LP USDC and prices the advance.
Settlement
Distributes repayment into principal and yield.
Stellar features
- USDC as a SAC
- Role-based Soroban auth for issuer, verifier, and LP
- Deterministic settlement on repayment
Suggested integrations
- USDC
- A KYC’d verifier
- Anchor or fiat off-ramp for the debtor payment
Build sequence
01
Invoice record
Submit amount, term, and debtor. Persist a hash of the document.
02
Verifier
An approver address that must sign before financing opens.
03
Pool + advance
LPs deposit USDC. Approval releases the discounted advance.
04
Repayment
Incoming USDC retires principal and pays the spread to LPs.
05
Demo
One invoice, one LP, one repayment, shown end to end.
Stretch goals
- A marketplace where investors filter invoices by duration, geography, and risk score.