flow-pie/chamaa.api

Smart contract for Loan approvals

Open

#83 opened on Nov 9, 2025

View on GitHub
 (1 comment) (0 reactions) (0 assignees)HTML (4 forks)auto 404
good first issue

Repository metrics

Stars
 (3 stars)
PR merge metrics
 (PR metrics pending)

Description

Goal: Allow members to vote on loan requests transparently on-chain.

Explanation: This automates group-based decision making. Each member gets a vote. Votes are recorded immutably.

Key Functions:

  • requestLoan(uint amount)

  • voteOnLoan(uint loanId, bool approve)

  • finalizeLoan(uint loanId)

Deliverables:

  • contracts/LoanVoting.sol

  • Emits LoanApproved or LoanRejected

  • Test: quorum logic (≥50% yes votes)

Contributor guide