ZetariumDocs

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

ContractNetworkDescription
ZetExecutorBNB Smart ChainSwap aggregator execution engine
StakingFactoryBNB Smart ChainCreates and manages staking pools
BondFactoryBNB Smart ChainCreates and manages bond sales
PredictionMarketBNB Smart ChainPrediction market core logic
ConditionalTokensBNB Smart ChainERC-1155 outcome tokens

ZDEX Contracts (Zircuit L2)

ContractNetworkDescription
ZDEX CoreZircuit L2Perpetual trading engine
OrderBookZircuit L2Central limit order book
VaultZircuit L2User collateral management

Security Features

All contracts implement the following security measures:

FeatureImplementation
Reentrancy ProtectionOpenZeppelin ReentrancyGuard
Access ControlOwnable2Step for admin functions
Safe Token TransfersSafeERC20 library
Overflow ProtectionSolidity 0.8+ built-in checks
Emergency FunctionsPausable functionality

Libraries and Dependencies

LibraryVersionPurpose
OpenZeppelin Contracts5.0.0Security primitives
Solidity^0.8.24Smart contract language
Hardhat2.19.xDevelopment framework

Contract Verification

All deployed contracts are verified on their respective block explorers:

NetworkExplorer
BNB Smart ChainBscScan
Zircuit L2Zircuit Explorer

Upgrade Policy

Zetarium follows a conservative upgrade policy:

  1. Immutable Core Logic: Critical contract logic cannot be modified
  2. Parameter Updates: Only non-critical parameters can be adjusted
  3. Timelock: All parameter changes go through a timelock period
  4. Transparency: All changes are announced in advance

For contract addresses and deployment details, see the respective product documentation.

On this page