Skip to content
A Fork Of Bill Payment.

A Fork Of Bill Payment.

We created a decentralized payment splitting program. Our app meets the majority of the expectations for a payment splitting app.

Created on 7th April 2024

A Fork Of Bill Payment.

A Fork Of Bill Payment.

We created a decentralized payment splitting program. Our app meets the majority of the expectations for a payment splitting app.

The problem A Fork Of Bill Payment. solves

It's a decentralized solution to manage group spending that effortlessly divides invoices among friends or coworkers. We used Solidity for smart contract creation, HTML for the user interface, and CSS for style to produce a user-friendly and efficient application.
We begin by registering Accounts in the contract, with each individual entering their name and a unique username.
Then one of the registered members starts a group and is awarded the position of the group's owner.

The owner has the ability to add or delete members from the group and simply has to utilize the other person's unique username to do so. This is more easier and more efficient than entering whole addresses into the function, which can result in mistakes.

After the owner has formed the group and added all of the appropriate members, he may use the add costs tool to notify the smart contract of the total amount paid by him.

For the sake of simplicity we have assumed that the owner pays in full, of the total bill and the bill is distributed evenly amongst all the members.

One can use the getShare function to find out the price that every person has to pay, and getAdd function to get the address of the receiver.

After this has happened all the members can individually call the makePayment function to give the payment to the owner of the group by passing their username(so that they can be sure that they are sending the money from their username only) and the address of the receiver.

The owner can call the PaymentSettled function at any point of time and it will return a boolean True if all the members have paid their part or False otherwise.

Tracks Applied (1)

Ethereum Track

Within the Ethereum Foundation's Ethereum track, our project plays a pivotal role in demonstrating the practical applica...Read More
Ethereum Foundation

Ethereum Foundation

Discussion

Builders also viewed

See more projects on Devfolio