Contract Details
Tech Stack
Solidity ^0.8.24 OpenZeppelin v5 Foundry
Chains
Ethereum Arbitrum Base Optimism
Description
On-chain fee splitting contract for partner referrals, revenue shares, and multi-party fee distribution. Supports up to 10 recipients, minimum payout thresholds, ERC-20 and ETH, with push/pull payment patterns.
Features
- ✓ Up to 10 fee recipients with BPS-based shares
- ✓ Pull-first pattern (safe by default)
- ✓ Push distribution option for keeper bots
- ✓ ETH + any ERC-20 support
- ✓ Minimum payout thresholds per token
- ✓ Split updates preserve unclaimed balances
- ✓ Dust handling (remainder to first recipient)
- ✓ 45+ tests including 4 fuzz tests
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /// @title Fee Splitter /// @notice On-chain fee splitting contract (partner referrals, revenue shares). contract FeeSplitter { address public immutable owner; uint256 public constant VERSION = 1; event Initialized(address indexed deployer); constructor() { owner = msg.sender; emit Initialized(msg.sender); } // ... full implementation in purchased package }