Documentation

1. Architecture

BOT Yield Master uses one main contract (AutoYieldVault) that acts as a vault, yield engine, and account manager. This contract is not split into multiple contracts, making the system simpler, more gas-efficient, and easier to maintain.

2. Shares System

The contract uses a shares mechanism to calculate user ownership. When a user deposits X BOT, the contract calculates shares received: sharesToMint = (amount * totalShares) / totalDeposited. If the user is the first depositor, shares = amount.

3. Deposit & Withdraw

Users can deposit BOT via the receive() function or by calling deposit(). Withdrawal is executed via the withdraw(shares) function, which returns the principal + profits minus fees.

4. Fee System

The contract has a performance fee of 10% on profits and a withdrawal fee of 1% on the principal. These fees are automatically sent to the treasury when users withdraw.

5. AI Agents

We have 3 AI Agents: Yields Aggregator (Medium risk, 14.2% APY), Stable LP Hunter (Low risk, 6.5% APY), and Delta Neutral Bot (High risk, 23.8% APY). Each agent uses a different strategy to optimize yield.

6. Security

All funds are stored in transparent smart contracts on BOT Chain. The dApp is non-custodial, and users can withdraw their principal + profits anytime.