-
Notifications
You must be signed in to change notification settings - Fork 618
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
x/gamm: test that swap and LP events are emitted #1942
Comments
I have some progress started here: https://github.com/osmosis-labs/osmosis/tree/roman/gamm-events |
@mattverse following up on your comment in one of the gamm event PRs. After doing some investigation, I think we should not move the logic for emitting swap and liquidity events to the message server. The reason is that some gamm keeper methods might be called from other modules. For example, superfluid: osmosis/x/superfluid/keeper/unpool.go Line 60 in 4970f16
If we were emitting events in the message server, the remove liquidity event would not be emitted. Therefore, I think it makes sense to keep the locations as is and thoroughly test. |
good point! Agreed 😎 |
Pretty sure this got completed! |
Background
Currently, our tests are missing assertions about events. Moreover, it seems that some of our events are missing based on #1939
Therefore, this issue is twofold:
Acceptance Criteria
The text was updated successfully, but these errors were encountered: