Mchango / mchango

Welcome to mchango a rotating savings and contribution platform
https://mchango-one.vercel.app/
3 stars 0 forks source link

Refine group contribution states and reputation tracking #15

Closed 3ill closed 11 months ago

3ill commented 11 months ago

Overview

This document elucidates the intricacies of the rotation and contribution process in Mchango, elucidating the specific actions performed during these phases.

Group States

Phase 1 (Initialization Phase)

Upon the creation of a group, it is endowed with the initialized state. In this state, new members can be added to the group and participate in the rotation for the current round.

Phase 2 (Contribution Phase)

When the contribution state is applied to a group, new members cannot be added, but those already in the member array of the group can commence making their contributions. Each contribution leads to the member's inclusion in the eligible array.

Phase 3 (Rotation Phase)

The rotation state marks the transition to the rotation phase, initiating group savings disbursement and rotation. In this phase, only members in the eligible array are permitted to participate.

Contribution Process

The contribution process kicks off during the contribution phase, allowing members in the group members array to contribute funds as stipulated by the system, following a collateral-based evaluation.

When a member makes a contribution, their reputation is incremented by 1, and they are added to the eligible array while also being recorded in the participants mapping. This seamless integration helps maintain the integrity and transparency of the process.

3ill commented 11 months ago

The above phases have been added to the contract and reputation tracking has been added