Skip to content

jai123singh/Credora

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Credora Frontend

A React-based frontend for the Credora on-chain credit infrastructure on Solana Devnet.

About Credora

Credora is an on-chain credit infrastructure that enables truly uncollateralized lending in DeFi. It functions as a wallet-based system that issues a verifiable credit score and progressive USDC loan limits, designed for integration by any lending protocol.

Features

  • Wallet Integration: Connect your Solana wallet (Phantom, Solflare, etc.)
  • Credit Scoring: View your on-chain credit score and loan limits
  • Transact: Send SOL and USDC from your Credora wallet
  • Loans Management:
    • Take collateralised loans
    • Take uncollateralised loans (requires credit score ≥ 850)
    • Repay loans
    • View all active and inactive loans
  • Defaulter Tracking: View list of defaulters on the platform

Smart Contract Details

Credora Program

  • Program ID: 7Aafjt83JfsPvRXAZdBtDjwaoPAJtoUnr18Ug4QMzYH3

Demo Lending Protocol

  • Program ID: BVcbjhBfFcAzc6xzjx7SxETWa1QK8NVZ6sar5YkXBusF

USDC Mint (Devnet)

  • Mint Address: 4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU

Getting Started

Prerequisites

  • Node.js (v16 or higher)
  • npm or yarn
  • A Solana wallet extension (Phantom, Solflare, etc.)
  • Some SOL on Devnet for transactions

Installation

  1. Install dependencies:
npm install --legacy-peer-deps
  1. Start the development server:
npm start
  1. Open http://localhost:3000 in your browser

Usage

  1. Connect Wallet: Click the "Connect Wallet" button and select your Solana wallet
  2. Create Credora Wallet: If you don't have a Credora wallet, enter your phone number to create one
  3. Explore Features:
    • Transact Tab: Send SOL or USDC to other addresses
    • Loans Tab: View existing loans or take new loans
    • Your Scores Tab: View your credit score and loan limits
    • Defaulters List Tab: View all addresses that have defaulted on loans

Network

This application is configured for Solana Devnet. Make sure your wallet is connected to Devnet.

Notes

  • Uncollateralised loans require a credit score of at least 850
  • Phone numbers are hashed using SHA256 for wallet creation
  • All USDC amounts use 6 decimal precision
  • All SOL amounts use 9 decimal precision
  • Maximum loan duration is 5 years (1825 days)

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors