The GroupFinance contract is a decentralized lending and borrowing system designed for groups of borrowers to collectively take out a loan. Each member of the group is responsible for repaying a portion of the loan, and lenders can invest in the system to earn interest on their investments. The contract also includes features like loan repayments, handling defaults, covering defaults, and reward distribution for borrowers who repay their loan on time.
Deploy the contract with the desired parameters. After deployment, users can interact with the contract for lending and borrowing functions.
MONTHLY_INTEREST_RATE
: The monthly interest rate applied to lenders’ investments (default 7%).serviceFeeRate
: The service fee rate on repayments (default 2%).admin
: The address of the contract admin.groupCount
: A counter that tracks the number of groups created.
You can invest in XFIs and you can withdraw principle and interest.
Here, you can create group and disburse loan.