Protocol Fee Collector
Purpose
Aggregate protocol fees and route them to treasury destinations.
Scope
This contract collects fees and forwards them. It does not compute rewards or manage deposits.
Actors and Roles
- Owner configures distributors and approvals.
- Gateways and apps deposit fees.
- Splitters and distributors pull funds when authorized.
Core flows
depositFee/depositFeeFortransfer fees into the collector.notifySplitterapproves and calls a splitter'snotifyFeeReceived.notifyRewardDistributorapproves and funds the reward distributor.withdrawallows owner to route funds to treasury addresses.- Categories can tag fees for apps or games without changing core PoD logic.
allocateOlympFeesdistributes OLYMP fees to founder, rewards, burn, and treasury buckets.setOlympConfigandsetOlympAllocationsconfigure OLYMP routing parameters.
Allocation is permissionless to call once parameters are set. Allocations apply to OLYMP only; stablecoin fees are unaffected in MVP.
Rewards note
rewardDistributor can be configured to point at EpochRewardDistributor for multi-gateway rewards, or to the legacy RewardDistributor during migration.
Guarantees
- Deposits are explicit and evented.
- Funds only move via authorized calls.