ARIF is a fully on-chain, locally compliant peer-to-peer lending platform where users can provide credit directly to each other without collateral. Built on blockchain technology, ARIF bridges the gap between traditional finance's high costs and DeFi's regulatory challenges, offering a reliable, transparent, and sustainable alternative.
- Accessible lending without the need for locked assets
- Direct peer-to-peer credit exchange
- No intermediaries or traditional banking requirements
- Real-time on-chain behavior analysis
- Transaction history synthesis
- Dynamic risk scoring for informed lending decisions
- Credit grade system (A, B, C) based on comprehensive evaluation
- KYC verification through Persona integration
- EAS (Ethereum Attestation Service) for credential management
- Reclaim Protocol for income and balance proof
- Zero-knowledge proofs for privacy protection
- Built on RISE L2 network for instant transactions
- Significantly lower fees than traditional banking
- 24/7 availability with automated smart contracts
- All transactions recorded on blockchain
- Smart contract-based loan management
- Automated repayment and interest calculation
- Pro-rata funding and claim mechanisms
- RequestBook.sol: Core lending protocol managing loan lifecycle
- DummyERC20.sol: Test token for development
- MockUSDC.sol: USDC mock for testing
- Next.js 15 with App Router
- React 19 with TypeScript
- Tailwind CSS + Shadcn UI for modern design
- Wagmi + RainbowKit for Web3 integration
- Borrower Dashboard: Create loan requests, manage repayments
- Lender Dashboard: Browse requests, fund loans, track returns
- KYC Integration: Identity verification and credit scoring
- Leaderboard: USDC minting statistics on RISE L2
- Framework: Next.js 15 (App Router)
- Language: TypeScript
- Styling: Tailwind CSS 4 + Shadcn UI
- Web3: Wagmi v2 + Viem + RainbowKit
- State Management: TanStack Query
- Forms: React Hook Form + Zod validation
- Network: RISE L2 Testnet
- Smart Contracts: Solidity ^0.8.28
- Development: Hardhat 3 + Viem
- Testing: Mocha + Chai
- KYC: Persona API
- Attestations: EAS (Ethereum Attestation Service)
- Proof Generation: Reclaim Protocol
- Privacy: Zero-knowledge proofs
- Package Manager: Bun
- Linting: ESLint
- Type Checking: TypeScript (strict mode)
- Version Control: Git
- Node.js 18+ or Bun
- Git
- Web3 wallet (MetaMask, WalletConnect, etc.)
git clone https://github.com/your-org/arif-lending.git
cd arif
cd frontend
bun install
Create .env.local
in the frontend directory:
# WalletConnect Configuration
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID=your_walletconnect_project_id
# Persona KYC Configuration
PERSONA_API_KEY=your_persona_api_key
PERSONA_INQUIRY_TEMPLATE_ID=your_persona_template_id
PERSONA_WEBHOOK_SECRET=your_persona_webhook_secret
# RISE Network Configuration
NEXT_PUBLIC_RISE_RPC=https://testnet.riselabs.xyz
# EAS Configuration
NEXT_PUBLIC_EAS_ADDRESS=0x4200000000000000000000000000000000000021
NEXT_PUBLIC_EAS_SCHEMA_KYC=your_kyc_schema_id
NEXT_PUBLIC_EAS_SCHEMA_GRADE=your_grade_schema_id
# Attestation Signer
ATTESTATION_SIGNER_PRIVATE_KEY=your_private_key
cd contracts
bun install
# Start frontend development server
cd frontend
bun dev
# Deploy contracts (in another terminal)
cd contracts
npx hardhat ignition deploy ignition/modules/RequestBookModule.ts
- KYC Verification: Complete identity verification through Persona
- Income Proof: Generate income and balance proof using Reclaim Protocol
- Create Request: Set loan amount, term, and maximum interest rate
- Get Funded: Receive funding from multiple lenders
- Repay: Make payments with automated interest calculation
- Connect Wallet: Link your Web3 wallet to the platform
- Review Requests: Evaluate loan requests with risk scores and credit grades
- Invest: Fund requests partially or fully based on your risk appetite
- Earn Interest: Receive principal + interest at loan maturity
- Request Creation: Borrowers create loan requests with terms
- Funding: Lenders can fund requests partially (pro-rata system)
- Acceptance: Borrower accepts funding and loan becomes active
- Drawdown: Funds are transferred to borrower
- Repayment: Automated interest calculation based on overdue days
- Claims: Lenders claim their returns pro-rata
# Frontend tests
cd frontend
bun test
# Smart contract tests
cd contracts
npx hardhat test
cd frontend
bun build
cd contracts
npx hardhat ignition deploy --network rise ignition/modules/RequestBookModule.ts
- Total Volume: $2.5M+
- Active Users: 1,200+
- Success Rate: 98.5%
- Uptime: 24/7
- Smart Contract Security: ReentrancyGuard, SafeERC20, CEI pattern
- Access Control: Role-based permissions
- Input Validation: Comprehensive parameter checking
- Audit Ready: Clean, documented code for security audits
- Primary: RISE L2 Testnet
- Future: Ethereum Mainnet, Polygon, Arbitrum
- Responsive Design: Mobile-first approach
- Dark/Light Mode: Automatic theme switching
- Accessibility: WCAG 2.1 compliant
- Performance: Optimized for fast loading
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Documentation: Wiki
- Issues: GitHub Issues
- Discord: Community Server
- Email: support@arif-lending.com
- β Core P2P lending functionality
- β KYC integration
- β Basic risk scoring
- β RISE L2 deployment
- π Advanced AI risk models
- π Multi-chain support
- π Mobile application
- π Institutional features
- π Governance token
- π Liquidity pools
- π Cross-chain lending
- π Advanced analytics
Built with π by the ITU Blockchain
Empowering financial freedom through decentralized peer-to-peer lending