xiaohongshu
xiaohongshu
optimizing-staking-rewards
Compare and optimize staking rewards across validators, protocols, and blockchains with risk assessment. Use when analyzing staking opportunities, comparing validators, calculating staking rewards, or optimizing PoS yields. Trigger with phrases like "optimize staking", "compare staking", "best st...
Full skill instructions
This skill analyzes staking opportunities across multiple proof-of-stake blockchains and liquid staking protocols. It compares APY/APR, calculates net yields after fees, assesses protocol risks, and provides optimization recommendations for maximizing staking returns.
Key capabilities:
Before using this skill, ensure you have:
requests library for API calls (pip install requests)Optional:
To compare staking options for a specific asset:
python {baseDir}/scripts/staking_optimizer.py --asset ETH
This fetches current rates from DeFiLlama and displays:
For gas-adjusted yields based on your stake amount:
python {baseDir}/scripts/staking_optimizer.py --asset ETH --amount 10
Adding --amount calculates:
Input current positions for optimization recommendations:
python {baseDir}/scripts/staking_optimizer.py --optimize \
--positions "10 ETH @ lido 4.0%, 100 ATOM @ native 18%, 50 DOT @ native 14%"
The optimizer will:
For head-to-head protocol comparison:
python {baseDir}/scripts/staking_optimizer.py --compare --protocols lido,rocket-pool,frax-ether
Compare metrics:
For in-depth protocol analysis:
python {baseDir}/scripts/staking_optimizer.py --asset ETH --detailed
Shows for each protocol:
Save analysis for further use:
# JSON output
python {baseDir}/scripts/staking_optimizer.py --asset ETH --format json --output staking.json
# CSV for spreadsheets
python {baseDir}/scripts/staking_optimizer.py --asset ETH --format csv --output staking.csv
==============================================================================
STAKING REWARDS OPTIMIZER 2025-01-15 15:30 UTC
==============================================================================
STAKING OPTIONS FOR ETH
------------------------------------------------------------------------------
Protocol Type Gross APY Net APY Risk TVL Unbond
------------------------------------------------------------------------------
Frax (sfrxETH) liquid 5.10% 4.59% 7/10 $450M instant
Lido (stETH) liquid 4.00% 3.60% 9/10 $15B instant
Rocket Pool liquid 4.20% 3.61% 8/10 $3B instant
Coinbase cbETH liquid 3.80% 3.42% 9/10 $2B instant
ETH Native native 4.00% 4.00% 10/10 $50B variable
------------------------------------------------------------------------------
Ranked by risk-adjusted return (Net APY × Risk Score / 10)
==============================================================================
==============================================================================
PORTFOLIO OPTIMIZATION
==============================================================================
CURRENT PORTFOLIO
------------------------------------------------------------------------------
Position APY Annual Return
10 ETH @ Lido 3.60% $720
100 ATOM @ Native 18.00% $3,600
50 DOT @ Native 14.00% $1,400
------------------------------------------------------------------------------
Total Portfolio: $25,000 Blended APY: 22.88% Annual: $5,720
OPTIMIZED ALLOCATION
------------------------------------------------------------------------------
Recommendation APY Annual Return Change
10 ETH → Frax 4.59% $918 +$198
100 ATOM → Keep 18.00% $3,600 $0
50 DOT → Keep 14.00% $1,400 $0
------------------------------------------------------------------------------
Optimized Annual: $5,918 Improvement: +$198 (+3.5%)
IMPLEMENTATION
1. Unstake 10 ETH from Lido (instant - liquid)
2. Swap stETH → ETH on Curve (0.01% slippage est.)
3. Stake ETH for sfrxETH on Frax Finance
4. Est. gas cost: ~$15 (current gas: 25 gwei)
==============================================================================
RISK ASSESSMENT: Lido (stETH)
------------------------------------------------------------------------------
Overall Score: 9/10 (Low Risk)
Breakdown:
- Audit Status: ✓ Multiple audits, latest 6 months ago (+2.0)
- Time in Production: ✓ 3+ years live (+2.0)
- TVL Size: ✓ $15B+ locked (+2.0)
- Protocol Reputation: ✓ Industry standard, DAO governance (+1.5)
- Validator Diversity: ✓ 30+ validators (+1.5)
Considerations:
- Largest LSD by market share (potential centralization concerns)
- stETH occasionally trades at slight discount to ETH
- 10% fee on staking rewards
Historical:
- No slashing events to date
- stETH peg maintained through market stress
- Consistent validator performance
------------------------------------------------------------------------------
See {baseDir}/references/errors.md for comprehensive error handling.
Common issues:
python {baseDir}/scripts/staking_optimizer.py --asset ETH
# Shows all ETH staking options ranked by risk-adjusted return
python {baseDir}/scripts/staking_optimizer.py --asset ETH --amount 100 --detailed
# Shows gas-adjusted yields for 100 ETH with full risk analysis
python {baseDir}/scripts/staking_optimizer.py --assets ETH,SOL,ATOM --format csv
# Compares staking across multiple assets, exports to CSV
python {baseDir}/scripts/staking_optimizer.py --optimize \
--positions "50 ETH @ lido 3.6%, 500 SOL @ marinade 7.5%"
# Analyzes current positions and suggests improvements
python {baseDir}/scripts/staking_optimizer.py --protocol rocket-pool --detailed
# Full analysis of Rocket Pool including validator metrics
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience