Skip to main content

il

Tool to calculate Impermanent Loss in a custom liquidity pool. Users can provide percentages increases for two tokens (and their weight in the liquidity pool) and verify the impermanent loss that can occur.

Usage

il [-a PRICECHANGEA] [-b PRICECHANGEB] [-p PROPORTION] [-v VALUE] [-n]

Parameters

NameDescriptionDefaultOptionalChoices
priceChangeAToken A price change in percentage0Truerange(1, 101)
priceChangeBToken B price change in percentage100Truerange(1, 101)
proportionPool proportion. E.g., 50 means that pool contains 50%% of token A and 50%% of token B, 30 means that pool contains 30%% of token A and 70%% of token B50Truerange(1, 101)
valueInitial amount of dollars that user provides to liquidity pool1000TrueNone
narrativeFlag to show narrative instead of dataframeFalseTrueNone

On this page