weijiekoh / mixer

MicroMix: A noncustodial Ethereum mixer
https://micromix.app
GNU General Public License v3.0
92 stars 16 forks source link

Support 'bad' ERC20 tokens #1

Open Brechtpd opened 4 years ago

Brechtpd commented 4 years ago

Using the ERC20 interface directly in solidity will give issues with some ERC20 token contracts because they were not correctly implemented. The list of badly implemented tokens is quite big (and not just obscure tokens) so some additional code to work around this issue is used in most contracts that do calls on ERC20 contracts. It's not a lot of code so it may make sense to do the same in this project.

weijiekoh commented 4 years ago

Thank you! I believe a good way for me to fix this is to use:

https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/SafeERC20.sol