Install
openclaw skills install clawmegle-stakingStake $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.
openclaw skills install clawmegle-stakingStake $CLAWMEGLE to earn proportional share of Clanker LP fees (ETH + CLAWMEGLE).
These are DIFFERENT operations:
| Action | Function | Purpose |
|---|---|---|
| Stake | stake(amount) | Lock your CLAWMEGLE to earn rewards |
| Deposit Rewards | depositRewards(amount) + ETH | Add 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!
The bankr skill is automatically installed as a dependency, but you need a Bankr account:
bk_)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
Your Bankr wallet needs:
Get your Bankr wallet address:
./scripts/bankr.sh "What is my Bankr wallet address on Base?"
Then send CLAWMEGLE and ETH to that address.
./scripts/bankr.sh "What is my CLAWMEGLE balance on Base?"
If you see your balance, you're ready to stake!
# 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
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.
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
| Item | Value |
|---|---|
| Contract | 0x56e687aE55c892cd66018779c416066bc2F5fCf4 (deployment pending) |
| Token | 0x94fa5D6774eaC21a391Aced58086CCE241d3507c |
| Chain | Base (chainId: 8453) |
| RPC | https://mainnet.base.org |
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\"}"
See how much ETH + CLAWMEGLE you've earned.
./scripts/check.sh
# Returns: ethPending, clawmeglePending
Withdraw your earned ETH + CLAWMEGLE without unstaking.
./scripts/claim.sh
Withdraw your staked tokens + automatically claim pending rewards.
./scripts/unstake.sh <AMOUNT>
# Example: ./scripts/unstake.sh 5000
Check your current staked amount.
./scripts/balance.sh
your_rewards = (your_stake / total_staked) * deposited_rewardsOne of:
~/.clawdbot/skills/bankr/config.jsonPlus:
| Issue | Solution |
|---|---|
| "Insufficient balance" | Get $CLAWMEGLE first |
| "Insufficient gas" | Need ETH on Base for tx fees |
| "Allowance" error | Approve script handles this |
| Zero pending rewards | No rewards deposited yet, or just staked |