Skip to content

Commit

Permalink
changed so that HDX also moves with the market, not just TKN2
Browse files Browse the repository at this point in the history
  • Loading branch information
jepidoptera committed Jul 10, 2023
1 parent 8023d7e commit 9df9714
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"metadata": {},
"source": [
"<H1>Changing price of other assets</H1>\n",
"In this notebook, an LP holds TKN while we change the price of TKN2, comprising 80% of TVL. The different colors represent the IL resulting from different initial weights of TKN2. We can see that during a bull run (where TKN goes up in price, but TKN2 doesn't) impermanent loss is worse, because the share of TKN2 in the pool decreases. "
"In this notebook, an LP holds TKN while we change the price of TKN2 and HDX, together comprising 85% of TVL. The different colors represent the IL resulting from different initial weights of TKN2. We can see that during a bull run (where TKN goes up in price, but TKN2 doesn't) impermanent loss is worse, because the share of TKN2 in the pool decreases. "
]
},
{
Expand Down Expand Up @@ -147,7 +147,7 @@
" }\n",
"\n",
" events.append([])\n",
" other_assets = ['TKN']\n",
" other_assets = ['TKN', 'HDX']\n",
" for price in price_move_range:\n",
" price_list = [\n",
" {tkn: initial_state.external_market[tkn] for tkn in other_assets}, \n",
Expand Down

0 comments on commit 9df9714

Please sign in to comment.