Skip to content

Commit

Permalink
fix: amm service method
Browse files Browse the repository at this point in the history
  • Loading branch information
cdummett committed Aug 12, 2024
1 parent 9d0ff57 commit 2f53b61
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions vega_sim/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -4150,9 +4150,9 @@ def cancel_amm(
def list_amms(
self,
market_id: Optional[str] = None,
party_id: Optional[str] = None,
amm_key_name: Optional[str] = None,
amm_wallet_name: Optional[str] = None,
amm_party_id: Optional[str] = None,
key_name: Optional[str] = None,
wallet_name: Optional[str] = None,
status: Optional[vega_protos.events.v1.events.AMM.Status.Value] = None,
) -> List[data.AMM]:
return data.list_amms(
Expand All @@ -4161,11 +4161,11 @@ def list_amms(
asset_decimals_map=self.asset_decimals,
market_to_asset_map=self.market_to_asset,
market_id=market_id,
party_id=party_id,
amm_party_id=(
self.wallet.public_key(name=amm_key_name, wallet_name=amm_wallet_name)
if amm_key_name is not None
party_id=(
self.wallet.public_key(name=key_name, wallet_name=wallet_name)
if key_name is not None
else None
),
amm_party_id=amm_party_id,
status=status,
)

0 comments on commit 2f53b61

Please sign in to comment.