Skip to content
This repository has been archived by the owner on Jun 13, 2019. It is now read-only.

prevent overflow in RootChain.sol deposit #101

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yoheioka
Copy link

Exploit scenario:
user calls deposit() with amount set as 115792089237316195423570985008687907853269984665640564039458 but only sends 415992086870360064 wei.

An alternative solution would be to use the SafeMath library.

I don't have time to do it at the moment, but unit tests for the contracts should be added as well

@boolafish
Copy link
Contributor

Sorry for late response. However, I don't know do I have time or resource to fix this repo now or not, I am guessing some dependency updated and the tests starts to fail. Once I got time to fix this I will merge this.

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

Successfully merging this pull request may close these issues.

2 participants