euler-base-vault-bot
Euler Base Vault Bot
For Claude: How to Use This Skill
Skill instructions are preloaded in context when this skill is active. Do not perform filesystem searches or tool-driven exploration to rediscover them; use the guidance below directly.
When to Use
- deposit USDC into the AlphaGrowth Euler vault on Base
- check AlphaGrowth vault position and APY
- compound Euler vault rewards
- withdraw from AlphaGrowth Base vault
On Invoke
Immediately run a dry-run vault position check without asking. Do not present a menu of modes. Execute:
cd ~/.config/seren/skills/euler-base-vault-bot && source .venv/bin/activate && python3 scripts/agent.py --config config.json
Display the full dry-run results to the user. Only after results are displayed, present available next steps (deposit, compound, withdraw, live mode). If the user explicitly requests a specific action in their invocation message, run that action instead.
Workflow Summary
probe_rpcusesconnector.rpc_base.postread_vault_stateusesconnector.rpc_base.postread_positionusesconnector.rpc_base.postbuild_transactionsusestransform.create_planestimate_gasusesconnector.rpc_base.postlive_guardusestransform.guard_live_executionexecute_transactionsusesconnector.rpc_base.post
Trade Execution Contract
When the user says sell, close, exit, unwind, or flatten, treat that as an immediate operator instruction to stop trading and prepare the vault withdrawal path. If the user did not identify whether the request is for a deposit, compound cycle, or full withdrawal, ask only the minimum clarifying question needed to identify it.
Pre-Trade Checklist
Before any live vault action:
- Verify
SEREN_API_KEYis loaded and therpc_baseconnector is reachable. - Verify the configured
wallet_modedependency is present:WALLET_PRIVATE_KEYfor local signing orLEDGER_ADDRESSfor ledger mode. - Verify the requested deposit, compound, or withdraw amount is valid for the current position.
- If any credential, signer dependency, or Base RPC probe fails, stop here and fail closed instead of building live transactions.
Dependency Validation
Dependency validation is required before live execution. Verify SEREN_API_KEY, the rpc_base connector, and the selected signer dependency are loaded and reachable. If credentials are missing, the connector is unsupported, or the signer dependency is missing, the runtime must stop with an error instead of executing vault actions.
Live Safety Opt-In
Default mode is dry-run. Live execution requires both:
inputs.live_mode=truewithdry_run=falsein configpython3 scripts/agent.py --config config.json --allow-live
The --allow-live flag is a startup-only opt-in for that process. It is not a per-transaction approval prompt.
Emergency Exit Path
To stop trading immediately, run python3 scripts/agent.py --config config.json --emergency-exit. The emergency-exit path prepares the full withdrawal workflow and marks the current vault position for liquidation without asking for an extra live confirmation.
Seren-Cron Integration
Use seren-cron to run this skill on a schedule — no terminal windows to keep open, no daemons, no permanent computer changes required. Seren-cron is a cloud scheduler that calls your local trigger server on a cron schedule.
Requirements: Seren Desktop login or a valid SEREN_API_KEY.
Step 1 — Check seren-cron is available
Before scheduling, verify the publisher is reachable using mcp__seren__call_publisher:
publisher: seren-cron
path: /health
method: GET
If this call fails, stop here and tell the user:
"The seren-cron service could not be reached. Please send this error to hello@serendb.com for support."
Step 2 — Review active cron jobs (always do this first)
Always check for existing scheduled jobs before creating a new one. A user may have forgotten a live job is already running.
publisher: seren-cron
path: /jobs
method: GET
If jobs for this skill already exist, show them to the user and ask:
"You have [N] active cron job(s) for this skill. Would you like to:
- Keep them running (recommended if intentional)
- Stop all and create a new schedule
- Cancel"
Do not create a duplicate cron job without explicit user confirmation.
Step 3 — Start the local trigger server
Start the webhook server that seren-cron will call on each scheduled tick:
SEREN_API_KEY="$SEREN_API_KEY" python3 scripts/run_agent_server.py --config config.json --port 8080
This process runs in your terminal session. When you close the terminal, it stops — that is expected and correct. Seren-cron handles the scheduling; your local server handles execution.
Step 4 — Create the cron schedule
With the server running, create the scheduled job:
publisher: seren-cron
path: /jobs
method: POST
body: {
"name": "euler-vault-compound-live",
"url": "http://localhost:8080/run",
"method": "POST",
"cron_expression": "0 */12 * * *",
"timezone": "UTC",
"enabled": true,
"timeout_seconds": 60
}
Save the returned job_id — you need it to pause, resume, or delete the job later.
Step 5 — Manage the schedule
List all active jobs:
publisher: seren-cron, path: /jobs, method: GET
Pause:
publisher: seren-cron, path: /jobs/{job_id}/pause, method: POST
Resume:
publisher: seren-cron, path: /jobs/{job_id}/resume, method: POST
Stop permanently:
publisher: seren-cron, path: /jobs/{job_id}, method: DELETE
Insufficient Funds Guard
If a live trade or cycle fails because the trading balance or SerenBucks balance is too low to execute, immediately pause the cron job:
publisher: seren-cron, path: /jobs/{job_id}/pause, method: POST
Then tell the user:
"Automated trading has been paused: insufficient funds detected. Please top up your balance before resuming the schedule."
Never allow the cron to keep firing when there are no funds available to trade.
More from serenorg/seren-skills
polymarket-bot
Autonomous trading agent for Polymarket prediction markets using Seren ecosystem
9polymarket-maker-rebate-bot
Provide two-sided liquidity on Polymarket with rebate-aware quoting, inventory controls, and dry-run-first execution for binary markets.
6saas-short-trader
Alpaca-branded SaaS short trader with MCP-native execution: scores AI disruption risk, builds capped short baskets, and tracks paper/live PnL in SerenDB.
2high-throughput-paired-basis-maker
Run a paired-market basis strategy on Polymarket with mandatory backtest-first gating before trade intents.
2seren-bounty
Work with Seren Bounty affiliate bounties: customers create and fund verifier-backed bounties; agents join to receive a referral_code and accrue earnings as qualifying events are verified; a release sweep pays matured earnings out of escrow.
2budget-tracker
Compare actual Wells Fargo spending against user-defined monthly budgets per category, calculate variance, and track budget adherence over time.
1