πŸ”§Technical Stack

LendFriend is built on modern web3 infrastructure, prioritizing low costs, transparency, and ease of use.


Blockchain

Base L2 (Ethereum)

All loans live on Base - an Ethereum Layer 2 blockchain backed by Coinbase.

Why Base?

  • $0.01 transactions - Lending $100 costs a penny, not $50

  • 2-second confirmations - Fast enough to feel instant

  • Ethereum security - Inherits Ethereum's battle-tested security

  • Growing ecosystem - 20M+ active addresses, USDC native support

Network details:


Data Layer

The Graph (Blockchain Indexing)

Reading blockchain data directly is slow and expensive. The Graph indexes all loan events in real-time for instant queries.

What we index:

  • All loans (amount, status, maturity date)

  • All contributions (who funded what)

  • All repayments (timing, amounts)

  • Complete repayment history per borrower

This creates a permanent, queryable credit history visible to all future lenders.


IPFS (Metadata Storage)

IPFS stores loan details too expensive to put on-chain (images, descriptions, budget breakdowns).

Why IPFS?

  • Decentralized (no single point of failure)

  • Immutable (can't edit loan terms after creation)

  • Permanent (content addressed storage)

  • Cost-effective

Each loan has an IPFS link stored on-chain. Once uploaded, metadata cannot be changed - ensuring transparency and preventing fraud.


Frontend

Built with:

  • Next.js 14 (modern React framework)

  • Privy (embedded wallets + social login)

  • Wagmi/Viem (Ethereum interactions)

  • Tailwind CSS (clean, responsive design)

Supports:

  • MetaMask, Coinbase Wallet, WalletConnect

  • Email/SMS embedded wallets (no crypto needed)

  • Mobile passkeys


Infrastructure

Hosting:

  • Vercel (frontend)

  • Redis Cloud (caching)

  • Neynar API (Farcaster data)

  • Pinata (IPFS pinning)

Cost: $20-70/month for MVP


Security

Smart contracts:

  • OpenZeppelin standards

  • Reentrancy guards

  • Access control

  • Input validation

API:

  • Rate limiting

  • Server-side API keys

  • Input validation

Audits:

  • Internal review complete

  • External audit planned (Q2 2025)

Bug bounty: Up to $10,000 for critical vulnerabilities πŸ“§ [email protected]


Open Source

All code is MIT licensed:


Next: Smart Contract Flow Β· Social Trust Scoring Β· Risk & Default Handling

Last updated