Repository avatar
AI Tools
v0.1.0
active

volvaira

io.github.volvaira/volvaira

Paper wheel-strategy agents on Robinhood Chain stock tokens, priced from Chainlink feeds.

Documentation

Volvaira

Volvaira runs paper wheel agents on Robinhood Chain. Each agent (a "spinner") follows a classic options wheel on a stock token, priced from that token's Chainlink feed: it sells a cash-secured put, takes assignment if the feed closes below the strike, then sells a covered call until the shares are called away, and starts over.

Paper only, synthetic options, no real orders. Options are modeled with Black-Scholes (r = 0) and realized volatility from daily samples of the Chainlink feed. Every decision in the Spin log cites the Chainlink roundId it used, so anyone can check it on-chain.

Repository layout

PathWhat it is
contracts/Foundry project: VairaStake (stake $VAIRA, ETH rewards streamed from creator fees) and VairaFeeSplitter (routes $VAIRA creator fees: 10% to VairaStake, 90% to the owner wallet). Tests and deploy scripts.
server/API (Hono, Node 22): Chainlink feed reader, wheel engine, Spin log, Rim test (backtest), stake/fee readers, optional AI composer via OpenRouter, MCP endpoint (/mcp) and a stdio MCP build.
web/Next.js site. Proxies /api/*, /dashboard.json, /llms.txt, /mcp and friends to the API.
bot/Telegram group agent (@volvairabot): join check, moderation in code, quick replies, LLM answers with a guard, buy alerts. See bot/README.md.
keeper/harvest.mjsSmall keeper that calls VairaFeeSplitter.harvest() when enough fees are waiting.

Run locally

Requires Node 22.13+.

# API on :4276
cd server && npm ci
npm test
npm run dev            # reads .env if present

# Web on :4376 (talks to the API through VOLVAIRA_API, default http://127.0.0.1:4276)
cd web && npm ci
npm run dev

# Telegram agent, dry run by default (sends nothing, logs every write)
cd bot && npm ci
npm test
npm run build && VOLVAIRA_TG_TOKEN=<token> node dist/src/main.js

Useful env vars (all optional for local runs):

  • server: PORT, RPC_URL, CHAIN_ID, DATA_DIR, TOKEN_ADDRESS, STAKE_ADDRESS, OPENROUTER_API_KEY, OPENROUTER_MODEL, AI_DAILY_CAP, TRUST_PROXY
  • web: VOLVAIRA_API, NEXT_PUBLIC_SITE_URL
  • bot: VOLVAIRA_TG_TOKEN (or VOLVAIRA_TG_TOKEN_FILE), DRY_RUN (default 1), VOLVAIRA_API, VOLVAIRA_OWNER_IDS, VOLVAIRA_CA, VOLVAIRA_HIDE_WALLETS, OPENROUTER_API_KEY (or OPENROUTER_KEY_FILE)

Without an OpenRouter key the AI features switch off and everything else keeps working. Keep keys in a local .env (git-ignored); never commit them.

Contracts

Dependencies are not vendored. Install them before building:

cd contracts
forge install foundry-rs/forge-std OpenZeppelin/openzeppelin-contracts@v5.6.1 --no-git
forge build
forge test

Built and tested with solc 0.8.28 (via_ir, cancun), OpenZeppelin Contracts 5.6.1 and forge-std 1.17.0. The fork test (VairaFeeSplitterForkTest) is skipped unless FORK_FEE_RECIPIENT is set.

Deployed on Robinhood Chain mainnet (chain id 4663), source verified on Sourcify:

ContractAddressSource
$VAIRA token0x21d11580aAD2d5E1f5456085894621a6f564d86cBlockscout
VairaStake0x69c880761DCF6d21111E50f47fB9f5DFaeD1Da14Sourcify
VairaFeeSplitter0x2015175285c88281A2434F36F5d1756c9aF8ac8aSourcify

The deploy scripts read every address (deployer, token, owner) from env vars; nothing team-specific is hardcoded.

Safety notes

  • Paper only: spinners never place real orders. VairaStake is a real contract that holds staked $VAIRA.
  • The contracts are not audited.
  • The only official token address is the one above, also pinned in the Telegram group and on volvaira.xyz. The team never DMs first.

License

MIT, see LICENSE.

No installation packages available.

Remote