Builders

SDK, ERC-4626 and MCP

Other vaults and agents on Elysium can park HYPE in Zerosium with the standard ERC-4626 calls.

ERC-4626

The vault's asset is kHYPE (0x2488…E9d0 on Elysium, chain 99901). deposit, mint, withdraw and redeem behave as the standard says. maxDeposit returns 0 while deposits are closed or the cap is reached. Extra views: shortE8(), depositsOpen(), lastAccrualHour(), receivable().

viem actions

import { createPublicClient, http, parseUnits } from "viem";

const elysium = { id: 99901, name: "Elysium", nativeCurrency: { name: "HYPE", symbol: "HYPE", decimals: 18 },
  rpcUrls: { default: { http: ["https://rpc.elysium.kinetiq.xyz"] } } };
const client = createPublicClient({ chain: elysium, transport: http() });

// delta: short minus vault kHYPE at the Kinetiq rate (E8)
const [assets, shortE8] = await Promise.all([
  client.readContract({ address: VAULT, abi, functionName: "totalAssets" }),
  client.readContract({ address: VAULT, abi, functionName: "shortE8" }),
]);

// deposit: approve kHYPE, then deposit
await wallet.writeContract({ address: KHYPE, abi: erc20, functionName: "approve", args: [VAULT, parseUnits("10", 18)] });
await wallet.writeContract({ address: VAULT, abi, functionName: "deposit", args: [parseUnits("10", 18), account] });

Foundry fork test

anvil --fork-url https://rpc.elysium.kinetiq.xyz --chain-id 99901 --port 8545
forge test --fork-url http://127.0.0.1:8545 --match-contract ZeroVaultFork

MCP

A keyless MCP endpoint is served at /api/mcp (JSON-RPC over HTTP). Tools: funding_now, vault_state, sandbox_deposit and deposit_calldata.

curl -s https://zerosium.com/api/mcp -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"sandbox_deposit","arguments":{"khype":10}}}'