Architecture
Twin.fun combines on-chain contracts with indexing infrastructure and the application client.
High-Level Flow

- Users / Wallets initiate
buySharesorsellSharestransactions against the bonding curve. - DigitalTwinSharesV1 maintains balances, supply, and fee routing while emitting events for downstream consumers.
- Subgraph / Indexer ingests contract events to expose prices, holders, trades, candles, and protocol stats.
- App Backend / Client renders the user experience and verifies key ownership for access control.
