### Introduction: If you have done anything in Defi, then you certainly have heard of the latest and greatest versions of decentralized exchanges protocols or what are called DEXs. Yes, it would not be exaggerating to say that the likes of Uniswap, Pancakeswap, or the recently-launched Robiniaswap have changed our perception of trading and put a limit on centralized exchange's control of trading in the crypto space. And on top of that, they blew the doors wide for regular users like you and me to take part in the market-making process and benefit financially from it. This is all possible thanks to liquidity providing function that allows users to keep their tokens into decentralized trading pools and whenever someone needs to conduct a trade, they need to pay a fee that goes directly to liquidity providers. Moreover, those providers are not obligated to keep their tokens in the pools for a certain period of time, meaning they can redeem their funds plus any additional profits completely at their convenience! Now, this all sounds well and good, but as is often the case, wherever lucrative opportunities exist, there are always hidden risks that lurk beneath. And when it comes to liquidity pools, the serious risk is no other than "impermanent loss"... In this publication, I'm gonna explain what this infamous "impermanent loss" is all about and how you can manage and mitigate its risks. It might a bit of a tricky post but I hope you find it useful... ![cover.png](https://files.peakd.com/file/peakd-hive/qsyal/23yx6DwzJoPuLeRXMypoBpCdeRgLRmKjno39v5ZRHQEcgmxUkWuj7rDtpbC9g2FmdkxTZ.png) ### What is impermanent loss? It is basically a case that occurs when you provide two crypto assets into a liquidity pool but the price of those two assets differs sharply from one another in a certain time frame. As known, to provide liquidity on decentralized exchanges, you're required to put the same dollar value worth of both assets into the pool. However, as we all know, there is nothing more prevalent in crypto than fluctuation. That means "the same dollar value" you've provided into the pool will not stay the same for long and at least one of the two assets you're locking could pump or dump in price at any time, which creates the ideal conditions for impermanent loss to arise. Well, let's take an example to clarify the idea and defog any misconceptions Suppose that John is providing liquidity to BNB-Cake on pancakeswap pool and let's adopt the approximate prices as following(to facilitate the calculation process) - The price of BNB is $500 - The price of Cake is $20 John wants to lock up $500 worth of BNB and $500 worth of Cake (same dollar value) which makes up $1000 in total and splits up to: 1 BNB against 25 Cake (a total of $1000) Still with me so far? ![000.PNG](https://files.peakd.com/file/peakd-hive/qsyal/23tRvehPFQiZt6mE4joD9A8w1h1ym1nu1hUDPtsRfT1eURx4fbErB63pxV7DzujNmNQZJ.PNG) Well, let's keep away from huge numbers and suppose that the total value of the BNB-Cake pool is $10000, thus John's share is 10% of the pool, right? Great! Uniswape, pancakeswap and many other decentralized exchange adopt an automated marker maker model or (AMM) that requires the multiplied product of each coin's supply to remain constant. In our example the constant of the total pools is: <code>10BNB * 250Cake = 2500 </code> Traders are free to do their exchanges through the pool. they can buy BNB for Cake and vice versa, but if it happens that a large number of traders bought up BNB (for example) and a small number of them bought Cake, that would mean the amount of Cake in the pool will increase at the expense of BNB and that will also mean that the price of BNB will increase! Now, if the price of BNB has pumped 4X and becomes $2000 (and Cake remained the same), the constant of the BNB-Cake pool remains constant but the ratio of involved assets changes. Back to our small example, the new ingredients of the BNB-Cake pool will account for: 5BNB * 500Cake = 2500 Imagine that john withdraws his funds from the pool. He is of course still entitled to a portion of 10% of the total pool, this gives him: 0.5 BNB & 50 Cake (a total of $2000) See? John has lost some of his BNB and gained additional Cake in return, so it's not really a loss but the ratio of the funds have changed, and if John had waited until the price of BNB returned to its initial level ($500), he would have withdrawn his funds at the same initial ratio. That's the main reason why it's called "impermanent loss" . However, it might be a bit of a dodgy name because "impermanent" can easily become "permanent" if the price of one of the assets has changed and never returns to the initial level (BNB in our example) Another fun fact worth mentioning is that John ended up with a total of $2000 in total, meaning he has doubled his initial investment of $1000, but if John had not provided liquidity in the first place and simply held his 1 BNB and his 25 Cake, he would have a total value of $2500 (considering the new BNB price), so yea, some potential profits have gone due to impermanent loss Finally, I should point out that this example didn't take into account any gains earned from providing liquidity which might have compensated for any losses... ### Final thoughts: ![problem-g542486fbb_1280.jpg](https://files.peakd.com/file/peakd-hive/qsyal/23tbpcCXkkWyHU8sxA4cW1ViUsi3L4ZyFmMJwk6gSdCzr1xVW1ZQqZNWYfddwVbMLw5gr.jpg) Well, I'm one of those who think the Defi space is going to completely change the economic world. Too bullish about it. That said, since Defi is still so new and hasn't been tested for a long time yet, we have to be open to possibilities about hidden risks involved in it. And while I'm sure those risks are going to be solved and avoided in the long term future, we should always make our personal strategy to keep safe. When it comes to impermanent loss, providing liquidity with stable coins might be the easiest way since those coins have little to zero volatility by design.(USDT, BUSD, DAI...etc). Also, keep always away from providing liquidity with sh!t coins that randomly pump out of nowhere. After all, those coins have the nastiest and craziest price actions which could add oil to any impermanent loss's fire... what do you think guys? have you ever suffer this type of loss? I'd like to learn your thoughts in the comment... <br> <center> THANK YOU FOR READING </center> <hr/> <br> <center>You can also find me on these platforms: [Twitter](https://twitter.com/qsyal4) [Publish0x](https://www.publish0x.com/@qsyal)</center> <center><sub>Helpful links: [1](https://trustwallet.com/blog/impermanent-loss-is-no-concern) [2](https://www.youtube.com/watch?v=HPGSSkOq0-Q) [3](https://www.accountingtools.com/articles/2017/5/10/impairment-loss) [4](https://academy.binance.com/en/articles/impermanent-loss-explained) [5](https://coinmarketcap.com/alexandria/glossary/impermanent-loss) </sub></center> <br/> <sub>PS, Unless otherwise stated, all images in this post are either my own design or from free photo-sharing sites (e.g. pixabay.com) </sub>
post_id | 94,843,229 | ||||||
---|---|---|---|---|---|---|---|
author | qsyal | ||||||
permlink | what-you-need-to-know-about-impermanent-loss | ||||||
category | hive-139293 | ||||||
json_metadata | {"image":["https:\/\/files.peakd.com\/file\/peakd-hive\/qsyal\/23yx6DwzJoPuLeRXMypoBpCdeRgLRmKjno39v5ZRHQEcgmxUkWuj7rDtpbC9g2FmdkxTZ.png","https:\/\/files.peakd.com\/file\/peakd-hive\/qsyal\/23tRvehPFQiZt6mE4joD9A8w1h1ym1nu1hUDPtsRfT1eURx4fbErB63pxV7DzujNmNQZJ.PNG","https:\/\/files.peakd.com\/file\/peakd-hive\/qsyal\/23tbpcCXkkWyHU8sxA4cW1ViUsi3L4ZyFmMJwk6gSdCzr1xVW1ZQqZNWYfddwVbMLw5gr.jpg"],"links":["https:\/\/twitter.com\/qsyal4","https:\/\/www.publish0x.com\/@qsyal","https:\/\/trustwallet.com\/blog\/impermanent-loss-is-no-concern","https:\/\/www.youtube.com\/watch?v=HPGSSkOq0-Q","https:\/\/www.accountingtools.com\/articles\/2017\/5\/10\/impairment-loss","https:\/\/academy.binance.com\/en\/articles\/impermanent-loss-explained","https:\/\/coinmarketcap.com\/alexandria\/glossary\/impermanent-loss"],"app":"steemit\/0.2","format":"markdown","tags":["rpromo","defi","crypto","pancakeswap","uniswap"]} | ||||||
created | 2021-10-18 16:10:36 | ||||||
last_update | 2021-10-18 16:12:12 | ||||||
depth | 0 | ||||||
children | 3 | ||||||
net_rshares | 10,308,178,001,066 | ||||||
last_payout | 2021-10-25 16:10:36 | ||||||
cashout_time | 1969-12-31 23:59:59 | ||||||
total_payout_value | 1.926 SBD | ||||||
curator_payout_value | 3.810 SBD | ||||||
pending_payout_value | 0.000 SBD | ||||||
promoted | 0.000 SBD | ||||||
body_length | 7,120 | ||||||
author_reputation | 15,567,620,005,037 | ||||||
root_title | "What you need to know about "impermanent loss"" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 1,000,000.000 SBD | ||||||
percent_steem_dollars | 10,000 | ||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
thecryptodrive | 0 | 23,207,791,205 | 48.5% | ||
xpilar | 0 | 527,880,531,197 | 18.4% | ||
moisesmcardona | 0 | 188,316,780 | 48.5% | ||
sqube | 0 | 124,770,082 | 2.5% | ||
chesatochi | 0 | 48,921,174,702 | 100% | ||
shaunmza | 0 | 53,715,182,134 | 100% | ||
eric818 | 0 | 91,518,420,237 | 4.85% | ||
vaibhavshah | 0 | 326,500,740 | 48.5% | ||
samminator | 0 | 63,960,619,492 | 97% | ||
joeyarnoldvn | 0 | 0 | 0.02% | ||
pisolutionsmru | 0 | 10,764,694,072 | 48.5% | ||
shebe | 0 | 112,476,363 | 23% | ||
lenonmc21 | 0 | 46,840,073,851 | 97% | ||
tfame3865 | 0 | 7,067,956,860 | 100% | ||
qsyal | 0 | 2,576,067,485 | 46% | ||
valchiz | 0 | 6,357,903,137 | 77.6% | ||
mrsquiggle | 0 | 53,411,790,390 | 97% | ||
vlemon | 0 | 106,188,915,653 | 97% | ||
kamikaze | 0 | 11,402,917,336 | 48.5% | ||
davidke20 | 0 | 126,378,068 | 1% | ||
mauromar | 0 | 78,152,400,148 | 19.4% | ||
upme | 0 | 27,226,691,660 | 48.5% | ||
joseph1956 | 0 | 6,395,083,724 | 97% | ||
mariu.espinoza | 0 | 1,992,303,619 | 97% | ||
mtl1979 | 0 | 458,770,985 | 46% | ||
rosellyn | 0 | 11,842,870,237 | 97% | ||
amestyj | 0 | 20,321,631,297 | 97% | ||
sandracarrascal | 0 | 7,643,025,477 | 100% | ||
kcherukuri | 0 | 18,102,827,742 | 48.5% | ||
hojaraskita | 0 | 726,942,138 | 48.5% | ||
madridbg | 0 | 46,583,276,213 | 97% | ||
tolustx | 0 | 22,616,063,465 | 100% | ||
fourfourfun | 0 | 12,028,522,574 | 48.5% | ||
designieplay | 0 | 19,750,916,541 | 97% | ||
adityajainxds | 0 | 32,698,537,735 | 100% | ||
rodyservi | 0 | 69,958,405 | 46% | ||
adesojisouljay | 0 | 5,887,030,755 | 48.5% | ||
pexpresiones | 0 | 637,805,906 | 97% | ||
matheusggr | 0 | 943,992,084 | 10% | ||
futuremind | 0 | 35,551,486,107 | 92% | ||
trabajosdelsiglo | 0 | 7,496,437,987 | 97% | ||
rbalzan79 | 0 | 17,313,528,093 | 97% | ||
emiliomoron | 0 | 40,093,831,842 | 80% | ||
intellihandling | 0 | 2,371,027,791 | 48.5% | ||
hasenmann | 0 | 1,105,050,820 | 73.6% | ||
sunrawhale | 0 | 735,443,426 | 100% | ||
sjomeath | 0 | 5,663,289,040 | 97% | ||
suanky | 0 | 8,382,377,587 | 97% | ||
myscrible | 0 | 1,416,424,805 | 48.5% | ||
joelagbo | 0 | 15,918,838,358 | 97% | ||
atim1234 | 0 | 13,410,797,269 | 92% | ||
tolgahanuzun | 0 | 9,918,010,274 | 48.5% | ||
aplausos | 0 | 2,546,534,904 | 48.5% | ||
josevas217 | 0 | 107,261,416,378 | 97% | ||
muratkbesiroglu | 0 | 32,895,793,270 | 97% | ||
franyeligonzalez | 0 | 25,891,133,157 | 48.5% | ||
machnbirdsparo | 0 | 34,880,588,483 | 97% | ||
garybilbao | 0 | 8,345,827,437 | 97% | ||
cyemela | 0 | 29,123,313,399 | 100% | ||
kgakakillerg | 0 | 21,861,731,796 | 46% | ||
andrewharland | 0 | 527,733,837 | 97% | ||
fucho80 | 0 | 20,130,508,175 | 97% | ||
robmolecule | 0 | 39,040,646,953 | 30% | ||
retaliator | 0 | 749,808,146 | 4.85% | ||
crypto.piotr | 0 | 464,984,004,520 | 97% | ||
jjqf | 0 | 4,156,379,092 | 46% | ||
akdx | 0 | 46,380,510,799 | 97% | ||
nofamilan | 0 | 245,305,034 | 82.45% | ||
volkiceper | 0 | 14,375,672,528 | 97% | ||
solarwarrior | 0 | 31,424,996,591 | 97% | ||
goaceh | 0 | 163,158,973 | 48.5% | ||
hardaeborla | 0 | 16,190,743,486 | 97% | ||
eliorrios | 0 | 9,441,294,687 | 97% | ||
yougotavote | 0 | 2,284,682,228 | 97% | ||
haccolong | 0 | 12,119,141,958 | 29.1% | ||
pinedaocl | 0 | 858,795,473 | 97% | ||
nampvhn | 0 | 0 | 29.1% | ||
juanmolina | 0 | 19,074,319,196 | 97% | ||
bigpower | 0 | 25,504,947,476 | 18.4% | ||
coach.piotr | 0 | 301,407,442 | 100% | ||
cyrusemerson | 0 | 48,652,299,979 | 100% | ||
hoaithu | 0 | 1,062,840,009 | 26.19% | ||
vixmemon | 0 | 1,833,761,915 | 97% | ||
lebey1 | 0 | 331,218,660 | 97% | ||
rubenp | 0 | 3,490,566,392 | 97% | ||
riottales | 0 | 600,680,907 | 46% | ||
erica005 | 0 | 900,960,130 | 14.55% | ||
carlir | 0 | 18,663,812,410 | 97% | ||
anhvutuan | 0 | 0 | 29.1% | ||
lupafilotaxia | 0 | 27,099,311,662 | 100% | ||
anhvu | 0 | 1,172,952,103 | 26.19% | ||
lht | 0 | 0 | 29.1% | ||
alaiza | 0 | 6,475,626,149 | 100% | ||
reteem | 0 | 536,334,342 | 29.1% | ||
sumit71428 | 0 | 293,976,689 | 48.5% | ||
alokkumar121 | 0 | 113,523,341,838 | 97% | ||
ecoinstats | 0 | 19,072,236,879 | 100% | ||
unbiasedwriter | 0 | 195,921,804,344 | 24.25% | ||
creativeblue | 0 | 26,988,618,031 | 100% | ||
chucho27 | 0 | 25,235,219,531 | 97% | ||
janettyanez | 0 | 23,932,356,122 | 48.5% | ||
nonsowrites | 0 | 1,296,566,072 | 100% | ||
eccles | 0 | 695,356,390 | 48.5% | ||
buildingpies | 0 | 22,453,678,635 | 77.6% | ||
sugarsugar | 0 | 36,130,122 | 100% | ||
contest-w-bounty | 0 | 1,863,606,361 | 46% | ||
haclong | 0 | 0 | 29.1% | ||
vtanh | 0 | 0 | 14.55% | ||
mintymile | 0 | 5,300,670,971 | 100% | ||
reflektor | 0 | 2,748,278,032 | 18.4% | ||
bippe | 0 | 732,107,347,670 | 18.4% | ||
bambuka | 0 | 17,407,453,767 | 9.7% | ||
hingsten | 0 | 1,010,934,812,730 | 18.4% | ||
help.venezuela | 0 | 46,604,430,365 | 70% | ||
ninjacyber | 0 | 764,426,907 | 50% | ||
forplankton | 0 | 478,338 | 29.1% | ||
anhvu292 | 0 | 0 | 29.1% | ||
thuclh | 0 | 0 | 29.1% | ||
haccongtu | 0 | 0 | 29.1% | ||
humor0404 | 0 | 22,743,434,401 | 97% | ||
reeta0119 | 0 | 69,833,499,046 | 97% | ||
roadofrich | 0 | 2,267,263,381 | 4.85% | ||
kgswallet | 0 | 817,996,020 | 48.5% | ||
cannabiscafe | 0 | 132,650,424 | 48.5% | ||
inven.cu01 | 0 | 10,968,996 | 2.42% | ||
helengutier2 | 0 | 7,129,468,107 | 97% | ||
project.hope | 0 | 3,592,795,813,318 | 92% | ||
ghazi-12 | 0 | 150,407,188 | 48.5% | ||
bilpcointrain | 0 | 14,133,778 | 48.5% | ||
anhhermit | 0 | 0 | 29.1% | ||
thebom | 0 | 0 | 29.1% | ||
ph-fund | 0 | 106,694,732,928 | 92% | ||
ph-nominations | 0 | 505,996,849 | 100% | ||
sbdpotato | 0 | 6,969,428,957 | 48.5% | ||
calibrut | 0 | 0 | -10% | ||
ceazi | 0 | 0 | -10% | ||
herika | 0 | 0 | -10% | ||
zovioc | 0 | 0 | -10% | ||
awah | 0 | 68,863,112,024 | 87.3% | ||
maazmoid123 | 0 | 21,055,489,061 | 48.5% | ||
luckyali | 0 | 49,806,104,086 | 97% | ||
beargame | 0 | 47,835,290,333 | 46% | ||
hosseinrad | 0 | 5,404,521,607 | 97% | ||
diego1306 | 0 | 3,586,843,353 | 48.5% | ||
mccoy02 | 0 | 68,315,375,572 | 97% | ||
mandate | 0 | 6,355,052,469 | 100% | ||
lovveday | 0 | 494,184,438 | 1% | ||
ph-support | 0 | 1,048,698,286,064 | 97% | ||
daverobe | 0 | 24,085,154,516 | 48.5% | ||
qfamily | 0 | 663,616,798 | 92% | ||
herculeand | 0 | 474,060,667 | 48.5% | ||
great-a | 0 | 7,363,875,849 | 100% | ||
sammylinks | 0 | 2,487,429,476 | 97% | ||
eberechi10 | 0 | 61,299,277,549 | 48.5% | ||
graciee20 | 0 | 1,631,940,275 | 48.5% | ||
gifxlove | 0 | 5,955,720,876 | 97% | ||
steemgoon.cur | 0 | 46,108,929,032 | 35% | ||
rennyelias | 0 | 502,049,591 | 48.5% | ||
prolee | 0 | 6,368,882,507 | 48.5% | ||
curxx | 0 | 0 | 1% | ||
okoyeamaka11 | 0 | 119,189,566 | 97% | ||
ph-emergencyfund | 0 | 7,563,973,710 | 100% | ||
sebassv | 0 | 791,864,401 | 5% | ||
ebunoluwani | 0 | 239,067,386 | 48.5% | ||
sweetdreamsxo | 0 | 0 | 5% | ||
barh3line | 0 | 10,409,768,156 | 50% | ||
mbemba2310 | 0 | 22,799,825,357 | 97% | ||
carluis777 | 0 | 986,872,243 | 46% | ||
yh70 | 0 | 5,998,661,659 | 2% | ||
lennyblogs | 0 | 22,806,487,654 | 100% | ||
genx-miner | 0 | 157,430,714 | 100% | ||
jdavid53 | 0 | 139,491,517 | 23% | ||
blackking7 | 0 | 2,459,362,403 | 48.5% | ||
gabikay | 0 | 14,404,160,561 | 48.5% | ||
devotedman | 0 | 2,726,198,967 | 97% | ||
jennyvic09 | 0 | 8,517,738,303 | 97% | ||
greatideas | 0 | 2,508,814,249 | 97% | ||
steemfield | 0 | 678,945,822 | 4.85% | ||
chewayne90 | 0 | 213,645,824 | 46% | ||
logansteemit | 0 | 5,202,480,382 | 48.5% | ||
marivic1 | 0 | 190,815,667 | 48.5% | ||
grace2021 | 0 | 19,172,951 | 48.5% | ||
meekey41 | 0 | 852,375,026 | 48.5% | ||
wiltord | 0 | 1,604,693,652 | 48.5% | ||
funmiblog | 0 | 2,186,104,592 | 97% | ||
alibhatti | 0 | 20,276,457 | 14.55% | ||
zainsteemit | 0 | 133,535,922 | 48.5% | ||
msquaretk | 0 | 13,109,277,047 | 48.5% | ||
sampu | 0 | 150,011,888 | 48.5% | ||
msquaretwins | 0 | 13,516,938,406 | 100% | ||
zeehive | 0 | 137,282,434 | 48.5% | ||
wilosmith | 0 | 4,373,842,789 | 97% | ||
doohjane | 0 | 284,929,000 | 46% | ||
nabeeel | 0 | 1,007,915,847 | 9.7% | ||
abc.find | 0 | 0 | 1% | ||
denisga2021 | 0 | 127,925,093 | 46% | ||
udyliciouz | 0 | 2,614,219,271 | 48.5% | ||
a-kallis | 0 | 6,030,180,480 | 97% | ||
kendra237 | 0 | 475,614,514 | 46% | ||
jossyrose | 0 | 193,485,222 | 48.5% | ||
steempromoevent | 0 | 148,075,606 | 46% | ||
joemuknic | 0 | 88,668,082 | 97% | ||
utyalves | 0 | 52,251,536 | 46% | ||
lamba12 | 0 | 140,194,261 | 46% | ||
mm-writes | 0 | 208,126,758 | 48.5% | ||
geniusdg | 0 | 158,244,487 | 48.5% | ||
sidalim88 | 0 | 541,030,517 | 97% | ||
sheban | 0 | 123,566,115 | 46% | ||
kenneth00 | 0 | 714,379,486 | 97% | ||
manoad | 0 | 47,974,738 | 48.5% | ||
emma55 | 0 | 4,515,723,717 | 97% | ||
mtasha | 0 | 87,151,547 | 46% | ||
shugarken | 0 | 1,269,825,790 | 46% |
hi @qsyal I've small question related to liquidity pools and impermanent loss. I'm trying to wrap my head around it and based on my understanding: - currently price of RBS is 0.2$ - I would add my funds to liquidity pool (pair RBS-BUSD) in relation: 1000 usd / 1000 usd in that case I would need 5000 RBS tokens and 1000 usd worth od BUSD. Is that correct? ------- Now, what would happen if price of RBS would: a) scenario one: RBS would drop down to 0.1$ (50% drop) b) scenario two: RBS would go up to 0.4% (100% increase) I presume that the moment I exit liquidity pool, then I would end up still with 1000usd worth of BUSD, but amount of RBS tokens would be different. Now, my question is: how many RBS tokens would I have at the end of the day (depending on the scenario). Enjoy your weekend buddy, Yours, Piotr
post_id | 94,935,617 |
---|---|
author | crypto.piotr |
permlink | r1cw3n |
category | hive-139293 |
json_metadata | {"users":["qsyal"],"app":"steemit\/0.2"} |
created | 2021-10-22 01:57:30 |
last_update | 2021-10-22 01:57:30 |
depth | 1 |
children | 2 |
net_rshares | 0 |
last_payout | 2021-10-29 01:57:30 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 826 |
author_reputation | 125,570,865,859,056 |
root_title | "What you need to know about "impermanent loss"" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
Hi @crypto.piotr It all depends on the total value of the pool and your share (percentage portion) of it. So, let's facilitate the calculation process and suppose that the total value of the RBS-BUSD pool is $20000 and since you're providing 5000 RBS tokens and 1000 BUSD, then the dollar value of your share of the pool is $2000, i.e it represents 10% of the RBS-BUSD pool, right? We must also determine the pool constant which is the multiplied product of the supply of both tokens involved in the pool. In our hypothetical example, the RBS-BUSD pool is worth $20000 which would split up to: 50000 RBS ($10000) against 10000 BUSD($10000) So, the "pool constant" is: <code>50000*10000 = 500000000</code> Now, let's discuss the two scenarios separately: > a) scenario one: RBS would drop down to 0.1$ (50% drop) The pool constant would remain always the same, but the ratio of assets involved in the pool would change and in this particular case, the new ratio of the assets would make up: <code> 70710.67 RBS * 7071.067 BUSD= 500000000 </code> Your share is 10% of the pool. So, if you decided to withdraw your funds at this point, you would end up with <b>7071.067 RBS & 707.1067 BUSD</b> <i>Considering the new prices: 7071.067 RBS = $707.1067 707.1067BUSD= $707.1067 The total is $1414.21 However, if had not provided liquidity and simply held your assets in your wallet, you'd have ended with: 5000 RBS= $500 1000 BUSD= $1000 The total is $1500 So, the impermanent loss at this scenario is($1500-$1414.21= $85.79) caused by providing liquidity <br/><hr><br/> > b) scenario two: RBS would go up to 0.4% (100% increase) Again, the pool constant would remain always constant and the new ratio of the assets would make up in this particular scenario : <code> 35355.34 RBS * 14142.13 BUSD = 500000000 </code> Your share is 10% of the pool. So, if you decided to withdraw your funds at this point, you would end up with: <b> 3535.534 RBS & 1414.213BUSD </b> <i>Considering the new prices: 3535.534 RBS = $1414.213 1414.213 BUSD=$1414.213 The total is $2828.426 However, if had not provided liquidity and simply held your tokens in your wallet, you'd have ended with: 5000 RBS= $2000 1000 BUSD= $1000 The total is $3000 So, the impermanent loss at this scenario is($3000-$2828.426= $ 171.57) caused by providing liquidity ps, How to determine the new ratios of a pool requires solving some kinda complex mathematical equations that you can find [here](https://chainbulletin.com/impermanent-loss-explained-with-examples-math/) <br/><hr><br/> <b> Both scenarios are reversible if you don't withdraw and wait until your assets come back to their initial prices (that's why it's called "impermanent" ), but it also can become permanent if your assets never return to the initial prices. (RBS=$0.2 & BUSD= $1) </b> Finally, Please note that I haven't taken into account any fees gained from providing liquidity which may sometimes compensate for any losses. My goal was to shed light on "impermanent loss" as simply as I could. But if you are one of those people (like me) who love to go deep into the weeds, I highly recommend you to read these in-depth articles 🙂 https://chainbulletin.com/impermanent-loss-explained-with-examples-math/ https://academy.binance.com/en/articles/impermanent-loss-explained #### And if you have any further inquiries, I will be more than happy to reply 🙂 Enjoy your weekend :))
post_id | 94,961,320 |
---|---|
author | qsyal |
permlink | r1eof1 |
category | hive-139293 |
json_metadata | {"users":["crypto.piotr"],"links":["https:\/\/chainbulletin.com\/impermanent-loss-explained-with-examples-math\/","https:\/\/academy.binance.com\/en\/articles\/impermanent-loss-explained"],"app":"steemit\/0.2"} |
created | 2021-10-23 01:06:39 |
last_update | 2021-10-23 01:06:39 |
depth | 2 |
children | 1 |
net_rshares | 232,829,684,164 |
last_payout | 2021-10-30 01:06:39 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.053 SBD |
curator_payout_value | 0.054 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 3,434 |
author_reputation | 15,567,620,005,037 |
root_title | "What you need to know about "impermanent loss"" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
crypto.piotr | 0 | 232,829,684,164 | 54% |
Thanks @qsyal for this mindblowing and amazing reply
post_id | 95,098,624 |
---|---|
author | crypto.piotr |
permlink | r1o6lg |
category | hive-139293 |
json_metadata | {"users":["qsyal"],"app":"steemit\/0.2"} |
created | 2021-10-28 04:17:48 |
last_update | 2021-10-28 04:17:48 |
depth | 3 |
children | 0 |
net_rshares | 0 |
last_payout | 2021-11-04 04:17:48 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 52 |
author_reputation | 125,570,865,859,056 |
root_title | "What you need to know about "impermanent loss"" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |