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

Create helpers for non standard and edge case of erc20 #20

Open
montyly opened this issue Mar 27, 2023 · 1 comment
Open

Create helpers for non standard and edge case of erc20 #20

montyly opened this issue Mar 27, 2023 · 1 comment

Comments

@montyly
Copy link
Member

montyly commented Mar 27, 2023

Which would cover everything in https://github.com/crytic/building-secure-contracts/blob/master/development-guidelines/token_integration.md#erc20-tokens, plus other edge cases we are aware of

The idea would be to have helpers to ease the integration of erc20 edge case, like

import "@crytic/properties/contracts/util/erc20/erc20.sol";

Which would include :

  • All the different ERC20
  • all_erc20_standard() returns ( IERC20[] memory) - returns all standards token deployed, and converted to IERC20 object (or a similar name)
  • all_erc20_non_standard() returns ( IERC20[] memory) - returns all non-standard token deployed, and converted to IERC20 object (or a similar name)
  • all_erc20() returns ( IERC20[] memory) - returns all tokens deployed, and converted to IERC20 object (or a similar name)
@0xPhaze
Copy link

0xPhaze commented Apr 7, 2023

https://github.com/d-xo/weird-erc20#tokens provides a good list of non-standard ERC20 token that should be integrated

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

No branches or pull requests

2 participants