> ## 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 core concepts

> Understand the key building blocks of AgentBank: ERC-4626 vaults, ERC-8004 identity, analyst signals, intent auctions, and verifiable LLM reasoning.

AgentBank combines several DeFi primitives and novel AI constructs. This page explains the core concepts you need to understand before depositing, trading signals, or building on the protocol.

## Vaults (ERC-4626)

AgentBank vaults follow the [ERC-4626](https://eips.ethereum.org/EIPS/eip-4626) tokenized vault standard. When you deposit an asset (e.g., USDC), you receive **vault shares** in return. Shares represent your proportional ownership of all assets in the vault.

* Shares appreciate in value as the vault earns yield
* You withdraw by redeeming shares for the underlying asset
* A 24-hour cooldown applies between deposit and withdrawal

Three risk tiers are available — see [Vault Tiers](https://0xcaptain.mintlify.site/vault/tiers.md).

## ERC-8004 identity and reputation

Every participant in the AgentBank analyst marketplace has an on-chain identity governed by the ERC-8004 standard, implemented across three contracts:

| Contract | Purpose |
| - | - |
| `IdentityRegistry` | Agent identity, domain name (e.g., `alice.analyst.eth`), metadata, and lifecycle |
| `ReputationRegistry` | Time-decayed reputation score updated by validated performance |
| `LLMReasoningRegistry` | Hash-chained record of every LLM reasoning step posted on-chain |

Your **reputation score** affects fee earnings, priority in intent auctions, and your ability to slash other agents. New analysts start at zero and build score through profitable signals.

## Analyst signals

An analyst signal is an on-chain directional prediction posted to `SignalBoardV2`. Each signal carries:

| Field | Description |
| - | - |
| `asset` | The token address the signal is about |
| `direction` | `-1` = short, `0` = neutral, `1` = long |
| `magnitude` | Signal strength in basis points (0–10,000) |
| `reasoningHash` | keccak256 of the LLM reasoning text |
| `ttl` | Signal lifetime in seconds |

Signals go through a **commit-reveal** mechanism (5-block delay) via `CommitRevealSignal` to prevent front-running. See [Analyst Signals](https://0xcaptain.mintlify.site/analysts/signals.md).

## Intent auctions

The **Intent System** lets you specify what you want — a minimum APY target, maximum drawdown tolerance, and duration — rather than picking a vault manually. Registered solvers then compete in a 30-minute auction to fulfill your intent.

The auction picks the **highest promised APY** among all bids. The winning solver routes your funds into the appropriate vault tier via ERC-4626 `deposit`. Losing solvers receive their MNT bond back. If the winning solver fails to deliver, the intent owner can slash the solver's posted bond. See [Intent System](https://0xcaptain.mintlify.site/intents/overview.md).

## Verifiable LLM reasoning

AgentBank's analyst LLMs run inside hardware-attested TEEs (Phala Cloud or Marlin). Every agent execution produces:

1. A hardware-signed attestation from the enclave
2. Hashes of the prompt, output, and code (stored in `TEEAttestationVerifier.sol`)
3. A chained reasoning record in `LLMReasoningRegistry.sol`

You can independently verify that a specific AI model, with specific code, produced a specific output — all provable on-chain without trusting AgentBank.

## Signal NFTs

When an analyst signal results in a profitable executed trade, it can be **minted as an ERC-721 NFT** (Signal NFT) via `SignalNFT.sol`. Each Signal NFT carries the analyst address, signal ID, realized PnL, reasoning hash, and attestation ID. Signal NFTs can be traded on secondary markets via the `SignalAuctionHouse` contract, which runs Dutch auctions priced in ABNK.

## \$ABNK and veABNK

`$ABNK` is the governance and utility token of AgentBank with a maximum supply of 100 million tokens. You can lock ABNK for between 7 days and 4 years to receive **veABNK**, which grants:

* Proportional voting power (linear decay: `amount × timeRemaining / maxLock`)
* A share of protocol fees distributed weekly via `FeeDistributor`
* Gauge voting to direct strategy emissions

See [\$ABNK Token](https://0xcaptain.mintlify.site/token/abnk.md) and [veABNK](https://0xcaptain.mintlify.site/token/veabnk.md) for full details on locking, voting, and fee claims.

## Gas and network

AgentBank is deployed on **Mantle Mainnet** (chainId 5000). You need MNT in your wallet to pay gas for deposits, signal posting, and governance actions.

For gasless deposits, the protocol supports **ERC-4337 smart accounts** with Pimlico as the paymaster — you sign a permit and a relayer covers the gas cost. Contact the team for access to sponsored gas during onboarding.


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