Closed SonOfMosiah closed 1 year ago
this will be resolved, I am rewriting the darwin contract and inheriting from erc20
@kingofclubstroyDev I see the pull request for the new darwin token contract. Are we still planning on importing OZ erc20?
it inherits from a an erc20 contract that has an additional set balances function
I see. The import is in Tokenomics2.sol.
Can we close this with the new contract implemented?
@SonOfMosiah @thesios
When an account attempts to transfer more Darwin than their balance, there is an underflow with panic code 0x11.
This will revert the call which is intended functionality, but it's an error to have an underflow. We should catch this error before it occurs with either a require statement or custom error.