ETH Price: $3,044.00 (+4.41%)

Contract

0xa55cE3E25bD4cb6C5375AA393335b708dB790915
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60c06040126679972021-06-20 0:22:171238 days ago1624148537IN
 Create: StakingHelper
0 ETH0.0032059310

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
147315802022-05-07 19:08:39916 days ago1651950519
0xa55cE3E2...8dB790915
0 ETH
147315802022-05-07 19:08:39916 days ago1651950519
0xa55cE3E2...8dB790915
0 ETH
147315802022-05-07 19:08:39916 days ago1651950519
0xa55cE3E2...8dB790915
0 ETH
147315802022-05-07 19:08:39916 days ago1651950519
0xa55cE3E2...8dB790915
0 ETH
147315802022-05-07 19:08:39916 days ago1651950519
0xa55cE3E2...8dB790915
0 ETH
141139992022-01-31 13:45:161013 days ago1643636716
0xa55cE3E2...8dB790915
0 ETH
141139992022-01-31 13:45:161013 days ago1643636716
0xa55cE3E2...8dB790915
0 ETH
141139992022-01-31 13:45:161013 days ago1643636716
0xa55cE3E2...8dB790915
0 ETH
141139992022-01-31 13:45:161013 days ago1643636716
0xa55cE3E2...8dB790915
0 ETH
141139992022-01-31 13:45:161013 days ago1643636716
0xa55cE3E2...8dB790915
0 ETH
138696422021-12-24 18:59:391050 days ago1640372379
0xa55cE3E2...8dB790915
0 ETH
138696422021-12-24 18:59:391050 days ago1640372379
0xa55cE3E2...8dB790915
0 ETH
138696422021-12-24 18:59:391050 days ago1640372379
0xa55cE3E2...8dB790915
0 ETH
138696422021-12-24 18:59:391050 days ago1640372379
0xa55cE3E2...8dB790915
0 ETH
138696422021-12-24 18:59:391050 days ago1640372379
0xa55cE3E2...8dB790915
0 ETH
138562342021-12-22 17:06:411052 days ago1640192801
0xa55cE3E2...8dB790915
0 ETH
138562342021-12-22 17:06:411052 days ago1640192801
0xa55cE3E2...8dB790915
0 ETH
138562342021-12-22 17:06:411052 days ago1640192801
0xa55cE3E2...8dB790915
0 ETH
138562342021-12-22 17:06:411052 days ago1640192801
0xa55cE3E2...8dB790915
0 ETH
138562342021-12-22 17:06:411052 days ago1640192801
0xa55cE3E2...8dB790915
0 ETH
138300622021-12-18 16:05:481056 days ago1639843548
0xa55cE3E2...8dB790915
0 ETH
138300622021-12-18 16:05:481056 days ago1639843548
0xa55cE3E2...8dB790915
0 ETH
138300622021-12-18 16:05:481056 days ago1639843548
0xa55cE3E2...8dB790915
0 ETH
138300622021-12-18 16:05:481056 days ago1639843548
0xa55cE3E2...8dB790915
0 ETH
138300622021-12-18 16:05:481056 days ago1639843548
0xa55cE3E2...8dB790915
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, GNU AGPLv3 license
/**
 *Submitted for verification at Etherscan.io on 2021-06-20
*/

/**
 *Submitted for verification at Etherscan.io on 2021-06-12
*/

// 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, address _recipient ) external {
        IERC20( OHM ).transferFrom( msg.sender, address(this), _amount );
        IERC20( OHM ).approve( staking, _amount );
        IStaking( staking ).stake( _amount, _recipient );
        IStaking( staking ).claim( _recipient );
    }
}

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"},{"internalType":"address","name":"_recipient","type":"address"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"staking","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60c060405234801561001057600080fd5b506040516106373803806106378339818101604052604081101561003357600080fd5b810190808051906020019092919080519060200190929190505050600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561008857600080fd5b8173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b81525050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156100f957600080fd5b8073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b81525050505060805160601c60a05160601c6104c461017360003980610122528061020d528061046c52508060fe528061024952806102fa52806103c752506104c46000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80634cf088d9146100465780637acb77571461007a578063a6c41fec146100c8575b600080fd5b61004e6100fc565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100c66004803603604081101561009057600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610120565b005b6100d061046a565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156101cf57600080fd5b505af11580156101e3573d6000803e3d6000fd5b505050506040513d60208110156101f957600080fd5b8101908080519060200190929190505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f0000000000000000000000000000000000000000000000000000000000000000846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156102bc57600080fd5b505af11580156102d0573d6000803e3d6000fd5b505050506040513d60208110156102e657600080fd5b8101908080519060200190929190505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16637acb775783836040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff16815260200192505050602060405180830381600087803b15801561038957600080fd5b505af115801561039d573d6000803e3d6000fd5b505050506040513d60208110156103b357600080fd5b8101908080519060200190929190505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16631e83409a826040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561044e57600080fd5b505af1158015610462573d6000803e3d6000fd5b505050505050565b7f00000000000000000000000000000000000000000000000000000000000000008156fea26469706673582212209584c76952aa5dbc29c4ce07ddeaccdd6653f6547557ae607358c935eacee7eb64736f6c63430007050033000000000000000000000000fd31c7d00ca47653c6ce64af53c1571f9c36566a000000000000000000000000383518188c0c6d7730d91b2c03a03c837814a899

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100415760003560e01c80634cf088d9146100465780637acb77571461007a578063a6c41fec146100c8575b600080fd5b61004e6100fc565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100c66004803603604081101561009057600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610120565b005b6100d061046a565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b7f000000000000000000000000fd31c7d00ca47653c6ce64af53c1571f9c36566a81565b7f000000000000000000000000383518188c0c6d7730d91b2c03a03c837814a89973ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156101cf57600080fd5b505af11580156101e3573d6000803e3d6000fd5b505050506040513d60208110156101f957600080fd5b8101908080519060200190929190505050507f000000000000000000000000383518188c0c6d7730d91b2c03a03c837814a89973ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f000000000000000000000000fd31c7d00ca47653c6ce64af53c1571f9c36566a846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156102bc57600080fd5b505af11580156102d0573d6000803e3d6000fd5b505050506040513d60208110156102e657600080fd5b8101908080519060200190929190505050507f000000000000000000000000fd31c7d00ca47653c6ce64af53c1571f9c36566a73ffffffffffffffffffffffffffffffffffffffff16637acb775783836040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff16815260200192505050602060405180830381600087803b15801561038957600080fd5b505af115801561039d573d6000803e3d6000fd5b505050506040513d60208110156103b357600080fd5b8101908080519060200190929190505050507f000000000000000000000000fd31c7d00ca47653c6ce64af53c1571f9c36566a73ffffffffffffffffffffffffffffffffffffffff16631e83409a826040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561044e57600080fd5b505af1158015610462573d6000803e3d6000fd5b505050505050565b7f000000000000000000000000383518188c0c6d7730d91b2c03a03c837814a8998156fea26469706673582212209584c76952aa5dbc29c4ce07ddeaccdd6653f6547557ae607358c935eacee7eb64736f6c63430007050033

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

000000000000000000000000fd31c7d00ca47653c6ce64af53c1571f9c36566a000000000000000000000000383518188c0c6d7730d91b2c03a03c837814a899

-----Decoded View---------------
Arg [0] : _staking (address): 0xFd31c7d00Ca47653c6Ce64Af53c1571f9C36566a
Arg [1] : _OHM (address): 0x383518188C0C6d7730D91b2c03a03C837814a899

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000fd31c7d00ca47653c6ce64af53c1571f9c36566a
Arg [1] : 000000000000000000000000383518188c0c6d7730d91b2c03a03c837814a899


Deployed Bytecode Sourcemap

2881:612:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2913:32;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;3186:304;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;2952:28;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;2913:32;;;:::o;3186:304::-;3265:3;3257:26;;;3285:10;3305:4;3312:7;3257:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3340:3;3332:21;;;3355:7;3364;3332:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3394:7;3384:25;;;3411:7;3420:10;3384:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3453:7;3443:25;;;3470:10;3443:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3186:304;;:::o;2952:28::-;;;:::o

Swarm Source

ipfs://9584c76952aa5dbc29c4ce07ddeaccdd6653f6547557ae607358c935eacee7eb

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.