Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

division by zero #55

Open
jorisbontje opened this issue Sep 12, 2016 · 1 comment
Open

division by zero #55

jorisbontje opened this issue Sep 12, 2016 · 1 comment
Labels

Comments

@jorisbontje
Copy link
Contributor

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

@rainbreak
Copy link
Contributor

I think that upgrading to 0.4 (#57) and using a pragma is sufficient here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants