Skip to content
BaseTrust

BaseTrust

On-chain cooperative lending circles to enable transparent, decentralized community financing, and financial inclusion.

Created on 20th October 2024

BaseTrust

BaseTrust

On-chain cooperative lending circles to enable transparent, decentralized community financing, and financial inclusion.

Why are you participating for Based India?

My main motivation for participating in the hackathon is to build a product that brings an offline community online. The traditional cooperative lending system, known as Chit Funds in India, is centralized, with several go-through processes and third-party management. By decentralizing this model, I aim to offer a solution that’s as seamless and user-friendly as its Web2 counterpart, while also bringing transparency and accessibility through blockchain.

Base is the perfect fit for this project because it provides the scalability and low transaction fees essential for community-based lending. While Ethereum is known for its security, the high gas fees would make micro-contributions and frequent transactions too expensive for many users. Base, being a Layer 2 solution, offers the same security as Ethereum but with much lower costs and faster transactions, which is critical for fostering financial inclusion.

Participating in the hackathon felt like the right opportunity to build this on-chain cooperative lending solution in a real-world environment, showcasing how effectively it can function while solving key problems in the traditional system.
Indian Region has a lot of people participating in Chit Funds, on both the large scale, and on a small scale(among friends), if I can bridge the gap between web2 and web3 using this we can onboard a lot of new people to web3.

What challenges are you focusing on?

With the help of Base, I’m addressing several key challenges in the traditional Chit Fund system and pushing for a more decentralized, transparent solution. Below are the challenges and the issues in traditional chit funds:

Lack of Transparency:

Traditional chit funds are managed by a centralized third party, leading to concerns about transparency in how funds are handled.
The participants have no visibility into how the funds are distributed, which can lead to mistrust.
###High Administrative Costs:
Traditional chit funds involve various administrative overheads, including paperwork, agent commissions, and management fees, which reduce the net returns for participants.

Delayed or Unfair Payouts:

Payouts may be delayed or unfairly influenced by the organizer. This can lead to unequal or biased distribution of the pooled funds.

How does your submission address this challenge?

Transparency:

Every transaction is recorded on-chain, visible to all participants. This eliminates doubts about how funds are handled and ensures that the entire process is auditable.

Decentralization and Trustless Management:

No need for third-party intermediaries. Smart contracts automate collections, contributions, and payouts based on rules defined within the contract, removing the reliance on a middleman.

Lower Costs:

Without the need for manual administration and intermediaries, the administrative costs are greatly reduced, allowing participants to receive more of the total pool.

Global Participation and Accessibility:

On-chain chit funds remove geographic barriers, allowing anyone with internet access to participate, thus broadening the reach and inclusivity.

Fair and Automated Payouts:

Smart contracts automatically enforce the rules, ensuring that payouts are fair and timely, based on predetermined conditions without human intervention.

Security Against Fraud:

Funds are held in smart contracts, reducing the possibility of fraud or misappropriation by any single individual. Participants have greater security, knowing their funds are safe on-chain.

Challenges I ran into

One of the significant challenges in building the ChitFund project was designing the contract flow and ensuring secure fund releases. The decentralized chit fund system needed careful planning for transparent and predictable contribution and disbursement cycles.

Challenge 1: Deciding the Contract Flow

The flow design was complex due to several factors:

  • Managing participant contributions
  • Ensuring funds went to correct recipients each cycle
  • Handling missed contribution deadlines

I had to carefully design participant interactions with the contract, from staking collateral to making contributions and receiving pooled funds. The contract needed to respect timing and contribution order.
Solution: I implemented event-driven logic and mapped each participant's contribution status to track payments and prevent premature fund disbursement. A modifier ensured only rightful recipients could claim funds for each cycle.

Challenge 2: Problem with Funds Not Being Released

Funds weren't releasing from the contract after all contributions were made due to logic not properly accounting for complete contributions before triggering disbursement. This caused funds to remain locked even when contributions were complete.
Solution: I revised the contract logic to automatically release pooled funds to eligible recipients once all cycle contributions were complete. I added a reentrancy guard to prevent multiple withdrawals per cycle and introduced proper state management to track contribution completion.
These challenges taught me valuable lessons about smart contract development:

  • Importance of thorough state management
  • Need for robust security measures
  • Value of clear contract flow design
  • Critical nature of proper fund release mechanisms

The solutions implemented not only resolved the immediate issues but also made the contract more secure and efficient.

Cheer Project

Cheering for a project means supporting a project you like with as little as 0.0025 ETH. Right now, you can Cheer using ETH on Arbitrum, Optimism and Base.

Discussion

Builders also viewed

See more projects on Devfolio