Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

program: add buffer before limit tif can be expired #551

Merged
merged 11 commits into from
Jul 25, 2023

Conversation

crispheaney
Copy link
Member

The purpose of this pr is:

  • save gas for fillers
  • reduce wasted blockspace

if you look at drift tx, lots of tx are fillers trying to expire market maker tif limit orders and failing. mm tif limit orders are already expired if a taker tries to take them OR if a maker updates their orders, so having an extra place where fillers try to aggressively expire them isn't necessary. The buffer is added so that fillers only cancel limit tif orders when mm has failed to expire them themselves

@crispheaney crispheaney merged commit 3d790e2 into master Jul 25, 2023
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant