Page cover

Smart Contract Architecture

Dollar Infinite is built using a modular, secure, and transparent smart contract system deployed on the Binance Smart Chain (BSC). The architecture is designed for non-custodial operation, efficient yield generation, and strong security controls.

High-Level Architecture Overview

The protocol consists of interconnected contracts that handle deposits, allocation, trading, rewards, and affiliate commissions. All interactions are non-custodial β€” users retain full control of their funds at all times.

Simplified flow diagram:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ USER WALLET β”‚ β”‚ (MetaMask / Trust / etc.) β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ (Web3 / WalletConnect) β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ DOLLAR INFINITE CONTRACTS β”‚ β”‚ β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ VAULT │◄─►│ STRATEGY β”‚ β”‚ β”‚ β”‚ CONTRACT β”‚ β”‚ MANAGER β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ POSITION β”‚ β”‚ AI BOT β”‚ β”‚ β”‚ β”‚ TRACKER β”‚ β”‚ CONTROLLER β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ REWARDS β”‚ β”‚ AFFILIATE β”‚ β”‚ β”‚ β”‚ DISTRIBUTORβ”‚ β”‚ MANAGER β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ BINANCE SMART CHAIN β”‚ β”‚ (BSC) β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Main Contracts

  1. Vault Contract

    • Primary user-facing contract

    • Handles deposits, withdrawals, and position management

    • Enforces lock periods

    • Integrates with Strategy Manager for allocation

    Key functions:

    • deposit(uint256 amount, uint8 lockDays)

    • withdraw(uint256 positionId)

    • getUserPositions(address user) (view)

    • getPendingRewards(uint256 positionId) (view)

  2. Strategy Manager Contract

    • Controls dynamic capital allocation between lending protocols and AI bot

    • Rebalances based on performance and liquidity needs

    • Tracks total value locked (TVL) and allocation percentages

    Key functions:

    • allocateCapital() (internal)

    • getAllocationPercentages() (view)

    • getTotalValueLocked() (view)

  3. AI Bot Controller Contract

    • Manages automated trading operations

    • Executes trades on approved DEXs (mainly PancakeSwap)

    • Applies strict risk parameters (max slippage, min profit, position size limits)

    Key functions:

    • executeTrade() (restricted/permissionless)

    • getPerformance() (view)

    • pauseTrading() (admin/emergency)

  4. Rewards Distributor Contract

    • Calculates and distributes yields to users

    • Processes continuous accrual every block

    • Handles tiered rates based on lock periods

    Key functions:

    • calculateYield() (internal)

    • distributeRewards() (restricted)

    • getPendingRewards() (view)

  5. Affiliate Manager Contract

    • Tracks referrals and calculates commissions (20-level deep)

    • Based on profits generated by referrals (not deposits)

    Key functions:

    • registerReferral() (internal)

    • claimCommissions() (public)

    • getPendingCommissions(address user) (view)

Security Features

Feature
Description

Reentrancy Guard

Prevents recursive call attacks

Access Control

Role-based permissions (admin, bot executor, etc.)

Pausable

Emergency pause function (multi-sig controlled)

SafeMath / Overflow Protection

Prevents arithmetic errors

Timelock

Delayed execution for critical changes (upgrades, parameter updates)

Rate Limiting

Protects against flash-loan or spam attacks

Contract Verification

All contracts are verified on BSCScan:

  • Source code publicly viewable

  • Bytecode matches deployed version

  • Users can independently verify addresses and logic

How to verify:

  1. Go to https://bscscan.com

  2. Enter contract address (listed on official site)

  3. Go to "Contract" tab β†’ "Code" β†’ Confirm "Contract Source Code Verified"

Official Contract Addresses (BSC Mainnet):

  • USDT (BEP-20): 0x55d398326f99059fF775485246999027B3197955

  • Vault: [Insert real address here]

  • Strategy Manager: [Insert real address here]

  • Rewards Distributor: [Insert real address here]

Recommendation: Always cross-check addresses from the official dollarinfinite.com site before interacting.

β†’ Next: Yield Generation Mechanism

Last Updated: February 2026 For real-time verification, always check BSCScan and the official platform.

Last updated