-
Notifications
You must be signed in to change notification settings - Fork 123
liquidity: default to slow swaps for autloop #933
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
0c128e7 to
693d3a4
Compare
sputn1ck
left a comment
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.
LGTM! Thanks for the quick fix
| initiator += "-" + assetSwap.assetID | ||
| } | ||
|
|
||
| var swapPublicationDeadline time.Time |
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 this should be initialized as time.Now(), as now if you have set FastSwapPublication it will just be time.Time{}
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 the end-result is the same, we just want something that's presumably in the past. With that in mind the value should not matter and can just be empty for simplicity. wdyt?
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.
That makes sense, thanks for the explanationj
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.
Looks good. But shouldn't we preserve the old default behavior of fast swaps and add the defaultPublicationDeadline as the configurable option, just so to not interrupt expectations of current auto-loop users?
Pull Request Checklist
release_notes.mdif your PR contains major features, breaking changes or bugfixes