Verified contractPartial
UserProxy
Address0xafb60b4650147cd6d45ee294c7cb88588c24e3d6
- Balance
0 ETH
- Transactions
0
- Compiler
solc 0.5.17
- Same code
1,225 more contracts
Details
- Compiler
- solc 0.5.17+commit.d19bba13
- Language
- solidity
- Optimization
- Yes, 200 runs
- EVM version
- istanbul
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 11,550,819
- Creation transaction
- 0x7a1eb5dee2…0900550d0c
- Main copy (most transactions)
- 0x178f1220…e57f6652
UserProxy.sol
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;
}
}Compiler settingsShow
{
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": true
},
"evmVersion": "istanbul",
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.