clawmegle staking

Stake $CLAWMEGLE tokens to earn dual rewards (ETH + CLAWMEGLE) from Clanker LP fees. Use when an agent wants to stake tokens, check staking rewards, claim earnings, or manage their staking position. Supports both Bankr API and direct wallet transactions.

MIT-0 · Free to use, modify, and redistribute. No attribution required.
0 · 1.1k · 0 current installs · 0 all-time installs
MIT-0
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Suspicious
high confidence
!
Purpose & Capability
The skill's stated purpose (stake/claim/manage CLAWMEGLE staking) matches the scripts and calldata in the repository. However the registry metadata and SKILL manifest are inconsistent with the implementation: the scripts call 'cast' and use python3, but the declared required binaries are only curl, jq, and bc. The SKILL.md also instructs the user to create a Bankr config file at ~/.clawdbot/skills/bankr/config.json and optionally put keys in ~/.clawdbot/wallets, but the skill metadata declared no required config paths or env vars. These omissions are disproportionate to what the skill actually needs and may confuse users about what will run on their machine.
!
Instruction Scope
The runtime instructions (SKILL.md + HEARTBEAT.md + scripts) instruct the agent to read local config files and environment variables (PRIVATE_KEY, ~/.clawdbot config files, optional wallet files) and to sign & submit on-chain transactions (via cast or via Bankr). That behavior is within a staking skill's purpose, but the instructions also provide a HEARTBEAT with automated decision logic (auto-claim when thresholds reached, 'consider staking' automatically) which grants the agent open-ended autonomy over funds if the user wires the heartbeat into an autonomous routine. The SKILL.md does not make the PRIVATE_KEY / config requirements explicit in registry metadata, so the instruction scope is broader than declared.
Install Mechanism
This is instruction-only with no install spec, so nothing is automatically downloaded or executed during install. The files are included in the skill bundle; risk is limited to what those scripts do when the user runs them. No external archives or untrusted download URLs are used by an installer.
!
Credentials
The skill requires sensitive secrets at runtime: either a Bankr API key stored in ~/.clawdbot/skills/bankr/config.json or a PRIVATE_KEY environment variable / wallet file to sign transactions. Yet the registry metadata declares no required env vars or config paths. Hiding these requirements is misleading — any user running scripts that use PRIVATE_KEY will be exposing a signing key. Requiring a private key is proportionate to sending transactions, but it must be declared up-front and handled carefully; the current package fails to do so.
Persistence & Privilege
always:false (good) and the skill doesn't request to modify other skills or global agent config. However HEARTBEAT.md explicitly suggests periodic autonomous checks, auto-claim thresholds, and state files (memory/clawmegle-staking.json), so if a user integrates the HEARTBEAT into an autonomous agent it can manage funds (claim, deposit, stake) without per-transaction confirmation. That autonomy is not inherently malicious but increases blast radius — users should not enable autonomous heartbeats without explicit safeguards.
What to consider before installing
This skill's scripts do what a staking utility would — read balances, encode calldata, and sign/send transactions — but there are important red flags you should address before use: - Missing declared dependencies: the scripts call 'cast' (Foundry tool) and use python3, but the skill only listed curl, jq, and bc. Make sure you have 'cast' and python3 installed and inspect how they are used. - Undeclared secret/config requirements: the SKILL.md instructs you to store a Bankr API key at ~/.clawdbot/skills/bankr/config.json or to export PRIVATE_KEY. The registry metadata did not declare these. Treat this as sensitive — do not paste your private key into a shell unless you fully trust the code and developer. - Scripts sign and broadcast transactions: claim.sh, stake.sh, unstake.sh call cast with --private-key or instruct Bankr to submit arbitrary calldata. Any compromise or mistake could move funds. Prefer using Bankr API (so your signing key is managed by Bankr) or a hardware wallet rather than exporting a raw private key to env. - Autonomous behavior: HEARTBEAT.md gives auto-claim/auto-stake decision logic. Do not enable automatic heartbeats unless you explicitly want the agent to operate autonomously with your funds and you accept the risk. - Verify the contract and actor: independently verify the contract addresses on a block explorer (Basescan) and confirm the contract code/ownership before depositing funds. The skill's repository and owner appear to be from an unknown source — consider auditing the code or testing with a very small amount first. Concrete next steps before installing or running with real funds: 1. Inspect the bankr skill implementation referenced by bankr.sh; verify its origin and that it does not exfiltrate secrets. 2. Run the scripts locally in a safe environment and test read-only commands (check.sh, balance.sh) using a watch-only address (no PRIVATE_KEY exported). 3. If you must sign transactions, prefer submitting via Bankr (so you do not export PRIVATE_KEY to shell) or use a hardware wallet integration instead of setting PRIVATE_KEY in env. 4. Ask the publisher to update metadata: declare required binaries (cast, python3), declare required config paths and env vars (Bankr config and/or PRIVATE_KEY), and document heartbeat/autonomy clearly. Given the mismatches between declared metadata and the actual scripts, treat this skill as 'suspicious' until those gaps are resolved and you validate the bankr integration and contract addresses.

Like a lobster shell, security has layers — review code before you run it.

Current versionv1.0.0
Download zip
latestvk9787df4abkyecypkbt3dexcs180mypd

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

Runtime requirements

🥩 Clawdis
Binscurl, jq, bc

SKILL.md

Clawmegle Staking

Stake $CLAWMEGLE to earn proportional share of Clanker LP fees (ETH + CLAWMEGLE).

⚠️ CRITICAL: Staking vs Depositing Rewards

These are DIFFERENT operations:

ActionFunctionPurpose
Stakestake(amount)Lock your CLAWMEGLE to earn rewards
Deposit RewardsdepositRewards(amount) + ETHAdd rewards for stakers to claim

When you claim Clanker LP fees and want to distribute them: → Use ./scripts/deposit-rewards.sh <eth> <clawmegle> → Do NOT use stake() - that locks tokens, doesn't reward stakers!

Prerequisites

Step 1: Bankr Account Setup

The bankr skill is automatically installed as a dependency, but you need a Bankr account:

  1. Go to bankr.bot and sign up with your email
  2. Enter the OTP sent to your email
  3. Important: Bankr creates wallets for you automatically:
    • EVM wallet (Base, Ethereum, Polygon, Unichain)
    • Solana wallet
    • No manual wallet setup needed!

Step 2: Get Your API Key

  1. Go to bankr.bot/api
  2. Create a new API key
  3. Enable "Agent API" access (required for transactions)
  4. Copy the key (starts with bk_)

Step 3: Configure the Skill

Save your API key:

mkdir -p ~/.clawdbot/skills/bankr
cat > ~/.clawdbot/skills/bankr/config.json << 'EOF'
{
  "apiKey": "bk_YOUR_API_KEY_HERE",
  "apiUrl": "https://api.bankr.bot"
}
EOF

Step 4: Fund Your Bankr Wallet

Your Bankr wallet needs:

  • $CLAWMEGLE tokens to stake
  • Small ETH on Base for gas (~0.001 ETH per transaction)

Get your Bankr wallet address:

./scripts/bankr.sh "What is my Bankr wallet address on Base?"

Then send CLAWMEGLE and ETH to that address.

Step 5: Verify Setup

./scripts/bankr.sh "What is my CLAWMEGLE balance on Base?"

If you see your balance, you're ready to stake!

Quick Start (via Bankr)

# Check your CLAWMEGLE balance
./scripts/bankr.sh "What is my CLAWMEGLE balance on Base?"

# Stake tokens
./scripts/stake-bankr.sh 1000

# Check pending rewards
./scripts/check-bankr.sh

# Claim rewards
./scripts/claim-bankr.sh

# Unstake
./scripts/unstake-bankr.sh 500

Depositing Rewards (Admin/Fee Claimer)

After claiming Clanker LP fees, deposit them as rewards:

# Deposit 0.001 ETH + 100 CLAWMEGLE as rewards
./scripts/deposit-rewards.sh 0.001 100

# Deposit ETH only
./scripts/deposit-rewards.sh 0.005 0

# Deposit CLAWMEGLE only  
./scripts/deposit-rewards.sh 0 200

This distributes rewards proportionally to all current stakers.

Alternative: Direct Wallet (Advanced)

For agents with their own wallet infrastructure:

# Key should be in your environment (e.g., ~/.clawdbot/wallets/)
export PRIVATE_KEY=$(cat ~/.clawdbot/wallets/.your_key)

./scripts/stake.sh 1000
./scripts/claim.sh
./scripts/check.sh

Contract Details

ItemValue
Contract0x56e687aE55c892cd66018779c416066bc2F5fCf4 (deployment pending)
Token0x94fa5D6774eaC21a391Aced58086CCE241d3507c
ChainBase (chainId: 8453)
RPChttps://mainnet.base.org

Available Actions

Stake $CLAWMEGLE

Deposit tokens to start earning rewards.

./scripts/stake.sh <AMOUNT>
# Example: ./scripts/stake.sh 5000

Or via Bankr:

scripts/bankr.sh "Submit this transaction on Base: {\"to\": \"<CONTRACT>\", \"data\": \"<STAKE_CALLDATA>\", \"value\": \"0\"}"

Check Pending Rewards

See how much ETH + CLAWMEGLE you've earned.

./scripts/check.sh
# Returns: ethPending, clawmeglePending

Claim Rewards

Withdraw your earned ETH + CLAWMEGLE without unstaking.

./scripts/claim.sh

Unstake

Withdraw your staked tokens + automatically claim pending rewards.

./scripts/unstake.sh <AMOUNT>
# Example: ./scripts/unstake.sh 5000

View Stake

Check your current staked amount.

./scripts/balance.sh

How Rewards Work

  1. Source: Clanker LP fees from $CLAWMEGLE trading
  2. Split: You earn both ETH and CLAWMEGLE proportionally
  3. Calculation: your_rewards = (your_stake / total_staked) * deposited_rewards
  4. Timing: Rewards accumulate continuously, claim anytime

Security

  • No admin keys - Contract cannot be drained
  • No lock-up - Unstake anytime
  • Flash-loan resistant - Can't game the reward distribution
  • Audited patterns - Uses OpenZeppelin + MasterChef accumulator

Requirements

One of:

  • Bankr API key configured at ~/.clawdbot/skills/bankr/config.json
  • Private key with ETH for gas on Base

Plus:

  • $CLAWMEGLE tokens to stake
  • Small ETH for gas (~0.001 ETH per tx)

Troubleshooting

IssueSolution
"Insufficient balance"Get $CLAWMEGLE first
"Insufficient gas"Need ETH on Base for tx fees
"Allowance" errorApprove script handles this
Zero pending rewardsNo rewards deposited yet, or just staked

References

Files

18 total
Select a file
Select a file to preview.

Comments

Loading comments…