Verified contractPartial
Proxy
Address0xc0bd1f08d3a846e70f84c19f366d0df748dfeb16
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.5.14
- Same code
1,368 more contracts
Details
- Compiler
- solc 0.5.14+commit.01f1aaa4
- Language
- solidity
- Optimization
- Yes, 10,000 runs
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 16,658,132
- Creation transaction
- 0x3b328b8e8a…bd9a1f52db
- Main copy (most transactions)
- 0xc290dbbd…3eac3b4d
Proxy.sol
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())
}
}
}Compiler settingsShow
{
"libraries": {},
"optimizer": {
"runs": 10000,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.