Skip to content

Conversation

@d10r
Copy link
Collaborator

@d10r d10r commented Oct 16, 2025

What & Why

Many indexers (e.g. explorers) rely on the ERC20 Transfer event
a) for managing the set of token holders,.
b) for triggering a balance calculation
With SuperTokens, that can lead to accounts receiving via flows or distributions to remain invisible, and for the balance to never be updated.

How

By emitting Transfer events, we shall be able to somewhat mitigate this issues:
a) by emitting a Transfer event when creating a flow or assigning pool units, the receiving account is included in the set of token holders to be considered
b) by emitting a Transfer event when deleting a flow or resetting pool units, some indexers may trigger a balance check and thereby update the account balance to the correct number

Other

Also bumped version to 1.14.0 as this may be the last PR before release.

@github-actions
Copy link

github-actions bot commented Oct 16, 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

@hellwolf hellwolf marked this pull request as ready for review October 20, 2025 12:11
@hellwolf hellwolf self-requested a review as a code owner October 20, 2025 12:11
@hellwolf
Copy link
Contributor

Question: why does _transferFrom trigger Approval Event?

Is it from the original OZ old code base of ERC777/ERC20

@d10r d10r requested a review from kasparkallas as a code owner October 22, 2025 08:36
@codecov
Copy link

codecov bot commented Oct 22, 2025

Codecov Report

❌ Patch coverage is 93.75000% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...greements/gdav1/GeneralDistributionAgreementV1.sol 75.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

Copy link
Contributor

@hellwolf hellwolf left a comment

Choose a reason for hiding this comment

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

lgtm

@hellwolf
Copy link
Contributor

to address #2115 too

@hellwolf hellwolf linked an issue Oct 22, 2025 that may be closed by this pull request
@d10r d10r changed the title [WIP] emit Transfer event on flow create/delete and units changing from/to 0 [ETHEREUM-CONTRACTS] emit Transfer event on flow create/delete and units changing from/to 0 Oct 22, 2025
@d10r
Copy link
Collaborator Author

d10r commented Oct 24, 2025

Question: why does _transferFrom trigger Approval Event?

Is it from the original OZ old code base of ERC777/ERC20

answered here

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.

[PROTOCOL] don't emit Approval in transferFrom

3 participants