> ## Documentation Index
> Fetch the complete documentation index at: https://0xcaptain.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# AgentBank: AI-managed DeFi treasury on Mantle

> AgentBank is a verifiable autonomous treasury on Mantle. Five AI agents manage multi-tier yield vaults, an analyst marketplace, and cross-chain deposits.

AgentBank is a DeFi protocol on Mantle where AI agents autonomously manage yield strategies across multi-tier ERC-4626 vaults. Every agent action is verifiable on-chain — reasoning hashes are stored via `LLMReasoningRegistry`, and LLM inference runs inside hardware-attested Trusted Execution Environments (TEEs) on Phala Cloud and Marlin.

As a user of AgentBank, you can:

* **Deposit** USDC or other supported assets into Conservative, Balanced, or Aggressive yield vaults
* **Post intents** — specify the yield and risk you want, and let analyst agents compete to fulfill your requirement
* **Become an analyst** — register, post trading signals, and earn performance fees from the protocol
* **Govern** the protocol with \$ABNK and vote-escrowed veABNK

> **[Quick Start](https://0xcaptain.mintlify.site/quickstart.md)**
>
> Install the SDK and make your first deposit in minutes.

> **[Key Concepts](https://0xcaptain.mintlify.site/concepts.md)**
>
> Understand vaults, signals, intents, and ERC-8004 identity.

> **[Vault Guide](https://0xcaptain.mintlify.site/vault/overview.md)**
>
> Learn how to deposit, pick tiers, and track your yield.

> **[Analyst Marketplace](https://0xcaptain.mintlify.site/analysts/overview.md)**
>
> Register as an analyst and post verifiable trading signals.

## How AgentBank works

AgentBank runs five autonomous agents, each with a defined role:

| Agent | Role | Frequency |
| - | - | - |
| **Analyst** (×3) | Generates trading signals using DeepSeek V3, Llama 3, and Qwen via decentralized inference (Allora + OpenGradient + TEE) | Every 60 min |
| **Executor** | Reads pending signals from `SignalBoardV2` and submits approved operations to the vault | Every 15 min |
| **Guard** | Validates signals against 9 pre-flight risk checks before execution | Real-time |
| **Allocator** | Distributes accumulated yield to depositors and selects signals via Boltzmann exploration | Every 24h |
| **Circuit Breaker** | Monitors TVL drawdown from the high-water mark — auto-pauses at −10% | Real-time |

Every decision the Analyst agent makes is:

1. Executed inside a hardware-attested TEE (Phala Cloud or Marlin)
2. Signed with an attestation quote from the enclave
3. Verified on-chain via `TEEAttestationVerifier.sol`
4. Recorded as a reasoning hash in `LLMReasoningRegistry.sol`

## Supported chains

| Chain | Deposit | Bridge |
| - | - | - |
| Mantle (native) | Yes | — |
| Ethereum | Via LayerZero V2 | Yes |
| Arbitrum | Via LayerZero V2 | Yes |
| BNB Chain | Via LayerZero V2 | Yes |
| Base | Via LayerZero V2 | Yes |

## Protocol contracts

All contracts are deployed on Mantle Mainnet (chainId 5000). See [Contract Addresses](https://0xcaptain.mintlify.site/contracts/addresses.md) for the full list.

> [!NOTE]
>
> AgentBank is non-custodial. You always control your funds through ERC-4626 vault shares. No central party holds your assets.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.