ERC-20
Overview
Max Total Supply
0.582330145580168965 ERC20 ***
Holders
31
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.000007662987749592 ERC20 ***Value
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x176b98ab...26F559C17 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
ACOProxy
Compiler Version
v0.6.6+commit.6c089d02
Contract Source Code (Solidity Multiple files format)
pragma solidity ^0.6.6; import "./Address.sol"; /** * @title ACOProxy * @dev A proxy contract that implements delegation of calls to other contracts. */ contract ACOProxy { /** * @dev Emitted when the admin address has been changed. * @param previousAdmin Address of the previous admin. * @param newAdmin Address of the new admin. */ event ProxyAdminUpdated(address previousAdmin, address newAdmin); /** * @dev Emitted when the proxy implementation has been changed. * @param previousImplementation Address of the previous proxy implementation. * @param newImplementation Address of the new proxy implementation. */ event SetImplementation(address previousImplementation, address newImplementation); /** * @dev Storage position for the admin address. */ bytes32 private constant adminPosition = keccak256("acoproxy.admin"); /** * @dev Storage position for the proxy implementation address. */ bytes32 private constant implementationPosition = keccak256("acoproxy.implementation"); /** * @dev Modifier to check if the `msg.sender` is the admin. * Only admin address can execute. */ modifier onlyAdmin() { require(msg.sender == admin(), "ACOProxy::onlyAdmin"); _; } constructor(address _admin, address _implementation, bytes memory _initdata) public { _setAdmin(_admin); _setImplementation(_implementation, _initdata); } /** * @dev Fallback function that delegates the execution to the proxy implementation contract. */ fallback() external payable { address addr = implementation(); assembly { calldatacopy(0, 0, calldatasize()) let result := delegatecall(gas(), addr, 0, calldatasize(), 0, 0) returndatacopy(0, 0, returndatasize()) switch result case 0 { revert(0, returndatasize()) } default { return(0, returndatasize()) } } } /** * @dev Function to be compliance with EIP 897. * https://github.com/ethereum/EIPs/blob/master/EIPS/eip-897.md * It is an "upgradable proxy". */ function proxyType() public pure returns(uint256) { return 2; } /** * @dev Function to get the proxy admin address. * @return adm The proxy admin address. */ function admin() public view returns (address adm) { bytes32 position = adminPosition; assembly { adm := sload(position) } } /** * @dev Function to get the proxy implementation address. * @return impl The proxy implementation address. */ function implementation() public view returns (address impl) { bytes32 position = implementationPosition; assembly { impl := sload(position) } } /** * @dev Function to set the proxy admin address. * Only can be called by the proxy admin. * @param newAdmin Address of the new proxy admin. */ function transferProxyAdmin(address newAdmin) external onlyAdmin { _setAdmin(newAdmin); } /** * @dev Function to set the proxy implementation address. * Only can be called by the proxy admin. * @param newImplementation Address of the new proxy implementation. * @param initData ABI encoded with signature data that will be delegated over the new implementation. */ function setImplementation(address newImplementation, bytes calldata initData) external onlyAdmin { _setImplementation(newImplementation, initData); } /** * @dev Internal function to set the proxy admin address. * @param newAdmin Address of the new proxy admin. */ function _setAdmin(address newAdmin) internal { require(newAdmin != address(0), "ACOProxy::_setAdmin: Invalid admin"); emit ProxyAdminUpdated(admin(), newAdmin); bytes32 position = adminPosition; assembly { sstore(position, newAdmin) } } /** * @dev Internal function to set the proxy implementation address. * The implementation address must be a contract. * @param newImplementation Address of the new proxy implementation. * @param initData ABI encoded with signature data that will be delegated over the new implementation. */ function _setImplementation(address newImplementation, bytes memory initData) internal { require(Address.isContract(newImplementation), "ACOProxy::_setImplementation: Invalid implementation"); emit SetImplementation(implementation(), newImplementation); bytes32 position = implementationPosition; assembly { sstore(position, newImplementation) } if (initData.length > 0) { (bool success,) = newImplementation.delegatecall(initData); assert(success); } } }
pragma solidity ^0.6.6; // Contract on https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_admin","type":"address"},{"internalType":"address","name":"_implementation","type":"address"},{"internalType":"bytes","name":"_initdata","type":"bytes"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"ProxyAdminUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousImplementation","type":"address"},{"indexed":false,"internalType":"address","name":"newImplementation","type":"address"}],"name":"SetImplementation","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"adm","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"impl","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyType","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"initData","type":"bytes"}],"name":"setImplementation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"transferProxyAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50604051610a77380380610a778339818101604052606081101561003357600080fd5b8151602083015160408085018051915193959294830192918464010000000082111561005e57600080fd5b90830190602082018581111561007357600080fd5b825164010000000081118282018810171561008d57600080fd5b82525081516020918201929091019080838360005b838110156100ba5781810151838201526020016100a2565b50505050905090810190601f1680156100e75780820380516001836020036101000a031916815260200191505b506040525050506100fd8361011860201b60201c565b61011082826001600160e01b036101d716565b505050610401565b6001600160a01b03811661015d5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a556022913960400191505060405180910390fd5b7fd2baf0ee61889f3230e02006e6c955d691579ad5ee5e11e133a8146ef2efc6a361018f6001600160e01b0361036816565b604080516001600160a01b03928316815291841660208301528051918290030190a1604080516d30b1b7b83937bc3c9730b236b4b760911b8152905190819003600e01902055565b6101ea8261038f60201b6105491760201c565b6102255760405162461bcd60e51b8152600401808060200182810382526034815260200180610a216034913960400191505060405180910390fd5b7f273696cd8b7028587777b784decf945aca2e42036459d9d5fd81e493b11268286102576001600160e01b036103cb16565b604080516001600160a01b03928316815291851660208301528051918290030190a1604080517f61636f70726f78792e696d706c656d656e746174696f6e00000000000000000081529051908190036017019020828155815115610363576000836001600160a01b0316836040518082805190602001908083835b602083106102f15780518252601f1990920191602091820191016102d2565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610351576040519150601f19603f3d011682016040523d82523d6000602084013e610356565b606091505b505090508061036157fe5b505b505050565b604080516d30b1b7b83937bc3c9730b236b4b760911b8152905190819003600e0190205490565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906103c357508115155b949350505050565b604080517f61636f70726f78792e696d706c656d656e746174696f6e000000000000000000815290519081900360170190205490565b610611806104106000396000f3fe60806040526004361061004a5760003560e01c80634555d5c91461007a5780635c60da1b146100a15780638356ca4f146100d2578063c6d93f4a14610107578063f851a44014610194575b60006100546101a9565b90503660008037600080366000845af43d6000803e808015610075573d6000f35b3d6000fd5b34801561008657600080fd5b5061008f6101d9565b60408051918252519081900360200190f35b3480156100ad57600080fd5b506100b66101a9565b604080516001600160a01b039092168252519081900360200190f35b3480156100de57600080fd5b50610105600480360360208110156100f557600080fd5b50356001600160a01b03166101de565b005b34801561011357600080fd5b506101056004803603604081101561012a57600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561015557600080fd5b82018360208201111561016757600080fd5b8035906020019184600183028401116401000000008311171561018957600080fd5b50909250905061024d565b3480156101a057600080fd5b506100b66102f5565b604080517630b1b7b83937bc3c9734b6b83632b6b2b73a30ba34b7b760491b815290519081900360170190205490565b600290565b6101e66102f5565b6001600160a01b0316336001600160a01b031614610241576040805162461bcd60e51b815260206004820152601360248201527220a1a7a83937bc3c9d1d37b7363ca0b236b4b760691b604482015290519081900360640190fd5b61024a8161031c565b50565b6102556102f5565b6001600160a01b0316336001600160a01b0316146102b0576040805162461bcd60e51b815260206004820152601360248201527220a1a7a83937bc3c9d1d37b7363ca0b236b4b760691b604482015290519081900360640190fd5b6102f08383838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506103d292505050565b505050565b604080516d30b1b7b83937bc3c9730b236b4b760911b8152905190819003600e0190205490565b6001600160a01b0381166103615760405162461bcd60e51b81526004018080602001828103825260228152602001806105ba6022913960400191505060405180910390fd5b7fd2baf0ee61889f3230e02006e6c955d691579ad5ee5e11e133a8146ef2efc6a361038a6102f5565b604080516001600160a01b03928316815291841660208301528051918290030190a1604080516d30b1b7b83937bc3c9730b236b4b760911b8152905190819003600e01902055565b6103db82610549565b6104165760405162461bcd60e51b81526004018080602001828103825260348152602001806105866034913960400191505060405180910390fd5b7f273696cd8b7028587777b784decf945aca2e42036459d9d5fd81e493b112682861043f6101a9565b604080516001600160a01b03928316815291851660208301528051918290030190a1604080517630b1b7b83937bc3c9734b6b83632b6b2b73a30ba34b7b760491b815290519081900360170190208281558151156102f0576000836001600160a01b0316836040518082805190602001908083835b602083106104d35780518252601f1990920191602091820191016104b4565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610533576040519150601f19603f3d011682016040523d82523d6000602084013e610538565b606091505b505090508061054357fe5b50505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061057d57508115155b94935050505056fe41434f50726f78793a3a5f736574496d706c656d656e746174696f6e3a20496e76616c696420696d706c656d656e746174696f6e41434f50726f78793a3a5f73657441646d696e3a20496e76616c69642061646d696ea2646970667358221220feebbfc48a44cd9d8f488de71403d71314973d6d7b0b10e0bb97b7ef1812bc5f64736f6c6343000606003341434f50726f78793a3a5f736574496d706c656d656e746174696f6e3a20496e76616c696420696d706c656d656e746174696f6e41434f50726f78793a3a5f73657441646d696e3a20496e76616c69642061646d696e000000000000000000000000c25a67941ae0897933fc9abd6862dc7c34d49155000000000000000000000000af7da27761a62d0ee4a55a8577d565adae957acb000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000844b180da9000000000000000000000000c25a67941ae0897933fc9abd6862dc7c34d49155000000000000000000000000b82a6e7d7e31da91b03699abfe7ea29cf683144f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c25a67941ae0897933fc9abd6862dc7c34d4915500000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061004a5760003560e01c80634555d5c91461007a5780635c60da1b146100a15780638356ca4f146100d2578063c6d93f4a14610107578063f851a44014610194575b60006100546101a9565b90503660008037600080366000845af43d6000803e808015610075573d6000f35b3d6000fd5b34801561008657600080fd5b5061008f6101d9565b60408051918252519081900360200190f35b3480156100ad57600080fd5b506100b66101a9565b604080516001600160a01b039092168252519081900360200190f35b3480156100de57600080fd5b50610105600480360360208110156100f557600080fd5b50356001600160a01b03166101de565b005b34801561011357600080fd5b506101056004803603604081101561012a57600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561015557600080fd5b82018360208201111561016757600080fd5b8035906020019184600183028401116401000000008311171561018957600080fd5b50909250905061024d565b3480156101a057600080fd5b506100b66102f5565b604080517630b1b7b83937bc3c9734b6b83632b6b2b73a30ba34b7b760491b815290519081900360170190205490565b600290565b6101e66102f5565b6001600160a01b0316336001600160a01b031614610241576040805162461bcd60e51b815260206004820152601360248201527220a1a7a83937bc3c9d1d37b7363ca0b236b4b760691b604482015290519081900360640190fd5b61024a8161031c565b50565b6102556102f5565b6001600160a01b0316336001600160a01b0316146102b0576040805162461bcd60e51b815260206004820152601360248201527220a1a7a83937bc3c9d1d37b7363ca0b236b4b760691b604482015290519081900360640190fd5b6102f08383838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506103d292505050565b505050565b604080516d30b1b7b83937bc3c9730b236b4b760911b8152905190819003600e0190205490565b6001600160a01b0381166103615760405162461bcd60e51b81526004018080602001828103825260228152602001806105ba6022913960400191505060405180910390fd5b7fd2baf0ee61889f3230e02006e6c955d691579ad5ee5e11e133a8146ef2efc6a361038a6102f5565b604080516001600160a01b03928316815291841660208301528051918290030190a1604080516d30b1b7b83937bc3c9730b236b4b760911b8152905190819003600e01902055565b6103db82610549565b6104165760405162461bcd60e51b81526004018080602001828103825260348152602001806105866034913960400191505060405180910390fd5b7f273696cd8b7028587777b784decf945aca2e42036459d9d5fd81e493b112682861043f6101a9565b604080516001600160a01b03928316815291851660208301528051918290030190a1604080517630b1b7b83937bc3c9734b6b83632b6b2b73a30ba34b7b760491b815290519081900360170190208281558151156102f0576000836001600160a01b0316836040518082805190602001908083835b602083106104d35780518252601f1990920191602091820191016104b4565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610533576040519150601f19603f3d011682016040523d82523d6000602084013e610538565b606091505b505090508061054357fe5b50505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061057d57508115155b94935050505056fe41434f50726f78793a3a5f736574496d706c656d656e746174696f6e3a20496e76616c696420696d706c656d656e746174696f6e41434f50726f78793a3a5f73657441646d696e3a20496e76616c69642061646d696ea2646970667358221220feebbfc48a44cd9d8f488de71403d71314973d6d7b0b10e0bb97b7ef1812bc5f64736f6c63430006060033
Deployed Bytecode Sourcemap
166:4992:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1717:12;1732:16;:14;:16::i;:::-;1717:31;;1802:14;1799:1;1796;1783:34;1893:1;1890;1874:14;1871:1;1865:4;1858:5;1845:50;1930:16;1927:1;1924;1909:38;1968:6;1988:38;;;;2060:16;2057:1;2050:27;1988:38;2007:16;2004:1;1997:27;2286:78;;5:9:-1;2:2;;;27:1;24;17:12;2:2;2286:78:0;;;:::i;:::-;;;;;;;;;;;;;;;;2810:189;;5:9:-1;2:2;;;27:1;24;17:12;2:2;2810:189:0;;;:::i;:::-;;;;-1:-1:-1;;;;;2810:189:0;;;;;;;;;;;;;;3182:103;;5:9:-1;2:2;;;27:1;24;17:12;2:2;3182:103:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;3182:103:0;-1:-1:-1;;;;;3182:103:0;;:::i;:::-;;3607:164;;5:9:-1;2:2;;;27:1;24;17:12;2:2;3607:164:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;3607:164:0;;;;;;;;;;;;;;;27:11:-1;11:28;;8:2;;;52:1;49;42:12;8:2;3607:164:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;3607:164:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;3607:164:0;;-1:-1:-1;3607:164:0;-1:-1:-1;3607:164:0;:::i;2493:169::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;2493:169:0;;;:::i;2810:189::-;1092:36;;;-1:-1:-1;;;1092:36:0;;;;;;;;;;;;2966:15;;2943:49::o;2286:78::-;2354:1;2286:78;:::o;3182:103::-;1314:7;:5;:7::i;:::-;-1:-1:-1;;;;;1300:21:0;:10;-1:-1:-1;;;;;1300:21:0;;1292:53;;;;;-1:-1:-1;;;1292:53:0;;;;;;;;;;;;-1:-1:-1;;;1292:53:0;;;;;;;;;;;;;;;3258:19:::1;3268:8;3258:9;:19::i;:::-;3182:103:::0;:::o;3607:164::-;1314:7;:5;:7::i;:::-;-1:-1:-1;;;;;1300:21:0;:10;-1:-1:-1;;;;;1300:21:0;;1292:53;;;;;-1:-1:-1;;;1292:53:0;;;;;;;;;;;;-1:-1:-1;;;1292:53:0;;;;;;;;;;;;;;;3716:47:::1;3735:17;3754:8;;3716:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16:::0;::::1;74:27:::0;;;;-1:-1;3716:18:0::1;::::0;-1:-1:-1;;;3716:47:0:i:1;:::-;3607:164:::0;;;:::o;2493:169::-;916:27;;;-1:-1:-1;;;916:27:0;;;;;;;;;;;;2629:15;;2607:48::o;3916:320::-;-1:-1:-1;;;;;3981:22:0;;3973:69;;;;-1:-1:-1;;;3973:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4068:36;4086:7;:5;:7::i;:::-;4068:36;;;-1:-1:-1;;;;;4068:36:0;;;;;;;;;;;;;;;;;;;;;916:27;;;-1:-1:-1;;;916:27:0;;;;;;;;;;;;4192:26;4177:52::o;4575:580::-;4681:37;4700:17;4681:18;:37::i;:::-;4673:102;;;;-1:-1:-1;;;4673:102:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4801:54;4819:16;:14;:16::i;:::-;4801:54;;;-1:-1:-1;;;;;4801:54:0;;;;;;;;;;;;;;;;;;;;;1092:36;;;-1:-1:-1;;;1092:36:0;;;;;;;;;;;;4952:35;;;5012:15;;:19;5008:140;;5049:12;5066:17;-1:-1:-1;;;;;5066:30:0;5097:8;5066:40;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;5066:40:0;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;19;14:27;;;;67:4;61:11;56:16;;134:4;130:9;123:4;105:16;101:27;97:43;94:1;90:51;84:4;77:65;157:16;154:1;147:27;211:16;208:1;201:4;198:1;194:12;179:49;5:228;;14:27;32:4;27:9;;5:228;;5048:58:0;;;5128:7;5121:15;;;;5008:140;4575:580;;;:::o;803:619:1:-;863:4;1331:20;;1174:66;1371:23;;;;;;:42;;-1:-1:-1;1398:15:1;;;1371:42;1363:51;803:619;-1:-1:-1;;;;803:619:1:o
Swarm Source
ipfs://feebbfc48a44cd9d8f488de71403d71314973d6d7b0b10e0bb97b7ef1812bc5f
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.