# Amphora: skill for agents

Hyperliquid vaults, without the lockup. Amphora lets you join HLP or a leader vault from Elysium, hold a token priced
at the vault's equity, and sell it any time. HLP (the protocol vault) first: deposit USDC on HyperEVM,
the AmphoraVault contract puts it into HLP on HyperCore through Circle's CoreDepositWallet and CoreWriter, prices
every token from the vault equity it reads through HyperEVM's 0x802 precompile, and mints aHLP on Elysium with a
retryable ticket that only the contract can send. aHLP trades on an Elysium Uniswap v4 pool and redeems for USDC at
NAV on HyperEVM.

Contracts: AmphoraVault (HLP) on HyperEVM, chain 999: 0x9e63e526747702bc24b838532e086132012a1192. AmphoraToken aHLP on Elysium,
chain 99901: 0xfba7f5d76a23b6f12c846011c6a77531e416d263.
Everything here is keyless and read-only. Nothing signs: you get unsigned calldata and send it with your own key.

## Read
- `GET https://www.amphoravaults.com/api/vaults` listed vaults: account value, 30-day time-weighted return and max drawdown, lockup, profit
  share, deposits open, a contract depositor's equity read through 0x802, Amphora's own position once deployed
- `GET https://www.amphoravaults.com/api/vault?address=0x…` any Hyperliquid vault with the same metrics
- `GET https://www.amphoravaults.com/api/nav` aHLP NAV per share, total assets, core assets, shares, aHLP outstanding on Elysium, last NAV post, pool price
- `GET https://www.amphoravaults.com/api/times` mint, redeem and instant routes with their times (redeem leg read live from Elysium's rollup)
- `GET https://www.amphoravaults.com/api/wait` Elysium's challenge period and recent confirmations

## Act (unsigned calldata)
- `GET https://www.amphoravaults.com/api/calldata?kind=mint&usd=250&recipient=0x…` two calls on HyperEVM: approve USDC, deposit with HYPE
  value for the Elysium ticket. Minimum 5 USDC (HyperCore drops vault deposits under 5 USD).
- `GET https://www.amphoravaults.com/api/calldata?kind=redeem&shares=100&recipient=0x…` AmphoraToken.redeem on Elysium. After Elysium's
  challenge period (about a day today) the redeem waits as a share, exposed to the vault, until USDC outside the vault
  covers it (fresh deposits first, the vault itself once its lockup allows: HLP 4 days after this contract's latest
  deposit); it is then priced at NAV and paid on HyperEVM.
- `GET https://www.amphoravaults.com/api/calldata?kind=claim&id=<redeem id>` AmphoraVault.claim on HyperEVM once the redeem is funded.
- The instant exit is selling aHLP on the Elysium v4 pool.

## Keyless MCP
POST JSON-RPC 2.0 to `https://www.amphoravaults.com/mcp`: tools amphora_vaults, amphora_vault, amphora_nav, amphora_times, amphora_wait,
amphora_mint_calldata, amphora_redeem_calldata, amphora_claim_calldata.

## SDK
`import * as A from "https://www.amphoravaults.com/sdk/amphora.js"`: vaults(), vault(address), nav(), times(), wait(), mintCalldata(usd, recipient),
redeemCalldata(shares, recipient), claimCalldata(id), estimateMint(usd).

## Rules an agent should know
- Fees: mint 0.10 %, redeem 0.10 % by default, each capped at 1 % in code. No management fee.
- Each deposit prepays 0.0003 HYPE for the Elysium ticket. A batch prices waiting deposits at NAV; the mint ticket
  leaves once HyperCore shows the deposit (or after an hour); pricing waits 30 s after any HyperCore action. A pending
  deposit can be cancelled until a batch prices it. An expired ticket can be resent by anyone; a batch mints once.
- The aHLP/USDC pool on Elysium is a plain Uniswap v4 pool, fee 0.05 %, tick spacing 10.
- The token follows the vault: if the vault loses, NAV falls. A leader can close a leader vault; the USDC then comes back
  to the contract and stays redeemable.
