No description
Find a file
Денис Зефиров 9f00841623
All checks were successful
deploy / deploy (push) Successful in 49s
fix: depth chart crosshair tracks cursor when SVG is letterboxed
DepthChart maps the mouse to SVG space with getBoundingClientRect, which
assumes the drawing fills the container. The viewBox (960x380) is narrower
than the container, so preserveAspectRatio centers it with ~127px of side
padding and the crosshair drifted ~100px from the cursor near the edges.
Map through the SVG's own getScreenCTM().inverse() so it stays exact
regardless of letterboxing.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-11 23:33:58 +04:00
.claude Hoodquidity: liquidity campaigns for Robinhood Chain stock token markets 2026-07-11 08:32:28 +04:00
.design-sync Hoodquidity: liquidity campaigns for Robinhood Chain stock token markets 2026-07-11 08:32:28 +04:00
.forgejo/workflows ci: Forgejo Actions deploy workflow from platform template 2026-07-11 08:44:04 +04:00
apps/web fix: depth chart crosshair tracks cursor when SVG is letterboxed 2026-07-11 23:33:58 +04:00
packages/contracts Hoodquidity: liquidity campaigns for Robinhood Chain stock token markets 2026-07-11 08:32:28 +04:00
.env feat: mainnet wallet, cyberpunk backdrop layer, real market data, hoodquidity.com 2026-07-11 23:15:27 +04:00
.env.example Hoodquidity: liquidity campaigns for Robinhood Chain stock token markets 2026-07-11 08:32:28 +04:00
.gitignore Hoodquidity: liquidity campaigns for Robinhood Chain stock token markets 2026-07-11 08:32:28 +04:00
bun.lockb Hoodquidity: liquidity campaigns for Robinhood Chain stock token markets 2026-07-11 08:32:28 +04:00
package.json Hoodquidity: liquidity campaigns for Robinhood Chain stock token markets 2026-07-11 08:32:28 +04:00
pnpm-lock.yaml Hoodquidity: liquidity campaigns for Robinhood Chain stock token markets 2026-07-11 08:32:28 +04:00
pnpm-workspace.yaml Hoodquidity: liquidity campaigns for Robinhood Chain stock token markets 2026-07-11 08:32:28 +04:00
README.md Hoodquidity: liquidity campaigns for Robinhood Chain stock token markets 2026-07-11 08:32:28 +04:00

Hoodquidity

Liquidity campaigns for Stock Token markets on Robinhood Chain. Deposit stablecoins into a Depth Vault, receive an LP receipt and earn from deeper markets.

Stack

  • apps/web: React 18 + Vite + Tailwind v4, wagmi + viem + RainbowKit, Framer Motion, SVG animations. Ships as a static build.
  • packages/contracts: Foundry. HoodquidityVaults (campaigns, deposits, masterchef-style rewards with early boost, hybrid exit) and MockERC20 (test assets with an open faucet).

Live data: Dexscreener API for tokenized stock prices, volume and liquidity; https://1rpc.io/eth for L1 chain stats; the vault contract for TVL, positions and rewards.

Development

pnpm install

# terminal 1: local chain
anvil --port 8545

# terminal 2: multicall3 + demo deployment (5 campaigns)
./packages/contracts/script/setup-local.sh

# terminal 3: the app
pnpm dev

If deploy addresses change, update apps/web/src/lib/contracts.ts.

Tests

pnpm test:contracts

Production build

pnpm build     # apps/web/dist, precompressed with gzip + brotli
pnpm preview

Deploy only the apps/web/dist directory to the server.

Before release

  • Replace the WalletConnect projectId in apps/web/src/lib/wagmi.ts
  • Set the real Twitter URL in apps/web/src/lib/constants.ts
  • Deploy contracts to the public testnet (script/Deploy.s.sol) and fill in the testnet deployment in apps/web/src/lib/contracts.ts