The developers of Ethereum smart contracts often implement administrating patterns, such as censoring certain users, creating or destroying balances on demand, destroying smart contracts, or injecting arbitrary code. These routines turn an ERC20 token into an administrated token - the type of Ethereum smart contract that we scrutinize in this research. We discover that many smart contracts are administrated, and the owners of these tokens carry lesser social and legal responsibilities compared to the traditional centralized actors that those tokens intend to disrupt. This entails two major problems: a) the owners of the tokens have the ability to quickly steal all the funds and disappear from the market; and b) if the private key of the owner's account is stolen, all the assets might immediately turn into the property of the attacker. We develop a pattern recognition framework based on 9 syntactic features characterizing administrated ERC20 tokens, which we use to analyze existing smart contracts deployed on Ethereum Mainnet. Our analysis of 84,062 unique Ethereum smart contracts reveals that nearly 58% of them are administrated ERC20 tokens, which accounts for almost 90% of all ERC20 tokens deployed on Ethereum. To protect users from the frivolousness of unregulated token owners without depriving the ability of these owners to properly manage their tokens, we introduce SafelyAdministrated - a library that enforces a responsible ownership and management of ERC20 tokens. The library introduces three mechanisms: deferred maintenance, board of trustees and safe pause. We implement and test SafelyAdministrated in the form of Solidity abstract contract, which is ready to be used by the next generation of safely administrated ERC20 tokens.
翻译:Etheom 智能合同的开发者往往会执行管理模式,例如审查某些用户,创造或破坏需求余额,销毁智能合同,或输入任意代码。这些例行做法将 ERC20 符号变成一个管理牌子 — — 我们在这次研究中仔细研究的Etheum智能合同类型。 我们发现,许多智能合同是管理式的,这些标子的拥有者承担的社会和法律责任比传统集中行为者要破坏的要轻。这涉及两个重大问题:(a) 象征物的拥有者有能力迅速偷窃所有资金,从市场上消失;和(b) 如果所有者账户的私人钥匙被盗,所有资产可能立即变成一个管理式的象征物。我们根据9个合成特征制定了一个模式识别框架,这些特征是管理式的 ERC20 标志,我们用它来分析在Eceium Mainnet上部署的现有智能合同。我们对84,062 独特的Eceenum 智能合同的拥有者表明,他们中近58%的人能够迅速偷窃 ERC20 的私人钥匙,这几乎可以将ERC 的正常操作权 。