Problem: SMBs wait 30-90 days for invoice payments, creating cash flow gaps.
Solution: Upload invoice → AI scores credit → Oracle verifies → Get cash in minutes. Investors earn 10-15% APY from real business payments.
Market: $3+ trillion in unpaid invoices globally.
- Upload invoice (PDF)
- Get instant credit score
- Receive 90-95% of invoice value immediately
- Pay back when customer pays invoice
- Deposit USDT/USDC into liquidity pool
- Earn 10-15% APY automatically
- Withdraw anytime (if liquidity available)
Business → Upload Invoice → AI Score → Oracle Verify → Mint NFT → Pool Funds Business
Customer Pays → Settlement Contract → Distribute to Investors + Fees
1. InvoiceNFT.sol
- Mint invoice as ERC-721 NFT
- Metadata: amount, debtor, due date, status
- Status: PENDING → FUNDED → PAID
2. LiquidityPool.sol
- Single pool (ERC-4626)
- Deposit USDT/USDC
- Auto-fund verified invoices
- Distribute payments to LPs
3. PaymentSettlement.sol
- Accept payments from debtors
- Auto-distribute: 90% to investors, 10% fees
- Handle partial payments
AI Credit Scoring (Simple)
- Rule-based model:
- Business age > 6 months: +20 points
- No defaults: +30 points
- Invoice < $10k: +20 points
- Payment term < 60 days: +20 points
- Score > 70 = approved
Invoice Oracle (Basic)
- Verify invoice is valid PDF
- Check basic fields (amount, date, debtor)
- Anti-duplicate check
- Return: APPROVED/REJECTED
- ✅ 3 smart contracts (InvoiceNFT, Pool, Settlement)
- ✅ Business dashboard: upload invoice, get funded
- ✅ Investor dashboard: deposit, view earnings
- ✅ Simple AI credit scoring (rule-based)
- ✅ Basic oracle verification
- ✅ Payment flow (simulate customer payment)
- ✅ Mantle testnet deployment
Business:
- Connect wallet
- Upload invoice PDF
- Wait 30 seconds (AI + oracle check)
- Receive 95% of invoice value in USDT
- Repay when customer pays
Investor:
- Connect wallet
- Deposit USDT into pool
- Earn yield automatically
- Withdraw anytime
Example:
- Invoice: $10,000, 30 days
- Business receives: $9,500 (5% discount)
- Investor earns: $500 / $9,500 × (365/30) = 64% APY
- Protocol fee: 20% of profit = $100