Page cover

Smart Contracts & Modularity

All XENOS contracts are developed in Rust, following Solana’s Sealevel concurrency model for maximum throughput. They are designed to be modular, allowing upgrades without redeploying core logic.

Key Contract Modules:

  • PerpVault — manages margin deposits and liquidations.

  • LendHub — tracks lending pools and interest curves.

  • TradeRouter — routes orders through the most efficient execution path.

  • GovCore — on-chain DAO contract for proposals and voting.

  • FeeDistributor — handles fee splits and automatic buybacks.

Each module operates independently but communicates through a shared message bus, enabling flexible scaling and safe upgrades without compromising the mainnet logic.

Last updated