Hacker News new | past | comments | ask | show | jobs | submit login

Is there a reason you didn't use the SafeMath library for protecting against overflows?

https://ethereumdev.io/safemath-protect-overflows/




My guess is that, in the spirit of all Ethereum Crapcoins, it's been coded with minimum attention to security and maximum attention to marketing.


We just used the erc20 template from the ethereum wiki.

It looks useful although for the people that do want to understand how the contract works it adds complexity to the codebase itself.

I definitely would use it for more complex smart contracts, but this one is meant to be easy and educational (like the whole app).


Looks like it's just doing overflow checking inline ( "require(balanceOf[_to] + _value > balanceOf[_to])", for instance).




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: