Open jorisbontje opened 8 years ago
pre Solidity 0.4, division by zero returns 0 instead of throwing. we might want to assert divisors to be > 0, such as https://github.com/makerdao/token-auction/blob/master/contracts/auction.sol#L213
I think that upgrading to 0.4 (#57) and using a pragma is sufficient here.
pre Solidity 0.4, division by zero returns 0 instead of throwing. we might want to assert divisors to be > 0, such as https://github.com/makerdao/token-auction/blob/master/contracts/auction.sol#L213