Skip to content

Commit

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

* fix: bar short

* chore: change MustPostOnly to TryPostOnly
  • Loading branch information
soundsonacid authored Jan 15, 2024
1 parent 2b9e2c5 commit 0f1e20b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions python/sdk/jit_proxy/jit_proxy_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,5 @@ def get_post_only(self, post_only: PostOnlyParams):
return self.program.type["PostOnlyParam"].MustPostOnly()
elif is_variant(post_only, "TryPostOnly"):
return self.program.type["PostOnlyParam"].TryPostOnly()
else:
return getattr(self.program.type["PostOnlyParam"], 'None')()
elif is_variant(post_only, "Slide"):
return self.program.type["PostOnlyParam"].Slide()
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 @@ -73,7 +73,7 @@ async def try_fill():
params.price_type,
referrer_info,
params.sub_account_id,
PostOnlyParams.MustPostOnly(),
PostOnlyParams.TryPostOnly(),
)
)

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 @@ -192,7 +192,7 @@ async def try_fill():
params.price_type,
referrer_info,
params.sub_account_id,
PostOnlyParams.MustPostOnly(),
PostOnlyParams.TryPostOnly(),
}
)

Expand Down

0 comments on commit 0f1e20b

Please sign in to comment.