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

events: record EventPositionClose when closing positions manually #4779

Merged
merged 1 commit into from
Jul 31, 2024

Commits on Jul 30, 2024

  1. events: record EventPositionClose when closing positions manually

    There are currently two ways for a position to get closed:
    
      1. automatically by the DEX, for an auto-close position,
      2. at the end of the block, after being *queued* for closure in the in
         the action handler.
    
    For 2., we weren't emitting the event.
    This commit changes things so that we do, in fact, emit the event
    in this case, for a position that has not yet been closed.
    cronokirby committed Jul 30, 2024
    Configuration menu
    Copy the full SHA
    8f21737 View commit details
    Browse the repository at this point in the history