-
Notifications
You must be signed in to change notification settings - Fork 215
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
feat(auction): allow orders to automatically exit after partial fill #7269
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #7269 +/- ##
==========================================
- Coverage 71.00% 70.64% -0.36%
==========================================
Files 451 448 -3
Lines 86424 85583 -841
Branches 3 3
==========================================
- Hits 61363 60464 -899
- Misses 24995 25051 +56
- Partials 66 68 +2
|
@@ -71,6 +73,7 @@ export const makeBidSpecShape = (currencyBrand, collateralBrand) => { | |||
return M.splitRecord( | |||
{ want: collateralAmountShape }, | |||
{ | |||
exitAfterBuy: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is exitAfterBuy: false
invalid?
if it truly is then make it the same in the TS type,
exitAfterBuy?: true,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you're right that the mistake is here. exitAfterBuy
is a boolean that defaults to false
.
48fca19
to
493b816
Compare
@turadg I added |
From the PR comment:
Did you mean "partially filled"? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the automerge label comment. This does look mergable to me, modulo resolving conflicts
Yes. Corrected. |
2cc2dc0
to
149f0ba
Compare
closes: #7088
Description
Allow Auction bids to add an offerArgs parameter that says the seat should be exited if the offer is partially filled.
Security Considerations
None
Scaling Considerations
None.
Documentation Considerations
One more detail for the bidding UI and CLI.
Testing Considerations
Well tested.