-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERC 20 Bridge Withdraws to Ethereum: Improving Security / Safety #293
Comments
The alternative solution would be a fee on transfer mechanism in which transfers exceeding a calculated value / constant value (eg % of total floating supply) would incur a “surcharge”. the issue with that approach is composability from an integrator viewpoint |
Incurring a surcharge wouldn't stop the attack. The attack could still proceed. |
I have implemented the changes in a fork of this repo and written a threat model in preparation for external contract audit. The threat model explains my thinking more clearly. |
ERC 20 Bridges / withdraws to Ethereum: To withdraw a token to Ethereum, the withdrawal contract on Ethereum is RootERC20Predicate. At present, this contract has the following features:
I suggest the creation of an extension to RootERC20Predicate that does the following:
The goal of all of the suggestions is to have a way for us to slow down / stop an in progress attack.
Maybe the new contract could be called RootERC20PredicateLimits.
I am happy to commence work on this. However, before I start, I would like to have a discussion to ensure we have alignment on how this could be added to the repo.
The text was updated successfully, but these errors were encountered: