Calculate Impermanent Loss (IL) for Liquidity Provider positions.
Scanned 9/7/2026
Install to Claude Code
npx -y skills add jiayaoqijia/cryptoskill --skill xspoonai-official-impermanent-loss --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Xspoonai Official Impermanent Loss?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/jiayaoqijia-xspoonai-official-impermanent-loss)More formats (shields.io, HTML) on the badges page.
---
name: impermanent-loss
description: Calculate Impermanent Loss (IL) for Liquidity Provider positions.
version: 1.0.0
author: SpoonOS Contributor
tags: [web3, defi, finance, calculator, yield-farming]
---
# Impermanent Loss Calculator
A financial utility that helps agents quantify the risk of providing liquidity. It calculates the divergence loss experienced when the price ratio of pooled tokens changes.
## Quick Start
```python
# Calculate IL if one token doubles in price (200% or 2.0x ratio change)
il_data = await agent.run_tool(
"il_calc",
price_change_ratio=2.0
)
print(il_data)
```
## Scripts
| Script | Purpose |
|--------|---------|
| [il_calc.py](scripts/il_calc.py) | Mathematical calculator for IL scenarios |
## Best Practices
1. Use to audit active LP positions.
2. Combine with 'Yield Calculator' to see if trading fees cover the IL.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Playbook for creating and editing uCoz landing pages via MCP tools (`templates_tool`, `ftp_tool`, `modules_tool`). Use for tasks such as: "build a landing page", "update the homepage as a landing page", "create a promo page on the homepage", "add a lead form / menu / SEO to the homepage". Homepage: `page_list`, `page_get`; first publish — `page_update` with full `page_tmpl`; HTML edits after generation — `patch_template` (module_id=2, template_id=1), not `update_template`. Activate the mail f...