Smart Contracts
Zetarium smart contract architecture and security features
Document Version: 1.0
Last Updated: January 2026
Smart Contract Version: Solidity ^0.8.24
Overview
All Zetarium smart contracts are built with security and efficiency as core principles. Our contracts utilize battle-tested OpenZeppelin libraries and follow industry best practices for DeFi protocol development.
Contract Architecture
Core Contracts
| Contract | Network | Description |
|---|---|---|
| ZetExecutor | BNB Smart Chain | Swap aggregator execution engine |
| StakingFactory | BNB Smart Chain | Creates and manages staking pools |
| BondFactory | BNB Smart Chain | Creates and manages bond sales |
| PredictionMarket | BNB Smart Chain | Prediction market core logic |
| ConditionalTokens | BNB Smart Chain | ERC-1155 outcome tokens |
ZDEX Contracts (Zircuit L2)
| Contract | Network | Description |
|---|---|---|
| ZDEX Core | Zircuit L2 | Perpetual trading engine |
| OrderBook | Zircuit L2 | Central limit order book |
| Vault | Zircuit L2 | User collateral management |
Security Features
All contracts implement the following security measures:
| Feature | Implementation |
|---|---|
| Reentrancy Protection | OpenZeppelin ReentrancyGuard |
| Access Control | Ownable2Step for admin functions |
| Safe Token Transfers | SafeERC20 library |
| Overflow Protection | Solidity 0.8+ built-in checks |
| Emergency Functions | Pausable functionality |
Libraries and Dependencies
| Library | Version | Purpose |
|---|---|---|
| OpenZeppelin Contracts | 5.0.0 | Security primitives |
| Solidity | ^0.8.24 | Smart contract language |
| Hardhat | 2.19.x | Development framework |
Contract Verification
All deployed contracts are verified on their respective block explorers:
| Network | Explorer |
|---|---|
| BNB Smart Chain | BscScan |
| Zircuit L2 | Zircuit Explorer |
Upgrade Policy
Zetarium follows a conservative upgrade policy:
- Immutable Core Logic: Critical contract logic cannot be modified
- Parameter Updates: Only non-critical parameters can be adjusted
- Timelock: All parameter changes go through a timelock period
- Transparency: All changes are announced in advance
For contract addresses and deployment details, see the respective product documentation.