The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.
Computes the key metrics for assessing the performance of a liquidity provider (LP) position in a weighted multi-asset Automated Market Maker (AMM) pool. Calculates the nominal and percentage impermanent loss (IL) by comparing the portfolio value inside the pool (based on the weighted geometric mean of price ratios) against the value of simply holding the assets outside the pool (based on the weighted arithmetic mean). The primary function, ‘impermanent_loss()', incorporates the effect of earned trading fees to provide the LP’s net profit and loss relative to a holding strategy, using a methodology derived from Tiruviluamala, N., Port, A., and Lewis, E. (2022) <doi:10.48550/arXiv.2203.11352>.
| Version: | 0.1.0 |
| Imports: | ggplot2 |
| Suggests: | knitr, rmarkdown, testthat (≥ 3.0.0) |
| Published: | 2025-12-11 |
| DOI: | 10.32614/CRAN.package.impermanentlosscalc |
| Author: | Amber Krause |
| Maintainer: | Amber Krause <amber32k at gmail.com> |
| License: | GPL-3 |
| NeedsCompilation: | no |
| Materials: | README |
| CRAN checks: | impermanentlosscalc results |
| Reference manual: | impermanentlosscalc.html , impermanentlosscalc.pdf |
| Vignettes: |
Introduction to Weighted AMM Impermanent Loss (source, R code) |
| Package source: | impermanentlosscalc_0.1.0.tar.gz |
| Windows binaries: | r-devel: impermanentlosscalc_0.1.0.zip, r-release: impermanentlosscalc_0.1.0.zip, r-oldrel: impermanentlosscalc_0.1.0.zip |
| macOS binaries: | r-release (arm64): impermanentlosscalc_0.1.0.tgz, r-oldrel (arm64): impermanentlosscalc_0.1.0.tgz, r-release (x86_64): impermanentlosscalc_0.1.0.tgz, r-oldrel (x86_64): impermanentlosscalc_0.1.0.tgz |
Please use the canonical form https://CRAN.R-project.org/package=impermanentlosscalc to link to this page.
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.