// SPDX-License-Identifier: MIT pragma solidity ^0.7.1; contract FastLoan { // consider using access control from openzepplin for Escrow part. struct LoanRequest { address borrower; uint amount; uint projectID; string projectTitle; uint projectDuration; uint bonus; //uint certifications -offchain; //string description - offchain; } struct Loan { address lender; address borrower; uint amount; uint endTime; uint interest; uint projectID; string projectTitle; //uint certTarget; // Target number of certifications //uint curCert; // Current number of certifications //string description; bool done; } struct CreditHistory{ uint creditScore; uint dateCreditScoreReceived; } mapping (address => CreditHistory) borroweCreditHistory; }
0.7.1