Discover more of Etherscan's tools and services in one place.
Sponsored
Contract Source Code:
File 1 of 1 : Owner
pragma solidity ^0.5.0; interface IVoomo { function checkState() external; } contract Owner { IVoomo public voomo; address payable public owner1; address payable public owner2; uint256 public constant limit = 1 ether; modifier onlyOwners { require(msg.sender == owner1 || msg.sender == owner2, "onlyOwners: access denied"); _; } constructor (address payable _owner1, address payable _owner2) public { require(_owner1 != address(0) && _owner2 != address(0), 'Owner: invalid addresses'); owner1 = _owner1; owner2 = _owner2; } function () external payable { // empty fallback method } function setContractAddress(IVoomo _voomo) external { require(address(voomo) == address(0), "setContractAddress: invalid adderss"); voomo = _voomo; } function checkState() external onlyOwners { voomo.checkState(); } function withdraw() external onlyOwners { uint256 balance = address(this).balance; owner1.transfer(balance/2); owner2.transfer(balance/2); } }
Please enter a contract address above to load the contract details and source code.
This website uses cookies to improve your experience. By continuing to use this website, you agree to its Terms and Privacy Policy.