Verified contractPartial
Proxy
Address0x760c2baa02fecb8a08858cbfcb35549f3ec425fa
- Balance
0 ETH
- Transactions
0
- Compiler
solc 0.6.12
- Same code
3,944 more contracts
Details
- Compiler
- solc 0.6.12+commit.27d51765
- Language
- solidity
- Optimization
- No
- EVM version
- istanbul
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 11,933,300
- Creation transaction
- 0xc546b0ade8…1102db5f34
- Main copy (most transactions)
- 0x68b448e7…f14739b9
Proxy.sol
pragma solidity 0.6.12;
contract Proxy {
// Code position in storage is:
// keccak256("PROXIABLE") = "0xc5f16f0fcc639fa48a6947836d9850f504798523bf8c9a3a87d5876cf622bcf7"
uint256 constant PROXIABLE_SLOT = 0xc5f16f0fcc639fa48a6947836d9850f504798523bf8c9a3a87d5876cf622bcf7;
constructor(address contractLogic) public {
// Verify a valid address was passed in
require(contractLogic != address(0), "Contract Logic cannot be 0x0");
// save the code address
assembly { // solium-disable-line
sstore(PROXIABLE_SLOT, contractLogic)
}
}
fallback() external payable {
assembly { // solium-disable-line
let contractLogic := sload(PROXIABLE_SLOT)
let ptr := mload(0x40)
calldatacopy(ptr, 0x0, calldatasize())
let success := delegatecall(gas(), contractLogic, ptr, calldatasize(), 0, 0)
let retSz := returndatasize()
returndatacopy(ptr, 0, retSz)
switch success
case 0 {
revert(ptr, retSz)
}
default {
return(ptr, retSz)
}
}
}
}Compiler settingsShow
{
"metadata": {
"bytecodeHash": "ipfs"
},
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": false
},
"evmVersion": "istanbul",
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.