Skip to content

Instantly share code, notes, and snippets.

View legaciespanda's full-sized avatar
🏠
Working from home

Ernest Obot legaciespanda

🏠
Working from home
View GitHub Profile
@legaciespanda
legaciespanda / PaymentSplitter.sol
Created June 23, 2022 08:43 — forked from Chmarusso/PaymentSplitter.sol
This smart contract will automatically divide the payment amount and push it to specified recipients.
pragma solidity ^0.8.15;
// SPDX-License-Identifier: MIT
contract PaymentSplitter {
address payable [] public recipients;
event TransferReceived(address _from, uint _amount);
constructor(address payable [] memory _addrs) {
for(uint i=0; i<_addrs.length; i++){
recipients.push(_addrs[i]);