Skip to content

Commit

Permalink
Removed commented out function
Browse files Browse the repository at this point in the history
  • Loading branch information
poliwop committed Sep 11, 2024
1 parent 74291d7 commit 0d2b83a
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions hydradx/model/amm/omnipool_amm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1099,17 +1099,6 @@ def add_liquidity(
self.current_block.lps[tkn_add] += quantity

return self

# def remove_all_liquidity(self, agent: Agent, tkn_remove: str):
# agent_assets = list(agent.holdings.keys())
# for k in agent_assets:
# if len(k) > 1 and k[1] == tkn_remove:
# k_split = k[0].split("_")
# if len(k_split) == 1:
# self.remove_liquidity(agent, agent.holdings[k], tkn_remove)
# elif k[0].split("_")[0] == self.unique_id:
# self.remove_liquidity(agent, agent.holdings[k], tkn_remove, int(k[0].split("_")[1]))
# return self

def remove_liquidity(self, agent: Agent, quantity: float = None, tkn_remove: str = '', nft_id: str = None):
"""
Expand Down

0 comments on commit 0d2b83a

Please sign in to comment.