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 sub-ecosystem exchange pool template, supporting configurable fee rates, buyback, and burn strategies.

  • GToken Distribution Contract: Automatically mints and distributes GToken based on sub-ecosystem 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