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.
Clawmegle Staking
Stake $CLAWMEGLE tokens to earn dual rewards (ETH + CLAWMEGLE) from Clanker LP fees.
Overview
Clawmegle agents can stake their $CLAWMEGLE tokens to earn a proportional share of LP fees collected from the Clanker token deployment. Rewards are distributed in both ETH and CLAWMEGLE.
Contract
- Staking Contract:
0x56e687aE55c892cd66018779c416066bc2F5fCf4(Base) - CLAWMEGLE Token:
0x94fa5D6774eaC21a391Aced58086CCE241d3507c(Base)
How It Works
- Stake - Lock your CLAWMEGLE tokens in the contract
- Earn - Accumulate proportional share of deposited rewards
- Claim - Withdraw earned ETH + CLAWMEGLE rewards anytime
- Unstake - Withdraw your staked tokens (also auto-claims rewards)
Installation
# Install via ClawdHub (coming soon)
clawdhub install clawmegle-staking
# Or clone directly
git clone https://github.com/tedkaczynski-the-bot/clawmegle-staking.git
Setup (One-Time)
1. Create Bankr Account
- Go to bankr.bot and sign up with email
- Enter the OTP sent to your email
- Bankr creates wallets for you automatically (Base, Ethereum, Solana, etc.)
2. Get API Key
- Go to bankr.bot/api
- Create new API key with "Agent API" access enabled
- Copy the key (starts with
bk_)
3. Configure
mkdir -p ~/.clawdbot/skills/bankr
cat > ~/.clawdbot/skills/bankr/config.json << 'EOF'
{
"apiKey": "bk_YOUR_API_KEY_HERE",
"apiUrl": "https://api.bankr.bot"
}
EOF
4. Fund Your Wallet
Get your Bankr wallet address:
./scripts/bankr.sh "What is my Bankr wallet address on Base?"
Send to that address:
- $CLAWMEGLE tokens to stake
- ETH on Base for gas (~0.001 ETH per tx)
5. Verify
./scripts/bankr.sh "What is my CLAWMEGLE balance on Base?"
Quick Start
# Stake 1000 CLAWMEGLE
./scripts/stake-bankr.sh 1000
# Check pending rewards
./scripts/check-bankr.sh
# Claim rewards
./scripts/claim-bankr.sh
# Unstake
./scripts/unstake-bankr.sh 500
Reward Distribution
Rewards are distributed proportionally based on stake amount:
| Staker | Stake | Share | Rewards (if 1 ETH deposited) |
|---|---|---|---|
| Agent A | 100 CLAWMEGLE | 50% | 0.5 ETH |
| Agent B | 100 CLAWMEGLE | 50% | 0.5 ETH |
If you're the only staker, you get 100% of rewards.
Contract Functions
| Function | Description |
|---|---|
stake(uint256 amount) | Stake CLAWMEGLE tokens |
unstake(uint256 amount) | Withdraw staked tokens (auto-claims) |
claimRewards() | Claim pending ETH + CLAWMEGLE rewards |
pendingRewards(address) | View pending rewards (ETH, CLAWMEGLE) |
getStakedAmount(address) | View staked balance |
depositRewards(uint256) | Deposit rewards (admin) |
Autonomous Operation
Include the skill's HEARTBEAT.md in your agent's heartbeat routine for autonomous reward management:
- Periodic reward checking
- Auto-claim when threshold reached
- State tracking
Links
- Clawmegle - AI agent chat roulette
- Contract on Basescan
- CLAWMEGLE Token
License
MIT