CredLink
On-chain credit bureau using Chainlink CRE for DeFi credit scoring and loan underwriting.
What it is
CredLink is an on-chain credit bureau that brings traditional credit scoring to DeFi.
The Problem
DeFi lending today requires 150%+ over-collateralization because there's no reliable way to assess a borrower's creditworthiness on-chain. This locks up capital inefficiently and excludes users who could otherwise qualify for better terms.
The Solution
CredLink computes credit scores (300-900 range) based on on-chain signals like wallet age, transaction history, average balance, and repayment behavior. Using Chainlink's Consensus Reporting Engine (CRE), these scores are computed off-chain, reach consensus across nodes, and are written immutably to our CreditBureau smart contract on Sepolia.
How It Works
- User connects wallet and requests a credit score
- Admin reviews and approves the request
- Chainlink CRE workflow triggers: fetches scoring API → computes score → reaches consensus → chainwrites to CreditBureau contract
- Any DeFi protocol can read the on-chain score via our LoanManager contract to offer risk-adjusted loan terms (7-18% APR based on score tier)
Key Features
- Deterministic scoring algorithm based on wallet signals
- On-chain score storage with tier classification (Subprime to Super-prime)
- LoanManager contract demonstrating DeFi integration
- Full-stack application with user and admin portals
How it Works
Smart Contracts (Solidity)
- CreditBureau.sol: Stores credit scores (300-900), tiers (1-4), timestamps, model version, and signals hash per wallet
- LoanManager.sol: Consumes CreditBureau to provide loan quotes with risk-adjusted APR
Backend Services
- Scoring API (Express/TypeScript): Deterministic scoring based on wallet signals
- Workflow Server (Express/TypeScript): Chainlink CRE workflow that fetches scores, computes hashes, and chainwrites to CreditBureau
- App API (Express/TypeScript): Handles user requests and admin approvals
Frontend (Next.js/React)
- User portal: Connect wallet, submit requests, view on-chain score, and loan quotes
- Admin portal: Review and approve/reject requests
Infrastructure
- Contracts deployed on Sepolia testnet
- All services deployed on Vercel
- Chainlink CRE for consensus and on-chain writes
Tech Stack:
Solidity, TypeScript, Next.js, Express, ethers.js, wagmi, Material UI,
Admin Token for Test: leomofthings
Links
Created by
- Ayodele Aransiola