asterdex/aster-skills-hub/aster-deposit-fund

Claude Code and agent skill by asterdex/aster-skills-hub

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Deposit funds to Aster from a wallet; private key from env. Use when the user wants to deposit to Aster or fund an Aster account.

Install

npx vskill@latest install asterdex/aster-skills-hub/aster-deposit-fund

SKILL.md

Aster Deposit Fund

Env

VarRequiredDescription
ASTER_DEPOSIT_PRIVATE_KEYYes (deposit)Wallet private key (0x + 64 hex). Used to sign on-chain deposit txs. Never log or echo.
ASTER_WALLET_ADDRESSYes (balance)Public wallet address. Used by balance.mjs for read-only queries.
ETH_RPC_URLRecommendedPrivate Ethereum RPC (Alchemy, Infura). Public fallback used if unset.
BSC_RPC_URLRecommendedPrivate BSC RPC.
ARBITRUM_RPC_URLRecommendedPrivate Arbitrum RPC.

Supported chains

ChainchainId
ETH (Ethereum)1
BSC56
Arbitrum42161

User confirmation

MANDATORY — Before executing ANY deposit transaction, the agent MUST:

  1. Display a clear summary to the user:
  • Chain and chainId
  • Asset symbol and contract address (for ERC20)
  • Amount (human-readable AND raw wei/units)
  • Deposit (treasury) address
  • Broker ID (if non-default)
  • Estimated gas cost
  1. Ask for explicit textual confirmation (e.g. "Type 'confirm' to proceed" or "yes/no").
  2. Do NOT assume consent from a prior message, implicit agreement, or context.
  3. Do NOT batch multiple deposits without individual confirmation for each.
  4. If the user cancels or does not confirm, abort immediately with no on-chain action.

Failure to confirm is a critical safety violation in an autonomous agent context.

Flow

  1. Deposit address — Hardcoded per chain in scripts/common.mjs (SEC-01). Same address for native and ERC20 on that chain.
  2. Balance check — Verify the wallet has sufficient balance for the deposit amount + gas BEFORE submitting any transaction (SEC-06).
  3. User confirmation — See above. Always confirm before executing.
  4. On-chain send — From wallet (key from env), sign with appropriate RPC for chain:
  • Native: treasury.depositNative(broker) with value = amount (wei).
  • ERC20: token.approve(treasury, amount) then treasury.deposit(token, amount, broker). Token metadata (contract + decimals) is provided explicitly (no API lookup).
  • All transactions use an explicit gas limit (SEC-09) and wait for multiple confirmations per chain (SEC-10).

Security

  • Private key only from env; never log, echo, or pass via CLI args.
  • Key is validated (0x + 64 hex chars) and removed from process.env after account derivation (SEC-02).
  • Error output is sanitized to prevent accidental key leakage in logs (SEC-02).
  • Deposit address is checked against a hardcoded whitelist to prevent oracle attacks (SEC-01).
  • Public RPCs emit a warning; use private RPCs (Alchemy, Infura) in production (SEC-04).
  • balance.mjs never loads the private key; it uses the public address only (SEC-07).

Broker ID

The --broker parameter (default: 1) identifies the Aster broker account that the deposit is attributed to. Broker 1 is the primary/default Aster broker. Only change this if you know the target broker ID. An incorrect broker ID may result in funds being inaccessible from the expected account (SEC-11).

Scripts (viem)

Optional: scripts/ — Bun + viem. Install: cd skills/aster-deposit-fund/scripts && bun install.

ScriptPurpose
deposit.mjsDeposit (no API lookups): `ASTER_DEPOSIT_PRIVATE_KEY=0x... bun run deposit.mjs --chain <eth\bsc\arbitrum> --native --amount <amount> [--broker <id>] [--dry-run] or ... --token <0x...> --decimals <n> [--symbol <SYM>] --amount <amount> ...`
balance.mjsWallet balances (read-only, offline): `bun run balance.mjs --chain <eth\bsc\arbitrum> --address <0x...> [--no-native] [--token <SYM:0xADDR:DECIMALS>]...`

See .env.example in the repo root for all env vars.

Payload shapes: reference.md.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
69
Repository forks
12
7-day trend score
20

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 17 Mar 2026, 7 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/asterdex/aster-skills-hub/aster-deposit-fund/badge)](https://verified-skill.com/skills/asterdex/aster-skills-hub/aster-deposit-fund)

Something wrong with this skill or its page? Tell us.