hackquest logo

Multi-Party Payment Splitter

This project is basically about the splitting of payment among more than one party

説明

This project is basically about the splitting of payment among more than one party.

Payment Splitter Smart Contract

A simple Solidity smart contract that automatically splits incoming payments among multiple recipients based on predefined shares. This contract is designed for seamless and efficient payment distribution in decentralized environments, removing the need for intermediaries or manual calculations. Ideal for partnerships, collaborative projects, or any scenario where funds need to be split among several parties.

This contract is perfect for:

  • Collaborative Projects: Simplify revenue sharing among multiple contributors.

  • Business Partnerships: Automatically handle profit distribution based on predefined ownership percentages.

  • Charitable Donations: Distribute donations to different beneficiaries seamlessly.

  • Freelancer Teams: Automatically divide payments for team-based gigs without manual intervention.

Once deployed, the contract ensures that all incoming Ether is divided and transferred automatically according to hardcoded percentages. Its immutability guarantees fairness and prevents tampering, making it a reliable solution for transparent financial operations.

🌍 Key Highlights

  • No imports: A lightweight, dependency-free solution for quick deployment.

  • No constructors: Simplifies deployment by eliminating initialization logic.

  • No input fields required during deployment: Recipients and their shares are hardcoded for simplicity and predictability.

📍 Deployed Address

Edu Chain Address: 0xAdbd8500800118e018a7b7f66361a50657eF9667

🚀 Features

  • Automatically splits incoming Ether among specified recipients.

  • Shares are fixed and defined within the contract.

  • Supports direct payments through the fallback function (receive).

  • Secure and immutable—once deployed, the share distribution remains fixed.

  • No manual intervention required; the process is fully automated.

🔧 How It Works

  1. Send Ether directly to the contract address.

  2. The contract automatically divides the payment based on the pre-set share percentages.

  3. Each recipient receives their respective portion immediately, reducing waiting times and increasing transparency.

📝 Predefined Recipients & Shares

  • 0x1111111111111111111111111111111111111111 - 40%

  • 0x2222222222222222222222222222222222222222 - 30%

  • 0x3333333333333333333333333333333333333333 - 30%

The shares are hardcoded within the contract, ensuring consistency and eliminating potential disputes over payment distribution.

💻 Usage

To send payments:

  1. Use any Ethereum-compatible wallet (e.g., MetaMask, Trust Wallet).

  2. Send Ether directly to the contract address:

    0xAdbd8500800118e018a7b7f66361a50657eF9667
    
  3. The contract will automatically distribute the funds based on the predefined shares.

🔒 Security

  • Ensure the total shares add up to 100% to avoid incorrect fund distribution.

  • This contract is immutable—once deployed, recipients and their shares cannot be modified.

  • Designed primarily for educational and demonstration purposes but can be adapted for real-world use cases with appropriate auditing.

📄 License

This project is licensed under the MIT License.


Created with ❤️ for seamless multi-recipient payments on the Edu Chain.

ハッカソンの進行状況

70

テックスタック

Solidity
チームリーダーKKrishna Diwakar
業界
DeFi

他のビルダーも見ました