MCP server: One MCP server.

Hedgehood Options

@0xhedgehoodRun by its publisher: served from their own domain, namespace checked by the registry.MCP server · External

Stock options market for AI agents on Robinhood Chain: RFQ quotes, buy/close, P&L, x402 deposits.

Tradingv0.5.1TypeScript
Freeno charge per call

One address for any MCP client. No sign-in needed on this server.

What it does

16 read6 act4 other

Grouped by tool name. At most: moves money, runs code or commands, deletes data, or sends messages for you.

What it costs

Free

Odel charges nothing per call. The publisher may charge for its own service.

Tools

26 · grouped by tool name · checked 29 Oct 2026

Read · 16Look things up

  • list_markets
  • list_instruments
  • get_mark
  • get_quote
  • get_positions
  • get_pnl
  • get_history
  • get_refusals
  • get_leaderboard
  • get_agent_record
  • how_to_get_test_funds
  • list_vaults
  • vault_redeem_quote
  • vault_claim_quote
  • borrow_take_quote
  • borrow_repay_quote

Act · 6Change something

  • close_quote
  • how_to_deposit
  • vault_deposit_quote
  • lend_deposit_quote
  • lend_withdraw_quote
  • borrow_withdraw_collateral_quote

Other · 4Neither hinted nor named

  • vault_status
  • lend_status
  • borrow_status
  • borrow_supply_collateral_quote
Try it in the Inspector
README17 min read

Hedgehood agent kit

ci npm @hedgehood-io/sdk npm @hedgehood-io/mcp npm @hedgehood-io/cli MCP Registry MIT

SDK, local MCP server, CLI, Claude Code plugin and examples for Hedgehood's AI-agent options market: USDG cash-settled weekly calls and puts on tokenized stocks (NVDA first) on Robinhood Chain, traded by agents through an RFQ maker and filled on chain with a session key that can never withdraw.

Non-US only. The market is for agents and operators outside the United States. Mainnet (chain 4663) lists seven V2 markets (NVDA, TSLA, MU, GOOGL, CRCL, MSTR, AMD) settled in real USDG; the testnet (46630) settles in a test token with no value. The kit defaults to the testnet: pass --mainnet (or set HEDGEHOOD_CHAIN_ID=4663) to trade real funds.

packagewhatinstall
@hedgehood-io/sdkviem-based TypeScript SDK: deployments, ABIs, instrument ids, EIP-712 orders, fillOrderAs calldata, RFQ client with local quote verification, closePosition, one-account view and funding plans across markets (readAccount, planFillFunding, planRebalance), P&L and history readers, x402 USDG payer, ERC-8004 helpers, VaultClient for the Stock Yield vaults, LendingClient for share lending (lend USDG / borrow against fund shares)pnpm add @hedgehood-io/sdk viem
@hedgehood-io/mcplocal MCP server (stdio + streamable HTTP) signing with the agent's key; 37 tools (23 market + 6 vault + 8 lending), every write needs confirm: true and is a dry run by defaultnpx -y @hedgehood-io/mcp
@hedgehood-io/clihedgehood binary: init, status, join, account, deposit, quote, fill, close, positions, pnl, history, redeem, withdraw [--all], rebalance, session authorize|revoke|status, vaults, vault status|deposit|redeem|claim|cancel, lend status|deposit|withdraw, borrow status|collateral|take|repay|withdraw-collateralnpx @hedgehood-io/cli --help
skills/hedgehood-optionsthe skill an agent reads: market model, the loop, the Stock Yield vaults, share lending, key hygiene, troubleshooting/plugin marketplace add 0xHedgeHood/hedgehood-agent-kit
examples/a 30-line "agent buys a weekly call" script and an MCP config snippetpnpm tsx examples/buy-weekly-call.ts

Connect an agent in 2 minutes

You keep the account in your own wallet (for example a browser wallet on hedgehood.io). The agent gets a session key with a budget you sign: it can trade, it can never withdraw. Optionally it also gets a small payment wallet that tops up your market balances over x402.

Agent machine, one command (Node 20+):

sh
npx -y @hedgehood-io/cli@latest init --mainnet --account 0xYourWallet --with-payer
# or: curl -fsSL https://raw.githubusercontent.com/0xHedgeHood/hedgehood-agent-kit/main/scripts/install.sh | sh -s -- --mainnet --account 0xYourWallet --with-payer

It creates ~/.hedgehood/session.key (and with --with-payer ~/.hedgehood/payer.key), mode 600, only if missing; prints each address with a QR code, the payment wallet's USDG balance, your authorize link (with its QR code) and the MCP config for Claude Code, Claude Desktop / Cursor and the hosted read-only server; and saves the non-secret settings (chain, owner, key paths) to ~/.hedgehood/config.json, so later hedgehood and hedgehood-mcp runs need no flags (flags > environment > that file). Private keys are never printed.

Owner, once: open the link on the device with your wallet, or scan its QR code with the wallet's browser:

https://hedgehood.io/options/account?agent=<session key address>&chain=4663[&markets=NVDA,TSLA][&maxSpend=100][&days=30]

pick the markets, the spend budget and the days, and sign (session keys are per market). Pass --markets, --max-spend and --days to init to prefill them; --site-url (or HEDGEHOOD_SITE_URL) changes the site; on the testnet the link says chain=46630.

Done: hedgehood init --wait (or hedgehood status) shows per market whether the key is authorized, the budget left, the expiry and the balance, and prints READY with a first quote + buy of one share. hedgehood status --qr prints the QR codes again. (Without a global install, hedgehood is npx -y @hedgehood-io/cli; or npm i -g @hedgehood-io/cli.)

Funding: you deposit on the site, or send USDG on Robinhood Chain to the payment wallet and let the agent pay a deposit in (hedgehood deposit 25 --market NVDA --send, or the MCP tool deposit_x402). The payment wallet needs no ETH: an x402 deposit is an EIP-3009 signature that the facilitator submits. The gateway takes 1 to 1,000 USDG per deposit and 5,000 per account per day. Week-1 limits: 2 shares per option, 2.5 per underlying, opening premium at least 5 USDG, quotes in US regular hours.

Quickstart (testnet, 5 minutes)

sh
# 1. a session key for the agent (chmod 600 file; the key never leaves the machine)
npx @hedgehood-io/cli join
#    -> prints the session address and the `authorizeSession` call the OWNER wallet must make

# 2. owner wallet (anywhere): authorize the session with a spend budget (here 100 USDG of premium + fees) and deposit tUSDG
cast send <market> 'authorizeSession(address,uint64,uint256,uint256,uint256)' <session> <expiresAt> 3 0 100000000 --rpc-url https://rpc.testnet.chain.robinhood.com
#    (scope 3 = trade + cancel; maxShortRisk 0 = the key cannot sell to open; maxSpend 100 USDG raw; or, with the
#    owner key on this machine: `hedgehood session authorize --max-spend 100 [--max-short-risk 60] --send`)
cast send 0x539574139BB4Ac74Fd2183ba0E38ed777E30B58d 'approve(address,uint256)' 0xC289617d613C9865a6595B365DaD88277282e0Ac 100000000 --rpc-url ...
cast send 0xC289617d613C9865a6595B365DaD88277282e0Ac 'deposit(address,uint256)' <owner> 100000000 --rpc-url ...
#    (or, once the gateway is up: `hedgehood deposit 100 --x402 --send` from the owner key)

# 3. trade from the agent machine
export HEDGEHOOD_ACCOUNT=<owner address>
hedgehood markets                                   # open expiries, strikes
hedgehood quote NVDA-20261030-220-C --side buy --qty 1                    # firm RFQ quote, verified locally
hedgehood fill --instrument NVDA-20261030-220-C --side buy --qty 1        # dry run: simulates, prints calldata
hedgehood fill --instrument NVDA-20261030-220-C --side buy --qty 1 --send # broadcasts, prints the tx hash
hedgehood positions                                 # open positions: qty, avg price, mark, unrealized P&L, time to expiry
hedgehood pnl                                       # realized / unrealized / fees / total (indexer)
hedgehood history --limit 20                        # past fills, settlements, redeems, newest first
hedgehood close NVDA-20261030-220-C                 # exit before expiry: quotes the opposite side, dry run
hedgehood close NVDA-20261030-220-C --qty 0.5 --send
hedgehood close --all --send                        # flatten every open position

Positions are signed and net out on chain, and the maker quotes both sides of every instrument, so closing is a fill of the opposite side of the same instrument (a long is sold to the bid, a short bought back at the ask). close reads the on-chain position, quotes min(|position|, --qty) and fills exactly like fill.

One wallet, all markets

Each underlying is its own CashOptionMarketV2 with its own balance, positions and session keys: 250 deposited in NVDA cannot pay for a GOOGL trade. The kit makes them behave like one account without contract changes:

sh
hedgehood account            # wallet + every market: collateral, locked, free, allowance, positions, session; totals;
                             # the markets where the configured key can fill from the balance now
# the account's own key: no pre-deposit. WALLET mode by default: premium, fee and any collateral are pulled from the
# wallet; the dry run lists every tx (approve the market when the allowance is short, exact amount; --approve max)
hedgehood --owner-key-file ~/.hedgehood/owner.key fill --signer owner --instrument GOOGL-20261030-180-C --side buy
hedgehood ... fill --signer owner --from-balance --auto-deposit ...   # balance mode: approve + deposit the shortfall + fill
# a session key fills from that market's balance only; a shortfall is refused before anything is sent, naming the
# market, the shortfall, where free balance sits and the owner's fix:
hedgehood ... rebalance --from NVDA --to GOOGL --amount 12.5 --send   # withdraw, approve if short, deposit
hedgehood ... deposit 12.5 --market GOOGL --wallet --send
hedgehood ... withdraw --all                                          # every market's free balance, one tx per market

--signer owner is only needed when a session key is configured too (it is the default signer). MCP: get_account, deposit, withdraw { all: true }, rebalance; get_quote / fill_quote / close_position take market (or the instrument name's ticker) and signer, fromBalance, autoDeposit, approve.

Or from an agent host: add the MCP server (below), then say "quote the NVDA 220 call expiring Friday and fill one if it costs under 6 USDG". The agent calls get_quote, shows you the price, then fill_quote with confirm: true. Later, "how am I doing?" is positions / get_pnl, "what did I trade?" is get_history, and "get out of the 220 call" is close_position with confirm: true.

Stock Yield vaults (mainnet 4663 and testnet)

The same kit deposits into and withdraws from Hedgehood's Stock Yield vaults: v2 EpochFunds that hold one tokenized stock (NVDA, GOOGL, TSLA, AMZN, META, AAPL, MSFT) and USDG, write a covered call (or run the wheel) on it every week, and issue transferable NAV shares (hhNVDA-CC, …). The premium stays in NAV. Everything is asynchronous: a deposit queues until the next epoch freeze (Monday morning New York), is priced at that NAV and becomes shares; a redemption queues the same way and is paid in kind (stock + USDG) at the freeze after the current option expires; both are then claimed. Requests can be cancelled until the cutoff. Vault actions are sent by the owner wallet (the account itself); a market session key cannot touch a vault.

sh
hedgehood --mainnet vaults                                         # NAV/share, epoch state, next freeze, cap, last week's yield (no key)
hedgehood --mainnet --owner-key-file ~/.hedgehood/owner.key vault deposit 100 --vault hhNVDA-CC        # dry run: approve + requestDeposit
hedgehood --mainnet --owner-key-file ~/.hedgehood/owner.key vault deposit 100 --vault hhNVDA-CC --send
hedgehood --mainnet vault status --vault NVDA-CC                   # shares, queued requests (cancellable?), claimable
hedgehood --mainnet --owner-key-file ... vault redeem all --vault hhNVDA-CC --send   # paid at the next freeze, after expiry
hedgehood --mainnet --owner-key-file ... vault claim --vault hhNVDA-CC --send        # once vault status shows claimable
hedgehood --mainnet --owner-key-file ... vault cancel deposit --vault hhNVDA-CC --send

MCP: list_vaults, vault_status, vault_deposit, vault_redeem, vault_claim, vault_cancel (the writes are gated like fill_quote: confirm: true, dry run unless dryRun: false, owner key). The hosted read-only server exposes list_vaults / vault_status with the same shapes.

Share lending (mainnet 4663 and testnet)

Two instant (no-epoch) sides on Morpho: lend USDG into the hhUSDG lending vault (a Morpho Vault V2, ERC-4626; interest accrues per second from borrowers, 10% performance fee, curator caps), or borrow USDG on the Morpho Blue market whose collateral is a Stock Yield fund share (hhNVDA-CC), LLTV 62.5%. The collateral oracle (ShareRiskOracle) is a conservative share value re-marked every week after the Monday lock; a position with health factor below 1 can be liquidated, so the tools refuse a borrow or collateral withdrawal that would end below 1 and warn above 70% of the LLTV. With no usable oracle price they refuse borrow / withdraw-collateral (Blue would revert); repay and pledging still work. Fund shares must be in the wallet to pledge: claim what a fund owes you first (vault claim). Owner key for every write.

sh
hedgehood --mainnet lend status                                       # size, cap, liquidity, supply rate, your hhUSDG (no key)
hedgehood --mainnet --owner-key-file ~/.hedgehood/owner.key lend deposit 100            # dry run: approve + deposit
hedgehood --mainnet --owner-key-file ... lend withdraw all --send     # redeem every share (instant while liquidity allows)
hedgehood --mainnet --account <addr> borrow status                    # LLTV, oracle, rate; collateral, debt, HF, LTV, liquidation price
hedgehood --mainnet --owner-key-file ... borrow collateral all        # approve + supplyCollateral (fund shares from the wallet)
hedgehood --mainnet --owner-key-file ... borrow take 50               # refused if HF < 1 after; warns above 70% of LLTV
hedgehood --mainnet --owner-key-file ... borrow repay all --send      # repay by shares: clears the accruing debt exactly
hedgehood --mainnet --owner-key-file ... borrow withdraw-collateral all --send

The market is discovered from the lending vault (its liquidityAdapter / liquidityData and the adapter's marketIds), with the deployment registry (chains.ts lending.markets) as the fallback, so the scheduled mainnet oracle migration (new market id) needs no kit release; --market <id> / marketId targets another market. MCP: lend_status, lend_deposit, lend_withdraw, borrow_status, borrow_supply_collateral, borrow_take, borrow_repay, borrow_withdraw_collateral (writes gated like vault_deposit).

MCP server

json
{
  "mcpServers": {
    "hedgehood": {
      "command": "npx",
      "args": ["-y", "@hedgehood-io/mcp"],
      "env": {
        "HEDGEHOOD_CHAIN_ID": "46630",
        "HEDGEHOOD_SESSION_KEY_FILE": "~/.hedgehood/session.key",
        "HEDGEHOOD_ACCOUNT": "0x<owner address>"
      }
    }
  }
}
  • Claude Code: /plugin marketplace add 0xHedgeHood/hedgehood-agent-kit then /plugin install hedgehood-options@hedgehood (bundles the skill and the server), or claude mcp add hedgehood -e HEDGEHOOD_SESSION_KEY_FILE=~/.hedgehood/session.key -e HEDGEHOOD_ACCOUNT=0x... -- npx -y @hedgehood-io/mcp.
  • Codex CLI: codex mcp add hedgehood --env HEDGEHOOD_SESSION_KEY_FILE=~/.hedgehood/session.key --env HEDGEHOOD_ACCOUNT=0x... -- npx -y @hedgehood-io/mcp (or the same block under [mcp_servers.hedgehood] in ~/.codex/config.toml).
  • Mainnet: the same block with "HEDGEHOOD_CHAIN_ID": "4663" (or npx -y @hedgehood-io/mcp --mainnet); the session key and account are per chain, so authorize a session on each market you trade there.
  • Hosted, read-only, no keys (any MCP host that takes a URL): https://mcp.hedgehood.io/mcp (mainnet) or https://testnet-mcp.hedgehood.io/mcp (testnet) serves markets, instruments, marks, quotes (as calldata for your own wallet), positions and leaderboard; signing tools are local only.
  • Claude Desktop / Cursor / Windsurf / OpenClaw: paste the JSON above into the host's MCP config. Streamable HTTP for hosts that want a URL: npx -y @hedgehood-io/mcp --http 7402 serves http://127.0.0.1:7402/mcp (localhost only; it signs).
  • npx -y @hedgehood-io/mcp --check prints the resolved configuration (keys shown as set/missing).
  • HEDGEHOOD_PAYER_KEY_FILE (optional) is the agent payment wallet: deposit_x402 pays from it before the owner key and the session key. Variables left unset fall back to ~/.hedgehood/config.json (hedgehood init; HEDGEHOOD_CONFIG=<path|off>, HEDGEHOOD_HOME for the directory).

Tools: list_markets, list_instruments, get_mark, get_quote, fill_quote, close_position, get_account (every market at once), deposit (owner wallet into one market), rebalance (between markets, owner key), deposit_x402, positions (active: open positions with avg price, mark, unrealized P&L, time to expiry), get_pnl, get_history (past: fills, settlements, redeems), redeem, withdraw (owner key; all: true for every market), authorize_session (owner key), leaderboard, my_record, get_agent_record, register_agent (ERC-8004, owner key), faucet (testnet TestUSD), decode_instrument; Stock Yield vaults: list_vaults, vault_status, vault_deposit, vault_redeem, vault_claim, vault_cancel (owner key); share lending: lend_status, lend_deposit, lend_withdraw, borrow_status, borrow_supply_collateral, borrow_take, borrow_repay, borrow_withdraw_collateral (owner key). Write tools (fill_quote, close_position, deposit, deposit_x402, rebalance, redeem, withdraw, authorize_session, register_agent, faucet, vault_deposit, vault_redeem, vault_claim, vault_cancel, lend_deposit, lend_withdraw, borrow_* except borrow_status) do nothing without confirm: true; with it they simulate and return the unsigned transaction(s) unless dryRun: false, and then report the tx hash(es).

Security model

  • No custody. Nothing here holds funds. Balances live in CashOptionMarketV2; only the account owner's withdraw moves them out. The RFQ backend never holds a key and never sends a transaction. Vault shares and queues belong to the account in the EpochFund; only the account (or a position manager it approved on chain) can redeem, cancel or claim, so every vault write is sent from the owner key, never from a session key.
  • Session keys. The agent's key is authorized by the owner with authorizeSession(key, expiresAt, scope, maxShortRisk, maxSpend): it can sign and take orders and cancel, for one account, until expiresAt, within two cumulative budgets (USDG raw; SessionLimit beyond either). maxShortRisk (riskLeft) bounds the worst case of the shorts it opens: each sell leg costs ceil(openedShort x maxPayout / 1e18), openedShort being the shares beyond the long held (selling a long is free) and maxPayout capHigh - strike (call) or strike - capLow (put) per token; 0, the kit's default, = it cannot sell to open. maxSpend (spendLeft) bounds the premium + fees it pays as buyer, less the worst case of the shorts a buy closes (0 = buy to close only; the kit requires an explicit --max-spend <usdg|unlimited>). type(uint256).max is unlimited for either. The SDK prices each leg's charge in advance (MarketClient.sessionCharge, ClosePlan.sessionCharge), and the CLI and MCP show it with every quote, fill and close. A key can lose at most maxShortRisk + maxSpend plus the longs it can sell and the shorts it can buy back up to their worst case. It cannot withdraw, deposit from the account, change sessions or receive funds. Re-authorizing resets both budgets and voids every order the key signed before; revokeSession is immediate and voids every unfilled order the key signed.
  • Balance mode for session keys. A session key's fills settle premium, fee and collateral inside that market's deposited balance (fillOrderAs(..., fromBalance = true)): no ERC-20 approvals, nothing is pulled from a wallet; a shortfall reverts. The market reverts SessionWalletMode on a session leg in wallet mode, so an agent's key can never pull from the owner's wallet; the kit forces balance mode for it, never deposits for it, and refuses a fill its market balance cannot pay (with the owner's deposit / rebalance command) before anything is sent.
  • Wallet mode for the owner. When the signing key is the account itself, fill / close default to fromBalance = false: the market pulls premium, fee and any collateral shortfall from the wallet against the wallet's allowance to that market. The kit approves only what the fill can pull (--approve max / approve: "max" for unlimited) and shows every transaction in the dry run.
  • Listed strikes. Names (NVDA-20261030-220-C) carry the listed per-share strike; the id packs the per-token strike the market stores, round(shareStrike x uiMultiplier / 1e18) with the multiplier the expiry snapshotted (NVDA mainnet 1.000775…: 220 is stored as 220.170535). The kit maps between the two with the expiry's uiMultiplier.
  • Dry run by default. Every send in the SDK, CLI and MCP server simulates and returns the unsigned transaction unless told to broadcast (--send, dryRun: false). Keys are read from files (chmod 600 enforced) and never logged.
  • Closing = the opposite fill. closePosition / hedgehood close / close_position never use a special path: they read the signed on-chain position, request a quote on the other side for at most that size and send the same fillOrderAs from the session key, with the same dry-run default. A 503 not_executable:feed_not_healthy from the desk is retried once after 1.5 s (the feed cycles every 20 s); nothing else is retried.
  • Quote verification. getQuote checks locally that the maker's order is for this chain, book and market, addressed to your account (taker), still valid, on the side you asked, and that the signature recovers to order.signer, before anything is handed to a wallet.
  • x402 deposits sign an EIP-3009 transfer only for the chain's USDG by full address (lookalike tokens refused), for at most the requested amount and the configured cap, with a validity window capped at 600 s (preset adapted from @priors/x402, MIT).

What it talks to

  • Contracts: CashOptionMarketV2 + CashOptionOrderBookV2 + ChainlinkExpirySource (hedgehood-options PR #58, branch contracts/redteam-fixes, commit ccbab74: session short-risk budget, unreadable stock controls, phase-boundary round hints; on top of PR #54's spend budget, listed per-share grid and multiplier tolerance). ABIs are vendored in packages/sdk/src/abi/ (ABI only; the contract sources are not in this repo). The testnet market below was deployed from the earlier 131c1ae build: until it is redeployed from ccbab74, session reads and authorizeSession from this kit do not match it. Instrument id = (expiry << 96) | (strike << 1) | isPut; EIP-712 domain CashOptionOrderBook v2; the order struct string is tested against the contract's ORDER_TYPEHASH.

  • Testnet 46630 (RPC https://rpc.testnet.chain.robinhood.com): market 0xC289617d613C9865a6595B365DaD88277282e0Ac, book 0x7288a3D12e15379C3b64988b54Ab4Da759638cf5, tNVDA2 0x267ddeE02B44FDF4D073E124869DaA5BDbF1759D, tUSDG 0x539574139BB4Ac74Fd2183ba0E38ed777E30B58d. Fixture feeds; not mainnet configuration.

  • Mainnet 4663: seven V2 markets deployed 2026-10-29 (NVDA, TSLA, MU, GOOGL, CRCL, MSTR, AMD; the list of hedgehood-options config/agent_markets.json), settled in USDG 0x5fc5…d168, taker fee 5 bps; addresses, books, settlement sources and deploy blocks in deployments[4663].markets (chains.ts).

  • Backend (hedgehood-options; routes and shapes in docs/BACKEND_API.md), one stack per chain:

    servicemainnet 4663testnet 46630
    RFQhttps://agent-api.hedgehood.iohttps://testnet-agent-api.hedgehood.io
    indexerhttps://agent-index.hedgehood.iohttps://testnet-agent-index.hedgehood.io
    x402 deposit gatewayhttps://agent-pay.hedgehood.iohttps://testnet-agent-pay.hedgehood.io
    hosted read-only MCPhttps://mcp.hedgehood.io/mcphttps://testnet-mcp.hedgehood.io/mcp

    --testnet (default) / --mainnet select the deployment and its hosts (HEDGEHOOD_API / HEDGEHOOD_TESTNET_API). Until the 2026-11-02 hostname switch the unprefixed names served the testnet, so kit 0.4.x on the testnet needs the testnet- hosts passed with --rfq-url / --indexer-url / --gateway-url, or an upgrade to 0.5.0. A desk running without its signer key answers dry-run quotes (placeholder signatures): they verify but are not fillable.

  • Agent identity: ERC-8004 Identity Registry 0x8004A169FB4a3325136EB29fA0ceB6D2e539a432 on 4663 (optional).

  • Stock Yield vaults (hedgehood-vaults contracts/src/v2, tag audit-v2-freeze-2026-10-21; ABIs vendored in packages/sdk/src/abi/{epochFund,vaultRegistry,openDepositGate,stakeThresholdGate}.ts). Mainnet 4663: VaultRegistry 0x868502F926AE068B61EA9CC55042A9F962651e76, OpenDepositGate 0x337B27c931873e6Ef087e8f84034b96F1d6eeFA5, eight funds (hhNVDA-CC 0x4a1c42b0E0D229B677D574d3dCdc2A5Dff848373, hhNVDA-WHEEL, hhGOOGL-CC, hhTSLA-CC, hhAMZN-CC, hhMETA-CC, hhAAPL-CC, hhMSFT-CC; the full list is getVaults(4663) in chains.ts), owner Safe 0xB5C9…489b, cap 100k USDG per fund, fee 20% of premium. Fund snapshots (NAV, schedules, last epochs, fee) come from the public GET https://hedgehood.app/api/stockyield/funds when it answers, else from the chain. Testnet 46630: registry 0xBeE38aF4Fc4f50A0C04bDdA45Bec6cBABFf476b9, one fund hhNVDA-CC 0x2a7CC7E34a1CFAda9e3aeA978e805dbaB05D83b4 on open-mint tNVDA2 (fixture feed; not mainnet configuration).

  • Share lending (Morpho Blue morpho-org/morpho-blue 8e26ca6, AdaptiveCurveIrm morpho-blue-irm b9a5806, Vault V2 morpho-org/vault-v2 10ed1ea + MorphoMarketV1AdapterV2, hedgehood-vaults contracts/src/collateral/ShareRiskOracle.sol at dd9bddd; ABIs vendored with scripts/vendor-abis.mjs --lending). Mainnet 4663: canonical Blue 0x9D53d5E3bd5E8d4Cbfa6DB1ca238AEA02E651010, lending vault hhUSDG 0x54Bc097643BB9fd4ab004f11859893655529E954 (adapter 0xdEbAd49D242967CBf0DDAe8626873ad54cF7878A, Safe owner/curator, 24 h timelock, cap 20k USDG, fee 10%), market 0x789202f8…b7aa (hhNVDA-CC vs USDG, oracle 0x6EcA44BBB41D3176A451910C4f735A51AdAb4237, IRM 0x2BD3…0fa1, LLTV 62.5%; to be migrated to a new oracle and market id, which the kit picks up from the vault). Testnet 46630: test Blue 0xa0BA91A2F99894044CCD82cA48e5C795BA7570B6, vault 0x6ab073F0E3F1610C4Ad9e7Dc19Ca25F831682f00, v5 market 0x375cd2da…32df (PoC parameters, not mainnet configuration).

Development

sh
pnpm install
pnpm -r typecheck && pnpm -r test && pnpm -r build
node scripts/vendor-abis.mjs <hedgehood-options/contracts/out> <commit>   # refresh ABIs after a contract change
node scripts/vendor-abis.mjs --lending <hedgehood-vaults checkout> <commit>  # Blue, IRM, ShareRiskOracle, Vault V2 + adapter

See RELEASING.md (npm) and REGISTRIES.md (MCP registry, Smithery, Glama, plugin directories). Contributions: keep PRs focused, never commit keys or .env files.

License

MIT.

Similar modules

Browse Trading