Skip to content

CredLancer/freefi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FreedFi

FreedFi is at the forefront of empowering freelancers with financial freedom by transforming the lending industry. Through our innovative community lending framework, we provide loans supported by the skills of contractors. By utilizing decentralized finance methods and Trust Credentials, we introduce transparency, accountability, and instantaneous credit scoring to the lending process.

Be a part of our journey to redefine the lending landscape, offering a secure, on-chain solution for DAOs, communities, member organizations, and beyond. Join us in shaping the future of lending with a trustless approach.

Problems we are solving

Freelancers encounter significant challenges in securing loans, primarily due to the absence of a consistent work history, limiting their access to conventional lending avenues. This obstacle impedes their aspirations for sustainable living, homeownership, car leasing, and more.

Key insights on the issue:

  1. A survey by Upwork reveals that 58% of freelancers struggle to secure financing because of the lack of a stable income source.
  2. The Federal Reserve's 2020 Small Business Credit Survey indicates that 70% of non-employer firms, often comprising freelancers, face funding shortfalls, highlighting the difficulty in accessing capital.
  3. The Freelancers Union's study found that 63% of freelancers encounter challenges obtaining a mortgage due to their irregular income, emphasizing the limitations in traditional loan applications.

Notably, there is currently no decentralized lending platform facilitating private, uncollateralized loans. Our goal is to provide a solution tailored for close-knit communities seeking to harness decentralized finance (DeFi) to bring credit capital and investment returns to their members.

Smart Contracts

Get a loan
Trustless & Transparent: Smart contracts are used for loan requests, transfers, and trust credential issuance. FreedFi ensures a seamless and efficient experience for both freelancers and investors.

GetaLoan.sol https://github.com/captainahab0x/freedfi/blob/main/contracts/src/GetALoan.sol

Borrowers request, are approved, and payback loans.
Investors approve loans and receive payback.
FreeFi fund the loan and issues Trust Credentials.
This smart contract is a basic lending platform written in Solidity. It allows users to borrow funds from a lender and repay the borrowed amount. Key features include tracking user balances, borrowed amounts, and the status of active loans.
• Deployment Information:
We have deployed the contract using Remix , Contracts are deployed on the following blockchain: Avalache - GetALoan.sol -
address: 0xddB6BA183a73a6418eDa8a0feb812ED57116Aa3e • Blockchain Explorer:
We have used a blockchain explorer; Avalanche Explorer (for Avalanche C-Chain)
• Record Keeping:
Maintain a record of contract deployments, including contract addresses, deployment dates, and networks (e.g., Avalanche Fuji C-Chain, Ethereum, XDC, Celo, etc.).
In this Smart Contract we deployed it on Avalanche Fuji C-Chain
Explanation:

  • State Variables:

    • owner: Address of the contract owner.
    • balances: Mapping of addresses to their balances.
    • borrowedAmounts: Mapping of borrower addresses to the amount they borrowed.
    • hasActiveLoan: Mapping to check if a borrower has an active loan.
  • Events:

    • Borrowed: Triggered when a borrower successfully borrows funds.
    • Repaid: Triggered when a borrower successfully repays their loan.
  • Constructor:

    • Initializes the owner as the sender of the deployment transaction.
    • Deposits any ether sent with the deployment into the owner's balance.
  • Modifier:

    • onlyOwner: Ensures only the owner can execute specific functions.
  • Functions:

    • borrow: Allows a borrower to borrow funds with checks for validity.
    • repay: Allows a borrower to repay their loan with validity checks.
    • deposit: Allows the owner to deposit funds into their balance.
    • getBalance: Retrieves the caller's balance.
    • getBorrowedAmount: Retrieves the amount borrowed by the caller.
      image

About

Uncollateralized DeFi Loans for FreeLancers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •