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
Name | Parameter | Description | Default | Optional | Choices |
---|---|---|---|---|---|
priceChangeA | -a --priceChangeA | Token A price change in percentage | 0 | True | range(1, 101) |
priceChangeB | -b --priceChangeB | Token B price change in percentage | 100 | True | range(1, 101) |
proportion | -p --proportion | Pool 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 B | 50 | True | range(1, 101) |
value | -v --value | Initial amount of dollars that user provides to liquidity pool | 1000 | True | None |
narrative | -n --narrative | Flag to show narrative instead of dataframe | False | True | None |