How It Works

LumbungFi is a decentralized protocol on Base Sepolia that pairs lenders seeking yield with Indonesian MSMEs seeking uncollateralized loans. Credit scores are computed off-chain using hybrid data and anchored on-chain as a verifiable hash.

Lender Flow

1

Get Test Tokens

Visit the Faucet to mint 1,000 mUSDC (testnet) to your wallet.

2

Supply Liquidity

Approve mUSDC and supply to the Lending Pool. You receive proportional shares.

3

Earn Interest

Borrower repayments increase the pool's assets. Your shares grow in value (exchange-rate index).

4

Withdraw Anytime

Burn your shares to withdraw your principal + earned interest, subject to available liquidity.

Borrower Flow

1

Register UMKM

Submit your business info via the Borrow > Onboarding tab. Raw data stays off-chain in Supabase.

2

Compute Credit Score

The server reads on-chain factors (wallet age, repayment history) and off-chain factors (electricity, BPJS, e-commerce, revenue).

3

ISSUER Attests On-Chain

An ISSUER verifies your score and calls attest(), writing only the hash + score + tier on-chain. This mints your Soulbound Token (SBT).

4

Borrow

With SBT and score ≥ 300, borrow up to your tier limit. Fixed interest rate, 30-day term.

5

Repay

Repay principal + accrued interest before the due date. On-time full repayment improves your score for future loans.

Hybrid Credit Scoring

The protocol uses a weighted scoring algorithm. On-chain factors contribute 60% and off-chain factors contribute 40% of the final 0–1000 score. All raw data stays off-chain; only a keccak256 hash of the canonical data bundle plus the final score and tier are written on-chain.

On-Chain (60%)

  • Wallet Age (30%)
  • Repayment Count (35%)
  • On-time Ratio (35%)

Off-Chain (40%)

  • Electricity Score (25%)
  • BPJS Status (15%)
  • E-commerce Volume (30%)
  • Monthly Revenue (30%)

Soulbound Token (SBT) & Tier Limits

When an ISSUER attests a score on-chain, a non-transferable ERC-721 (Soulbound Token) is minted to the borrower's wallet. The SBT contains the score, tier, and last updated timestamp. It cannot be transferred or approved — it is permanently bound to the wallet.

TierScore RangeLabelMax Borrow
T1800–1000Excellent10,000 mUSDC
T2650–799Good5,000 mUSDC
T3500–649Fair2,500 mUSDC
T4300–499Poor1,000 mUSDC
T50–299Very PoorCannot borrow
UMKM DeFi Lending — Base Sepolia Testnet