Skip to content

Commit

Permalink
fix (#20)
Browse files Browse the repository at this point in the history
* fix: don't send tx if max position is 0

* fix: bar short
  • Loading branch information
soundsonacid authored Jan 15, 2024
1 parent 5515748 commit 63ffefd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/sdk/jit_proxy/jitter/jitter_shotgun.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ async def try_fill():
self.logger.info(f"Trying to fill {order_sig} -> Attempt: {i + 1}")

try:
if params.max_position == 0:
if params.max_position == 0 and params.min_position == 0:
break

sig = await self.jit_proxy_client.jit(
Expand Down
2 changes: 1 addition & 1 deletion python/sdk/jit_proxy/jitter/jitter_sniper.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ async def try_fill():

for _ in range(3):
try:
if params.max_position == 0:
if params.max_position == 0 and params.min_position == 0:
break

tx_sig_and_slot = await self.jit_proxy_client.jit(
Expand Down

0 comments on commit 63ffefd

Please sign in to comment.