DappHub Multiply Function
up vote
1
down vote
favorite
Could someone explain the use of performing a multiplication such as this? I mean the logic is fine, but what is the importance from a security point of view? function mul(uint x, uint y) internal pure returns (uint z) { require(y == 0 || (z = x * y) / y == x, "ds-math-mul-overflow"); } This is from the dapphub library. I have included the link herewith: https://github.com/dapphub/ds-math/blob/master/src/math.sol
ether erc-20 security
share | improve this question
edited Nov 26 at 5:43
...