-
-
Notifications
You must be signed in to change notification settings - Fork 296
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
FEATURE: [xalign] add withdraw detection #1678
Conversation
Welcome back! @c9s, This pull request may get 414 BBG. |
Re-estimated karma: this pull request may get 435 BBG |
WithdrawStateConfirmed WithdrawState = "confirmed" | ||
WithdrawStatePending WithdrawState = "pending" | ||
WithdrawStateProcessing WithdrawState = "processing" | ||
WithdrawStateCanceled WithdrawState = "canceled" |
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.
Is this keyword defined by Max because it lacks an "l" and is different from another definition below?
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.
Yes they are max only
@@ -391,6 +419,14 @@ func (s *Strategy) align(ctx context.Context, sessions map[string]*bbgo.Exchange | |||
} | |||
} | |||
|
|||
foundActiveTransfer, err := s.detectActiveTransfers(ctx, sessions) | |||
if err != nil { | |||
log.WithError(err).Errorf("unable to check active transfers") |
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.
What do you think skipping aligning if any error happens?
Hi @c9s, Well done! 460 BBG has been sent to your polygon wallet. Please check the following tx: https://polygonscan.com/tx/0xfa8cf73ec2382103077c86164525dea6a7fd86d59897613680fa2f9625daa9dc Thank you for your contribution! |
No description provided.