-
Notifications
You must be signed in to change notification settings - Fork 589
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
fix: missing swap event for cw pool #7938
Conversation
WalkthroughThe recent updates focus on enhancing swap event reporting in CW pools by ensuring that these events are emitted at the pool module level rather than the pool manager module. This adjustment allows for more accurate and specific event tracking across different pool modules, improving transparency and functionality. The changes span several files, introducing and modifying the event emission process to align with the new approach. Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
I think this is fine for now, to avoid unexpected consequences of moving the event to poolmanager. But I do think this should be moved to the poolmanager in the future, as that seems like the right spot for it. If we could get this into v24, that would be great |
* fix: missing swap event for cw pool * changelog (cherry picked from commit c99b1c7)
* fix: missing swap event for cw pool * changelog (cherry picked from commit c99b1c7) Co-authored-by: Roman <[email protected]>
Closes: #XXX
What is the purpose of the change
Numia team has a problem tracking swap events for a CW pool. The reason is that the event is missing.
Context: https://osmosis-network.slack.com/archives/C04M8FQ5Y2G/p1712020788660349
While there is a workaround that they can implement, it would be a hack looking for events at another layer of abstraction.
I propose adding this change to the v24 scope. The core of the change is emitting the swap event in
x/cosmwasmpool
.I evaluated the option of emitting this at the poolmanager layer. However, given that we have many swap APIs, it would take some careful effort to make sure that nothing is missed. Given the above, it is cleaner and less risky to simply add the event at the
x/cosmwasmpool
level.Given that events are now state breaking, it is important to account for the above risks.
Documentation and Release Note
Unreleased
section ofCHANGELOG.md
?Where is the change documented?
x/{module}/README.md
)Summary by CodeRabbit