Skip to content
Verified contractPartial

Resolver

Address0xcb536c04bbc549baadaf829a2db34d993b239e42
Balance

0 ETH

 

Transactions

19

 

Compiler

solc 0.5.8

 

Same code

Only this contract

 

Details

Compiler
solc 0.5.8+commit.23d335f2
Language
solidity
Optimization
Yes, 10,000 runs
EVM version
byzantium
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
8,173,029
Creation transaction
0x64c32e1c71…64e0a4042b

Resolver.sol

/**
 *Submitted for verification at Etherscan.io on 2019-06-20
*/

pragma solidity 0.5.8;

interface RouterInterface {
    function getPrototype() external view returns(address);
    function updateVersion(address _newPrototype) external returns(bool);
}

contract Resolver {
    address internal constant PLACEHOLDER = 0xed001e79E574a089ACf4105ab7fe0D7ACC452357;

    function () external payable {
        address prototype = RouterInterface(PLACEHOLDER).getPrototype();
        assembly {
            let calldatastart := 0
            calldatacopy(calldatastart, 0, calldatasize)
            let res := delegatecall(gas, prototype, calldatastart, calldatasize, 0, 0)
            let returndatastart := 0
            returndatacopy(returndatastart, 0, returndatasize)
            switch res case 0 { revert(returndatastart, returndatasize) }
                default { return(returndatastart, returndatasize) }
        }
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 10000,
    "enabled": true
  },
  "evmVersion": "byzantium"
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.