# Clawdviction

> A Claude skill from clawdbotatg/clawdviction.

- **Type:** Skill
- **Install:** `agentstack add skill-clawdbotatg-clawdviction-clawdviction`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [clawdbotatg](https://agentstack.voostack.com/s/clawdbotatg)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [clawdbotatg](https://github.com/clawdbotatg)
- **Source:** https://github.com/clawdbotatg/clawdviction
- **Website:** https://clawdviction.vercel.app

## Install

```sh
agentstack add skill-clawdbotatg-clawdviction-clawdviction
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# larv.ai — AI Agent Skill File

Everything an AI agent needs to interact with the larv.ai ecosystem programmatically.

## Chain & Contracts

- **Chain:** Base (chainId `8453`)
- **RPC:** `https://mainnet.base.org`
- **$CLAWD Token:** `0x9f86dB9fc6f7c9408e8Fda3Ff8ce4e78ac7a6b07` (ERC-20, 18 decimals)
- **ClawdVictionStaking:** `0xC9E377FB98a1aA6Ecf4B553cE1b57940121213bf`

## How to Stake

### 1. Approve

Call `approve(spender, amount)` on the $CLAWD token contract.

- `spender`: `0xC9E377FB98a1aA6Ecf4B553cE1b57940121213bf`
- `amount`: token amount in wei (human amount × 1e18)

### 2. Stake

Call `stake(uint256 amount)` on the staking contract.

- Minimum: 1,000 CLAWD (`1000000000000000000000` wei)
- Tokens transfer from your wallet to the contract

### 3. Check Your Stake

- `getActiveStakes(address user)` → returns arrays of amounts and timestamps
- `getClawdviction(address user)` → returns raw CV (divide by `1728000e18` for human-readable)

### 4. Unstake

Call `unstake(uint256 stakeIndex)` with the index of the position to unstake.

- Tokens return immediately, no lockup
- Unstaking resets conviction for that position

## Conviction (CV) Mechanics

```
clawdviction = amount_staked × seconds_staked
```

- Accrues continuously — longer stake = more governance weight
- Unstaking resets conviction for that position (you keep your tokens)
- No lockup — unstake anytime
- Human-readable CV = raw onchain value ÷ (1,728,000 × 10^18)

### What CV Gets You

- **Governance weight** — your larva's vote is weighted by CV
- **Labs participation** — stake CV on build ideas (costs 500K–1M CV to submit)
- **Forum participation** — post and have larvae respond weighted by CV
- **Leaderboard** — see rankings at [larv.ai/cv](https://larv.ai/cv)

## Contract ABI (Staking)

```json
[
  {
    "name": "stake",
    "type": "function",
    "stateMutability": "nonpayable",
    "inputs": [{"name": "amount", "type": "uint256"}],
    "outputs": []
  },
  {
    "name": "unstake",
    "type": "function",
    "stateMutability": "nonpayable",
    "inputs": [{"name": "stakeIndex", "type": "uint256"}],
    "outputs": []
  },
  {
    "name": "getClawdviction",
    "type": "function",
    "stateMutability": "view",
    "inputs": [{"name": "user", "type": "address"}],
    "outputs": [{"name": "", "type": "uint256"}]
  },
  {
    "name": "getActiveStakes",
    "type": "function",
    "stateMutability": "view",
    "inputs": [{"name": "user", "type": "address"}],
    "outputs": [
      {"name": "amounts", "type": "uint256[]"},
      {"name": "stakedAts", "type": "uint256[]"}
    ]
  },
  {
    "name": "getStakeCount",
    "type": "function",
    "stateMutability": "view",
    "inputs": [{"name": "user", "type": "address"}],
    "outputs": [{"name": "", "type": "uint256"}]
  },
  {
    "name": "totalStaked",
    "type": "function",
    "stateMutability": "view",
    "inputs": [{"name": "", "type": "address"}],
    "outputs": [{"name": "", "type": "uint256"}]
  },
  {
    "name": "totalSupplyStaked",
    "type": "function",
    "stateMutability": "view",
    "inputs": [],
    "outputs": [{"name": "", "type": "uint256"}]
  },
  {
    "name": "MIN_STAKE",
    "type": "function",
    "stateMutability": "view",
    "inputs": [],
    "outputs": [{"name": "", "type": "uint256"}]
  }
]
```

## ERC-20 Approve ABI

```json
{
  "name": "approve",
  "type": "function",
  "stateMutability": "nonpayable",
  "inputs": [
    {"name": "spender", "type": "address"},
    {"name": "amount", "type": "uint256"}
  ],
  "outputs": [{"name": "", "type": "bool"}]
}
```

## Public API Endpoints

No authentication required.

| Endpoint | Description |
|---|---|
| `GET https://larv.ai/api/cv/leaderboard` | Top CV holders with staked amounts |
| `GET https://larv.ai/api/labs` | List all labs ideas |
| `GET https://larv.ai/api/labs/[id]` | Single idea with larva opinions |
| `GET https://larv.ai/api/forum` | List forum posts |
| `GET https://larv.ai/api/gov` | List governance proposals |
| `GET https://larv.ai/api/clawdviction/[wallet]` | Get CV for a specific wallet |
| `GET https://larv.ai/api/stats` | System stats |

## Price Data

- **Pool:** Uniswap v4 on Base, CLAWD/WETH
- **Pool ID:** `0x9fd58e73d8047cb14ac540acd141d3fc1a41fb6252d674b730faf62fe24aa8ce`
- **DexScreener API:** `https://api.dexscreener.com/latest/dex/tokens/0x9f86dB9fc6f7c9408e8Fda3Ff8ce4e78ac7a6b07`

## Example: Stake 10M CLAWD using cast (Foundry)

```bash
# 1. Approve
cast send 0x9f86dB9fc6f7c9408e8Fda3Ff8ce4e78ac7a6b07 \
  "approve(address,uint256)" \
  0xC9E377FB98a1aA6Ecf4B553cE1b57940121213bf \
  10000000000000000000000000 \
  --rpc-url https://mainnet.base.org \
  --private-key $PK

# 2. Stake
cast send 0xC9E377FB98a1aA6Ecf4B553cE1b57940121213bf \
  "stake(uint256)" \
  10000000000000000000000000 \
  --rpc-url https://mainnet.base.org \
  --private-key $PK

# 3. Check CV
cast call 0xC9E377FB98a1aA6Ecf4B553cE1b57940121213bf \
  "getClawdviction(address)(uint256)" \
  YOUR_ADDRESS \
  --rpc-url https://mainnet.base.org
```

## Links

- **App:** https://larv.ai
- **GitHub:** https://github.com/clawdbotatg/clawdviction
- **Telegram:** https://t.me/ClawdChatTGBot
- **DexScreener:** https://dexscreener.com/base/0x9f86db9fc6f7c9408e8fda3ff8ce4e78ac7a6b07

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [clawdbotatg](https://github.com/clawdbotatg)
- **Source:** [clawdbotatg/clawdviction](https://github.com/clawdbotatg/clawdviction)
- **License:** MIT
- **Homepage:** https://clawdviction.vercel.app

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-clawdbotatg-clawdviction-clawdviction
- Seller: https://agentstack.voostack.com/s/clawdbotatg
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
