Skip to main content
The XenarchSplitter is a minimal Solidity contract that splits incoming USDC payments between content publishers and the Xenarch treasury. It is the single settlement mechanism for all Xenarch payments.

Deployments

Both contracts are verified on Basescan.

How it works

  1. Agent approves USDC on the splitter contract
  2. Agent calls split(collector, amount) where collector is the publisher’s wallet
  3. Contract calculates fee: fee = (amount * feeBps) / 10_000
  4. Contract transfers amount - fee to publisher, fee to treasury
  5. Contract emits a Split event with payer, collector, amount, and fee

Key properties

Security

  • Immutable fee cap: The MAX_FEE_BPS constant 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.

Building from source