From 2a9b7b47db6bd64c1f9c724aa9de27d3c7b9e356 Mon Sep 17 00:00:00 2001 From: poliwop Date: Mon, 23 Sep 2024 13:03:55 -0500 Subject: [PATCH] Fixed calculate_remove_liquidity so it always returns nft_ids --- hydradx/model/amm/omnipool_amm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hydradx/model/amm/omnipool_amm.py b/hydradx/model/amm/omnipool_amm.py index 3602b69b..b5d5070b 100644 --- a/hydradx/model/amm/omnipool_amm.py +++ b/hydradx/model/amm/omnipool_amm.py @@ -906,7 +906,7 @@ def calculate_remove_liquidity(self, agent: Agent, quantity: float = None, tkn_r if quantity is not None: if nft_id is None: # remove specified quantity of shares from holdings k = (self.unique_id, tkn_remove) - return self._calculate_remove_one_position( + delta_qa, delta_r, delta_q, delta_s, delta_b, delta_l = self._calculate_remove_one_position( quantity=quantity, tkn_remove=tkn_remove, share_price=agent.share_prices[k] ) else: # remove specified quantity of shares from specified position