hackquest logo

Mantle-Invoice-RWA

Invoice RWA: Turn unpaid invoices into instant cash on Mantle. Sellers get liquidity now, buyers earn yield. $3T market, on-chain. Low gas, fast settlement.

비디오

설명

Mantle Invoice RWA : Detailed Project Description

Problem Statement

Invoice factoring is broken for SMBs. Small and medium businesses hold $3+ trillion in unpaid invoices globally. When a supplier delivers goods to a customer (the debtor), they often wait 30-90 days for payment. This creates cash flow problems that kill 82% of small businesses.

Traditional invoice factoring solutions:

- Charge 3-5% fees + hidden costs

- Take 2-7 days to process

- Require extensive paperwork and credit checks

- Only serve businesses with $1M+ in invoices

- Lack transparency on pricing

Solution

On-chain invoice factoring on Mantle L2: instant liquidity for any invoice, transparent pricing, permissionless access.

How it works:

1. SELLER (Supplier)

- Has delivered goods/services worth $10,000

- Needs cash now, can't wait 60 days for debtor to pay

- Mints invoice as ERC1155 NFT on Mantle

- Lists at 5% discount ($9,500 settlement price)

2. BUYER (Investor)

- Sees invoice in marketplace

- Pays $9,500 USDC to seller (instant liquidity!)

- Receives invoice NFT (claim on $10,000)

3. DEBTOR (Customer)

- Pays $10,000 USDC on due date

- Funds go to NFT holder (buyer)

- Buyer profit: $500 (5.26% yield)

Technical Architecture

Smart Contracts (Solidity 0.8.20):

1. InvoiceToken.sol (ERC1155)

- Mints invoice NFTs with metadata: seller, debtor, faceValue, discountBps, dueDate

- Tracks listing status (listed/unlisted)

- Tracks settlement status (settled/unsettled)

- getSettlementPrice() calculates discounted purchase price

2. InvoiceEscrow.sol

- buyInvoice() — transfers USDC to seller, NFT to buyer

- settleInvoice() — debtor pays faceValue, funds go to NFT holder

- Tracks buyer addresses per invoice

3. MockUSDC.sol (Testnet)

- Faucet for testing (10,000 USDC per mint)

Frontend (Next.js 15 + wagmi v2):

- Role-based demo: Seller → Buyer → Debtor

- Real-time invoice marketplace

- MetaMask integration with Mantle Sepolia

Why Mantle?

1. Low Gas Fees — Enables micro-invoices ($100-$1,000) that are uneconomical on Ethereum L1

2. EVM Compatible — Standard Solidity, easy developer onboarding

3. Fast Finality — Near-instant settlement for time-sensitive business transactions

4. Growing DeFi Ecosystem — Potential integration with Mantle's lending protocols

Team

Solo developer building at the intersection of DeFi and real-world assets.

Links

- Live Demo: https://frontend-o7z6arkwo-brandontans-projects.vercel.app/demo

- Contracts: Verified on Mantle Sepolia Explorer

기술 스택

React
Next
Web3
Solidity
Node

자금 모금 상태

Raising seed round to build compliance layer and onboard first enterprise customer

팀 리더
BBrandon Tan
부문
RWA