9. Smart Contract Architecture

The architecture is "truth-centric," meaning off-chain components hold no authority over funds or outcomes.

Contract Module

Responsibility

Lifecycle Manager

Governs pool creation, closure, and carry-over logic.

Entry Accounting

Stores immutable records of every submitted entry.

Randomness Consumer

Validates and delivers external VRF data to the protocol.

Treasury & Rewards

Handles atomic distribution of rewards and protocol revenue.

  • Immutability: Once a pool is active, its fee, duration, and reward logic cannot be changed.

  • Permissionless Interaction: Any address can trigger pool closure or resolution once conditions are met, preventing operator-led censorship.

Last updated