ETH Price: $1,953.48 (-2.74%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer155079912022-09-10 9:12:461270 days ago1662801166IN
0xc3199D64...62c14526d
0.2079925 ETH0.00025896.56465297
Transfer154081982022-08-25 9:00:321286 days ago1661418032IN
0xc3199D64...62c14526d
0.20013101 ETH0.0004084410.35624781
Transfer153132932022-08-10 8:30:161301 days ago1660120216IN
0xc3199D64...62c14526d
0.20379371 ETH0.0005282713.39478482
Transfer152172492022-07-26 9:09:451316 days ago1658826585IN
0xc3199D64...62c14526d
0.20376411 ETH0.0004167410.56675538
Transfer151204972022-07-11 9:21:481331 days ago1657531308IN
0xc3199D64...62c14526d
0.21031689 ETH0.0003989210.11499898
Transfer150228402022-06-25 8:35:311347 days ago1656146131IN
0xc3199D64...62c14526d
0.20886962 ETH0.0009554524.22604966
Transfer149198462022-06-07 8:34:091365 days ago1654590849IN
0xc3199D64...62c14526d
0.20105838 ETH0.0010188225.83294174
Transfer148098292022-05-20 7:40:261383 days ago1653032426IN
0xc3199D64...62c14526d
0.20894597 ETH0.0007648819.39416338
Transfer146970152022-05-02 7:32:421401 days ago1651476762IN
0xc3199D64...62c14526d
0.21094465 ETH0.0023115258.61013841
Transfer145888742022-04-15 8:30:321418 days ago1650011432IN
0xc3199D64...62c14526d
0.11180313 ETH0.0010721327.18460365
Transfer145316162022-04-06 9:43:301427 days ago1649238210IN
0xc3199D64...62c14526d
0.1004704 ETH0.0016000440.57021657
Transfer144803402022-03-29 9:31:321435 days ago1648546292IN
0xc3199D64...62c14526d
0.10271569 ETH0.0011455629.04645994
Transfer144287432022-03-21 8:50:421443 days ago1647852642IN
0xc3199D64...62c14526d
0.10278115 ETH0.000739818.75812903
Transfer143772382022-03-13 8:26:571451 days ago1647160017IN
0xc3199D64...62c14526d
0.1042637 ETH0.0005587914.16852153
Transfer143258212022-03-05 8:37:501459 days ago1646469470IN
0xc3199D64...62c14526d
0.10489621 ETH0.0008801622.31722072
Transfer142741112022-02-25 8:08:361467 days ago1645776516IN
0xc3199D64...62c14526d
0.10415248 ETH0.0019737850.04647744
Transfer142225152022-02-17 8:13:251475 days ago1645085605IN
0xc3199D64...62c14526d
0.1046512 ETH0.0020894752.97985583
Transfer141706042022-02-09 7:45:551483 days ago1644392755IN
0xc3199D64...62c14526d
0.10436266 ETH0.0022233256.37368522
Transfer141253752022-02-02 7:48:241490 days ago1643788104IN
0xc3199D64...62c14526d
0.1098144 ETH0.00427405108.37135762
Transfer140734602022-01-25 7:41:011498 days ago1643096461IN
0xc3199D64...62c14526d
0.11450565 ETH0.00437661110.97163093
Transfer140217152022-01-17 7:41:351506 days ago1642405295IN
0xc3199D64...62c14526d
0.11332249 ETH0.00458782116.32700052
Transfer139701242022-01-09 7:56:111514 days ago1641714971IN
0xc3199D64...62c14526d
0.1102934 ETH0.00431747109.47210509
Transfer139182462022-01-01 7:43:391522 days ago1641023019IN
0xc3199D64...62c14526d
0.11267555 ETH0.002191855.57444313
Transfer138670042021-12-24 9:09:551530 days ago1640336995IN
0xc3199D64...62c14526d
0.10008139 ETH0.0024281661.56773406
Transfer138216012021-12-17 8:28:431537 days ago1639729723IN
0xc3199D64...62c14526d
0.1021138 ETH0.0019619949.74747443
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer155079912022-09-10 9:12:461270 days ago1662801166
0xc3199D64...62c14526d
0.2079925 ETH
Transfer154081982022-08-25 9:00:321286 days ago1661418032
0xc3199D64...62c14526d
0.20013101 ETH
Transfer153132932022-08-10 8:30:161301 days ago1660120216
0xc3199D64...62c14526d
0.20379371 ETH
Transfer152172492022-07-26 9:09:451316 days ago1658826585
0xc3199D64...62c14526d
0.20376411 ETH
Transfer151204972022-07-11 9:21:481331 days ago1657531308
0xc3199D64...62c14526d
0.21031689 ETH
Transfer150228402022-06-25 8:35:311347 days ago1656146131
0xc3199D64...62c14526d
0.20886962 ETH
-149198462022-06-07 8:34:091365 days ago1654590849
0xc3199D64...62c14526d
0.20105838 ETH
-148098292022-05-20 7:40:261383 days ago1653032426
0xc3199D64...62c14526d
0.20894597 ETH
-146970152022-05-02 7:32:421401 days ago1651476762
0xc3199D64...62c14526d
0.21094465 ETH
-145888742022-04-15 8:30:321418 days ago1650011432
0xc3199D64...62c14526d
0.11180313 ETH
-145316162022-04-06 9:43:301427 days ago1649238210
0xc3199D64...62c14526d
0.1004704 ETH
-144803402022-03-29 9:31:321435 days ago1648546292
0xc3199D64...62c14526d
0.10271569 ETH
-144287432022-03-21 8:50:421443 days ago1647852642
0xc3199D64...62c14526d
0.10278115 ETH
-143772382022-03-13 8:26:571451 days ago1647160017
0xc3199D64...62c14526d
0.1042637 ETH
-143258212022-03-05 8:37:501459 days ago1646469470
0xc3199D64...62c14526d
0.10489621 ETH
-142741112022-02-25 8:08:361467 days ago1645776516
0xc3199D64...62c14526d
0.10415248 ETH
-142225152022-02-17 8:13:251475 days ago1645085605
0xc3199D64...62c14526d
0.1046512 ETH
-141706042022-02-09 7:45:551483 days ago1644392755
0xc3199D64...62c14526d
0.10436266 ETH
-141253752022-02-02 7:48:241490 days ago1643788104
0xc3199D64...62c14526d
0.1098144 ETH
-140734602022-01-25 7:41:011498 days ago1643096461
0xc3199D64...62c14526d
0.11450565 ETH
-140217152022-01-17 7:41:351506 days ago1642405295
0xc3199D64...62c14526d
0.11332249 ETH
-139701242022-01-09 7:56:111514 days ago1641714971
0xc3199D64...62c14526d
0.1102934 ETH
-139182462022-01-01 7:43:391522 days ago1641023019
0xc3199D64...62c14526d
0.11267555 ETH
-138670042021-12-24 9:09:551530 days ago1640336995
0xc3199D64...62c14526d
0.10008139 ETH
-138216012021-12-17 8:28:431537 days ago1639729723
0xc3199D64...62c14526d
0.1021138 ETH
View All Internal Transactions
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Minimal Proxy Contract for 0x059ffafdc6ef594230de44f824e2bd0a51ca5ded

Contract Name:
Forwarder

Compiler Version
v0.7.5+commit.eb77ed08

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, Apache-2.0 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-02-24
*/

pragma solidity 0.7.5;

/*
    The MIT License (MIT)
    Copyright (c) 2018 Murray Software, LLC.
    Permission is hereby granted, free of charge, to any person obtaining
    a copy of this software and associated documentation files (the
    "Software"), to deal in the Software without restriction, including
    without limitation the rights to use, copy, modify, merge, publish,
    distribute, sublicense, and/or sell copies of the Software, and to
    permit persons to whom the Software is furnished to do so, subject to
    the following conditions:
    The above copyright notice and this permission notice shall be included
    in all copies or substantial portions of the Software.
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
    OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
    IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
    CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
    TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
//solhint-disable max-line-length
//solhint-disable no-inline-assembly

contract CloneFactory {
  function createClone(address target, bytes32 salt)
    internal
    returns (address payable result)
  {
    bytes20 targetBytes = bytes20(target);
    assembly {
      // load the next free memory slot as a place to store the clone contract data
      let clone := mload(0x40)

      // The bytecode block below is responsible for contract initialization
      // during deployment, it is worth noting the proxied contract constructor will not be called during
      // the cloning procedure and that is why an initialization function needs to be called after the
      // clone is created
      mstore(
        clone,
        0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000
      )

      // This stores the address location of the implementation contract
      // so that the proxy knows where to delegate call logic to
      mstore(add(clone, 0x14), targetBytes)

      // The bytecode block is the actual code that is deployed for each clone created.
      // It forwards all calls to the already deployed implementation via a delegatecall
      mstore(
        add(clone, 0x28),
        0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000
      )

      // deploy the contract using the CREATE2 opcode
      // this deploys the minimal proxy defined above, which will proxy all
      // calls to use the logic defined in the implementation contract `target`
      result := create2(0, clone, 0x37, salt)
    }
  }

  function isClone(address target, address query)
    internal
    view
    returns (bool result)
  {
    bytes20 targetBytes = bytes20(target);
    assembly {
      // load the next free memory slot as a place to store the comparison clone
      let clone := mload(0x40)

      // The next three lines store the expected bytecode for a miniml proxy
      // that targets `target` as its implementation contract
      mstore(
        clone,
        0x363d3d373d3d3d363d7300000000000000000000000000000000000000000000
      )
      mstore(add(clone, 0xa), targetBytes)
      mstore(
        add(clone, 0x1e),
        0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000
      )

      // the next two lines store the bytecode of the contract that we are checking in memory
      let other := add(clone, 0x40)
      extcodecopy(query, other, 0, 0x2d)

      // Check if the expected bytecode equals the actual bytecode and return the result
      result := and(
        eq(mload(clone), mload(other)),
        eq(mload(add(clone, 0xd)), mload(add(other, 0xd)))
      )
    }
  }
}


/**
 * Contract that exposes the needed erc20 token functions
 */

abstract contract ERC20Interface {
  // Send _value amount of tokens to address _to
  function transfer(address _to, uint256 _value)
    public
    virtual
    returns (bool success);

  // Get the account balance of another account with address _owner
  function balanceOf(address _owner)
    public
    virtual
    view
    returns (uint256 balance);
}

// helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false
library TransferHelper {
    function safeApprove(
        address token,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('approve(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value));
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            'TransferHelper::safeApprove: approve failed'
        );
    }

    function safeTransfer(
        address token,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('transfer(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value));
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            'TransferHelper::safeTransfer: transfer failed'
        );
    }

    function safeTransferFrom(
        address token,
        address from,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('transferFrom(address,address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value));
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            'TransferHelper::transferFrom: transferFrom failed'
        );
    }

    function safeTransferETH(address to, uint256 value) internal {
        (bool success, ) = to.call{value: value}(new bytes(0));
        require(success, 'TransferHelper::safeTransferETH: ETH transfer failed');
    }
}


/**
 * Contract that will forward any incoming Ether to the creator of the contract
 *
 */
contract Forwarder {
  // Address to which any funds sent to this contract will be forwarded
  address public parentAddress;
  event ForwarderDeposited(address from, uint256 value, bytes data);

  /**
   * Initialize the contract, and sets the destination address to that of the creator
   */
  function init(address _parentAddress) external onlyUninitialized {
    parentAddress = _parentAddress;
    uint256 value = address(this).balance;

    if (value == 0) {
      return;
    }

    (bool success, ) = parentAddress.call{ value: value }('');
    require(success, 'Flush failed');
    // NOTE: since we are forwarding on initialization,
    // we don't have the context of the original sender.
    // We still emit an event about the forwarding but set
    // the sender to the forwarder itself
    emit ForwarderDeposited(address(this), value, msg.data);
  }

  /**
   * Modifier that will execute internal code block only if the sender is the parent address
   */
  modifier onlyParent {
    require(msg.sender == parentAddress, 'Only Parent');
    _;
  }

  /**
   * Modifier that will execute internal code block only if the contract has not been initialized yet
   */
  modifier onlyUninitialized {
    require(parentAddress == address(0x0), 'Already initialized');
    _;
  }

  /**
   * Default function; Gets called when data is sent but does not match any other function
   */
  fallback() external payable {
    flush();
  }

  /**
   * Default function; Gets called when Ether is deposited with no data, and forwards it to the parent address
   */
  receive() external payable {
    flush();
  }

  /**
   * Execute a token transfer of the full balance from the forwarder token to the parent address
   * @param tokenContractAddress the address of the erc20 token contract
   */
  function flushTokens(address tokenContractAddress) external onlyParent {
    ERC20Interface instance = ERC20Interface(tokenContractAddress);
    address forwarderAddress = address(this);
    uint256 forwarderBalance = instance.balanceOf(forwarderAddress);
    if (forwarderBalance == 0) {
      return;
    }

    TransferHelper.safeTransfer(
      tokenContractAddress,
      parentAddress,
      forwarderBalance
    );
  }

  /**
   * Flush the entire balance of the contract to the parent address.
   */
  function flush() public {
    uint256 value = address(this).balance;

    if (value == 0) {
      return;
    }

    (bool success, ) = parentAddress.call{ value: value }('');
    require(success, 'Flush failed');
    emit ForwarderDeposited(msg.sender, value, msg.data);
  }
}

contract ForwarderFactory is CloneFactory {
  address public implementationAddress;

  event ForwarderCreated(address newForwarderAddress, address parentAddress);

  constructor(address _implementationAddress) {
    implementationAddress = _implementationAddress;
  }

  function createForwarder(address parent, bytes32 salt) external {
    // include the signers in the salt so any contract deployed to a given address must have the same signers
    bytes32 finalSalt = keccak256(abi.encodePacked(parent, salt));

    address payable clone = createClone(implementationAddress, finalSalt);
    Forwarder(clone).init(parent);
    emit ForwarderCreated(clone, parent);
  }
}

Contract ABI

API
[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"ForwarderDeposited","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"flush","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenContractAddress","type":"address"}],"name":"flushTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_parentAddress","type":"address"}],"name":"init","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"parentAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.