StockTrading
UUPS-upgradeable coordinator for order transfers, events, fees, refunds and owner-only token operations.
Architecture / 02
Three core contract types implement upgradeable trading coordination and symbol-specific ERC-20 representations.
UUPS-upgradeable coordinator for order transfers, events, fees, refunds and owner-only token operations.
Creates and indexes one StandardStockToken per symbol.
ERC-20 representation with 8 decimals and owner-controlled mint / burn.
User → Proxy (stable address) → Current implementation
^
|
owner authorizes
| Control | Effect |
|---|---|
setReceivers | Changes fund, token and fee destinations. |
setUsdtContract | Changes settlement-token contract. |
setStockTokenFactory | Changes symbol-to-token resolution. |
mintStockTokens / burnStockTokens | Changes user token supply. |
_authorizeUpgrade | Allows owner-approved implementation replacement. |