ETH Price: $3,482.48 (+4.09%)

Contract

0xAa153d23074e5269531ee6d49e98b27171444da8
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer154643052022-09-03 8:29:36816 days ago1662193776IN
0xAa153d23...171444da8
0.20231928 ETH0.000234065.93475289
Transfer151719512022-07-19 8:25:44862 days ago1658219144IN
0xAa153d23...171444da8
0.20311893 ETH0.0004410811.18400962
Transfer147788232022-05-15 8:10:31927 days ago1652602231IN
0xAa153d23...171444da8
0.20401496 ETH0.000819420.7765508
Transfer145249362022-04-05 8:54:12967 days ago1649148852IN
0xAa153d23...171444da8
0.10498684 ETH0.001762444.68695541
Transfer144092442022-03-18 8:07:37985 days ago1647590857IN
0xAa153d23...171444da8
0.11562329 ETH0.001381535.02894863
Transfer143770852022-03-13 7:49:48990 days ago1647157788IN
0xAa153d23...171444da8
0.11463219 ETH0.0005624714.26191661
Transfer143450892022-03-08 8:16:35995 days ago1646727395IN
0xAa153d23...171444da8
0.11887081 ETH0.0007962920.19063355
Transfer143128102022-03-03 8:00:281000 days ago1646294428IN
0xAa153d23...171444da8
0.11439838 ETH0.0015400539.04907231
Transfer142806062022-02-26 8:25:411005 days ago1645863941IN
0xAa153d23...171444da8
0.11459711 ETH0.0010901327.64094416
Transfer142482102022-02-21 8:01:471010 days ago1645430507IN
0xAa153d23...171444da8
0.11750694 ETH0.0020442151.83235964
Transfer142161892022-02-16 8:58:261015 days ago1645001906IN
0xAa153d23...171444da8
0.11027985 ETH0.0025031863.46986098
Transfer141836612022-02-11 8:24:031020 days ago1644567843IN
0xAa153d23...171444da8
0.10625688 ETH0.0016915442.89017404
Transfer141512582022-02-06 7:55:201025 days ago1644134120IN
0xAa153d23...171444da8
0.11241211 ETH0.0017309943.89053459
Transfer141253672022-02-02 7:46:361029 days ago1643787996IN
0xAa153d23...171444da8
0.11359677 ETH0.00415921105.45943652
Transfer140928602022-01-28 7:39:321034 days ago1643355572IN
0xAa153d23...171444da8
0.11315489 ETH0.00484482122.84343725
Transfer140606382022-01-23 7:52:401039 days ago1642924360IN
0xAa153d23...171444da8
0.1203277 ETH0.0034011286.2377011
Transfer140282292022-01-18 7:45:291044 days ago1642491929IN
0xAa153d23...171444da8
0.11523391 ETH0.00396155100.44757497
Transfer139959092022-01-13 7:42:411049 days ago1642059761IN
0xAa153d23...171444da8
0.11862148 ETH0.00485958123.21779369
Transfer139634972022-01-08 7:41:211054 days ago1641627681IN
0xAa153d23...171444da8
0.11392904 ETH0.0034135486.55264846
Transfer139312302022-01-03 7:39:441059 days ago1641195584IN
0xAa153d23...171444da8
0.11680276 ETH0.0032576682.60019649
Transfer138992842021-12-29 9:03:041064 days ago1640768584IN
0xAa153d23...171444da8
0.11977573 ETH0.00478571121.34468541
Transfer138667972021-12-24 8:22:371069 days ago1640334157IN
0xAa153d23...171444da8
0.11945297 ETH0.0018978348.12065885
Transfer138342962021-12-19 7:45:591074 days ago1639899959IN
0xAa153d23...171444da8
0.12074397 ETH0.0016529741.9121183
Transfer138020042021-12-14 7:43:511079 days ago1639467831IN
0xAa153d23...171444da8
0.12278724 ETH0.0021869455.45138635
Transfer137698052021-12-09 7:39:051084 days ago1639035545IN
0xAa153d23...171444da8
0.11996703 ETH0.0028236571.59556322
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
154643052022-09-03 8:29:36816 days ago1662193776
0xAa153d23...171444da8
0.20231928 ETH
151719512022-07-19 8:25:44862 days ago1658219144
0xAa153d23...171444da8
0.20311893 ETH
147788232022-05-15 8:10:31927 days ago1652602231
0xAa153d23...171444da8
0.20401496 ETH
145249362022-04-05 8:54:12967 days ago1649148852
0xAa153d23...171444da8
0.10498684 ETH
144092442022-03-18 8:07:37985 days ago1647590857
0xAa153d23...171444da8
0.11562329 ETH
143770852022-03-13 7:49:48990 days ago1647157788
0xAa153d23...171444da8
0.11463219 ETH
143450892022-03-08 8:16:35995 days ago1646727395
0xAa153d23...171444da8
0.11887081 ETH
143128102022-03-03 8:00:281000 days ago1646294428
0xAa153d23...171444da8
0.11439838 ETH
142806062022-02-26 8:25:411005 days ago1645863941
0xAa153d23...171444da8
0.11459711 ETH
142482102022-02-21 8:01:471010 days ago1645430507
0xAa153d23...171444da8
0.11750694 ETH
142161892022-02-16 8:58:261015 days ago1645001906
0xAa153d23...171444da8
0.11027985 ETH
141836612022-02-11 8:24:031020 days ago1644567843
0xAa153d23...171444da8
0.10625688 ETH
141512582022-02-06 7:55:201025 days ago1644134120
0xAa153d23...171444da8
0.11241211 ETH
141253672022-02-02 7:46:361029 days ago1643787996
0xAa153d23...171444da8
0.11359677 ETH
140928602022-01-28 7:39:321034 days ago1643355572
0xAa153d23...171444da8
0.11315489 ETH
140606382022-01-23 7:52:401039 days ago1642924360
0xAa153d23...171444da8
0.1203277 ETH
140282292022-01-18 7:45:291044 days ago1642491929
0xAa153d23...171444da8
0.11523391 ETH
139959092022-01-13 7:42:411049 days ago1642059761
0xAa153d23...171444da8
0.11862148 ETH
139634972022-01-08 7:41:211054 days ago1641627681
0xAa153d23...171444da8
0.11392904 ETH
139312302022-01-03 7:39:441059 days ago1641195584
0xAa153d23...171444da8
0.11680276 ETH
138992842021-12-29 9:03:041064 days ago1640768584
0xAa153d23...171444da8
0.11977573 ETH
138667972021-12-24 8:22:371069 days ago1640334157
0xAa153d23...171444da8
0.11945297 ETH
138342962021-12-19 7:45:591074 days ago1639899959
0xAa153d23...171444da8
0.12074397 ETH
138020042021-12-14 7:43:511079 days ago1639467831
0xAa153d23...171444da8
0.12278724 ETH
137698052021-12-09 7:39:051084 days ago1639035545
0xAa153d23...171444da8
0.11996703 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.