ETH Price: $3,311.47 (-3.57%)
Gas: 19 Gwei

Contract

0x3A424dc0fC7AFcc6E0fEF1c8dA46C856f2BAe181
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Stake130915232021-08-25 1:15:431043 days ago1629854143IN
0x3A424dc0...6f2BAe181
0 ETH0.0174884190.12278768
Stake130879382021-08-24 12:09:101044 days ago1629806950IN
0x3A424dc0...6f2BAe181
0 ETH0.0131671757.0689353
Stake130871582021-08-24 9:17:241044 days ago1629796644IN
0x3A424dc0...6f2BAe181
0 ETH0.0085599441.20510081
Stake130828072021-08-23 17:08:391044 days ago1629738519IN
0x3A424dc0...6f2BAe181
0 ETH0.0185643789.36351384
Stake130810502021-08-23 10:37:211045 days ago1629715041IN
0x3A424dc0...6f2BAe181
0 ETH0.0085946344.28852009
Stake130810252021-08-23 10:30:411045 days ago1629714641IN
0x3A424dc0...6f2BAe181
0 ETH0.0016974951.75433517
Stake130802962021-08-23 7:46:541045 days ago1629704814IN
0x3A424dc0...6f2BAe181
0 ETH0.0075683439
Stake130793722021-08-23 4:14:521045 days ago1629692092IN
0x3A424dc0...6f2BAe181
0 ETH0.011348458.47886419
Stake130779232021-08-22 22:41:311045 days ago1629672091IN
0x3A424dc0...6f2BAe181
0 ETH0.0068001532.73395173
Stake130777482021-08-22 22:04:111045 days ago1629669851IN
0x3A424dc0...6f2BAe181
0 ETH0.0079727738.3802662
Stake130772412021-08-22 20:20:201045 days ago1629663620IN
0x3A424dc0...6f2BAe181
0 ETH0.0087261642.00706129
Stake130769372021-08-22 19:11:571045 days ago1629659517IN
0x3A424dc0...6f2BAe181
0 ETH0.0106367954.81189088
Stake130758592021-08-22 15:15:201045 days ago1629645320IN
0x3A424dc0...6f2BAe181
0 ETH0.0122777659.1015771
Stake130757312021-08-22 14:45:401045 days ago1629643540IN
0x3A424dc0...6f2BAe181
0 ETH0.0107660355.47787882
Stake130757082021-08-22 14:40:341045 days ago1629643234IN
0x3A424dc0...6f2BAe181
0 ETH0.0018150955.29937683
Stake130745192021-08-22 10:23:081046 days ago1629627788IN
0x3A424dc0...6f2BAe181
0 ETH0.0044404122.8816829
Stake130742872021-08-22 9:33:321046 days ago1629624812IN
0x3A424dc0...6f2BAe181
0 ETH0.0054130227.89354914
Stake130736472021-08-22 7:00:301046 days ago1629615630IN
0x3A424dc0...6f2BAe181
0 ETH0.0044641823.00523668
Stake130735342021-08-22 6:36:251046 days ago1629614185IN
0x3A424dc0...6f2BAe181
0 ETH0.0042313621.80655605
Stake130735292021-08-22 6:35:431046 days ago1629614143IN
0x3A424dc0...6f2BAe181
0 ETH0.0049240525.37507446
Stake130734552021-08-22 6:17:151046 days ago1629613035IN
0x3A424dc0...6f2BAe181
0 ETH0.0040250720.74139586
Stake130733292021-08-22 5:47:281046 days ago1629611248IN
0x3A424dc0...6f2BAe181
0 ETH0.0029342815.12119226
Stake130730522021-08-22 4:48:331046 days ago1629607713IN
0x3A424dc0...6f2BAe181
0 ETH0.0046801922.5291044
Stake130730332021-08-22 4:44:451046 days ago1629607485IN
0x3A424dc0...6f2BAe181
0 ETH0.0058249628.04227169
Stake130730192021-08-22 4:40:531046 days ago1629607253IN
0x3A424dc0...6f2BAe181
0 ETH0.0042439821.87045796
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:
No with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at Etherscan.io on 2021-08-12
*/

/**
 *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`.stakingHelper_address
     */
    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(uint256 _amount, address _recipient) external returns (bool);

    function claim(address _recipient) external;
}

contract StakingHelper {
    address public immutable staking;
    address public immutable ASG;

    constructor(address _staking, address _ASG) {
        require(_staking != address(0));
        staking = _staking;
        require(_ASG != address(0));
        ASG = _ASG;
    }

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

60c060405234801561001057600080fd5b506040516106373803806106378339818101604052604081101561003357600080fd5b810190808051906020019092919080519060200190929190505050600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561008857600080fd5b8173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b81525050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156100f957600080fd5b8073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b81525050505060805160601c60a05160601c6104c46101736000398060fe52806101465280610231525080610122528061026d528061031e52806103eb52506104c46000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80631405ce27146100465780634cf088d91461007a5780637acb7757146100ae575b600080fd5b61004e6100fc565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610082610120565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100fa600480360360408110156100c457600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610144565b005b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156101f357600080fd5b505af1158015610207573d6000803e3d6000fd5b505050506040513d602081101561021d57600080fd5b8101908080519060200190929190505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f0000000000000000000000000000000000000000000000000000000000000000846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156102e057600080fd5b505af11580156102f4573d6000803e3d6000fd5b505050506040513d602081101561030a57600080fd5b8101908080519060200190929190505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16637acb775783836040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff16815260200192505050602060405180830381600087803b1580156103ad57600080fd5b505af11580156103c1573d6000803e3d6000fd5b505050506040513d60208110156103d757600080fd5b8101908080519060200190929190505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16631e83409a826040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561047257600080fd5b505af1158015610486573d6000803e3d6000fd5b50505050505056fea264697066735822122015551768bfecd6ef5eaf04c4d3a173a93921c6ac2047f1c9041378d737597b6664736f6c634300070500330000000000000000000000004ea2bb6df87f66cbea70818ae92f3a48f98ebc930000000000000000000000000dc5189ec8cde5732a01f0f592e927b304370551

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100415760003560e01c80631405ce27146100465780634cf088d91461007a5780637acb7757146100ae575b600080fd5b61004e6100fc565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610082610120565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100fa600480360360408110156100c457600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610144565b005b7f0000000000000000000000000dc5189ec8cde5732a01f0f592e927b30437055181565b7f0000000000000000000000004ea2bb6df87f66cbea70818ae92f3a48f98ebc9381565b7f0000000000000000000000000dc5189ec8cde5732a01f0f592e927b30437055173ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156101f357600080fd5b505af1158015610207573d6000803e3d6000fd5b505050506040513d602081101561021d57600080fd5b8101908080519060200190929190505050507f0000000000000000000000000dc5189ec8cde5732a01f0f592e927b30437055173ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f0000000000000000000000004ea2bb6df87f66cbea70818ae92f3a48f98ebc93846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156102e057600080fd5b505af11580156102f4573d6000803e3d6000fd5b505050506040513d602081101561030a57600080fd5b8101908080519060200190929190505050507f0000000000000000000000004ea2bb6df87f66cbea70818ae92f3a48f98ebc9373ffffffffffffffffffffffffffffffffffffffff16637acb775783836040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff16815260200192505050602060405180830381600087803b1580156103ad57600080fd5b505af11580156103c1573d6000803e3d6000fd5b505050506040513d60208110156103d757600080fd5b8101908080519060200190929190505050507f0000000000000000000000004ea2bb6df87f66cbea70818ae92f3a48f98ebc9373ffffffffffffffffffffffffffffffffffffffff16631e83409a826040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561047257600080fd5b505af1158015610486573d6000803e3d6000fd5b50505050505056fea264697066735822122015551768bfecd6ef5eaf04c4d3a173a93921c6ac2047f1c9041378d737597b6664736f6c63430007050033

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

0000000000000000000000004ea2bb6df87f66cbea70818ae92f3a48f98ebc930000000000000000000000000dc5189ec8cde5732a01f0f592e927b304370551

-----Decoded View---------------
Arg [0] : _staking (address): 0x4EA2bb6Df87F66cbea70818aE92f3A48F98EBC93
Arg [1] : _ASG (address): 0x0DC5189Ec8CDe5732a01F0F592e927B304370551

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000004ea2bb6df87f66cbea70818ae92f3a48f98ebc93
Arg [1] : 0000000000000000000000000dc5189ec8cde5732a01f0f592e927b304370551


Deployed Bytecode Sourcemap

3137:588:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3206:28;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;3167:32;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;3433:289;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;3206:28;;;:::o;3167:32::-;;;:::o;3433:289::-;3512:3;3505:24;;;3530:10;3550:4;3557:7;3505:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3583:3;3576:19;;;3596:7;3605;3576:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3633:7;3624:23;;;3648:7;3657:10;3624:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3688:7;3679:23;;;3703:10;3679:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3433:289;;:::o

Swarm Source

ipfs://15551768bfecd6ef5eaf04c4d3a173a93921c6ac2047f1c9041378d737597b66

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.