ETH Price: $1,867.73 (-5.28%)
 

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
Stake144626722022-03-26 15:34:471429 days ago1648308887IN
0xDda2ebc7...4EeF64E25
0 ETH0.0008203929.54148092
Stake140309762022-01-18 17:49:511496 days ago1642528191IN
0xDda2ebc7...4EeF64E25
0 ETH0.03431828154.18056897
Stake139716952022-01-09 13:42:551505 days ago1641735775IN
0xDda2ebc7...4EeF64E25
0 ETH0.0115875261.67938697
Stake139366562022-01-04 3:51:321510 days ago1641268292IN
0xDda2ebc7...4EeF64E25
0 ETH0.0175945101.00405342
Stake139365472022-01-04 3:26:251510 days ago1641266785IN
0xDda2ebc7...4EeF64E25
0 ETH0.01986643114.05236883
Stake139364822022-01-04 3:11:071510 days ago1641265867IN
0xDda2ebc7...4EeF64E25
0 ETH0.0172869799.23865034
Stake139364102022-01-04 2:54:051510 days ago1641264845IN
0xDda2ebc7...4EeF64E25
0 ETH0.0173228199.44437756
Stake139360712022-01-04 1:37:451511 days ago1641260265IN
0xDda2ebc7...4EeF64E25
0 ETH0.03804778100.29042915
Stake139301172022-01-03 3:27:401511 days ago1641180460IN
0xDda2ebc7...4EeF64E25
0 ETH0.0162499393.28537485
Stake139281932022-01-02 20:24:451512 days ago1641155085IN
0xDda2ebc7...4EeF64E25
0 ETH0.0148791185.42036887
Stake139263082022-01-02 13:43:141512 days ago1641130994IN
0xDda2ebc7...4EeF64E25
0 ETH0.0296746579.39283064
Stake139249852022-01-02 8:36:211512 days ago1641112581IN
0xDda2ebc7...4EeF64E25
0 ETH0.0247128366.11776534
Stake139204642022-01-01 15:51:481513 days ago1641052308IN
0xDda2ebc7...4EeF64E25
0 ETH0.0140483880.65114887
Stake139201142022-01-01 14:32:361513 days ago1641047556IN
0xDda2ebc7...4EeF64E25
0 ETH0.0101743958.41073987
Stake139200542022-01-01 14:18:011513 days ago1641046681IN
0xDda2ebc7...4EeF64E25
0 ETH0.0193583551.79214874
Stake139191052022-01-01 10:46:421513 days ago1641034002IN
0xDda2ebc7...4EeF64E25
0 ETH0.0094859854.45860783
Stake139187592022-01-01 9:34:451513 days ago1641029685IN
0xDda2ebc7...4EeF64E25
0 ETH0.0093776753.83683724
Stake139184122022-01-01 8:24:201513 days ago1641025460IN
0xDda2ebc7...4EeF64E25
0 ETH0.0116996767.1638745
Stake139171712022-01-01 3:40:201513 days ago1641008420IN
0xDda2ebc7...4EeF64E25
0 ETH0.0163281493.7391821
Stake139158982021-12-31 23:00:001514 days ago1640991600IN
0xDda2ebc7...4EeF64E25
0 ETH0.0255384468.32661838
Stake139135642021-12-31 14:04:151514 days ago1640959455IN
0xDda2ebc7...4EeF64E25
0 ETH0.0115997466.59019742
Stake139131402021-12-31 12:27:401514 days ago1640953660IN
0xDda2ebc7...4EeF64E25
0 ETH0.0114877565.95072421
Stake139130142021-12-31 12:02:531514 days ago1640952173IN
0xDda2ebc7...4EeF64E25
0 ETH0.0248283364.08139628
Stake139124452021-12-31 9:52:341514 days ago1640944354IN
0xDda2ebc7...4EeF64E25
0 ETH0.0154539788.71603158
Stake139115242021-12-31 6:27:001514 days ago1640932020IN
0xDda2ebc7...4EeF64E25
0 ETH0.0330259388.35898241
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
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

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
// 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

API
[{"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"}]

60c060405234801561001057600080fd5b506040516106163803806106168339818101604052604081101561003357600080fd5b810190808051906020019092919080519060200190929190505050600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561008857600080fd5b8173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b81525050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156100f957600080fd5b8073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b81525050505060805160601c60a05160601c6104a36101736000398061010252806101ed528061044b52508060de528061022952806102da52806103a752506104a36000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80634cf088d914610046578063a694fc3a1461007a578063a6c41fec146100a8575b600080fd5b61004e6100dc565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100a66004803603602081101561009057600080fd5b8101908080359060200190929190505050610100565b005b6100b0610449565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156101af57600080fd5b505af11580156101c3573d6000803e3d6000fd5b505050506040513d60208110156101d957600080fd5b8101908080519060200190929190505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f0000000000000000000000000000000000000000000000000000000000000000836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561029c57600080fd5b505af11580156102b0573d6000803e3d6000fd5b505050506040513d60208110156102c657600080fd5b8101908080519060200190929190505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16637acb775782336040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff16815260200192505050602060405180830381600087803b15801561036957600080fd5b505af115801561037d573d6000803e3d6000fd5b505050506040513d602081101561039357600080fd5b8101908080519060200190929190505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16631e83409a336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561042e57600080fd5b505af1158015610442573d6000803e3d6000fd5b5050505050565b7f00000000000000000000000000000000000000000000000000000000000000008156fea264697066735822122087a62ae294c781347ec7727cc3fc84c7d58d8ab9ab3784324d0a28e8ffc96ef864736f6c6343000705003300000000000000000000000095deaf8dd30380acd6cc5e4e90e5eef94d2588540000000000000000000000008a14897ea5f668f36671678593fae44ae23b39fb

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100415760003560e01c80634cf088d914610046578063a694fc3a1461007a578063a6c41fec146100a8575b600080fd5b61004e6100dc565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100a66004803603602081101561009057600080fd5b8101908080359060200190929190505050610100565b005b6100b0610449565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b7f00000000000000000000000095deaf8dd30380acd6cc5e4e90e5eef94d25885481565b7f0000000000000000000000008a14897ea5f668f36671678593fae44ae23b39fb73ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156101af57600080fd5b505af11580156101c3573d6000803e3d6000fd5b505050506040513d60208110156101d957600080fd5b8101908080519060200190929190505050507f0000000000000000000000008a14897ea5f668f36671678593fae44ae23b39fb73ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f00000000000000000000000095deaf8dd30380acd6cc5e4e90e5eef94d258854836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561029c57600080fd5b505af11580156102b0573d6000803e3d6000fd5b505050506040513d60208110156102c657600080fd5b8101908080519060200190929190505050507f00000000000000000000000095deaf8dd30380acd6cc5e4e90e5eef94d25885473ffffffffffffffffffffffffffffffffffffffff16637acb775782336040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff16815260200192505050602060405180830381600087803b15801561036957600080fd5b505af115801561037d573d6000803e3d6000fd5b505050506040513d602081101561039357600080fd5b8101908080519060200190929190505050507f00000000000000000000000095deaf8dd30380acd6cc5e4e90e5eef94d25885473ffffffffffffffffffffffffffffffffffffffff16631e83409a336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561042e57600080fd5b505af1158015610442573d6000803e3d6000fd5b5050505050565b7f0000000000000000000000008a14897ea5f668f36671678593fae44ae23b39fb8156fea264697066735822122087a62ae294c781347ec7727cc3fc84c7d58d8ab9ab3784324d0a28e8ffc96ef864736f6c63430007050033

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

00000000000000000000000095deaf8dd30380acd6cc5e4e90e5eef94d2588540000000000000000000000008a14897ea5f668f36671678593fae44ae23b39fb

-----Decoded View---------------
Arg [0] : _staking (address): 0x95deaF8dd30380acd6CC5E4E90e5EEf94d258854
Arg [1] : _OHM (address): 0x8a14897eA5F668f36671678593fAe44Ae23B39FB

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000095deaf8dd30380acd6cc5e4e90e5eef94d258854
Arg [1] : 0000000000000000000000008a14897ea5f668f36671678593fae44ae23b39fb


Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
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.