ERC20Helpers is a repo with utilities for interacting with ERC20 tokens.
SafeERC20
is a library that standardizes the behaviors of all commonly used implementations. It contains overridden functions so that both addresses andIERC20
interfaces can be used.MockERC20
is a contract that can be used in testing for a fully functional ERC20 token that has mint functionality.IERC20
is an interface for interacting with ERC20 tokens that contains permit functionality.
git clone [email protected]:marsfoundation/erc20-helpers.git
cd erc20-helpers
forge install
To run the tests, do the following:
forge test
These contracts were inspired by and/or directly modified from the following sources:
- Maple Finance (this repo was forked from Maple Finance's repo).
- Solmate
- OpenZeppelin
- Uniswap-v3
The IP in this repository was assigned to Mars SPC Limited in respect of the MarsOne SP