AVAX Price: $22.51 (+5.35%)
Gas: 4.4 nAVAX
 

Overview

AVAX Balance

Avalanche C-Chain LogoAvalanche C-Chain LogoAvalanche C-Chain Logo0 AVAX

AVAX Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Stake338850082023-08-13 23:06:24618 days ago1691967984IN
0x995bF0e7...0b9A55Dcc
0 AVAX0.0135888330
Stake249272372023-01-14 10:47:01830 days ago1673693221IN
0x995bF0e7...0b9A55Dcc
0 AVAX0.0135888330
Stake202481092022-09-25 6:29:21941 days ago1664087361IN
0x995bF0e7...0b9A55Dcc
0 AVAX0.0135888330
Stake165033392022-06-25 15:11:521032 days ago1656169912IN
0x995bF0e7...0b9A55Dcc
0 AVAX0.0135884730
Stake156371082022-06-05 15:33:061052 days ago1654443186IN
0x995bF0e7...0b9A55Dcc
0 AVAX0.0119620626.41
Stake117884242022-03-07 3:56:081143 days ago1646625368IN
0x995bF0e7...0b9A55Dcc
0 AVAX0.0050018433.47638503
Stake117858442022-03-07 2:30:091143 days ago1646620209IN
0x995bF0e7...0b9A55Dcc
0 AVAX0.0063141331.02555066
Stake117052232022-03-05 5:46:041145 days ago1646459164IN
0x995bF0e7...0b9A55Dcc
0 AVAX0.0057721338.6318548
Stake117039572022-03-05 5:04:171145 days ago1646456657IN
0x995bF0e7...0b9A55Dcc
0 AVAX0.0135884730
Stake116928322022-03-04 22:49:261145 days ago1646434166IN
0x995bF0e7...0b9A55Dcc
0 AVAX0.016195179.5773619
Stake116841872022-03-04 17:55:371145 days ago1646416537IN
0x995bF0e7...0b9A55Dcc
0 AVAX0.0319737370.58826687
Stake116551242022-03-04 1:47:571146 days ago1646358477IN
0x995bF0e7...0b9A55Dcc
0 AVAX0.013176764.74211023
Stake116549932022-03-04 1:43:331146 days ago1646358213IN
0x995bF0e7...0b9A55Dcc
0 AVAX0.0273278768.03715807
Stake116548582022-03-04 1:38:571146 days ago1646357937IN
0x995bF0e7...0b9A55Dcc
0 AVAX0.0295493265.24109079
Stake116498662022-03-03 22:51:211146 days ago1646347881IN
0x995bF0e7...0b9A55Dcc
0 AVAX0.0281524862.15376817
Stake114413322022-02-27 1:09:561151 days ago1645924196IN
0x995bF0e7...0b9A55Dcc
0 AVAX0.0185787341.01727973
Stake113891102022-02-25 19:33:181152 days ago1645817598IN
0x995bF0e7...0b9A55Dcc
0 AVAX0.0282701462.4135344
Stake113840272022-02-25 16:35:181152 days ago1645806918IN
0x995bF0e7...0b9A55Dcc
0 AVAX0.0188856241.69480922
Stake113547012022-02-25 0:04:161153 days ago1645747456IN
0x995bF0e7...0b9A55Dcc
0 AVAX0.0172012537.97613172
Stake112955502022-02-23 14:25:341154 days ago1645626334IN
0x995bF0e7...0b9A55Dcc
0 AVAX0.0242167960.29523281
Stake112950962022-02-23 14:10:081154 days ago1645625408IN
0x995bF0e7...0b9A55Dcc
0 AVAX0.0200050844.16629729
Stake110914402022-02-18 19:04:411159 days ago1645211081IN
0x995bF0e7...0b9A55Dcc
0 AVAX0.0113234225
Stake110549902022-02-17 22:31:321160 days ago1645137092IN
0x995bF0e7...0b9A55Dcc
0 AVAX0.0061024640.84268188
Stake110548762022-02-17 22:27:401160 days ago1645136860IN
0x995bF0e7...0b9A55Dcc
0 AVAX0.0195219243.09961441
Stake110503632022-02-17 19:54:021160 days ago1645127642IN
0x995bF0e7...0b9A55Dcc
0 AVAX0.0099631848.95578236
View all transactions

Parent Transaction Hash Block From To
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, MIT license
/**
 *Submitted for verification at snowscan.xyz on 2021-12-14
*/

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

    constructor ( address _staking, address _RGK ) {
        require( _staking != address(0) );
        staking = _staking;
        require( _RGK != address(0) );
        RGK = _RGK;
    }

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

Contract Security Audit

Contract ABI

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

60c060405234801561001057600080fd5b506040516106163803806106168339818101604052604081101561003357600080fd5b810190808051906020019092919080519060200190929190505050600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561008857600080fd5b8173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b81525050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156100f957600080fd5b8073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b81525050505060805160601c60a05160601c6104a36101736000398061010252806101ed528061044b52508060de528061022952806102da52806103a752506104a36000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80634cf088d914610046578063a694fc3a1461007a578063f93ce28f146100a8575b600080fd5b61004e6100dc565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100a66004803603602081101561009057600080fd5b8101908080359060200190929190505050610100565b005b6100b0610449565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156101af57600080fd5b505af11580156101c3573d6000803e3d6000fd5b505050506040513d60208110156101d957600080fd5b8101908080519060200190929190505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f0000000000000000000000000000000000000000000000000000000000000000836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561029c57600080fd5b505af11580156102b0573d6000803e3d6000fd5b505050506040513d60208110156102c657600080fd5b8101908080519060200190929190505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16637acb775782336040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff16815260200192505050602060405180830381600087803b15801561036957600080fd5b505af115801561037d573d6000803e3d6000fd5b505050506040513d602081101561039357600080fd5b8101908080519060200190929190505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16631e83409a336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561042e57600080fd5b505af1158015610442573d6000803e3d6000fd5b5050505050565b7f00000000000000000000000000000000000000000000000000000000000000008156fea2646970667358221220825709cdefd62ec992c213d6c56fe4587f7b33dd1a83f60342cfe9882fcd561164736f6c63430007050033000000000000000000000000eb6b44834e002ecdeadf9e61448b21ccc33284ca00000000000000000000000046fccf447f74ec97a521615fce111118597071f7

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100415760003560e01c80634cf088d914610046578063a694fc3a1461007a578063f93ce28f146100a8575b600080fd5b61004e6100dc565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100a66004803603602081101561009057600080fd5b8101908080359060200190929190505050610100565b005b6100b0610449565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b7f000000000000000000000000eb6b44834e002ecdeadf9e61448b21ccc33284ca81565b7f00000000000000000000000046fccf447f74ec97a521615fce111118597071f773ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156101af57600080fd5b505af11580156101c3573d6000803e3d6000fd5b505050506040513d60208110156101d957600080fd5b8101908080519060200190929190505050507f00000000000000000000000046fccf447f74ec97a521615fce111118597071f773ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f000000000000000000000000eb6b44834e002ecdeadf9e61448b21ccc33284ca836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561029c57600080fd5b505af11580156102b0573d6000803e3d6000fd5b505050506040513d60208110156102c657600080fd5b8101908080519060200190929190505050507f000000000000000000000000eb6b44834e002ecdeadf9e61448b21ccc33284ca73ffffffffffffffffffffffffffffffffffffffff16637acb775782336040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff16815260200192505050602060405180830381600087803b15801561036957600080fd5b505af115801561037d573d6000803e3d6000fd5b505050506040513d602081101561039357600080fd5b8101908080519060200190929190505050507f000000000000000000000000eb6b44834e002ecdeadf9e61448b21ccc33284ca73ffffffffffffffffffffffffffffffffffffffff16631e83409a336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561042e57600080fd5b505af1158015610442573d6000803e3d6000fd5b5050505050565b7f00000000000000000000000046fccf447f74ec97a521615fce111118597071f78156fea2646970667358221220825709cdefd62ec992c213d6c56fe4587f7b33dd1a83f60342cfe9882fcd561164736f6c63430007050033

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

000000000000000000000000eb6b44834e002ecdeadf9e61448b21ccc33284ca00000000000000000000000046fccf447f74ec97a521615fce111118597071f7

-----Decoded View---------------
Arg [0] : _staking (address): 0xeb6B44834E002ECDEAdF9E61448B21cCc33284ca
Arg [1] : _RGK (address): 0x46fCCf447f74ec97a521615fcE111118597071f7

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000eb6b44834e002ecdeadf9e61448b21ccc33284ca
Arg [1] : 00000000000000000000000046fccf447f74ec97a521615fce111118597071f7


Deployed Bytecode Sourcemap

2810:592:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2842:32;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;3115:284;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;2881:28;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;2842:32;;;:::o;3115:284::-;3174:3;3166:26;;;3194:10;3214:4;3221:7;3166:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3249:3;3241:21;;;3264:7;3273;3241:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3303:7;3293:25;;;3320:7;3329:10;3293:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3362:7;3352:25;;;3379:10;3352:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3115:284;:::o;2881:28::-;;;:::o

Swarm Source

ipfs://825709cdefd62ec992c213d6c56fe4587f7b33dd1a83f60342cfe9882fcd5611

Block Transaction 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
[ 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.