Architecture / 02

Contract architecture

Three core contract types implement upgradeable trading coordination and symbol-specific ERC-20 representations.

Evidence scope · implementation, public chain state, third-party reports, operator disclosures

StockTrading

UUPS-upgradeable coordinator for order transfers, events, fees, refunds and owner-only token operations.

StockTokenFactory

Creates and indexes one StandardStockToken per symbol.

StandardStockToken

ERC-20 representation with 8 decimals and owner-controlled mint / burn.

Upgradeable path

User → Proxy (stable address) → Current implementation
                                  ^
                                  |
                           owner authorizes

Privileged surface

ControlEffect
setReceiversChanges fund, token and fee destinations.
setUsdtContractChanges settlement-token contract.
setStockTokenFactoryChanges symbol-to-token resolution.
mintStockTokens / burnStockTokensChanges user token supply.
_authorizeUpgradeAllows owner-approved implementation replacement.