Skip to content
Verified contractPartial

TeamPerfitForwarder

Address0x01ceb9dddea083d647fa7b09942474dece629c7e
Balance

0 ETH

 

Transactions

2

 

Compiler

solc 0.4.24

 

Same code

3 more contracts

 

Details

Compiler
solc 0.4.24+commit.e67f0147
Language
solidity
Optimization
Yes, 200 runs
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
6,391,508
Creation transaction
0x03b9145147…52c369e5b1

TeamPerfitForwarder.sol

pragma solidity ^0.4.24;

// File: contracts/TeamPerfitForwarder.sol

contract TeamPerfitForwarder {
    string public name = "TeamPerfitForwarder";
    address public owner;
    address public teamPerfitAddr;

    modifier onlyOwner {
        assert(owner == msg.sender);
        _;
    }

    constructor() 
        public
    {
        owner = msg.sender;
        teamPerfitAddr = msg.sender;
    }

    function() public payable
    {
        require(msg.value > 0, "zero value not allowed");

        teamPerfitAddr.transfer(msg.value);
    }

    function deposit() public payable returns(bool)
    {
        require(msg.value > 0, "Forwarder Deposit failed - zero deposits not allowed");

        teamPerfitAddr.transfer(msg.value);

        return true;
    }

    function status() public view returns(address, address)
    {
        return (address(teamPerfitAddr), address(owner));
    }

    function setTeamPerfitAddr(address newTeamPerfitAddr) public onlyOwner {
        teamPerfitAddr = newTeamPerfitAddr;
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": true
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.