ETH Price: $2,665.22 (+1.87%)

Contract

0xBaba9F771dcD4Dc5930C12E64194bd0c37466dDF
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer167397502023-03-02 8:39:23711 days ago1677746363IN
0xBaba9F77...c37466dDF
7.34034887 ETH0.0008242220.89884459
Transfer167325432023-03-01 8:19:59712 days ago1677658799IN
0xBaba9F77...c37466dDF
13.55887283 ETH0.0021050453.37463869
Transfer167253982023-02-28 8:13:59713 days ago1677572039IN
0xBaba9F77...c37466dDF
31.77396116 ETH0.0007949320.15615208
Transfer166970252023-02-24 8:29:35717 days ago1677227375IN
0xBaba9F77...c37466dDF
9.76366323 ETH0.0015023738.09366648
Transfer166902282023-02-23 9:32:59718 days ago1677144779IN
0xBaba9F77...c37466dDF
1.06353975 ETH0.0011113328.17853859
Transfer166828142023-02-22 8:30:23719 days ago1677054623IN
0xBaba9F77...c37466dDF
15.76121897 ETH0.0011366828.82122529
Transfer166683772023-02-20 7:48:59721 days ago1676879339IN
0xBaba9F77...c37466dDF
13.8062933 ETH0.0008340821.14863568
Transfer166469862023-02-17 7:34:47724 days ago1676619287IN
0xBaba9F77...c37466dDF
27.61098666 ETH0.0008958622.71528945
Transfer166406682023-02-16 10:22:47725 days ago1676542967IN
0xBaba9F77...c37466dDF
19.40216195 ETH0.0010731427.21020416
Transfer165904302023-02-09 9:53:35732 days ago1675936415IN
0xBaba9F77...c37466dDF
20.85082431 ETH0.0009518624.13516292
Transfer165830352023-02-08 9:01:47733 days ago1675846907IN
0xBaba9F77...c37466dDF
14.88307864 ETH0.0010023125.41421982
Transfer165761012023-02-07 9:46:47734 days ago1675763207IN
0xBaba9F77...c37466dDF
27.7344867 ETH0.0009139723.17445376
Transfer165476962023-02-03 10:36:23738 days ago1675420583IN
0xBaba9F77...c37466dDF
47.35111218 ETH0.0007192118.23603686
Transfer165400662023-02-02 8:56:47739 days ago1675328207IN
0xBaba9F77...c37466dDF
8.22894866 ETH0.0006496416.4720976
Transfer165049612023-01-28 11:16:47744 days ago1674904607IN
0xBaba9F77...c37466dDF
3.09874904 ETH0.0005961115.11490646
Transfer164970082023-01-27 8:38:35745 days ago1674808715IN
0xBaba9F77...c37466dDF
12.64188399 ETH0.0006434716.31580514
Transfer164899272023-01-26 8:55:11746 days ago1674723311IN
0xBaba9F77...c37466dDF
7.66215051 ETH0.0006430316.30443738
Transfer164825622023-01-25 8:11:59747 days ago1674634319IN
0xBaba9F77...c37466dDF
18.36582227 ETH0.0006625416.79931329
Transfer164754332023-01-24 8:19:35748 days ago1674548375IN
0xBaba9F77...c37466dDF
34.77568138 ETH0.0006275215.91118903
Transfer164680362023-01-23 7:33:47749 days ago1674459227IN
0xBaba9F77...c37466dDF
38.70817764 ETH0.0005896414.95087338
Transfer164469582023-01-20 8:55:59752 days ago1674204959IN
0xBaba9F77...c37466dDF
0.42824956 ETH0.0006414616.26476945
Transfer164398772023-01-19 9:12:11753 days ago1674119531IN
0xBaba9F77...c37466dDF
19.8328182 ETH0.0005767214.62321112
Transfer164333772023-01-18 11:25:23754 days ago1674041123IN
0xBaba9F77...c37466dDF
6.18475478 ETH0.00076619.42256725
Transfer163974712023-01-13 11:07:23759 days ago1673608043IN
0xBaba9F77...c37466dDF
44.7686477 ETH0.0006788617.21291221
Transfer163894672023-01-12 8:15:35760 days ago1673511335IN
0xBaba9F77...c37466dDF
61.20297331 ETH0.0006806817.25922904
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
167397502023-03-02 8:39:23711 days ago1677746363
0xBaba9F77...c37466dDF
7.34034887 ETH
167325432023-03-01 8:19:59712 days ago1677658799
0xBaba9F77...c37466dDF
13.55887283 ETH
167253982023-02-28 8:13:59713 days ago1677572039
0xBaba9F77...c37466dDF
31.77396116 ETH
166970252023-02-24 8:29:35717 days ago1677227375
0xBaba9F77...c37466dDF
9.76366323 ETH
166902282023-02-23 9:32:59718 days ago1677144779
0xBaba9F77...c37466dDF
1.06353975 ETH
166828142023-02-22 8:30:23719 days ago1677054623
0xBaba9F77...c37466dDF
15.76121897 ETH
166683772023-02-20 7:48:59721 days ago1676879339
0xBaba9F77...c37466dDF
13.8062933 ETH
166469862023-02-17 7:34:47724 days ago1676619287
0xBaba9F77...c37466dDF
27.61098666 ETH
166406682023-02-16 10:22:47725 days ago1676542967
0xBaba9F77...c37466dDF
19.40216195 ETH
165904302023-02-09 9:53:35732 days ago1675936415
0xBaba9F77...c37466dDF
20.85082431 ETH
165830352023-02-08 9:01:47733 days ago1675846907
0xBaba9F77...c37466dDF
14.88307864 ETH
165761012023-02-07 9:46:47734 days ago1675763207
0xBaba9F77...c37466dDF
27.7344867 ETH
165476962023-02-03 10:36:23738 days ago1675420583
0xBaba9F77...c37466dDF
47.35111218 ETH
165400662023-02-02 8:56:47739 days ago1675328207
0xBaba9F77...c37466dDF
8.22894866 ETH
165049612023-01-28 11:16:47744 days ago1674904607
0xBaba9F77...c37466dDF
3.09874904 ETH
164970082023-01-27 8:38:35745 days ago1674808715
0xBaba9F77...c37466dDF
12.64188399 ETH
164899272023-01-26 8:55:11746 days ago1674723311
0xBaba9F77...c37466dDF
7.66215051 ETH
164825622023-01-25 8:11:59747 days ago1674634319
0xBaba9F77...c37466dDF
18.36582227 ETH
164754332023-01-24 8:19:35748 days ago1674548375
0xBaba9F77...c37466dDF
34.77568138 ETH
164680362023-01-23 7:33:47749 days ago1674459227
0xBaba9F77...c37466dDF
38.70817764 ETH
164469582023-01-20 8:55:59752 days ago1674204959
0xBaba9F77...c37466dDF
0.42824956 ETH
164398772023-01-19 9:12:11753 days ago1674119531
0xBaba9F77...c37466dDF
19.8328182 ETH
164333772023-01-18 11:25:23754 days ago1674041123
0xBaba9F77...c37466dDF
6.18475478 ETH
163974712023-01-13 11:07:23759 days ago1673608043
0xBaba9F77...c37466dDF
44.7686477 ETH
163894672023-01-12 8:15:35760 days ago1673511335
0xBaba9F77...c37466dDF
61.20297331 ETH
View All Internal Transactions
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
/**
 *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

[{"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 Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.