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

feat: add sender to deposit and withdraw events #14

Merged
merged 1 commit into from
May 3, 2024

Conversation

stevenvaleri
Copy link
Contributor

include the msg.sender in the deposit and withdraw events.

rename the "user" from the withdraw event to the "receiver" to be more consistent

add event tests

event Deposit(address indexed receiver, address indexed token, uint256 amount);
event Withdraw(address indexed user, address indexed token, uint256 amount);
event Deposit(address indexed depositor, address indexed receiver, address indexed token, uint256 amount);
event Withdraw(address indexed withdrawer, address indexed receiver, address indexed token, uint256 amount);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't love "withdrawer" since it's not a word that is too commonly used, but it maps nicely with depositor.

Copy link
Contributor

@jparklev jparklev May 3, 2024

Choose a reason for hiding this comment

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

that is weird how there isn't an obvious complement to depositor but yea seems fine to me

Copy link
Contributor

Choose a reason for hiding this comment

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

@stevenvaleri stevenvaleri requested a review from jparklev May 3, 2024 00:09
Copy link
Contributor

@jparklev jparklev left a comment

Choose a reason for hiding this comment

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

LGTM. Up to u on withdrawer/depositer vs caller

@stevenvaleri
Copy link
Contributor Author

Going to leave as is.

@stevenvaleri stevenvaleri merged commit f75f9a5 into main May 3, 2024
2 checks passed
@stevenvaleri stevenvaleri deleted the feat/add-sender-to-events branch May 3, 2024 20:04
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