Closed bh2smith closed 4 years ago
Hi @bh2smith! Thanks for the suggestion, it is really appreciated.
The project owner has linked to #2167 which should address this suggestion.
The project owner has linked to #2167 which should address this suggestion.
Yes it does thanks. That along with the fact that ERC20Detailed
has been recently merged into ERC20
should be exactly what I was hoping for.
🧐 Motivation When testing or scripting with smart contracts involving arithmetic between multiple ERC20 tokens (like an Exchange) it can be very useful to have access to a
DetailedMintableERC20
which is both aMintableERC20
andDetailedERC20
so that tokens can be minted for deposit, withdraw etc... while having access to relevant values such as number of decimals (for computing exchange rates and such). The above described example is already use in both gnosis/dex-contracts here and gnosis/dex-liquidity-provision here (soon to be more).📝 Details This simple feature should amount to the introduction of a new contract that is both Mintable and Detailed ERC20
Example implementations could be either of: