Deployments
Both contracts are verified on Basescan.
How it works
- Agent approves USDC on the splitter contract
- Agent calls
split(collector, amount)wherecollectoris the publisher’s wallet - Contract calculates fee:
fee = (amount * feeBps) / 10_000 - Contract transfers
amount - feeto publisher,feeto treasury - Contract emits a
Splitevent with payer, collector, amount, and fee
Key properties
Security
- Immutable fee cap: The
MAX_FEE_BPSconstant cannot be changed after deployment. Publishers are guaranteed fees will never exceed 0.99%. - SafeERC20: Uses OpenZeppelin’s SafeERC20 for all USDC transfers.
- No reentrancy risk: No external calls before state changes.
- Verified source: Bytecode published and verified on Basescan.
- Minimal surface: 57 lines of Solidity. Single responsibility.