Decentralized invoice financing platform powered by Chainlink and Ethereum
Transform unpaid invoices into liquid assets. Small businesses can fractionalize their invoices and get immediate cash flow, while investors earn predictable returns on short-term investments.
- Instant Verification - Chainlink CRE verifies invoices in ~30 seconds
- Immediate Liquidity - Get cash in hours, not weeks
- Flexible Selling - Choose how much of your invoice to sell (25%, 50%, 75%, etc.)
- Transparent Pricing - See exactly what you'll receive
- Secure - Smart contracts ensure automatic payment distribution
- Predictable Returns - Know exact payment dates (30-90 days)
- Risk Assessment - Chainlink-verified risk scores (0-100)
- Fractional Investment - Invest as little as 0.1 ETH
- Diversification - Spread investments across multiple invoices
- Verified Debtors - Invoices from trusted companies (Apple, Microsoft, etc.)
- Automated Verification - Chainlink CRE workflow handles all verification
- Smart Contract Distribution - No manual payment processing
- Decentralized Oracle - Market data from CoinGecko via Chainlink
- Non-Custodial - Platform never holds user funds
┌─────────────────────────────────────────────────────────────┐
│ Frontend │
│ (React + Vite + Ethers) │
└─────────────────────────────────────────────────────────────┘
│
↓
┌─────────────────────────────────────────────────────────────┐
│ Smart Contracts │
│ ┌──────────────┐ ┌──────────────┐ ┌─────────────────┐ │
│ │ InvoiceNFT │ │Verification │ │Fractionalization│ │
│ │ │←→│ Pool │←→│ Pool │ │
│ └──────────────┘ └──────────────┘ └─────────────────┘ │
│ ↑ ↑ ↓ │
│ │ │ ┌─────────────────┐ │
│ │ │ │ Payment │ │
│ │ │ │ Distributor │ │
│ │ │ └─────────────────┘ │
└─────────┼──────────────────┼─────────────────────────────┘
│ │
│ ↓
│ ┌──────────────────────┐
│ │ Chainlink CRE │
│ │ Verification │
│ │ Workflow │
│ └──────────────────────┘
│ │
│ ↓
│ ┌──────────────────────┐
└─────→│ Event: InvoiceCreated│
└──────────────────────┘
# Required
- Node.js 18+
- Bun (for CRE workflow)
- Foundry (for smart contracts)
- MetaMask wallet# 1. Clone the repository
git clone https://github.com/papilo-cloud/invoice-financing.git
cd invoice-financing
# 2. Install contract dependencies
forge install
# 3. Install frontend dependencies
cd frontend
npm install
# 4. Install CRE workflow dependencies
cd ../invoice-verifications-cre
bun install# Set environment variables
cp .env.example .env
# Edit .env with your keys
# Deploy to Sepolia
forge script script/Deploy.s.sol:DeployScript \
--rpc-url sepolia \
--broadcast \
--verifycd invoice-verifications-cre
# Update config with deployed addresses
# Edit config.staging.json
# Deploy workflow
bun run deploy:stagingcd frontend
# Update .env with contract addresses
# Start dev server
npm run dev- Architecture - Technical design and contract specifications
- Deployment - Complete deployment guide
- User Guide - How to use the platform
# Smart contract tests
forge test
# CRE workflow simulation
cd invoice-verifications-cre
cre workflow simulate my-workflow --target staging-settings- Chainlink - Decentralized oracle network
- OpenZeppelin - Smart contract libraries
- Ethereum Foundation - Blockchain infrastructure
- CoinGecko - Market data API