The Protocol
Smart Contract Overview
Built on Solana (Anchor v0.30.0)
"Solving the Trust Gap with hardcoded economic rules and on-chain transparency."
Guiding Principle
"Code is Law"
Hardcoded economic rules ensure transparency and solve the trust gap between players and operators.
Programmable Economy
Self-Regulating Monetary System
Oracle Model for Game Backend
Decentralized Transparency
On-Chain Infrastructure
Smart Contract Architecture
PDAs
Program Derived Addresses for secure, trustless vaulting.
Metaplex
On-chain token metadata (Name, Symbol, URI).
Global Config
Centralized settings and security controls.
Central Pool
The main vault for rewards and liquidity.
Developer Reference
Smart Contract API
| Instruction | Authorization | Purpose |
|---|---|---|
| initialize | Admin | One-time setup of token and pools. |
| daily_mint | Anyone | Trigger 24-hour reward generation. |
| immediate_withdrawal | Server | Send small rewards instantly. |
| request_locked_withdrawal | Server | Initiate 24h lock for large rewards. |
| execute_withdrawal | Anyone | Finalize locked reward after timer. |
| toggle_freeze | Admin | Pause/unpause the entire ecosystem. |