Skip to content
Verified contractPartial

FundsTransfer

Address0x64700caf8b763c0d6399e4b40dc56b7fb0e83faf
Balance

0 ETH

 

Transactions

3

 

Compiler

solc 0.4.24

 

Same code

1 more contract

 

Details

Compiler
solc 0.4.24+commit.e67f0147
Language
solidity
Optimization
No
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
6,325,962
Creation transaction
0xd6a1f95aa3…9f6fc90da1

FundsTransfer.sol

pragma solidity ^0.4.23;

// ----------------------------------------------------------------------------
// Owned contract
// ----------------------------------------------------------------------------
contract Owned {
    address public owner;

    event OwnershipTransferred(address indexed _from, address indexed _to);

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

}

contract FundsTransfer is Owned{
    address public wallet;
    // ------------------------------------------------------------------------
    // Constructor
    // ------------------------------------------------------------------------
    constructor (address _wallet, address _owner) public{
        wallet = _wallet;
        owner = _owner;
    }

    function () external payable{
        _forwardFunds(msg.value);   
    }
  
    function _forwardFunds(uint256 _amount) internal {
        wallet.transfer(_amount);
    }
    
    function changeWallet(address newWallet) public onlyOwner {
        wallet = newWallet;
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 0,
    "enabled": false
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.