Skip to content

Emit anchor events#184

Open
alex-miao wants to merge 6 commits intoproject-serum:masterfrom
CLBExchange:emit-anchor-events
Open

Emit anchor events#184
alex-miao wants to merge 6 commits intoproject-serum:masterfrom
CLBExchange:emit-anchor-events

Conversation

@alex-miao
Copy link

Emit Anchor events to add timestamps to fill and out events.

.push_back(Event::new(maker_fill))
.map_err(|_| DexErrorCode::EventQueueFull)?;

emit!(maker_fill.to_fill_event()?);
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be acceptable to move all event emissions to consume_events? It's possible this breaks existing composers that are already running tight on compute units.

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