ETH Price: $3,378.15 (-3.64%)
Gas: 1 Gwei

Contract

0x7095F0B91A1010c11820B4E263927835A4CF52c9
 

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
0x60806040127865832021-07-08 12:00:351081 days ago1625745635IN
 Contract Creation
0 ETH0.0076486723

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x43a7De4b...Fde146AeB
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
Vault

Compiler Version
v0.5.16+commit.9c3226ce

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, BSD-3-Clause license
/**
 *Submitted for verification at Etherscan.io on 2021-04-24
*/

/**
 *Submitted for verification at Etherscan.io on 2021-04-24
*/

// File: @openzeppelin/contracts/GSN/Context.sol

pragma solidity ^0.5.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor () internal { }
    // solhint-disable-previous-line no-empty-blocks

    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// File: @openzeppelin/contracts/ownership/Ownable.sol

pragma solidity ^0.5.0;

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(isOwner(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Returns true if the caller is the current owner.
     */
    function isOwner() public view returns (bool) {
        return _msgSender() == _owner;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

// File: contracts/Vault.sol

pragma solidity ^0.5.16;


// initially deployer owns it, and then it moves it to the DAO
contract Vault is Ownable {
    constructor(address owner) public {
        transferOwnership(owner);
    }

    function op(address payable target, bytes calldata data, uint value) onlyOwner external payable {
        target.call.value(value)(data);
    }
    function() payable external {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address payable","name":"target","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"op","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x60806040526004361061004a5760003560e01c8063558ef5f21461004c578063715018a6146100cc5780638da5cb5b146100e15780638f32d59b14610112578063f2fde38b1461013b575b005b61004a6004803603606081101561006257600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561008d57600080fd5b82018360208201111561009f57600080fd5b803590602001918460018302840111640100000000831117156100c157600080fd5b91935091503561016e565b3480156100d857600080fd5b5061004a610233565b3480156100ed57600080fd5b506100f66102d6565b604080516001600160a01b039092168252519081900360200190f35b34801561011e57600080fd5b506101276102e5565b604080519115158252519081900360200190f35b34801561014757600080fd5b5061004a6004803603602081101561015e57600080fd5b50356001600160a01b0316610309565b6101766102e5565b6101c7576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b836001600160a01b0316818484604051808383808284376040519201945060009350909150508083038185875af1925050503d8060008114610225576040519150601f19603f3d011682016040523d82523d6000602084013e61022a565b606091505b50505050505050565b61023b6102e5565b61028c576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b600080546001600160a01b03166102fa61036e565b6001600160a01b031614905090565b6103116102e5565b610362576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61036b81610372565b50565b3390565b6001600160a01b0381166103b75760405162461bcd60e51b81526004018080602001828103825260268152602001806104136026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b039290921691909117905556fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a265627a7a7231582016b1da7822783aab1769cd5ae1321d9623226099e323bde2a67ee385af81955f64736f6c63430005100032

Deployed Bytecode Sourcemap

3906:302:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4024:145;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;4024:145:0;;;;;;;;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;4024:145:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;4024:145:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;4024:145:0;;-1:-1:-1;4024:145:0;-1:-1:-1;4024:145:0;;:::i;3034:140::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3034:140:0;;;:::i;2223:79::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2223:79:0;;;:::i;:::-;;;;-1:-1:-1;;;;;2223:79:0;;;;;;;;;;;;;;2589:94;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2589:94:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;3329:109;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3329:109:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3329:109:0;-1:-1:-1;;;;;3329:109:0;;:::i;4024:145::-;2435:9;:7;:9::i;:::-;2427:54;;;;;-1:-1:-1;;;2427:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4131:6;-1:-1:-1;;;;;4131:11:0;4149:5;4156:4;;4131:30;;;;;30:3:-1;22:6;14;1:33;4131:30:0;;45:16:-1;;;-1:-1;4131:30:0;;-1:-1:-1;4131:30:0;;-1:-1:-1;;4131:30:0;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;4131:30:0;;4024:145;;;;:::o;3034:140::-;2435:9;:7;:9::i;:::-;2427:54;;;;;-1:-1:-1;;;2427:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3133:1;3117:6;;3096:40;;-1:-1:-1;;;;;3117:6:0;;;;3096:40;;3133:1;;3096:40;3164:1;3147:19;;-1:-1:-1;;;;;;3147:19:0;;;3034:140::o;2223:79::-;2261:7;2288:6;-1:-1:-1;;;;;2288:6:0;2223:79;:::o;2589:94::-;2629:4;2669:6;;-1:-1:-1;;;;;2669:6:0;2653:12;:10;:12::i;:::-;-1:-1:-1;;;;;2653:22:0;;2646:29;;2589:94;:::o;3329:109::-;2435:9;:7;:9::i;:::-;2427:54;;;;;-1:-1:-1;;;2427:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3402:28;3421:8;3402:18;:28::i;:::-;3329:109;:::o;929:98::-;1009:10;929:98;:::o;3544:229::-;-1:-1:-1;;;;;3618:22:0;;3610:73;;;;-1:-1:-1;;;3610:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3720:6;;;3699:38;;-1:-1:-1;;;;;3699:38:0;;;;3720:6;;;3699:38;;;3748:6;:17;;-1:-1:-1;;;;;;3748:17:0;-1:-1:-1;;;;;3748:17:0;;;;;;;;;;3544:229::o

Swarm Source

bzzr://16b1da7822783aab1769cd5ae1321d9623226099e323bde2a67ee385af81955f

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.