MATIC Price: $0.359592 (-20.28%)
 

Sponsored

Transaction Hash
Method
Block
From
To
Swap602216312024-08-05 11:58:2418 secs ago1722859104IN
0x00000000...3BA33D0B0
0 MATIC0.00847453167.18693074
Swap602216312024-08-05 11:58:2418 secs ago1722859104IN
0x00000000...3BA33D0B0
0 MATIC0.00847453167.18693074
Swap602216312024-08-05 11:58:2418 secs ago1722859104IN
0x00000000...3BA33D0B0
0 MATIC0.00847453167.18693074
Swap602216312024-08-05 11:58:2418 secs ago1722859104IN
0x00000000...3BA33D0B0
0 MATIC0.00847453167.18693074
Swap602216312024-08-05 11:58:2418 secs ago1722859104IN
0x00000000...3BA33D0B0
0 MATIC0.00847453167.18693074
Swap602216312024-08-05 11:58:2418 secs ago1722859104IN
0x00000000...3BA33D0B0
0 MATIC0.00847453167.18693074
Swap602216312024-08-05 11:58:2418 secs ago1722859104IN
0x00000000...3BA33D0B0
0 MATIC0.00847453167.18693074
Swap602216312024-08-05 11:58:2418 secs ago1722859104IN
0x00000000...3BA33D0B0
0 MATIC0.00847453167.18693074
Swap602216312024-08-05 11:58:2418 secs ago1722859104IN
0x00000000...3BA33D0B0
0 MATIC0.00847453167.18693074
Swap602216312024-08-05 11:58:2418 secs ago1722859104IN
0x00000000...3BA33D0B0
0 MATIC0.00847453167.18693074
Swap602216312024-08-05 11:58:2418 secs ago1722859104IN
0x00000000...3BA33D0B0
0 MATIC0.00847453167.18693074
Swap602216312024-08-05 11:58:2418 secs ago1722859104IN
0x00000000...3BA33D0B0
0 MATIC0.00847453167.18693074
Swap602216312024-08-05 11:58:2418 secs ago1722859104IN
0x00000000...3BA33D0B0
0 MATIC0.00847453167.18693074
Swap602216312024-08-05 11:58:2418 secs ago1722859104IN
0x00000000...3BA33D0B0
0 MATIC0.00847453167.18693074
Swap602216312024-08-05 11:58:2418 secs ago1722859104IN
0x00000000...3BA33D0B0
0 MATIC0.00847453167.18693074
Swap602216312024-08-05 11:58:2418 secs ago1722859104IN
0x00000000...3BA33D0B0
0 MATIC0.00847453167.18693074
Swap602216312024-08-05 11:58:2418 secs ago1722859104IN
0x00000000...3BA33D0B0
0 MATIC0.00847453167.18693074
Swap602216312024-08-05 11:58:2418 secs ago1722859104IN
0x00000000...3BA33D0B0
0 MATIC0.00847453167.18693074
Swap602216312024-08-05 11:58:2418 secs ago1722859104IN
0x00000000...3BA33D0B0
0 MATIC0.00847453167.18693074
Swap602216312024-08-05 11:58:2418 secs ago1722859104IN
0x00000000...3BA33D0B0
0 MATIC0.01370531167.18693074
Swap602216312024-08-05 11:58:2418 secs ago1722859104IN
0x00000000...3BA33D0B0
0 MATIC0.00847453167.18693074
Swap602216312024-08-05 11:58:2418 secs ago1722859104IN
0x00000000...3BA33D0B0
0 MATIC0.01370531167.18693074
Swap602216152024-08-05 11:57:5052 secs ago1722859070IN
0x00000000...3BA33D0B0
0 MATIC0.00843678157.12127716
Swap602216152024-08-05 11:57:5052 secs ago1722859070IN
0x00000000...3BA33D0B0
0 MATIC0.00843678157.12127716
Swap602216152024-08-05 11:57:5052 secs ago1722859070IN
0x00000000...3BA33D0B0
0 MATIC0.00843678157.12127716
View all transactions

Latest 1 internal transaction

Parent Transaction Hash Block From To
596824222024-07-22 19:34:2513 days ago1721676865  Contract Creation0 MATIC
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x777777E1...4264923BC
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
Proxy

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity Multiple files format)

File 1 of 2: Proxy.sol
// 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())
      }
    }
  }
}

File 2 of 2: ICPO.sol
// SPDX-License-Identifier: Unlicense
pragma solidity 0.8.9;

interface ICPO {
  function implementations(string memory) external view returns (address);
}

Contract Security Audit

Contract ABI

[{"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"}]

Deployed Bytecode

0x6080604052600436106100385760003560e01c806383197ef014610087578063d7dfa0dd1461009e578063f3a50f89146100fb5761003f565b3661003f57005b601460bc6000396000518015600181146100585761005d565b600080fd5b5036600080376000803660008460601c5af490503d6000803e808015610082573d6000f35b3d6000fd5b34801561009357600080fd5b5061009c61012f565b005b3480156100aa57600080fd5b506100d27f000000000000000000000000eca84f7f23e5218b419eecefea37e560ecf7447481565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b34801561010757600080fd5b506100d27f000000000000000000000000722574568467f4e0694fb290448b1ef28dcfc19181565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000722574568467f4e0694fb290448b1ef28dcfc19116146101d2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600260248201527f3031000000000000000000000000000000000000000000000000000000000000604482015260640160405180910390fd5b7f000000000000000000000000722574568467f4e0694fb290448b1ef28dcfc19180fffea26469706673582212200cdab01336fc48a769727baaa0ac980a6067494637da4248ac2401ed243bac0564736f6c63430008090033

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

Block Transaction Gas Used Reward
view all blocks produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.