Skip to content
Verified contractPartial

TeamPerfitForwarder

Address0x2b43dcaaffd3d200d643f41857214ce75ed24294
Balance

0 ETH

 

Transactions

1

 

Compiler

solc 0.4.24

 

Same code

2 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,488,879
Creation transaction
0x6ebbc0f59a…838f5a0ef9

TeamPerfitForwarder.sol

// Recovered by EthereumHistory (ethereumhistory.com) -sw
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.