-
-
Notifications
You must be signed in to change notification settings - Fork 345
FEATURE: [xmaker] support delayed hedge #1780
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
Conversation
Welcome back! @c9s, This pull request may get 286 BBG. |
Re-estimated karma: this pull request may get 291 BBG |
@@ -1027,7 +1064,7 @@ func (s *Strategy) tryArbitrage(ctx context.Context, quote *Quote, makerBalances | |||
return false, nil | |||
} | |||
|
|||
if qty.IsZero() { | |||
if qty.IsZero() || s.makerMarket.IsDustQuantity(qty, sumPv.Price) { |
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.
Does qty.IsZero()
become redundant? Or qty.IsZero()
is a faster route for most cases?
Hi @c9s, Well done! 306 BBG has been sent to your polygon wallet. Please check the following tx: https://polygonscan.com/tx/0x7a7c0d562f9e5c5005e115c3150f467d977a06354acc4004648867391be23981 Thank you for your contribution! |
No description provided.