5. Smart Contract Design
5.1 Pool Root Contract
;; simplified pseudo-code
struct PoolRoot {
owner: address; ;; Halter / Sudoer
controller: address;
jetton_minter: address;
exchange_rate: uint128; ;; TON per KTON (µTON precision)
tvl: uint128; ;; cached TVL for UI
halted: bool;
}Key Functions
5.2 Controller Contract
5.3 Jetton Minter
5.4 Governance Contracts
5.5 Security Enhancements (V2 vs V1)
Area
V1
V2