CrowdBank
contract CrowdBank
Source: contracts/finance/CrowdBank.sol
Index
Reference
Functions
CrowdBank
function CrowdBank() public
acceptProposal
function acceptProposal(uint proposeId) public
- Parameters:
proposeId
- uint
getActiveLoanId
function getActiveLoanId(address borrower) public view returns (uint)
- Parameters:
borrower
- address- Returns:
- uint
getLastLoanDetails
function getLastLoanDetails(address borrower) public view returns (LoanState, uint, uint, uint, uint)
- Parameters:
borrower
- address- Returns:
- LoanState
- uint
- uint
- uint
- uint
getLastLoanState
function getLastLoanState(address borrower) public view returns (LoanState)
- Parameters:
borrower
- address- Returns:
- LoanState
getLoanDetailsByAddressPosition
function getLoanDetailsByAddressPosition(address borrower, uint pos) public view returns (LoanState, uint, uint, uint, uint, bytes32)
- Parameters:
borrower
- addresspos
- uint- Returns:
- LoanState
- uint
- uint
- uint
- uint
- bytes32
getProposalAtPosFor
function getProposalAtPosFor(address lender, uint pos) public view returns (address, uint, ProposalState, uint, uint, uint, uint, bytes32)
- Parameters:
lender
- addresspos
- uint- Returns:
- address
- uint
- ProposalState
- uint
- uint
- uint
- uint
- bytes32
getProposalDetailsByLoanIdPosition
function getProposalDetailsByLoanIdPosition(uint loanId, uint numI) public view returns (ProposalState, uint, uint, uint, address)
- Parameters:
loanId
- uintnumI
- uint- Returns:
- ProposalState
- uint
- uint
- uint
- address
getRepayValue
function getRepayValue(uint loanId) public view returns (uint)
- Parameters:
loanId
- uint- Returns:
- uint
hasActiveLoan
function hasActiveLoan(address borrower) public view returns (bool)
- Parameters:
borrower
- address- Returns:
- bool
lockLoan
function lockLoan(uint loanId) public
- Parameters:
loanId
- uint
newLoan
function newLoan(uint amount, uint dueDate, bytes32 mortgage) public
- Parameters:
amount
- uintdueDate
- uintmortgage
- bytes32
newProposal
function newProposal(uint loanId, uint rate) public payable
- Parameters:
loanId
- uintrate
- uint
numTotalLoans
function numTotalLoans() public view returns (uint)
- Returns:
- uint
repayLoan
function repayLoan(uint loanId) public payable
- Parameters:
loanId
- uint
revokeMyProposal
function revokeMyProposal(uint id) public
- Parameters:
id
- uint
totalLoansBy
function totalLoansBy(address borrower) public view returns (uint)
- Parameters:
borrower
- address- Returns:
- uint
totalProposalsBy
function totalProposalsBy(address lender) public view returns (uint)
- Parameters:
lender
- address- Returns:
- uint