Smart Contracts

Technical documentation for the Solana Index Fund smart contracts.

Contract Overview

The Solana Index Fund protocol is built on a set of smart contracts deployed on the Solana blockchain. These contracts handle various aspects of the protocol, including token management, index calculation, rebalancing, treasury operations, and more.

Contract Addresses

The following are the addresses of the main Solana Index Fund smart contracts on the Solana blockchain:

ContractAddressDescription
INDEX Tokenindex1111111111111111111111111111111111111The main INDEX token contract
SINDEX Tokensindex111111111111111111111111111111111111The SINDEX token contract
MINDEX Tokenmindex111111111111111111111111111111111111The MINDEX token contract
DINDEX Tokendindex111111111111111111111111111111111111The DINDEX token contract
NINDEX Tokennindex111111111111111111111111111111111111The NINDEX token contract
Treasurytreasury1111111111111111111111111111111111The treasury contract
Rebalancerrebalancer11111111111111111111111111111111The rebalancing contract
Stakingstaking11111111111111111111111111111111111The staking contract

Contract Architecture

The Solana Index Fund smart contracts follow a modular architecture with clear separation of concerns:

Token Contracts

The token contracts implement the SPL Token standard and include additional functionality specific to the Solana Index Fund protocol:

  • Mint Authority - Controlled by the treasury contract for minting new tokens
  • Burn Authority - Controlled by the treasury contract for burning tokens
  • Transfer Authority - Standard SPL token transfer functionality
  • Metadata - Token metadata including name, symbol, and decimals

Each index token (INDEX, SINDEX, MINDEX, DINDEX, NINDEX) has its own token contract with the same structure. The staked versions of these tokens (st_INDEX, st_SINDEX, etc.) are also implemented as separate token contracts.

Contract Interactions

The Solana Index Fund smart contracts interact with each other in various ways:

  • Treasury → Token Contracts - The treasury contract interacts with token contracts to mint and burn tokens
  • Rebalancer → Treasury - The rebalancer contract interacts with the treasury contract to execute trades during rebalancing
  • Staking → Token Contracts - The staking contract interacts with token contracts to handle staking and unstaking
  • Treasury → Staking - The treasury contract interacts with the staking contract to distribute rewards

Contract Security

The Solana Index Fund smart contracts implement various security measures:

  • Role-Based Access Control - Different operations require different permissions
  • Multi-Signature Wallet - Critical operations require approval from multiple authorized signers
  • Emergency Pause - Contracts can be paused in case of emergency
  • Rate Limiting - Certain operations are rate-limited to prevent abuse
  • Input Validation - All inputs are validated to prevent unexpected behavior

Contract Upgradability

The Solana Index Fund smart contracts are designed to be upgradable to allow for future improvements and bug fixes. The upgrade process is as follows:

  1. A new version of the contract is deployed
  2. The upgrade proposal is submitted to the governance system
  3. Token holders vote on the upgrade proposal
  4. If approved, the upgrade is executed by the upgrade authority
  5. The old contract is deprecated and the new contract takes over

The upgrade authority is a multi-signature wallet requiring approval from multiple authorized signers. This ensures that no single entity can upgrade the contracts without consensus.

Learn More

GitHub Repository

View the source code of the Solana Index Fund smart contracts

Audit Reports

View the audit reports for the Solana Index Fund smart contracts