ETH Price: $2,034.21 (-2.36%)

Contract Diff Checker

Contract Name:
Proxy

Contract Source Code:

File 1 of 1 : Proxy

pragma solidity ^0.5.3;

contract Proxy {
    address internal masterCopy;

    constructor(address _masterCopy) public {
        require(_masterCopy != address(0), "Invalid master copy address provided");
        masterCopy = _masterCopy;
    }

    function () external payable {
        assembly {
            let masterCopy := and(sload(0), 0xffffffffffffffffffffffffffffffffffffffff)
            if eq(calldataload(0), 0xa619486e00000000000000000000000000000000000000000000000000000000) {
                mstore(0, masterCopy)
                return(0, 0x20)
            }
            calldatacopy(0, 0, calldatasize())
            let success := delegatecall(gas, masterCopy, 0, calldatasize(), 0, 0)
            returndatacopy(0, 0, returndatasize())
            if iszero(success) { revert(0, returndatasize()) }
            return(0, returndatasize())
        }
    }
}

Please enter a contract address above to load the contract details and source code.

Context size (optional):