← All workContact us
Payments Contract
Payment Splitter
Open source · Open source
Teams that share revenue, such as an artist and a studio, need every payment split the same way, every time, without trusting one side to forward the other’s cut.
Payment Splitter fixes the shares at deploy time. Anyone can trigger a withdrawal, and each wallet receives its percentage of the ETH or ERC-20 balance in the same transaction.
What we did
- Immutable, packed shares so a split costs as little gas as possible.
- ETH and ERC-20 withdrawals, with Solmate’s reentrancy guard and OpenZeppelin SafeERC20.
- Either payee can move its share to a new address without touching the other’s.
- Full test suite: 100% statement, function and line coverage and 95% branch coverage across 26 tests.
- Dockerized event listener that reports payments as they arrive, plus deploy, verify and withdraw scripts.
More work
Have a project in mind?
Bringing Art + Utility to the Metaverse and the NFT space
