ETH Price: $2,350.07 (-2.34%)

Contract

0x34f2f8003abe7fD451489383AA3a6ffCb1F45280
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Stake153734982022-08-19 20:47:34748 days ago1660942054IN
0x34f2f800...Cb1F45280
0 ETH0.0034224616.42542597
Transfer153162772022-08-10 19:44:49757 days ago1660160689IN
0x34f2f800...Cb1F45280
0.01542675 ETH0.0004735522.50217083
Stake148039352022-05-19 8:25:15840 days ago1652948715IN
0x34f2f800...Cb1F45280
0 ETH0.002011213.96594402
Stake147042272022-05-03 10:56:36856 days ago1651575396IN
0x34f2f800...Cb1F45280
0 ETH0.0077942754.12390296
Stake146833122022-04-30 3:54:37860 days ago1651290877IN
0x34f2f800...Cb1F45280
0 ETH0.007385735.44125497
Stake146832692022-04-30 3:44:33860 days ago1651290273IN
0x34f2f800...Cb1F45280
0 ETH0.0068593132.91530495
Stake146792022022-04-29 12:31:31860 days ago1651235491IN
0x34f2f800...Cb1F45280
0 ETH0.0090714840.84909175
Stake146776302022-04-29 6:32:28861 days ago1651213948IN
0x34f2f800...Cb1F45280
0 ETH0.0068003130.62198008
Stake146753212022-04-28 21:52:58861 days ago1651182778IN
0x34f2f800...Cb1F45280
0 ETH0.0091468541.18851924
Stake146669092022-04-27 14:06:51862 days ago1651068411IN
0x34f2f800...Cb1F45280
0 ETH0.0248860363.90686618
Stake146667902022-04-27 13:39:14862 days ago1651066754IN
0x34f2f800...Cb1F45280
0 ETH0.0154053441
Stake146650472022-04-27 7:05:42863 days ago1651043142IN
0x34f2f800...Cb1F45280
0 ETH0.0128508633
Stake146596502022-04-26 10:33:25863 days ago1650969205IN
0x34f2f800...Cb1F45280
0 ETH0.0092327724.5728296
Stake146571492022-04-26 1:10:04864 days ago1650935404IN
0x34f2f800...Cb1F45280
0 ETH0.0150289139.99914695
Stake146513642022-04-25 3:10:12865 days ago1650856212IN
0x34f2f800...Cb1F45280
0 ETH0.0155552641.4
Stake146502792022-04-24 23:06:00865 days ago1650841560IN
0x34f2f800...Cb1F45280
0 ETH0.0163149841.89657251
Stake146487162022-04-24 17:17:39865 days ago1650820659IN
0x34f2f800...Cb1F45280
0 ETH0.0141256737.59427956
Stake146481902022-04-24 15:19:43865 days ago1650813583IN
0x34f2f800...Cb1F45280
0 ETH0.0148423939.50271237
Stake146462342022-04-24 7:44:09866 days ago1650786249IN
0x34f2f800...Cb1F45280
0 ETH0.0077539620.63702388
Stake146436552022-04-23 22:06:02866 days ago1650751562IN
0x34f2f800...Cb1F45280
0 ETH0.0087867623.38641332
Stake146400902022-04-23 8:53:33866 days ago1650704013IN
0x34f2f800...Cb1F45280
0 ETH0.0106282427.29250208
Stake146388622022-04-23 4:04:37867 days ago1650686677IN
0x34f2f800...Cb1F45280
0 ETH0.0126903432.58781169
Stake146386552022-04-23 3:14:19867 days ago1650683659IN
0x34f2f800...Cb1F45280
0 ETH0.0110557429.42391547
Stake146330872022-04-22 6:33:15868 days ago1650609195IN
0x34f2f800...Cb1F45280
0 ETH0.013150935
Stake146280302022-04-21 11:27:26868 days ago1650540446IN
0x34f2f800...Cb1F45280
0 ETH0.0159307740.90993008
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
File 1 of 3 : StakingHelper.sol
// SPDX-License-Identifier: AGPL-3.0-or-later


pragma solidity 0.7.5;

import "../libs/IERC20.sol";
import "../libs/interface/IStaking.sol";

contract StakingHelper {

    address public immutable staking;
    address public immutable Gaas;

    constructor ( address _staking, address _Gaas ) {
        require( _staking != address(0) );
        staking = _staking;
        require( _Gaas != address(0) );
        Gaas = _Gaas;
    }

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

File 2 of 3 : IERC20.sol
// SPDX-License-Identifier: AGPL-3.0-or-later


pragma solidity 0.7.5;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {

	/**
     * @dev Returns the decimals of token.
     */
	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);
}

File 3 of 3 : IStaking.sol
// SPDX-License-Identifier: AGPL-3.0-or-later


pragma solidity 0.7.5;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_staking","type":"address"},{"internalType":"address","name":"_Gaas","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"Gaas","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"}]

60c060405234801561001057600080fd5b506040516104573803806104578339818101604052604081101561003357600080fd5b5080516020909101516001600160a01b03821661004f57600080fd5b6001600160601b0319606083901b166080526001600160a01b03811661007457600080fd5b606081811b6001600160601b03191660a052608051901c91506001600160a01b031661038d6100ca6000398060e2528061019f52806103355250806093528061016e528061023d52806102d1525061038d6000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80634cf088d914610046578063a694fc3a1461006a578063fdff1e0314610089575b600080fd5b61004e610091565b604080516001600160a01b039092168252519081900360200190f35b6100876004803603602081101561008057600080fd5b50356100b5565b005b61004e610333565b7f000000000000000000000000000000000000000000000000000000000000000081565b604080516323b872dd60e01b81523360048201523060248201526044810183905290516001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916323b872dd9160648083019260209291908290030181600087803b15801561012a57600080fd5b505af115801561013e573d6000803e3d6000fd5b505050506040513d602081101561015457600080fd5b50506040805163095ea7b360e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301526024820184905291517f00000000000000000000000000000000000000000000000000000000000000009092169163095ea7b3916044808201926020929091908290030181600087803b1580156101ea57600080fd5b505af11580156101fe573d6000803e3d6000fd5b505050506040513d602081101561021457600080fd5b505060408051637acb775760e01b81526004810183905233602482015290516001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691637acb77579160448083019260209291908290030181600087803b15801561028557600080fd5b505af1158015610299573d6000803e3d6000fd5b505050506040513d60208110156102af57600080fd5b505060408051630f41a04d60e11b815233600482015290516001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691631e83409a91602480830192600092919082900301818387803b15801561031857600080fd5b505af115801561032c573d6000803e3d6000fd5b5050505050565b7f00000000000000000000000000000000000000000000000000000000000000008156fea26469706673582212208e0e5ec56163b22b98cdea3be90df4521d61a5f854b864bed0af7be30868bbd564736f6c634300070500330000000000000000000000001bc1ba41156c4b2cf194d3006ba59bd142c2b55b000000000000000000000000b4dffa52fee44bd493f12d85829d775ec8017691

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100415760003560e01c80634cf088d914610046578063a694fc3a1461006a578063fdff1e0314610089575b600080fd5b61004e610091565b604080516001600160a01b039092168252519081900360200190f35b6100876004803603602081101561008057600080fd5b50356100b5565b005b61004e610333565b7f0000000000000000000000001bc1ba41156c4b2cf194d3006ba59bd142c2b55b81565b604080516323b872dd60e01b81523360048201523060248201526044810183905290516001600160a01b037f000000000000000000000000b4dffa52fee44bd493f12d85829d775ec801769116916323b872dd9160648083019260209291908290030181600087803b15801561012a57600080fd5b505af115801561013e573d6000803e3d6000fd5b505050506040513d602081101561015457600080fd5b50506040805163095ea7b360e01b81526001600160a01b037f0000000000000000000000001bc1ba41156c4b2cf194d3006ba59bd142c2b55b811660048301526024820184905291517f000000000000000000000000b4dffa52fee44bd493f12d85829d775ec80176919092169163095ea7b3916044808201926020929091908290030181600087803b1580156101ea57600080fd5b505af11580156101fe573d6000803e3d6000fd5b505050506040513d602081101561021457600080fd5b505060408051637acb775760e01b81526004810183905233602482015290516001600160a01b037f0000000000000000000000001bc1ba41156c4b2cf194d3006ba59bd142c2b55b1691637acb77579160448083019260209291908290030181600087803b15801561028557600080fd5b505af1158015610299573d6000803e3d6000fd5b505050506040513d60208110156102af57600080fd5b505060408051630f41a04d60e11b815233600482015290516001600160a01b037f0000000000000000000000001bc1ba41156c4b2cf194d3006ba59bd142c2b55b1691631e83409a91602480830192600092919082900301818387803b15801561031857600080fd5b505af115801561032c573d6000803e3d6000fd5b5050505050565b7f000000000000000000000000b4dffa52fee44bd493f12d85829d775ec80176918156fea26469706673582212208e0e5ec56163b22b98cdea3be90df4521d61a5f854b864bed0af7be30868bbd564736f6c63430007050033

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

0000000000000000000000001bc1ba41156c4b2cf194d3006ba59bd142c2b55b000000000000000000000000b4dffa52fee44bd493f12d85829d775ec8017691

-----Decoded View---------------
Arg [0] : _staking (address): 0x1bc1ba41156c4b2Cf194D3006Ba59bD142c2b55b
Arg [1] : _Gaas (address): 0xB4dFfa52fEe44BD493f12D85829D775EC8017691

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000001bc1ba41156c4b2cf194d3006ba59bd142c2b55b
Arg [1] : 000000000000000000000000b4dffa52fee44bd493f12d85829d775ec8017691


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.