ETH Price: $2,453.01 (+1.09%)

Contract Diff Checker

Contract Name:
UserProxy

Contract Source Code:

File 1 of 1 : UserProxy

pragma solidity ^0.5.0;

contract UserProxy { //@audit focus on this

    address private _owner;

    /**
     * @dev Initializes the contract settings
     */
    constructor()
        public
    {
        _owner = msg.sender;
    }

    /**
     * @dev Transfers punk to the smart contract owner
     */
    function transfer(address punkContract, uint256 punkIndex)
        external
        returns (bool)
    {
        if (_owner != msg.sender) {
            return false;
        }

        (bool result,) = punkContract.call(abi.encodeWithSignature("transferPunk(address,uint256)", _owner, punkIndex));

        return result;
    }

}

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

Context size (optional):