Contract Overview
My Name Tag:
Not Available, login to update
[ Download CSV Export ]
Latest 1 internal transaction
Parent Txn Hash | Block | From | To | Value | |||
---|---|---|---|---|---|---|---|
0x67fe2c5be56b2c896c4a098106877a60f64d65ac800b2fcd1b68638e09097e84 | 41595112 | 49 days 23 hrs ago | 0x22fd8f7f803689b41ee8e435af4fc2cedf825071 | Contract Creation | 0 MATIC |
[ Download CSV Export ]
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Similar Match Source Code
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x777777e144b9bef412b9f8f7a16e6674264923bc
Contract Name:
Proxy
Compiler Version
v0.8.9+commit.e5eed63a
Contract Source Code (Solidity Multiple files format)
// SPDX-License-Identifier: Unlicense pragma solidity 0.8.9; import "ICPO.sol"; // 01: unauthorized contract Proxy { address public immutable logic; address public immutable cpo; // If you ever change this file // Or recompile with a new compiler, this offset will probably be different // Run test_get_offset() with 3 verbosity to get the offset uint256 internal constant offset = 188; constructor(address _cpo, string memory _name) { cpo = _cpo; logic = ICPO(_cpo).implementations(_name); } function destroy() public { require(msg.sender == cpo, "01"); address _addr = payable(cpo); assembly { selfdestruct(_addr) } } receive() external payable {} fallback() external payable { assembly { // Extract out immutable variable "logic" codecopy(0, offset, 20) let impl := mload(0) switch iszero(impl) case 1 { revert(0, 0) } default { } calldatacopy(0, 0, calldatasize()) let result := delegatecall( gas(), shr(96, impl), 0, calldatasize(), 0, 0 ) returndatacopy(0, 0, returndatasize()) switch result case 0 { revert(0, returndatasize()) } default { return(0, returndatasize()) } } } }
// SPDX-License-Identifier: Unlicense pragma solidity 0.8.9; interface ICPO { function implementations(string memory) external view returns (address); }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_cpo","type":"address"},{"internalType":"string","name":"_name","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"cpo","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"destroy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"logic","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60c060405234801561001057600080fd5b5060405161049838038061049883398101604081905261002f91610125565b6001600160a01b03821660a08190526040516301863c4160e21b8152630618f1049061005f9084906004016101e5565b60206040518083038186803b15801561007757600080fd5b505afa15801561008b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100af9190610218565b6001600160a01b03166080525061023a9050565b80516001600160a01b03811681146100da57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b838110156101105781810151838201526020016100f8565b8381111561011f576000848401525b50505050565b6000806040838503121561013857600080fd5b610141836100c3565b60208401519092506001600160401b038082111561015e57600080fd5b818501915085601f83011261017257600080fd5b815181811115610184576101846100df565b604051601f8201601f19908116603f011681019083821181831017156101ac576101ac6100df565b816040528281528860208487010111156101c557600080fd5b6101d68360208301602088016100f5565b80955050505050509250929050565b60208152600082518060208401526102048160408501602087016100f5565b601f01601f19169190910160400192915050565b60006020828403121561022a57600080fd5b610233826100c3565b9392505050565b60805160a05161022c61026c6000396000818161010d0152818161014701526101d40152600060b0015261022c6000f3fe6080604052600436106100385760003560e01c806383197ef014610087578063d7dfa0dd1461009e578063f3a50f89146100fb5761003f565b3661003f57005b601460bc6000396000518015600181146100585761005d565b600080fd5b5036600080376000803660008460601c5af490503d6000803e808015610082573d6000f35b3d6000fd5b34801561009357600080fd5b5061009c61012f565b005b3480156100aa57600080fd5b506100d27f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b34801561010757600080fd5b506100d27f000000000000000000000000000000000000000000000000000000000000000081565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146101d2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600260248201527f3031000000000000000000000000000000000000000000000000000000000000604482015260640160405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000080fffea26469706673582212200cdab01336fc48a769727baaa0ac980a6067494637da4248ac2401ed243bac0564736f6c63430008090033000000000000000000000000caa40f38e4400d3078ed6b1cab020eb917cf9cca00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000010516944616f466f6c6465725344414d3300000000000000000000000000000000
Deployed ByteCode Sourcemap
102:1232:1:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;831:2;823:6;820:1;811:23;859:1;853:8;883:4;876:12;900:1;895:39;;;;869:90;;895:39;924:1;921;914:12;869:90;;986:14;983:1;980;967:34;1128:1;1117;1093:14;1082:1;1067:4;1063:2;1059:13;1044:5;1022:115;1008:129;;1165:16;1162:1;1159;1144:38;1197:6;1210:52;;;;1297:16;1294:1;1287:27;1210:52;1237:16;1234:1;1227:27;524:151;;;;;;;;;;;;;:::i;:::-;;121:30;;;;;;;;;;;;;;;;;;190:42:2;178:55;;;160:74;;148:2;133:18;121:30:1;;;;;;;155:28;;;;;;;;;;;;;;;524:151;564:10;:17;578:3;564:17;;556:32;;;;;;;447:2:2;556:32:1;;;429:21:2;486:1;466:18;;;459:29;524:4;504:18;;;497:32;546:18;;556:32:1;;;;;;;;619:3;;646:19
Swarm Source
ipfs://0cdab01336fc48a769727baaa0ac980a6067494637da4248ac2401ed243bac05
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.