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

Include list of non-standard ERC20 tokens #269

Merged
merged 6 commits into from
Feb 23, 2024
Merged

Conversation

0xPhaze
Copy link
Contributor

@0xPhaze 0xPhaze commented Apr 7, 2023

Addresses #68

@0xPhaze
Copy link
Contributor Author

0xPhaze commented Apr 7, 2023

Actually not sure if this should be moved to another section... any thoughts?

@montyly
Copy link
Member

montyly commented Apr 9, 2023

Yes, I think this should be moved to a separate page.

I think we can have separate section per type of issue, and we should list the tokens following an order (alphabetical maybe?)


## Missing Revert

These tokens do not revert when a transfer fails due to missing funds. Protocols that integrate these tokens must include a check for the transfer success status in the function's return value and handle the failure case appropriately.

Choose a reason for hiding this comment

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

May be worth highlighting specifically that these tokens return booleans that represent success/failure, which is why the return value has to be checked


## Transfer Hooks

These tokens include [ERC777](https://eips.ethereum.org/EIPS/eip-777)-like transfer hooks. Protocols that interact with tokens that include transfer hooks must be extra careful to protect against reentrant calls when dealing with these tokens, because control is handed back to the caller upon transfer. This can also affect cross-protocol reentrant calls to `view` functions.

Choose a reason for hiding this comment

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

This can also affect cross-protocol reentrant calls to view functions.

which can result in dirty reads?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What do you mean by "dirty reads"?

@montyly montyly merged commit cbd0ddc into master Feb 23, 2024
2 of 3 checks passed
@montyly montyly deleted the non-standard-erc20-list branch February 23, 2024 13:25
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.

3 participants