Skip to main content

Constructor

Sets owner to msg.sender. Fee starts at 0%.

Functions

split

Split a USDC payment between the publisher (collector) and treasury. Requirements:
  • Not paused
  • amount between 1 and 1,000,000 (inclusive)
  • Caller has approved sufficient USDC on the splitter
Behavior:
  • Transfers amount - fee to collector
  • Transfers fee to treasury (if fee > 0)
  • Emits Split event

setFee

Update the fee in basis points. Owner only.

setTreasury

Update the treasury address. Owner only.

setPaused

Pause or unpause the contract. Owner only.

Events

Split

Emitted on every successful split() call.

Constants

State variables

ABI (human-readable)

Fee calculation

Examples (at 99 bps / 0.99%): At the current fee of 0%, all amounts go directly to the publisher.