9.3 Contracts and Interfaces
The platform offers a series of reusable smart contract templates:
FUSD Settlement Contract: Handles buy, sell, withdrawal, and hedging logic, ensuring the price remains stable within the target range.
Swap-G Template: A standardized subgame exchange pool template, supporting configurable fee rates, buyback, and burn strategies.
GToken Distribution Contract: Automatically mints and distributes GToken based on game outcomes or team-defined configurations.
Event Interface: Allows the front-end to subscribe to on-chain events via WebSocket or RPC, enabling real-time feedback and updates.
Last updated