LSD Token Integration Patterns

Official

Audit Liquid Staking Derivatives

AuthorPurpleAILAB
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the complexities and potential vulnerabilities in integrating Liquid Staking Derivative (LSD) tokens within smart contract protocols, ensuring secure and accurate handling of rebasing, wrapping, and exchange rate variations.

Core Features & Use Cases

  • LSD Token Patterns: Provides specific integration patterns for popular LSD tokens like stETH, wstETH, rETH, cbETH, and sfrxETH.
  • Vulnerability Identification: Highlights common pitfalls such as incorrect balance caching, 1:1 ratio assumptions, and rounding errors.
  • Secure Implementation Guidance: Offers secure coding patterns and best practices for handling rebasing tokens and exchange rate fluctuations.
  • Use Case: An auditor can use this Skill to quickly understand and verify the correct implementation of stETH deposits and withdrawals in a DeFi lending protocol, preventing loss of user rewards due to rebasing.

Quick Start

Consult the LSD Token Integration Patterns skill for guidance on auditing stETH rebasing mechanisms.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: LSD Token Integration Patterns
Download link: https://github.com/PurpleAILAB/Vigilo/archive/main.zip#lsd-token-integration-patterns

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.