Skip to content
Verified contractPartial

Galaxy622

Address0x94ad2b74a2f4b7ae80228632972fdf3a455ca321
Balance

0.0001 ETH

 

Transactions

77

 

Compiler

solc 0.4.25

 

Same code

Only this contract

 

Details

Compiler
solc 0.4.25+commit.59dbf8f1
Language
solidity
Optimization
Yes, 200 runs
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
8,928,522
Creation transaction
0x48f2c9c824…b1bd5e492a

Galaxy622.sol

pragma solidity ^0.4.25;

contract Galaxy622{
    
    address owner;
    uint name;
    
    address platformAddr = address(0x9ea5E47e322eEe5C8A9C156DD1A43fa4Df24938C);
    address masterAddr = address(0xB94e88b983B50E45891F8Ac597B940e72F66804E);
    uint public totalInvestments = 0;
    uint public totalInvested = 0;
    
    uint ethWei = 1 ether;
    
    constructor(uint _name) public payable{
        owner = masterAddr;
        name = _name;
    }
    
    modifier onlyOwner(){
        require (msg.sender==owner, "Ownable: caller is not the owner");
        _;
    }
    
    function () payable public {
    }
    
    function getBalance() public constant returns(uint){
        return address(this).balance;
    }
    
    function sendFeetoAdmin(uint amount) private {
        
        uint256 c = amount * 15 / 100;
        platformAddr.transfer(c);
    }
    
    function sendTransfer(address _user,uint _price) public onlyOwner{
        require(_user!=owner, "Only Owner");
        if(address(this).balance>=_price){
            _user.transfer(_price);
        }
    }
    
    function doInvest() public payable {
        require(msg.value >= ethWei, "msg.value must be >= ethWei");

        sendFeetoAdmin(msg.value);
        totalInvestments++;
        totalInvested += msg.value;
    }
    
    function getEth(uint _price) public onlyOwner{
        if(_price>0){
            if(address(this).balance>=_price){
                owner.transfer(_price);
            }
        }else{
           owner.transfer(address(this).balance); 
        }
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": true
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.