Skip to content

Conversation

c9s
Copy link
Owner

@c9s c9s commented Oct 16, 2024

No description provided.

@bbgokarma-bot
Copy link

Welcome back! @c9s, This pull request may get 286 BBG.

@c9s c9s enabled auto-merge October 16, 2024 03:44
@bbgokarma-bot
Copy link

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) {
Copy link
Collaborator

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?

@c9s c9s merged commit 770f981 into main Oct 16, 2024
3 checks passed
@c9s c9s deleted the c9s/xmaker/improvements2 branch October 16, 2024 03:56
@bbgokarma-bot
Copy link

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!

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.

4 participants