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

[ETHEREUM-CONTRACTS] emit Transfer event in updateMemberUnits() #2051

Merged
merged 2 commits into from
Jan 20, 2025

Conversation

d10r
Copy link
Collaborator

@d10r d10r commented Jan 14, 2025

Problem: now that the pools have proper ERC20 metadata, we also want tooling like explorers to properly render the token state.
Since explorers heavily rely on the Transfer event as trigger for balance updates, it becomes a problem that updateMemberUnits doesn't emit them. This PR changes that.

updateMemberUnits to a higher than previous amount is effectively a mint, thus a transfer from zero to the member.
updateMemberUnits to a lower than previous amount is effectively a burn, thus a transfer from the member to zero.

Already deployed to base-sepolia for test purposes.

Copy link

github-actions bot commented Jan 14, 2025

Changelog Reminder

Reminder to update the CHANGELOG.md for any of the modified packages in this PR.

  • CHANGELOG.md modified
  • Double check before merge

@d10r d10r marked this pull request as ready for review January 15, 2025 08:50
@d10r d10r requested a review from hellwolf as a code owner January 15, 2025 08:50
@d10r
Copy link
Collaborator Author

d10r commented Jan 15, 2025

the "fix" is working for etherscan: https://sepolia.basescan.org/token/0xbff63599fdf8b5225c98ee8767c1f177104ae8ec

@d10r d10r merged commit b86ec54 into dev Jan 20, 2025
18 checks passed
@d10r d10r deleted the pool-transfer-events branch January 20, 2025 20:55
Copy link

XKCD Comic Relif

Link: https://xkcd.com/2051
https://xkcd.com/2051

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