Skip to content

This repository contains the Solana implementation of the Unipay Card smart contract. The contract enables users to collateralize SOL to obtain a credit limit, allowing them to open a virtual credit card and add credit for real-world spending.

License

Notifications You must be signed in to change notification settings

UnipayFI/Solana-Unipay-Card

Repository files navigation

Unipay-Card Solana

This repository contains the Solana implementation of the Unipay Card smart contract. The contract enables users to collateralize SOL to obtain a credit limit, allowing them to open a virtual credit card and add credit for real-world spending.

Overview

Unipay Card on Solana provides a decentralized solution for users to leverage their SOL holdings to access credit. By staking SOL, users can:

  • Obtain an Initial Credit Limit: Collateralize your SOL to receive a starting credit line.
  • Open a Virtual Credit Card: Use your credit line to open a Unipay virtual credit card for everyday purchases.
  • Improve Credit Score: Enhance your creditworthiness through timely repayments and honest on-chain activity.
  • Access Unsecured Lending: Eventually unlock unsecured borrowing limits without needing additional collateral.

Features

  • Collateralized Lending: Stake your SOL to receive a credit limit on your Unipay virtual credit card.
  • Progressive Unsecured Lending: Increase your credit score to access unsecured credit lines over time.
  • Credit Scoring System: Our algorithm evaluates your on-chain behavior to adjust your credit limit.
  • Real-World Spending: Bridge the gap between crypto assets and everyday expenses with seamless integration.

Getting Started

  1. Clone the Repository

    git clone https://github.com/yourusername/unipay-card-solana.git
    cd unipay-card-solana
  2. Install Dependencies

    Ensure you have the necessary tools and dependencies installed for Solana smart contract development.

  3. Build the Contract

    # Replace with your build commands
    cargo build-bpf
  4. Deploy to Solana Network

    # Replace with your deployment commands
    solana program deploy ./target/deploy/unipay_card_solana.so
  5. Interact with the Contract

    Use the Unipay dashboard or command-line tools to interact with the deployed contract.

Usage

  • Collateralize SOL

    Stake your SOL through the contract to receive an initial credit limit.

  • Manage Your Credit

    Monitor your credit limit and repayment schedule via the Unipay dashboard.

  • Improve Your Credit Score

    • Timely Repayments: Make payments on time to boost your credit score.
    • Honest On-Chain Behavior: Maintain compliant and trustworthy interactions on the blockchain.
  • Unlock Unsecured Credit

    As your credit score increases, gain access to credit without additional collateral.

Credit Scoring System

Our credit scoring algorithm considers various factors:

  • On-Chain Activity: Interaction with mainstream protocols and absence of fraudulent behavior.
  • ENS Participation: Engagement with the Ethereum Name Service.
  • Repayment History: Track record of timely repayments on your Unipay Card.

This system ensures that only trustworthy users gain higher credit limits and access to unsecured lending.

Contributing

We welcome contributions from the community. Please open issues and submit pull requests for improvements.

License

This project is licensed under the MIT License.

About

This repository contains the Solana implementation of the Unipay Card smart contract. The contract enables users to collateralize SOL to obtain a credit limit, allowing them to open a virtual credit card and add credit for real-world spending.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published