ETH Price: $1,927.84 (-5.06%)
 

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
Transfer137107712021-11-29 20:53:031551 days ago1638219183IN
0xCb7BDC33...BA9a22bC1
2.06 ETH0.0055859141.63400559
Transfer136733032021-11-23 21:51:311556 days ago1637704291IN
0xCb7BDC33...BA9a22bC1
0.4 ETH0.00463034117.4051628
Transfer136036642021-11-12 21:16:501567 days ago1636751810IN
0xCb7BDC33...BA9a22bC1
0.19211 ETH0.00594528150.74638367
Transfer135587212021-11-05 20:24:051575 days ago1636143845IN
0xCb7BDC33...BA9a22bC1
0.5 ETH0.00413142104.75490525
Transfer134497372021-10-19 18:15:491592 days ago1634667349IN
0xCb7BDC33...BA9a22bC1
0.293 ETH0.0027131568.79376006
Transfer134381612021-10-17 22:35:301593 days ago1634510130IN
0xCb7BDC33...BA9a22bC1
1.1 ETH0.0030318576.87466092
Transfer133788052021-10-08 14:46:061603 days ago1633704366IN
0xCb7BDC33...BA9a22bC1
0.25 ETH0.0064136162.62098295
Transfer133659062021-10-06 14:19:471605 days ago1633529987IN
0xCb7BDC33...BA9a22bC1
0.71 ETH0.00531774134.83478786
Transfer133286212021-09-30 18:20:111611 days ago1633026011IN
0xCb7BDC33...BA9a22bC1
0.69 ETH0.0033126783.99485167
Transfer132841242021-09-23 20:27:341618 days ago1632428854IN
0xCb7BDC33...BA9a22bC1
0.38 ETH0.0024068361.02676448
Transfer132513262021-09-18 18:32:051623 days ago1631989925IN
0xCb7BDC33...BA9a22bC1
0.18 ETH0.0020139551.06508351
Transfer132373682021-09-16 14:41:231625 days ago1631803283IN
0xCb7BDC33...BA9a22bC1
0.188 ETH0.0026494267.17779678
Transfer132243292021-09-14 14:14:511627 days ago1631628891IN
0xCb7BDC33...BA9a22bC1
0.19 ETH0.0026618367.49239261
Transfer132195792021-09-13 20:35:471628 days ago1631565347IN
0xCb7BDC33...BA9a22bC1
0.5658 ETH0.003446887.3958735
Transfer131638452021-09-05 5:28:531636 days ago1630819733IN
0xCb7BDC33...BA9a22bC1
0.3249 ETH0.0036611592.83091382
Transfer131415982021-09-01 19:19:261640 days ago1630523966IN
0xCb7BDC33...BA9a22bC1
0.415 ETH0.00479682121.6263814
Transfer131158102021-08-28 19:28:141644 days ago1630178894IN
0xCb7BDC33...BA9a22bC1
0.308 ETH0.0021077453.44321557
Transfer130695522021-08-21 15:51:481651 days ago1629561108IN
0xCb7BDC33...BA9a22bC1
0.2116 ETH0.0012089430.65343582
Transfer130556852021-08-19 12:27:581653 days ago1629376078IN
0xCb7BDC33...BA9a22bC1
0.219 ETH0.0012420531.49301826
Transfer130464262021-08-18 2:00:561654 days ago1629252056IN
0xCb7BDC33...BA9a22bC1
0.112 ETH0.0015356738.93801132
Transfer130413692021-08-17 7:25:241655 days ago1629185124IN
0xCb7BDC33...BA9a22bC1
0.114 ETH0.0012236131.02552898
Transfer130338582021-08-16 3:33:531656 days ago1629084833IN
0xCb7BDC33...BA9a22bC1
0.197 ETH0.0018495746.89708763
Transfer130182522021-08-13 17:43:451659 days ago1628876625IN
0xCb7BDC33...BA9a22bC1
0.218 ETH0.0020508252
Transfer130061832021-08-11 20:58:121661 days ago1628715492IN
0xCb7BDC33...BA9a22bC1
0.2238 ETH0.0026029766
Transfer129927912021-08-09 19:13:261663 days ago1628536406IN
0xCb7BDC33...BA9a22bC1
0.111 ETH0.0022085856
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
-137107712021-11-29 20:53:031551 days ago1638219183
0xCb7BDC33...BA9a22bC1
2.06 ETH
-136733032021-11-23 21:51:311556 days ago1637704291
0xCb7BDC33...BA9a22bC1
0.4 ETH
-136036642021-11-12 21:16:501567 days ago1636751810
0xCb7BDC33...BA9a22bC1
0.19211 ETH
-135587212021-11-05 20:24:051575 days ago1636143845
0xCb7BDC33...BA9a22bC1
0.5 ETH
-134497372021-10-19 18:15:491592 days ago1634667349
0xCb7BDC33...BA9a22bC1
0.293 ETH
-134381612021-10-17 22:35:301593 days ago1634510130
0xCb7BDC33...BA9a22bC1
1.1 ETH
-133788052021-10-08 14:46:061603 days ago1633704366
0xCb7BDC33...BA9a22bC1
0.25 ETH
-133659062021-10-06 14:19:471605 days ago1633529987
0xCb7BDC33...BA9a22bC1
0.71 ETH
-133286212021-09-30 18:20:111611 days ago1633026011
0xCb7BDC33...BA9a22bC1
0.69 ETH
-132841242021-09-23 20:27:341618 days ago1632428854
0xCb7BDC33...BA9a22bC1
0.38 ETH
-132513262021-09-18 18:32:051623 days ago1631989925
0xCb7BDC33...BA9a22bC1
0.18 ETH
-132373682021-09-16 14:41:231625 days ago1631803283
0xCb7BDC33...BA9a22bC1
0.188 ETH
-132243292021-09-14 14:14:511627 days ago1631628891
0xCb7BDC33...BA9a22bC1
0.19 ETH
-132195792021-09-13 20:35:471628 days ago1631565347
0xCb7BDC33...BA9a22bC1
0.5658 ETH
-131638452021-09-05 5:28:531636 days ago1630819733
0xCb7BDC33...BA9a22bC1
0.3249 ETH
-131415982021-09-01 19:19:261640 days ago1630523966
0xCb7BDC33...BA9a22bC1
0.415 ETH
-131158102021-08-28 19:28:141644 days ago1630178894
0xCb7BDC33...BA9a22bC1
0.308 ETH
-130695522021-08-21 15:51:481651 days ago1629561108
0xCb7BDC33...BA9a22bC1
0.2116 ETH
-130556852021-08-19 12:27:581653 days ago1629376078
0xCb7BDC33...BA9a22bC1
0.219 ETH
-130464262021-08-18 2:00:561654 days ago1629252056
0xCb7BDC33...BA9a22bC1
0.112 ETH
-130413692021-08-17 7:25:241655 days ago1629185124
0xCb7BDC33...BA9a22bC1
0.114 ETH
-130338582021-08-16 3:33:531656 days ago1629084833
0xCb7BDC33...BA9a22bC1
0.197 ETH
-130182522021-08-13 17:43:451659 days ago1628876625
0xCb7BDC33...BA9a22bC1
0.218 ETH
-130061832021-08-11 20:58:121661 days ago1628715492
0xCb7BDC33...BA9a22bC1
0.2238 ETH
-129927912021-08-09 19:13:261663 days ago1628536406
0xCb7BDC33...BA9a22bC1
0.111 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.