-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Model stableswap il #147
Model stableswap il #147
Conversation
…ppropriate arb trade. It now fails.
…turning a mutated copy
# Conflicts: # hydradx/model/amm/stableswap_amm.py # hydradx/model/amm/trade_strategies.py
# Conflicts: # hydradx/model/amm/trade_strategies.py
…stableswap-IL # Conflicts: # hydradx/model/amm/stableswap_amm.py # hydradx/model/amm/trade_strategies.py
…turning a mutated copy
…creates a new object
…eck in trade_strategy.execute fails)
…g tests to fail and is out of scope
# Conflicts: # hydradx/model/amm/global_state.py # hydradx/model/amm/stableswap_amm.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something went wrong with the recent merge, neither of these notebooks seem to work.
It looks like ImpermanentGainAttack.ipynb just wasn't updated to account for the refactor, but I don't see the function called in ImpermanentLossAnalysis.ipynb anywhere?
" for trade_size in trade_sizes:\n", | ||
" lp_state, lp_agent = initial_state.copy(), initial_agent.copy()\n", | ||
" for tkn in initial_agent.asset_list:\n", | ||
" StableSwapPoolState.execute_add_liquidity(\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This notebook doesn't work with the refactor.
"\n", | ||
" for event in events:\n", | ||
" # agent withdraws assets in equal proportion\n", | ||
" StableSwapPoolState.execute_remove_uniform(\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function doesn't appear to exist in this branch?
No description provided.