Skip to content

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

Merged
d10r merged 2 commits intodevfrom
pool-transfer-events
Jan 20, 2025
Merged

[ETHEREUM-CONTRACTS] emit Transfer event in updateMemberUnits()#2051
d10r merged 2 commits intodevfrom
pool-transfer-events

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.

@github-actions
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
@github-actions
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