{"id":488764,"date":"2026-07-27T17:14:03","date_gmt":"2026-07-27T17:14:03","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=488764"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=488764","title":{"rendered":"\u0421\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e\u00a0\u0432\u044b\u043a\u0430\u0442\u0438\u043b \u0421\u0431\u0435\u0440 \u043d\u0430\u00a0Ethereum"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041d\u0435\u0434\u0430\u0432\u043d\u043e\u00a0\u0431\u044b\u043b \u043f\u0440\u0438\u043d\u044f\u0442 <a href=\"https:\/\/sozd.duma.gov.ru\/bill\/1194918-8\" rel=\"noopener noreferrer nofollow\">\u0437\u0430\u043a\u043e\u043d\u043e\u043f\u0440\u043e\u0435\u043a\u0442 \u2116\u00a01194918\u20138\u00a0\u00ab\u041e \u0446\u0438\u0444\u0440\u043e\u0432\u044b\u0445 \u0432\u0430\u043b\u044e\u0442\u0430\u0445 \u0438 \u0446\u0438\u0444\u0440\u043e\u0432\u044b\u0445 \u043f\u0440\u0430\u0432\u0430\u0445\u00bb<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u043b \u0432\u044b\u043f\u0443\u0441\u043a \u0426\u0424\u0410 \u0432\u00a0\u0420\u043e\u0441\u0441\u0438\u0438 \u0441\u00a0\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0442\u0430\u043a \u043d\u0430\u0445\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0445 <code>\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c, \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043d\u0435 \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0440\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u0438\u043c \u043f\u0440\u0430\u0432\u043e\u043c<\/code>\u00a0\u2014 \u0432\u00a0\u043f\u0440\u043e\u0441\u0442\u043e\u043d\u0430\u0440\u043e\u0434\u044c\u0435, \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0445 \u0431\u043b\u043e\u043a\u0447\u0435\u0439\u043d\u043e\u0432.<\/p>\n<p>\u0418 \u043f\u0435\u0440\u0432\u044b\u043c, \u043a\u0442\u043e \u0443\u0436\u0435 \u0443\u0441\u043f\u0435\u043b \u044d\u0442\u0438\u043c \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f\u00a0\u2014 \u0421\u0431\u0435\u0440. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e\u00a0\u043e\u043d\u0438 \u0432\u044b\u043a\u0430\u0442\u0438\u043b\u0438.<\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/ed7\/1fc\/d52\/ed71fcd5263e7a5cd00ba6c6d5e9baf6.png\" alt=\"\u043d\u043e\u0432\u044b\u0439 \u0432\u044b\u043f\u0443\u0441\u043a \u0441 \u0432\u043e\u0437\u043c\u043e\u0434\u043d\u043e\u0441\u0442\u044c\u044e \u0432\u044b\u0432\u043e\u0434\u0430 \u0432 ETH\" title=\"\u043d\u043e\u0432\u044b\u0439 \u0432\u044b\u043f\u0443\u0441\u043a \u0441 \u0432\u043e\u0437\u043c\u043e\u0434\u043d\u043e\u0441\u0442\u044c\u044e \u0432\u044b\u0432\u043e\u0434\u0430 \u0432 ETH\" width=\"896\" height=\"1144\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/ed7\/1fc\/d52\/ed71fcd5263e7a5cd00ba6c6d5e9baf6.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/ed7\/1fc\/d52\/ed71fcd5263e7a5cd00ba6c6d5e9baf6.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u043d\u043e\u0432\u044b\u0439 \u0432\u044b\u043f\u0443\u0441\u043a \u0441\u00a0\u0432\u043e\u0437\u043c\u043e\u0434\u043d\u043e\u0441\u0442\u044c\u044e \u0432\u044b\u0432\u043e\u0434\u0430 \u0432\u00a0ETH<\/figcaption><\/div>\n<\/figure>\n<p>\u041d\u0435\u0441\u043b\u043e\u0436\u043d\u044b\u043c\u0438 \u043c\u0435\u0442\u043e\u0434\u0430\u043c\u0438 \u0433\u0443\u0433\u043b\u0435\u043d\u0438\u044f \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0430\u0434\u0440\u0435\u0441 \u0432\u044b\u043f\u0443\u0441\u043a\u0430 \u0432\u00a0\u0441\u0435\u0442\u0438 Ethereum\u00a0\u2014 \u0442\u043e\u043a\u0435\u043d <strong>Routing balance RUBS<\/strong>. \u041a\u043e\u043d\u0442\u0440\u0430\u043a\u0442 Token.sol \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d \u043d\u0430\u00a0OpenZeppelin.<\/p>\n<ul>\n<li>\n<p><strong>\u0418\u043c\u044f \u0442\u043e\u043a\u0435\u043d\u0430:<\/strong> Routing balance<\/p>\n<\/li>\n<li>\n<p><strong>\u0421\u0438\u043c\u0432\u043e\u043b (Ticker):<\/strong> RUBS<\/p>\n<\/li>\n<li>\n<p><strong>\u0422\u0438\u043f \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u0430:<\/strong> \u041f\u0440\u043e\u043a\u0441\u0438\u2011\u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442 (EIP-1967\u00a0Proxy)<\/p>\n<\/li>\n<li>\n<p><strong>\u0410\u0434\u0440\u0435\u0441 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u0430:<\/strong> <a href=\"https:\/\/etherscan.io\/address\/0xCFA0388793473461a9EF06A80D6eD98eba795201\" rel=\"noopener noreferrer nofollow\"><code>0xCFA0388793473461a9EF06A80D6eD98eba795201<\/code><\/a><\/p>\n<\/li>\n<li>\n<p><strong>\u0410\u0434\u0440\u0435\u0441 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438:<\/strong> <a href=\"https:\/\/etherscan.io\/address\/0xCFD006cC9d93c032b354196E4efdE6053f280501\" rel=\"noopener noreferrer nofollow\"><code>0xCFD006cC9d93c032b354196E4efdE6053f280501<\/code><\/a><\/p>\n<\/li>\n<li>\n<p><strong>\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442:<\/strong> ERC-20<\/p>\n<\/li>\n<li>\n<p><strong>\u0414\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u0435 \u0437\u043d\u0430\u043a\u0438 (Decimals):<\/strong> 6<\/p>\n<\/li>\n<li>\n<p><strong>\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u044d\u043c\u0438\u0441\u0441\u0438\u044f (Max Total Supply):<\/strong> 10&#8217;000&#8217;000\u00a0RUBS<\/p>\n<\/li>\n<\/ul>\n<h4>\u0427\u0442\u043e\u00a0\u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442:<\/h4>\n<ul>\n<li>\n<p><strong>ERC-20\u00a0(ERC20Upgradeable)<\/strong>\u00a0\u2014 \u0431\u0430\u0437\u043e\u0432\u0430\u044f \u043b\u043e\u0433\u0438\u043a\u0430 \u0442\u043e\u043a\u0435\u043d\u0430: \u0431\u0430\u043b\u0430\u043d\u0441\u044b, <code>transfer<\/code>, <code>transferFrom<\/code>, <code>approve<\/code>, <code>allowance<\/code>, <code>totalSupply<\/code>.<\/p>\n<\/li>\n<li>\n<p><strong>ERC-2612\u00a0Permit (ERC20PermitUpgradeable)<\/strong>\u00a0\u2014 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0434\u0430\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 (approve) \u043d\u0430\u00a0\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0442\u043e\u043a\u0435\u043d\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u043f\u043e\u0434\u043f\u0438\u0441\u044c (EIP-712), \u044d\u043a\u043e\u043d\u043e\u043c\u044f \u0433\u0430\u0437 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f (\u0431\u0435\u0437\u0433\u0430\u0437\u043e\u0432\u044b\u0435 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438).<\/p>\n<\/li>\n<li>\n<p><strong>ERC-1822\u00a0UUPS (UUPSUpgradeable)<\/strong>\u00a0\u2014 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c\u044b\u0445 \u043f\u0440\u043e\u043a\u0441\u0438, \u0433\u0434\u0435 \u043b\u043e\u0433\u0438\u043a\u0430 \u0430\u043f\u0433\u0440\u0435\u0439\u0434\u0430 (<code>upgradeToAndCall<\/code>) \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u0430\u043c\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438, \u0430\u00a0\u043d\u0435\u00a0\u043f\u0440\u043e\u043a\u0441\u0438.<\/p>\n<\/li>\n<li>\n<p><strong>ERC-1967\u00a0(ERC1967Proxy, ERC1967Utils)<\/strong>\u00a0\u2014 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0430\u0434\u0440\u0435\u0441\u043e\u0432. \u0413\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u0443\u0435\u0442, \u0447\u0442\u043e\u00a0\u0430\u0434\u0440\u0435\u0441 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 (implementation) \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432\u00a0\u0437\u0430\u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0441\u043b\u043e\u0442\u0430\u0445 \u043f\u0430\u043c\u044f\u0442\u0438 \u0438 \u043d\u0435\u00a0\u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0448\u0443\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0442\u043e\u043a\u0435\u043d\u0430.<\/p>\n<\/li>\n<li>\n<p><strong>ERC-5267\u00a0\/ EIP-712\u00a0(EIP712Upgradeable, IERC5267)<\/strong>\u00a0\u2014 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0434\u043e\u043c\u0435\u043d\u043e\u0432 \u0434\u043b\u044f\u00a0\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u0434\u043f\u0438\u0441\u0435\u0439. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0430 \u0434\u043b\u044f\u00a0\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <code>permit<\/code> (ERC-2612).<\/p>\n<\/li>\n<li>\n<p><strong>ERC-6093\u00a0(draft\u2011IERC6093)<\/strong>\u00a0\u2014 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0445 \u043e\u0448\u0438\u0431\u043e\u043a. \u0412\u043c\u0435\u0441\u0442\u043e <code>require<\/code> \u0441\u00a0\u0442\u0435\u043a\u0441\u0442\u043e\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043e\u0448\u0438\u0431\u043a\u0438 \u0432\u0440\u043e\u0434\u0435 <code>ERC20InsufficientBalance<\/code> \u0438\u043b\u0438 <code>ERC20InvalidSpender<\/code>, \u0447\u0442\u043e\u00a0\u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442 \u0433\u0430\u0437 \u043f\u0440\u0438\u00a0\u0440\u0435\u0432\u0435\u0440\u0442\u0435 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438.<\/p>\n<\/li>\n<\/ul>\n<h4>\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430: Proxy + Implementation<\/h4>\n<p>\u0422\u043e\u043a\u0435\u043d \u0440\u0430\u0437\u0431\u0438\u0442 \u043d\u0430\u00a0\u043f\u0440\u043e\u043a\u0441\u0438\u2011\u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442 \u0438 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438. \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0443\u0434\u043e\u0431\u043d\u043e \u043c\u0435\u043d\u044f\u0442\u044c \u0431\u0438\u0437\u043d\u0435\u0441\u2011\u043b\u043e\u0433\u0438\u043a\u0443, \u043d\u0435\u00a0\u0442\u0435\u0440\u044f\u044f \u0430\u0434\u0440\u0435\u0441 \u0442\u043e\u043a\u0435\u043d\u0430: \u0432\u0441\u0435 \u0432\u044b\u0437\u043e\u0432\u044b \u0438\u0434\u0443\u0442 \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u043a\u0441\u0438, \u0430\u00a0\u043f\u0440\u043e\u043a\u0441\u0438 \u0447\u0435\u0440\u0435\u0437 <code>delegatecall<\/code> \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043a\u043e\u0434 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0432\u00a0\u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u0441\u0432\u043e\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<h4>\u041f\u0440\u0430\u0432\u0430 \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f:<\/h4>\n<p><strong>\u2705 \u041c\u043e\u0436\u0435\u0442:<\/strong><\/p>\n<ul>\n<li>\n<p><code>transfer(to, value)<\/code>\u00a0\u2014 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442\u044c \u0441\u0432\u043e\u0438 \u0442\u043e\u043a\u0435\u043d\u044b (\u0435\u0441\u043b\u0438 \u043d\u0438 \u043e\u043d, \u043d\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044c \u043d\u0435\u00a0\u0432\u00a0blacklist);<\/p>\n<\/li>\n<li>\n<p><code>transferFrom(from, to, value)<\/code>\u00a0\u2014 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 approve\/allowance (DEX, \u0441\u0432\u043e\u043f\u044b);<\/p>\n<\/li>\n<li>\n<p><code>approve(spender, value)<\/code>\u00a0\u2014 \u0434\u0430\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435;<\/p>\n<\/li>\n<li>\n<p><code>permit(...)<\/code>\u00a0\u2014 approve \u0431\u0435\u0437\u00a0on\u2011chain \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438 (EIP-2612).<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u274c \u041d\u0435\u00a0\u043c\u043e\u0436\u0435\u0442, \u0435\u0441\u043b\u0438 \u043f\u043e\u043f\u0430\u043b \u0432\u00a0blacklist:<\/strong><\/p>\n<ul>\n<li>\n<p>\u043d\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c, \u043d\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0442\u043e\u043a\u0435\u043d\u044b (\u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 <code>notBlacklisted<\/code> \u043d\u0430 <code>transfer<\/code>\/<code>transferFrom<\/code>);<\/p>\n<\/li>\n<li>\n<p>\u0434\u0430\u0436\u0435 <code>approve<\/code> \u0437\u0430\u043f\u0440\u0435\u0449\u0451\u043d, \u0435\u0441\u043b\u0438 \u0432\u043b\u0430\u0434\u0435\u043b\u0435\u0446 \u0438\u043b\u0438\u00a0spender \u0432\u00a0blacklist.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u274c \u041d\u0438\u043a\u0442\u043e \u043d\u0435\u00a0\u043c\u043e\u0436\u0435\u0442, \u043a\u043e\u0433\u0434\u0430 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u043f\u0430\u0443\u0437\u0430:<\/strong><\/p>\n<ul>\n<li>\n<p>\u043b\u044e\u0431\u0443\u044e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e \u0441\u00a0\u0431\u0430\u043b\u0430\u043d\u0441\u043e\u043c\u00a0\u2014 <code>mint<\/code>, <code>burn<\/code>, <code>transfer<\/code>. \u0425\u0443\u043a <code>_update<\/code> \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u043f\u0430\u0443\u0437\u0443 \u043f\u0440\u0438\u00a0\u043a\u0430\u0436\u0434\u043e\u043c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u0431\u0430\u043b\u0430\u043d\u0441\u0430.<\/p>\n<\/li>\n<\/ul>\n<h4>\u0427\u0442\u043e\u00a0\u043c\u043e\u0436\u0435\u0442 governance<\/h4>\n<p><strong>\u2705 \u041c\u043e\u0436\u0435\u0442:<\/strong><\/p>\n<ul>\n<li>\n<p><code>mintByGovernance(to, amount)<\/code>\u00a0\u2014 \u042d\u043c\u0438\u0441\u0441\u0438\u044f \u043d\u043e\u0432\u044b\u0445 \u0442\u043e\u043a\u0435\u043d\u043e\u0432<\/p>\n<\/li>\n<li>\n<p><code>burnByGovernance(account, amount)<\/code>\u00a0\u2014 \u0421\u0436\u0438\u0433\u0430\u043d\u0438\u0435 \u0442\u043e\u043a\u0435\u043d\u043e\u0432 \u0443\u00a0\u043b\u044e\u0431\u043e\u0433\u043e \u0430\u0434\u0440\u0435\u0441\u0430<\/p>\n<\/li>\n<li>\n<p><code>pause() \/ unpause()<\/code>\u00a0\u2014 \u0413\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0430\u044f \u0437\u0430\u043c\u043e\u0440\u043e\u0437\u043a\u0430 \u0432\u0441\u0435\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0441\u00a0\u0431\u0430\u043b\u0430\u043d\u0441\u0430\u043c\u0438<\/p>\n<\/li>\n<li>\n<p><code>addToBlacklist(account)<\/code>\u00a0\u2014 \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432\u00a0\u0447\u0451\u0440\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a<\/p>\n<\/li>\n<li>\n<p><code>removeFromBlacklist(account)<\/code>\u00a0\u2014 \u0418\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0438\u0437\u00a0\u0447\u0451\u0440\u043d\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430<\/p>\n<\/li>\n<li>\n<p><code>burnBlacklisted(account, amount)<\/code>\u00a0\u2014 \u0421\u0436\u0438\u0433\u0430\u043d\u0438\u0435 \u0442\u043e\u043a\u0435\u043d\u043e\u0432 \u0443\u00a0\u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e <\/p>\n<\/li>\n<\/ul>\n<p><strong>\u274c \u0427\u0442\u043e\u00a0governance \u041d\u0415\u00a0\u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e:<\/strong><\/p>\n<ul>\n<li>\n<p>\u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442\u044c \u0447\u0443\u0436\u0438\u0435 \u0442\u043e\u043a\u0435\u043d\u044b (\u043d\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0442\u0438\u043f\u0430 <code>transferByGovernance<\/code>);<\/p>\n<\/li>\n<li>\n<p>\u043c\u0435\u043d\u044f\u0442\u044c <code>allowances<\/code> \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439;<\/p>\n<\/li>\n<li>\n<p>\u0447\u0438\u0442\u0430\u0442\u044c \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0435 \u043a\u043b\u044e\u0447\u0438 \u0438\u043b\u0438\u00a0\u0434\u0432\u0438\u0433\u0430\u0442\u044c \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u0431\u0435\u0437\u00a0\u0441\u043e\u0433\u043b\u0430\u0441\u0438\u044f \u0432\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u0430.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0418\u0442\u043e\u0433: <\/strong>\u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c\u044b\u0439 ERC-20\u00a0\u0442\u043e\u043a\u0435\u043d \u043d\u0430\u00a0OpenZeppelin \u0441\u00a0\u043f\u043e\u043b\u043d\u044b\u043c \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u0440\u0435\u0433\u0443\u043b\u044f\u0442\u043e\u0440\u043d\u044b\u0445 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u043e\u0432: \u044d\u043c\u0438\u0441\u0441\u0438\u044f \u0438 \u0441\u0436\u0438\u0433\u0430\u043d\u0438\u0435 \u043e\u0442\u00a0\u0438\u043c\u0435\u043d\u0438 governance, \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0430\u0443\u0437\u0430 \u0438 \u0447\u0451\u0440\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a.<\/p>\n<hr\/>\n<p>\u041f\u043e\u043c\u0438\u043c\u043e \u0431\u0430\u0437\u043e\u0432\u043e\u0433\u043e \u0442\u043e\u043a\u0435\u043d\u0430, \u0421\u0431\u0435\u0440 \u0432\u044b\u043f\u0443\u0441\u0442\u0438\u043b \u043d\u0430\u00a0EVM \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u00a0\u2014 <strong>Staked RUBS<\/strong>. \u041f\u043e\u043a\u0430 \u0435\u0433\u043e \u043d\u0435\u0442 \u043d\u0430\u00a0\u043e\u043d\u043b\u0430\u0439\u043d\u2011\u043f\u043b\u043e\u0449\u0430\u0434\u043a\u0435, \u043d\u043e\u00a0\u0441\u0430\u043c \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442 \u0443\u0436\u0435 \u0437\u0430\u0434\u0435\u043f\u043b\u043e\u0435\u043d<\/p>\n<ul>\n<li>\n<p><strong>\u0418\u043c\u044f \u0442\u043e\u043a\u0435\u043d\u0430:<\/strong> Staked RUBS<\/p>\n<\/li>\n<li>\n<p><strong>\u0421\u0438\u043c\u0432\u043e\u043b (Ticker):<\/strong> stRUBS<\/p>\n<\/li>\n<li>\n<p><strong>\u0410\u0434\u0440\u0435\u0441 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u0430:<\/strong> <a href=\"https:\/\/etherscan.io\/token\/0xCFA0caBeDAbDC4058CE9E6004c9eE49E971C4201\" rel=\"noopener noreferrer nofollow\"><code>0xCFA0caBeDAbDC4058CE9E6004c9eE49E971C4201<\/code><\/a><\/p>\n<\/li>\n<li>\n<p><strong>\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u044d\u043c\u0438\u0441\u0441\u0438\u044f:<\/strong> 1,000\u00a0stRUBS (\u0434\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f: \u0443\u00a0\u0431\u0430\u0437\u043e\u0432\u043e\u0433\u043e RUBS\u00a0\u0431\u044b\u043b\u043e 10,000,000)<\/p>\n<\/li>\n<li>\n<p><strong>\u0414\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u0435 \u0437\u043d\u0430\u043a\u0438:<\/strong> 6<\/p>\n<\/li>\n<\/ul>\n<p>\u0421\u0443\u0434\u044f \u043f\u043e\u00a0\u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044e, \u044d\u0442\u043e \u0430\u043d\u0430\u043b\u043e\u0433 \u0434\u0435\u043f\u043e\u0437\u0438\u0442\u0430: \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0441\u043c\u043e\u0433\u0443\u0442 \u0437\u0430\u0441\u0442\u0435\u0439\u043a\u0430\u0442\u044c \u0441\u0432\u043e\u0438 RUBS \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u043d\u0442 \u0434\u043e\u0445\u043e\u0434\u0430\u00a0\u2014 \u043f\u043e\u00a0\u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0438 \u0441\u00a0\u043b\u0438\u043a\u0432\u0438\u0434\u043d\u044b\u043c \u0441\u0442\u0435\u0439\u043a\u0438\u043d\u0433\u043e\u043c \u0432\u0440\u043e\u0434\u0435 stETH \u0443\u00a0Lido. \u041c\u0430\u043b\u0435\u043d\u044c\u043a\u0430\u044f \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u044d\u043c\u0438\u0441\u0441\u0438\u044f (\u0432\u0441\u0435\u0433\u043e 1\u202f000\u00a0\u0442\u043e\u043a\u0435\u043d\u043e\u0432) \u043d\u0430\u043c\u0435\u043a\u0430\u0435\u0442, \u0447\u0442\u043e\u00a0\u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442 \u043f\u043e\u043a\u0430 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430\u00a0\u0441\u0442\u0430\u0434\u0438\u0438 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0430\u00a0\u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u0432\u043f\u0435\u0440\u0435\u0434\u0438.<\/p>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1063674\/\">https:\/\/habr.com\/ru\/articles\/1063674\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041d\u0435\u0434\u0430\u0432\u043d\u043e\u00a0\u0431\u044b\u043b \u043f\u0440\u0438\u043d\u044f\u0442 \u0437\u0430\u043a\u043e\u043d\u043e\u043f\u0440\u043e\u0435\u043a\u0442 \u2116\u00a01194918\u20138\u00a0\u00ab\u041e \u0446\u0438\u0444\u0440\u043e\u0432\u044b\u0445 \u0432\u0430\u043b\u044e\u0442\u0430\u0445 \u0438 \u0446\u0438\u0444\u0440\u043e\u0432\u044b\u0445 \u043f\u0440\u0430\u0432\u0430\u0445\u00bb, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u043b \u0432\u044b\u043f\u0443\u0441\u043a \u0426\u0424\u0410 \u0432\u00a0\u0420\u043e\u0441\u0441\u0438\u0438 \u0441\u00a0\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0442\u0430\u043a \u043d\u0430\u0445\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0445 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c, \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043d\u0435 \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0440\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u0438\u043c \u043f\u0440\u0430\u0432\u043e\u043c\u00a0\u2014 \u0432\u00a0\u043f\u0440\u043e\u0441\u0442\u043e\u043d\u0430\u0440\u043e\u0434\u044c\u0435, \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0445 \u0431\u043b\u043e\u043a\u0447\u0435\u0439\u043d\u043e\u0432.\u0418 \u043f\u0435\u0440\u0432\u044b\u043c, \u043a\u0442\u043e \u0443\u0436\u0435 \u0443\u0441\u043f\u0435\u043b \u044d\u0442\u0438\u043c \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f\u00a0\u2014 \u0421\u0431\u0435\u0440. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e\u00a0\u043e\u043d\u0438 \u0432\u044b\u043a\u0430\u0442\u0438\u043b\u0438.\u043d\u043e\u0432\u044b\u0439 \u0432\u044b\u043f\u0443\u0441\u043a \u0441\u00a0\u0432\u043e\u0437\u043c\u043e\u0434\u043d\u043e\u0441\u0442\u044c\u044e \u0432\u044b\u0432\u043e\u0434\u0430 \u0432\u00a0ETH\u041d\u0435\u0441\u043b\u043e\u0436\u043d\u044b\u043c\u0438 \u043c\u0435\u0442\u043e\u0434\u0430\u043c\u0438 \u0433\u0443\u0433\u043b\u0435\u043d\u0438\u044f \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0430\u0434\u0440\u0435\u0441 \u0432\u044b\u043f\u0443\u0441\u043a\u0430 \u0432\u00a0\u0441\u0435\u0442\u0438 Ethereum\u00a0\u2014 \u0442\u043e\u043a\u0435\u043d Routing balance RUBS. \u041a\u043e\u043d\u0442\u0440\u0430\u043a\u0442 Token.sol \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d \u043d\u0430\u00a0OpenZeppelin.\u0418\u043c\u044f \u0442\u043e\u043a\u0435\u043d\u0430: Routing balance\u0421\u0438\u043c\u0432\u043e\u043b (Ticker): RUBS\u0422\u0438\u043f \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u0430: \u041f\u0440\u043e\u043a\u0441\u0438\u2011\u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442 (EIP-1967\u00a0Proxy)\u0410\u0434\u0440\u0435\u0441 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u0430: 0xCFA0388793473461a9EF06A80D6eD98eba795201\u0410\u0434\u0440\u0435\u0441 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438: 0xCFD006cC9d93c032b354196E4efdE6053f280501\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442: ERC-20\u0414\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u0435 \u0437\u043d\u0430\u043a\u0438 (Decimals): 6\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u044d\u043c\u0438\u0441\u0441\u0438\u044f (Max Total Supply): 10&#8217;000&#8217;000\u00a0RUBS\u0427\u0442\u043e\u00a0\u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442:ERC-20\u00a0(ERC20Upgradeable)\u00a0\u2014 \u0431\u0430\u0437\u043e\u0432\u0430\u044f \u043b\u043e\u0433\u0438\u043a\u0430 \u0442\u043e\u043a\u0435\u043d\u0430: \u0431\u0430\u043b\u0430\u043d\u0441\u044b, transfer, transferFrom, approve, allowance, totalSupply.ERC-2612\u00a0Permit (ERC20PermitUpgradeable)\u00a0\u2014 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0434\u0430\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 (approve) \u043d\u0430\u00a0\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0442\u043e\u043a\u0435\u043d\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u043f\u043e\u0434\u043f\u0438\u0441\u044c (EIP-712), \u044d\u043a\u043e\u043d\u043e\u043c\u044f \u0433\u0430\u0437 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f (\u0431\u0435\u0437\u0433\u0430\u0437\u043e\u0432\u044b\u0435 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438).ERC-1822\u00a0UUPS (UUPSUpgradeable)\u00a0\u2014 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c\u044b\u0445 \u043f\u0440\u043e\u043a\u0441\u0438, \u0433\u0434\u0435 \u043b\u043e\u0433\u0438\u043a\u0430 \u0430\u043f\u0433\u0440\u0435\u0439\u0434\u0430 (upgradeToAndCall) \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u0430\u043c\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438, \u0430\u00a0\u043d\u0435\u00a0\u043f\u0440\u043e\u043a\u0441\u0438.ERC-1967\u00a0(ERC1967Proxy, ERC1967Utils)\u00a0\u2014 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0430\u0434\u0440\u0435\u0441\u043e\u0432. \u0413\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u0443\u0435\u0442, \u0447\u0442\u043e\u00a0\u0430\u0434\u0440\u0435\u0441 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 (implementation) \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432\u00a0\u0437\u0430\u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0441\u043b\u043e\u0442\u0430\u0445 \u043f\u0430\u043c\u044f\u0442\u0438 \u0438 \u043d\u0435\u00a0\u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0448\u0443\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0442\u043e\u043a\u0435\u043d\u0430.ERC-5267\u00a0\/ EIP-712\u00a0(EIP712Upgradeable, IERC5267)\u00a0\u2014 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0434\u043e\u043c\u0435\u043d\u043e\u0432 \u0434\u043b\u044f\u00a0\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u0434\u043f\u0438\u0441\u0435\u0439. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0430 \u0434\u043b\u044f\u00a0\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0438 permit (ERC-2612).ERC-6093\u00a0(draft\u2011IERC6093)\u00a0\u2014 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0445 \u043e\u0448\u0438\u0431\u043e\u043a. \u0412\u043c\u0435\u0441\u0442\u043e require \u0441\u00a0\u0442\u0435\u043a\u0441\u0442\u043e\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043e\u0448\u0438\u0431\u043a\u0438 \u0432\u0440\u043e\u0434\u0435 ERC20InsufficientBalance \u0438\u043b\u0438 ERC20InvalidSpender, \u0447\u0442\u043e\u00a0\u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442 \u0433\u0430\u0437 \u043f\u0440\u0438\u00a0\u0440\u0435\u0432\u0435\u0440\u0442\u0435 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438.\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430: Proxy + Implementation\u0422\u043e\u043a\u0435\u043d \u0440\u0430\u0437\u0431\u0438\u0442 \u043d\u0430\u00a0\u043f\u0440\u043e\u043a\u0441\u0438\u2011\u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442 \u0438 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438. \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0443\u0434\u043e\u0431\u043d\u043e \u043c\u0435\u043d\u044f\u0442\u044c \u0431\u0438\u0437\u043d\u0435\u0441\u2011\u043b\u043e\u0433\u0438\u043a\u0443, \u043d\u0435\u00a0\u0442\u0435\u0440\u044f\u044f \u0430\u0434\u0440\u0435\u0441 \u0442\u043e\u043a\u0435\u043d\u0430: \u0432\u0441\u0435 \u0432\u044b\u0437\u043e\u0432\u044b \u0438\u0434\u0443\u0442 \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u043a\u0441\u0438, \u0430\u00a0\u043f\u0440\u043e\u043a\u0441\u0438 \u0447\u0435\u0440\u0435\u0437 delegatecall \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043a\u043e\u0434 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0432\u00a0\u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u0441\u0432\u043e\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445.\u041f\u0440\u0430\u0432\u0430 \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f:\u2705 \u041c\u043e\u0436\u0435\u0442:transfer(to, value)\u00a0\u2014 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442\u044c \u0441\u0432\u043e\u0438 \u0442\u043e\u043a\u0435\u043d\u044b (\u0435\u0441\u043b\u0438 \u043d\u0438 \u043e\u043d, \u043d\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044c \u043d\u0435\u00a0\u0432\u00a0blacklist);transferFrom(from, to, value)\u00a0\u2014 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 approve\/allowance (DEX, \u0441\u0432\u043e\u043f\u044b);approve(spender, value)\u00a0\u2014 \u0434\u0430\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435;permit(&#8230;)\u00a0\u2014 approve \u0431\u0435\u0437\u00a0on\u2011chain \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438 (EIP-2612).\u274c \u041d\u0435\u00a0\u043c\u043e\u0436\u0435\u0442, \u0435\u0441\u043b\u0438 \u043f\u043e\u043f\u0430\u043b \u0432\u00a0blacklist:\u043d\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c, \u043d\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0442\u043e\u043a\u0435\u043d\u044b (\u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 notBlacklisted \u043d\u0430 transfer\/transferFrom);\u0434\u0430\u0436\u0435 approve \u0437\u0430\u043f\u0440\u0435\u0449\u0451\u043d, \u0435\u0441\u043b\u0438 \u0432\u043b\u0430\u0434\u0435\u043b\u0435\u0446 \u0438\u043b\u0438\u00a0spender \u0432\u00a0blacklist.\u274c \u041d\u0438\u043a\u0442\u043e \u043d\u0435\u00a0\u043c\u043e\u0436\u0435\u0442, \u043a\u043e\u0433\u0434\u0430 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u043f\u0430\u0443\u0437\u0430:\u043b\u044e\u0431\u0443\u044e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e \u0441\u00a0\u0431\u0430\u043b\u0430\u043d\u0441\u043e\u043c\u00a0\u2014 mint, burn, transfer. \u0425\u0443\u043a _update \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u043f\u0430\u0443\u0437\u0443 \u043f\u0440\u0438\u00a0\u043a\u0430\u0436\u0434\u043e\u043c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u0431\u0430\u043b\u0430\u043d\u0441\u0430.\u0427\u0442\u043e\u00a0\u043c\u043e\u0436\u0435\u0442 governance\u2705 \u041c\u043e\u0436\u0435\u0442:mintByGovernance(to, amount)\u00a0\u2014 \u042d\u043c\u0438\u0441\u0441\u0438\u044f \u043d\u043e\u0432\u044b\u0445 \u0442\u043e\u043a\u0435\u043d\u043e\u0432burnByGovernance(account, amount)\u00a0\u2014 \u0421\u0436\u0438\u0433\u0430\u043d\u0438\u0435 \u0442\u043e\u043a\u0435\u043d\u043e\u0432 \u0443\u00a0\u043b\u044e\u0431\u043e\u0433\u043e \u0430\u0434\u0440\u0435\u0441\u0430pause() \/ unpause()\u00a0\u2014 \u0413\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0430\u044f \u0437\u0430\u043c\u043e\u0440\u043e\u0437\u043a\u0430 \u0432\u0441\u0435\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0441\u00a0\u0431\u0430\u043b\u0430\u043d\u0441\u0430\u043c\u0438addToBlacklist(account)\u00a0\u2014 \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432\u00a0\u0447\u0451\u0440\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043aremoveFromBlacklist(account)\u00a0\u2014 \u0418\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0438\u0437\u00a0\u0447\u0451\u0440\u043d\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430burnBlacklisted(account, amount)\u00a0\u2014 \u0421\u0436\u0438\u0433\u0430\u043d\u0438\u0435 \u0442\u043e\u043a\u0435\u043d\u043e\u0432 \u0443\u00a0\u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u274c \u0427\u0442\u043e\u00a0governance \u041d\u0415\u00a0\u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e:\u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442\u044c \u0447\u0443\u0436\u0438\u0435 \u0442\u043e\u043a\u0435\u043d\u044b (\u043d\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0442\u0438\u043f\u0430 transferByGovernance);\u043c\u0435\u043d\u044f\u0442\u044c allowances \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439;\u0447\u0438\u0442\u0430\u0442\u044c \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0435 \u043a\u043b\u044e\u0447\u0438 \u0438\u043b\u0438\u00a0\u0434\u0432\u0438\u0433\u0430\u0442\u044c \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u0431\u0435\u0437\u00a0\u0441\u043e\u0433\u043b\u0430\u0441\u0438\u044f \u0432\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u0430.\u0418\u0442\u043e\u0433: \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c\u044b\u0439 ERC-20\u00a0\u0442\u043e\u043a\u0435\u043d \u043d\u0430\u00a0OpenZeppelin \u0441\u00a0\u043f\u043e\u043b\u043d\u044b\u043c \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u0440\u0435\u0433\u0443\u043b\u044f\u0442\u043e\u0440\u043d\u044b\u0445 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u043e\u0432: \u044d\u043c\u0438\u0441\u0441\u0438\u044f \u0438 \u0441\u0436\u0438\u0433\u0430\u043d\u0438\u0435 \u043e\u0442\u00a0\u0438\u043c\u0435\u043d\u0438 governance, \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0430\u0443\u0437\u0430 \u0438 \u0447\u0451\u0440\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a.\u041f\u043e\u043c\u0438\u043c\u043e \u0431\u0430\u0437\u043e\u0432\u043e\u0433\u043e \u0442\u043e\u043a\u0435\u043d\u0430, \u0421\u0431\u0435\u0440 \u0432\u044b\u043f\u0443\u0441\u0442\u0438\u043b \u043d\u0430\u00a0EVM \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u00a0\u2014 Staked RUBS. \u041f\u043e\u043a\u0430 \u0435\u0433\u043e \u043d\u0435\u0442 \u043d\u0430\u00a0\u043e\u043d\u043b\u0430\u0439\u043d\u2011\u043f\u043b\u043e\u0449\u0430\u0434\u043a\u0435, \u043d\u043e\u00a0\u0441\u0430\u043c \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442 \u0443\u0436\u0435 \u0437\u0430\u0434\u0435\u043f\u043b\u043e\u0435\u043d\u0418\u043c\u044f \u0442\u043e\u043a\u0435\u043d\u0430: Staked RUBS\u0421\u0438\u043c\u0432\u043e\u043b (Ticker): stRUBS\u0410\u0434\u0440\u0435\u0441 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u0430: 0xCFA0caBeDAbDC4058CE9E6004c9eE49E971C4201\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u044d\u043c\u0438\u0441\u0441\u0438\u044f: 1,000\u00a0stRUBS (\u0434\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f: \u0443\u00a0\u0431\u0430\u0437\u043e\u0432\u043e\u0433\u043e RUBS\u00a0\u0431\u044b\u043b\u043e 10,000,000)\u0414\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u0435 \u0437\u043d\u0430\u043a\u0438: 6\u0421\u0443\u0434\u044f \u043f\u043e\u00a0\u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044e, \u044d\u0442\u043e \u0430\u043d\u0430\u043b\u043e\u0433 \u0434\u0435\u043f\u043e\u0437\u0438\u0442\u0430: \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0441\u043c\u043e\u0433\u0443\u0442 \u0437\u0430\u0441\u0442\u0435\u0439\u043a\u0430\u0442\u044c \u0441\u0432\u043e\u0438 RUBS \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u043d\u0442 \u0434\u043e\u0445\u043e\u0434\u0430\u00a0\u2014 \u043f\u043e\u00a0\u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0438 \u0441\u00a0\u043b\u0438\u043a\u0432\u0438\u0434\u043d\u044b\u043c \u0441\u0442\u0435\u0439\u043a\u0438\u043d\u0433\u043e\u043c \u0432\u0440\u043e\u0434\u0435 stETH \u0443\u00a0Lido. \u041c\u0430\u043b\u0435\u043d\u044c\u043a\u0430\u044f \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u044d\u043c\u0438\u0441\u0441\u0438\u044f (\u0432\u0441\u0435\u0433\u043e 1\u202f000\u00a0\u0442\u043e\u043a\u0435\u043d\u043e\u0432) \u043d\u0430\u043c\u0435\u043a\u0430\u0435\u0442, \u0447\u0442\u043e\u00a0\u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442 \u043f\u043e\u043a\u0430 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430\u00a0\u0441\u0442\u0430\u0434\u0438\u0438 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0430\u00a0\u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u0432\u043f\u0435\u0440\u0435\u0434\u0438.\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 https:\/\/habr.com\/ru\/articles\/1063674\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-488764","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/488764","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=488764"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/488764\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=488764"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=488764"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=488764"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}