Skip to content
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

Chore: more dex event attributes #707

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jcompagni10
Copy link
Contributor

@jcompagni10 jcompagni10 commented Sep 3, 2024

Add additional dex event attributes for better indexing (p2p) and frontend integration.

PlaceLimitOrder:
SwapAmountIn
SwapAmountOut
WithdrawFilledLimitOrder:
TokenInAmountOut
TokenOutAmountOut
(matches CancelLimitOrder)

Also adds new TrancheUserUpdateEvent

pr0n00gler
pr0n00gler previously approved these changes Sep 4, 2024
Comment on lines 229 to 248
sdk.NewAttribute(AttributeTokenInAmountOut, amountOutMaker.String()),
sdk.NewAttribute(AttributeTokenOutAmountOut, amountOutTaker.String()),
sdk.NewAttribute(AttributeTokenInAmountOut, amountOutMaker.String()),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think changes in the order of events can bring a lot of confusion for indexers.

Maybe we should keep the same order for them?

@pr0n00gler pr0n00gler dismissed their stale review September 6, 2024 14:31

see comments above about events order

@jcompagni10
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants