-
Notifications
You must be signed in to change notification settings - Fork 19
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
Record swap fee amount in Recovery Mode #1096
Conversation
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.
Great job, LGTM!
Thanks again @dmitriia! 🙌
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.
One more late 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.
Cool! LGTM!
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!
Description
The raw swap fee amount should be emitted in the Swap event, even in Recovery Mode. This is a true edge case, since normally pools in Recovery Mode would also be paused, but in case Recovery Mode was enabled separately - and swaps still worked - the Swap event will now report it. (Even though protocol and pool creator fees aren't charged in recovery mode, swap fees still apply.)
Credits to @dmitriia for the finding.
Type of change
Checklist:
main
, or there's a description of how to mergeIssue Resolution
Resolves #1092