ETH Price: $2,686.80 (-2.38%)

Contract

0xEab694e9dDd75413523c457796932A7f56038cc5
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Stake147111352022-05-04 13:11:47845 days ago1651669907IN
0xEab694e9...f56038cc5
0 ETH0.016278638.38107348
Stake146781112022-04-29 8:26:29850 days ago1651220789IN
0xEab694e9...f56038cc5
0 ETH0.0082863142.63339735
Stake146776342022-04-29 6:33:07850 days ago1651213987IN
0xEab694e9...f56038cc5
0 ETH0.0121944131.06445989
Stake146758972022-04-28 23:58:40851 days ago1651190320IN
0xEab694e9...f56038cc5
0 ETH0.0066402834.16450969
Stake146755852022-04-28 22:54:29851 days ago1651186469IN
0xEab694e9...f56038cc5
0 ETH0.0152744438.91061723
Stake146753452022-04-28 21:59:09851 days ago1651183149IN
0xEab694e9...f56038cc5
0 ETH0.0192629149.07099899
Stake146724702022-04-28 11:00:33851 days ago1651143633IN
0xEab694e9...f56038cc5
0 ETH0.0107088827.28080649
Stake146654222022-04-27 8:31:23852 days ago1651048283IN
0xEab694e9...f56038cc5
0 ETH0.0058308530.00150492
Stake146653872022-04-27 8:23:15852 days ago1651047795IN
0xEab694e9...f56038cc5
0 ETH0.0064086132.97427128
Stake146634332022-04-27 1:00:57853 days ago1651021257IN
0xEab694e9...f56038cc5
0 ETH0.0073380837.75475349
Stake146634312022-04-27 1:00:31853 days ago1651021231IN
0xEab694e9...f56038cc5
0 ETH0.0139031835.41742368
Stake146603942022-04-26 13:29:44853 days ago1650979784IN
0xEab694e9...f56038cc5
0 ETH0.0134107468.99878482
Stake146602142022-04-26 12:44:41853 days ago1650977081IN
0xEab694e9...f56038cc5
0 ETH0.0070722236.38872076
Stake146586172022-04-26 6:30:31853 days ago1650954631IN
0xEab694e9...f56038cc5
0 ETH0.0050552226.01066872
Stake146565632022-04-25 22:52:59854 days ago1650927179IN
0xEab694e9...f56038cc5
0 ETH0.0094269448.50673259
Stake146564262022-04-25 22:23:40854 days ago1650925420IN
0xEab694e9...f56038cc5
0 ETH0.0102950252.97103489
Stake146563562022-04-25 22:10:30854 days ago1650924630IN
0xEab694e9...f56038cc5
0 ETH0.0120950662.23277103
Stake146562642022-04-25 21:48:00854 days ago1650923280IN
0xEab694e9...f56038cc5
0 ETH0.0113959658.63569604
Stake146560702022-04-25 21:04:10854 days ago1650920650IN
0xEab694e9...f56038cc5
0 ETH0.0158580781.59462284
Stake146559402022-04-25 20:32:29854 days ago1650918749IN
0xEab694e9...f56038cc5
0 ETH0.0121982362.76359978
Stake146540142022-04-25 13:17:15854 days ago1650892635IN
0xEab694e9...f56038cc5
0 ETH0.008266942.53356827
Stake146539922022-04-25 13:12:17854 days ago1650892337IN
0xEab694e9...f56038cc5
0 ETH0.0083410342.9171601
Stake146539832022-04-25 13:10:16854 days ago1650892216IN
0xEab694e9...f56038cc5
0 ETH0.0077703439.97873831
Stake146502972022-04-24 23:08:46855 days ago1650841726IN
0xEab694e9...f56038cc5
0 ETH0.0102143826.02105409
Stake146479652022-04-24 14:25:08855 days ago1650810308IN
0xEab694e9...f56038cc5
0 ETH0.0196626246.3608917
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
StakingHelper

Compiler Version
v0.7.5+commit.eb77ed08

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2022-03-18
*/

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

    constructor ( address _staking, address _GWS ) {
        require( _staking != address(0) );
        staking = _staking;
        require( _GWS != address(0) );
        GWS = _GWS;
    }

    function stake( uint _amount, address _recipient ) external {
        IERC20( GWS ).transferFrom( _recipient, address(this), _amount );
        IERC20( GWS ).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":"_GWS","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"GWS","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"}]

60c060405234801561001057600080fd5b506040516104833803806104838339818101604052604081101561003357600080fd5b5080516020909101516001600160a01b03821661004f57600080fd5b6001600160601b0319606083901b166080526001600160a01b03811661007457600080fd5b606081811b6001600160601b03191660a052608051901c91506001600160a01b03166103ba6100c96000398060c6528060ea52806101e552508060a252806101b45280610285528061031e52506103ba6000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80634cf088d914610046578063508f18321461006a5780637acb775714610072575b600080fd5b61004e6100a0565b604080516001600160a01b039092168252519081900360200190f35b61004e6100c4565b61009e6004803603604081101561008857600080fd5b50803590602001356001600160a01b03166100e8565b005b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166323b872dd8230856040518463ffffffff1660e01b815260040180846001600160a01b03168152602001836001600160a01b031681526020018281526020019350505050602060405180830381600087803b15801561017057600080fd5b505af1158015610184573d6000803e3d6000fd5b505050506040513d602081101561019a57600080fd5b50506040805163095ea7b360e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301526024820185905291517f00000000000000000000000000000000000000000000000000000000000000009092169163095ea7b3916044808201926020929091908290030181600087803b15801561023057600080fd5b505af1158015610244573d6000803e3d6000fd5b505050506040513d602081101561025a57600080fd5b505060408051637acb775760e01b8152600481018490526001600160a01b03838116602483015291517f000000000000000000000000000000000000000000000000000000000000000090921691637acb7757916044808201926020929091908290030181600087803b1580156102d057600080fd5b505af11580156102e4573d6000803e3d6000fd5b505050506040513d60208110156102fa57600080fd5b505060408051630f41a04d60e11b81526001600160a01b03838116600483015291517f000000000000000000000000000000000000000000000000000000000000000090921691631e83409a9160248082019260009290919082900301818387803b15801561036857600080fd5b505af115801561037c573d6000803e3d6000fd5b50505050505056fea2646970667358221220910f069eb3b6f786d67036eec95382a825c4f46c995bff84ab6b30900ba3495064736f6c63430007050033000000000000000000000000842222bbaeceb854993c5ad3f63e98fdff21439300000000000000000000000036f17bd0f7028c784b2e0c9b5a65dbe071a902d7

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100415760003560e01c80634cf088d914610046578063508f18321461006a5780637acb775714610072575b600080fd5b61004e6100a0565b604080516001600160a01b039092168252519081900360200190f35b61004e6100c4565b61009e6004803603604081101561008857600080fd5b50803590602001356001600160a01b03166100e8565b005b7f000000000000000000000000842222bbaeceb854993c5ad3f63e98fdff21439381565b7f00000000000000000000000036f17bd0f7028c784b2e0c9b5a65dbe071a902d781565b7f00000000000000000000000036f17bd0f7028c784b2e0c9b5a65dbe071a902d76001600160a01b03166323b872dd8230856040518463ffffffff1660e01b815260040180846001600160a01b03168152602001836001600160a01b031681526020018281526020019350505050602060405180830381600087803b15801561017057600080fd5b505af1158015610184573d6000803e3d6000fd5b505050506040513d602081101561019a57600080fd5b50506040805163095ea7b360e01b81526001600160a01b037f000000000000000000000000842222bbaeceb854993c5ad3f63e98fdff214393811660048301526024820185905291517f00000000000000000000000036f17bd0f7028c784b2e0c9b5a65dbe071a902d79092169163095ea7b3916044808201926020929091908290030181600087803b15801561023057600080fd5b505af1158015610244573d6000803e3d6000fd5b505050506040513d602081101561025a57600080fd5b505060408051637acb775760e01b8152600481018490526001600160a01b03838116602483015291517f000000000000000000000000842222bbaeceb854993c5ad3f63e98fdff21439390921691637acb7757916044808201926020929091908290030181600087803b1580156102d057600080fd5b505af11580156102e4573d6000803e3d6000fd5b505050506040513d60208110156102fa57600080fd5b505060408051630f41a04d60e11b81526001600160a01b03838116600483015291517f000000000000000000000000842222bbaeceb854993c5ad3f63e98fdff21439390921691631e83409a9160248082019260009290919082900301818387803b15801561036857600080fd5b505af115801561037c573d6000803e3d6000fd5b50505050505056fea2646970667358221220910f069eb3b6f786d67036eec95382a825c4f46c995bff84ab6b30900ba3495064736f6c63430007050033

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

000000000000000000000000842222bbaeceb854993c5ad3f63e98fdff21439300000000000000000000000036f17bd0f7028c784b2e0c9b5a65dbe071a902d7

-----Decoded View---------------
Arg [0] : _staking (address): 0x842222BbaEcEb854993c5AD3F63e98fdFf214393
Arg [1] : _GWS (address): 0x36F17BD0F7028c784b2e0C9B5a65dBe071a902d7

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000842222bbaeceb854993c5ad3f63e98fdff214393
Arg [1] : 00000000000000000000000036f17bd0f7028c784b2e0c9b5a65dbe071a902d7


Deployed Bytecode Sourcemap

2812:612:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2844:32;;;:::i;:::-;;;;-1:-1:-1;;;;;2844:32:0;;;;;;;;;;;;;;2883:28;;;:::i;3117:304::-;;;;;;;;;;;;;;;;-1:-1:-1;3117:304:0;;;;;;-1:-1:-1;;;;;3117:304:0;;:::i;:::-;;2844:32;;;:::o;2883:28::-;;;:::o;3117:304::-;3196:3;-1:-1:-1;;;;;3188:26:0;;3216:10;3236:4;3243:7;3188:64;;;;;;;;;;;;;-1:-1:-1;;;;;3188:64:0;;;;;;-1:-1:-1;;;;;3188:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3263:41:0;;;-1:-1:-1;;;3263:41:0;;-1:-1:-1;;;;;3286:7:0;3263:41;;;;;;;;;;;;;;3271:3;3263:21;;;;;;:41;;;;;3188:64;;3263:41;;;;;;;;-1:-1:-1;3263:21:0;:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3315:48:0;;;-1:-1:-1;;;3315:48:0;;;;;;;;-1:-1:-1;;;;;3315:48:0;;;;;;;;;3325:7;3315:25;;;;;;:48;;;;;3263:41;;3315:48;;;;;;;;-1:-1:-1;3315:25:0;:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3374:39:0;;;-1:-1:-1;;;3374:39:0;;-1:-1:-1;;;;;3374:39:0;;;;;;;;;3384:7;3374:25;;;;;;:39;;;;;-1:-1:-1;;3374:39:0;;;;;;;;-1:-1:-1;3374:25:0;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3117:304;;:::o

Swarm Source

ipfs://910f069eb3b6f786d67036eec95382a825c4f46c995bff84ab6b30900ba34950

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.