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

add receiver address for OrderRecord event #8

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

Conversation

Umiiii
Copy link

@Umiiii Umiiii commented Jan 16, 2025

What

Add the receiver address field to the OrderRecord event.

Why

Currently, when a swap occurs, an OrderRecord event is emitted. However, the event does not include the receiver address, making it difficult to trace or verify the recipient of the swap. This addition ensures the event captures complete transaction details, improving transparency and debugging capabilities.

Related Issue

Fixes #7

PR Checklist

  • Tests
    • Doesn't apply
  • Documentation
    • Updated inline comments

…action parameters; update OrderRecord event emission for receiver address
@bixia bixia self-assigned this Jan 16, 2025
Copy link
Collaborator

@bixia bixia left a comment

Choose a reason for hiding this comment

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

we have 4 place to modify:

  1. emit OrderRecord(
  2. emit OrderRecord(reversed ? _WETH : _ETH, reversed ? _ETH: _WETH, msg.sender, amount, amount);
  3. 0x1bb43f2da90e35f7b0cf38521ca95a49e68eb42fac49924930a5bd73cdf7576c
  4. function _emitEvent(

…outer; modify log entries in UnxswapRouter and UnxswapV3Router to reflect new event signature
@Umiiii Umiiii requested a review from bixia January 16, 2025 08:05
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.

For OrderRecord event 'receiver' is missing
2 participants