ETH Price: $3,077.50 (-7.77%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Stake163690072023-01-09 11:40:35749 days ago1673264435IN
0x3eC8d9C8...4e6EE0BfC
0 ETH0.0035834615.16899249
Stake159652892022-11-14 2:28:23805 days ago1668392903IN
0x3eC8d9C8...4e6EE0BfC
0 ETH0.0030708213.79855172
Stake155177332022-09-11 23:55:30868 days ago1662940530IN
0x3eC8d9C8...4e6EE0BfC
0 ETH0.00190648.06993571
Stake152952232022-08-07 12:39:39904 days ago1659875979IN
0x3eC8d9C8...4e6EE0BfC
0 ETH0.001411725.97589654
Stake152951422022-08-07 12:23:43904 days ago1659875023IN
0x3eC8d9C8...4e6EE0BfC
0 ETH0.001181185
Stake149788392022-06-17 11:05:53955 days ago1655463953IN
0x3eC8d9C8...4e6EE0BfC
0 ETH0.0006745224.32021718
Stake145364012022-04-07 3:41:541026 days ago1649302914IN
0x3eC8d9C8...4e6EE0BfC
0 ETH0.0085104538.23959608
Stake145041632022-04-02 2:41:461031 days ago1648867306IN
0x3eC8d9C8...4e6EE0BfC
0 ETH0.0117136773.46345489
Stake144801342022-03-29 8:42:271035 days ago1648543347IN
0x3eC8d9C8...4e6EE0BfC
0 ETH0.0033228319.4020651
Stake144801342022-03-29 8:42:271035 days ago1648543347IN
0x3eC8d9C8...4e6EE0BfC
0 ETH0.0035180818.8120651
Stake144801342022-03-29 8:42:271035 days ago1648543347IN
0x3eC8d9C8...4e6EE0BfC
0 ETH0.0047819618.26625896
Stake144739172022-03-28 9:33:031036 days ago1648459983IN
0x3eC8d9C8...4e6EE0BfC
0 ETH0.0008393630.25066302
Stake144739172022-03-28 9:33:031036 days ago1648459983IN
0x3eC8d9C8...4e6EE0BfC
0 ETH0.0071462930.25066302
Stake144591622022-03-26 2:26:031038 days ago1648261563IN
0x3eC8d9C8...4e6EE0BfC
0 ETH0.0074687431.61424995
Stake143912232022-03-15 12:43:221049 days ago1647348202IN
0x3eC8d9C8...4e6EE0BfC
0 ETH0.0041084917.39213071
Stake142712832022-02-24 21:34:441067 days ago1645738484IN
0x3eC8d9C8...4e6EE0BfC
0 ETH0.0157522870.78500595
Stake142322952022-02-18 20:44:181073 days ago1645217058IN
0x3eC8d9C8...4e6EE0BfC
0 ETH0.0216176391.51213228
Stake142032082022-02-14 8:27:541078 days ago1644827274IN
0x3eC8d9C8...4e6EE0BfC
0 ETH0.0074461133.45726749
Stake141997542022-02-13 19:41:351078 days ago1644781295IN
0x3eC8d9C8...4e6EE0BfC
0 ETH0.0057039356.37191409
Stake141952572022-02-13 3:13:281079 days ago1644722008IN
0x3eC8d9C8...4e6EE0BfC
0 ETH0.0111967255.55913899
Stake141925822022-02-12 17:20:221080 days ago1644686422IN
0x3eC8d9C8...4e6EE0BfC
0 ETH0.0021332976.9172376
Stake141921852022-02-12 15:55:191080 days ago1644681319IN
0x3eC8d9C8...4e6EE0BfC
0 ETH0.0015286555.11646271
Stake141917842022-02-12 14:23:221080 days ago1644675802IN
0x3eC8d9C8...4e6EE0BfC
0 ETH0.0018095965.24599426
Stake141917752022-02-12 14:19:411080 days ago1644675581IN
0x3eC8d9C8...4e6EE0BfC
0 ETH0.0013210747.63195001
Stake141917752022-02-12 14:19:411080 days ago1644675581IN
0x3eC8d9C8...4e6EE0BfC
0 ETH0.00430986155.39456875
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
163690072023-01-09 11:40:35749 days ago1673264435
0x3eC8d9C8...4e6EE0BfC
0 ETH
163690072023-01-09 11:40:35749 days ago1673264435
0x3eC8d9C8...4e6EE0BfC
0 ETH
163690072023-01-09 11:40:35749 days ago1673264435
0x3eC8d9C8...4e6EE0BfC
0 ETH
163690072023-01-09 11:40:35749 days ago1673264435
0x3eC8d9C8...4e6EE0BfC
0 ETH
159652892022-11-14 2:28:23805 days ago1668392903
0x3eC8d9C8...4e6EE0BfC
0 ETH
159652892022-11-14 2:28:23805 days ago1668392903
0x3eC8d9C8...4e6EE0BfC
0 ETH
159652892022-11-14 2:28:23805 days ago1668392903
0x3eC8d9C8...4e6EE0BfC
0 ETH
159652892022-11-14 2:28:23805 days ago1668392903
0x3eC8d9C8...4e6EE0BfC
0 ETH
155177332022-09-11 23:55:30868 days ago1662940530
0x3eC8d9C8...4e6EE0BfC
0 ETH
155177332022-09-11 23:55:30868 days ago1662940530
0x3eC8d9C8...4e6EE0BfC
0 ETH
155177332022-09-11 23:55:30868 days ago1662940530
0x3eC8d9C8...4e6EE0BfC
0 ETH
155177332022-09-11 23:55:30868 days ago1662940530
0x3eC8d9C8...4e6EE0BfC
0 ETH
152952232022-08-07 12:39:39904 days ago1659875979
0x3eC8d9C8...4e6EE0BfC
0 ETH
152952232022-08-07 12:39:39904 days ago1659875979
0x3eC8d9C8...4e6EE0BfC
0 ETH
152952232022-08-07 12:39:39904 days ago1659875979
0x3eC8d9C8...4e6EE0BfC
0 ETH
152952232022-08-07 12:39:39904 days ago1659875979
0x3eC8d9C8...4e6EE0BfC
0 ETH
152951422022-08-07 12:23:43904 days ago1659875023
0x3eC8d9C8...4e6EE0BfC
0 ETH
152951422022-08-07 12:23:43904 days ago1659875023
0x3eC8d9C8...4e6EE0BfC
0 ETH
152951422022-08-07 12:23:43904 days ago1659875023
0x3eC8d9C8...4e6EE0BfC
0 ETH
152951422022-08-07 12:23:43904 days ago1659875023
0x3eC8d9C8...4e6EE0BfC
0 ETH
149788392022-06-17 11:05:53955 days ago1655463953
0x3eC8d9C8...4e6EE0BfC
0 ETH
145364012022-04-07 3:41:541026 days ago1649302914
0x3eC8d9C8...4e6EE0BfC
0 ETH
145364012022-04-07 3:41:541026 days ago1649302914
0x3eC8d9C8...4e6EE0BfC
0 ETH
145364012022-04-07 3:41:541026 days ago1649302914
0x3eC8d9C8...4e6EE0BfC
0 ETH
145364012022-04-07 3:41:541026 days ago1649302914
0x3eC8d9C8...4e6EE0BfC
0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
StakingHelper

Compiler Version
v0.7.5+commit.eb77ed08

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 1 : StakingHelper.sol
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.7.5;


interface IERC20 {
    function decimals() external view returns (uint8);
  /**
   * @dev Returns the amount of tokens in existence.
   */
  function totalSupply() external view returns (uint256);

  /**
   * @dev Returns the amount of tokens owned by `account`.
   */
  function balanceOf(address account) external view returns (uint256);

  /**
   * @dev Moves `amount` tokens from the caller's account to `recipient`.
   *
   * Returns a boolean value indicating whether the operation succeeded.
   *
   * Emits a {Transfer} event.
   */
  function transfer(address recipient, uint256 amount) external returns (bool);

  /**
   * @dev Returns the remaining number of tokens that `spender` will be
   * allowed to spend on behalf of `owner` through {transferFrom}. This is
   * zero by default.
   *
   * This value changes when {approve} or {transferFrom} are called.
   */
  function allowance(address owner, address spender) external view returns (uint256);

  /**
   * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
   *
   * Returns a boolean value indicating whether the operation succeeded.
   *
   * IMPORTANT: Beware that changing an allowance with this method brings the risk
   * that someone may use both the old and the new allowance by unfortunate
   * transaction ordering. One possible solution to mitigate this race
   * condition is to first reduce the spender's allowance to 0 and set the
   * desired value afterwards:
   * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
   *
   * Emits an {Approval} event.
   */
  function approve(address spender, uint256 amount) external returns (bool);

  /**
   * @dev Moves `amount` tokens from `sender` to `recipient` using the
   * allowance mechanism. `amount` is then deducted from the caller's
   * allowance.
   *
   * Returns a boolean value indicating whether the operation succeeded.
   *
   * Emits a {Transfer} event.
   */
  function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

  /**
   * @dev Emitted when `value` tokens are moved from one account (`from`) to
   * another (`to`).
   *
   * Note that `value` may be zero.
   */
  event Transfer(address indexed from, address indexed to, uint256 value);

  /**
   * @dev Emitted when the allowance of a `spender` for an `owner` is set by
   * a call to {approve}. `value` is the new allowance.
   */
  event Approval(address indexed owner, address indexed spender, uint256 value);
}

interface IStaking {
    function stake( uint _amount, address _recipient ) external returns ( bool );
    function claim( address _recipient ) external;
}

contract StakingHelper {

    address public immutable staking;
    address public immutable OHM;

    constructor ( address _staking, address _OHM ) {
        require( _staking != address(0) );
        staking = _staking;
        require( _OHM != address(0) );
        OHM = _OHM;
    }

    function stake( uint _amount ) external {
        IERC20( OHM ).transferFrom( msg.sender, address(this), _amount );
        IERC20( OHM ).approve( staking, _amount );
        IStaking( staking ).stake( _amount, msg.sender );
        IStaking( staking ).claim( msg.sender );
    }
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_staking","type":"address"},{"internalType":"address","name":"_OHM","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"OHM","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"staking","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60c060405234801561001057600080fd5b506040516106163803806106168339818101604052604081101561003357600080fd5b810190808051906020019092919080519060200190929190505050600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561008857600080fd5b8173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b81525050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156100f957600080fd5b8073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b81525050505060805160601c60a05160601c6104a36101736000398061010252806101ed528061044b52508060de528061022952806102da52806103a752506104a36000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80634cf088d914610046578063a694fc3a1461007a578063a6c41fec146100a8575b600080fd5b61004e6100dc565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100a66004803603602081101561009057600080fd5b8101908080359060200190929190505050610100565b005b6100b0610449565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156101af57600080fd5b505af11580156101c3573d6000803e3d6000fd5b505050506040513d60208110156101d957600080fd5b8101908080519060200190929190505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f0000000000000000000000000000000000000000000000000000000000000000836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561029c57600080fd5b505af11580156102b0573d6000803e3d6000fd5b505050506040513d60208110156102c657600080fd5b8101908080519060200190929190505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16637acb775782336040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff16815260200192505050602060405180830381600087803b15801561036957600080fd5b505af115801561037d573d6000803e3d6000fd5b505050506040513d602081101561039357600080fd5b8101908080519060200190929190505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16631e83409a336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561042e57600080fd5b505af1158015610442573d6000803e3d6000fd5b5050505050565b7f00000000000000000000000000000000000000000000000000000000000000008156fea264697066735822122087a62ae294c781347ec7727cc3fc84c7d58d8ab9ab3784324d0a28e8ffc96ef864736f6c634300070500330000000000000000000000005895b13da9beb11e36136817cdcf3c4fcb16aaea00000000000000000000000021ad647b8f4fe333212e735bfc1f36b4941e6ad2

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100415760003560e01c80634cf088d914610046578063a694fc3a1461007a578063a6c41fec146100a8575b600080fd5b61004e6100dc565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100a66004803603602081101561009057600080fd5b8101908080359060200190929190505050610100565b005b6100b0610449565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b7f0000000000000000000000005895b13da9beb11e36136817cdcf3c4fcb16aaea81565b7f00000000000000000000000021ad647b8f4fe333212e735bfc1f36b4941e6ad273ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156101af57600080fd5b505af11580156101c3573d6000803e3d6000fd5b505050506040513d60208110156101d957600080fd5b8101908080519060200190929190505050507f00000000000000000000000021ad647b8f4fe333212e735bfc1f36b4941e6ad273ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f0000000000000000000000005895b13da9beb11e36136817cdcf3c4fcb16aaea836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561029c57600080fd5b505af11580156102b0573d6000803e3d6000fd5b505050506040513d60208110156102c657600080fd5b8101908080519060200190929190505050507f0000000000000000000000005895b13da9beb11e36136817cdcf3c4fcb16aaea73ffffffffffffffffffffffffffffffffffffffff16637acb775782336040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff16815260200192505050602060405180830381600087803b15801561036957600080fd5b505af115801561037d573d6000803e3d6000fd5b505050506040513d602081101561039357600080fd5b8101908080519060200190929190505050507f0000000000000000000000005895b13da9beb11e36136817cdcf3c4fcb16aaea73ffffffffffffffffffffffffffffffffffffffff16631e83409a336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561042e57600080fd5b505af1158015610442573d6000803e3d6000fd5b5050505050565b7f00000000000000000000000021ad647b8f4fe333212e735bfc1f36b4941e6ad28156fea264697066735822122087a62ae294c781347ec7727cc3fc84c7d58d8ab9ab3784324d0a28e8ffc96ef864736f6c63430007050033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000005895b13da9beb11e36136817cdcf3c4fcb16aaea00000000000000000000000021ad647b8f4fe333212e735bfc1f36b4941e6ad2

-----Decoded View---------------
Arg [0] : _staking (address): 0x5895B13Da9BEB11e36136817cdcf3c4fcb16aaeA
Arg [1] : _OHM (address): 0x21ad647b8F4Fe333212e735bfC1F36B4941E6Ad2

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000005895b13da9beb11e36136817cdcf3c4fcb16aaea
Arg [1] : 00000000000000000000000021ad647b8f4fe333212e735bfc1f36b4941e6ad2


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  ]

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.