ETH Price: $3,464.30 (+2.07%)
Gas: 15 Gwei

Contract

0xC0840Ec5527d3e70d66AE6575642916F3Fd18aDf
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Stake186787172023-11-29 17:20:11214 days ago1701278411IN
0xC0840Ec5...F3Fd18aDf
0 ETH0.0081453345.96377724
Transfer173800742023-05-31 16:35:47396 days ago1685550947IN
0xC0840Ec5...F3Fd18aDf
0.03263613 ETH0.0013358963.6141957
Stake153167452022-08-10 21:27:37690 days ago1660166857IN
0xC0840Ec5...F3Fd18aDf
0 ETH0.0008157427.39706147
Stake153043712022-08-08 22:48:27692 days ago1659998907IN
0xC0840Ec5...F3Fd18aDf
0 ETH0.0027735515.72873401
Stake153016812022-08-08 12:55:09693 days ago1659963309IN
0xC0840Ec5...F3Fd18aDf
0 ETH0.0020910411.85824542
Stake153014832022-08-08 12:08:01693 days ago1659960481IN
0xC0840Ec5...F3Fd18aDf
0 ETH0.0033991115.71189659
Stake153010512022-08-08 10:34:32693 days ago1659954872IN
0xC0840Ec5...F3Fd18aDf
0 ETH0.001193886.28303734
Stake153007872022-08-08 9:37:54693 days ago1659951474IN
0xC0840Ec5...F3Fd18aDf
0 ETH0.0026590113.99424148
Stake153007462022-08-08 9:28:03693 days ago1659950883IN
0xC0840Ec5...F3Fd18aDf
0 ETH0.001525678.65203613
Stake153007432022-08-08 9:26:53693 days ago1659950813IN
0xC0840Ec5...F3Fd18aDf
0 ETH0.001364867.74046253
Stake152998312022-08-08 5:54:17693 days ago1659938057IN
0xC0840Ec5...F3Fd18aDf
0 ETH0.0018851910.6908726
Stake152998202022-08-08 5:51:31693 days ago1659937891IN
0xC0840Ec5...F3Fd18aDf
0 ETH0.001697149.62444989
Stake152980262022-08-07 23:01:19693 days ago1659913279IN
0xC0840Ec5...F3Fd18aDf
0 ETH0.001008355.7183326
Stake152977432022-08-07 21:57:45693 days ago1659909465IN
0xC0840Ec5...F3Fd18aDf
0 ETH0.001308486.88648542
Stake152976722022-08-07 21:41:29693 days ago1659908489IN
0xC0840Ec5...F3Fd18aDf
0 ETH0.001439287.57448871
Stake152974272022-08-07 20:42:04693 days ago1659904924IN
0xC0840Ec5...F3Fd18aDf
0 ETH0.001434798.13753255
Stake152970782022-08-07 19:23:22693 days ago1659900202IN
0xC0840Ec5...F3Fd18aDf
0 ETH0.001568538.89556726
Stake152969512022-08-07 18:55:27693 days ago1659898527IN
0xC0840Ec5...F3Fd18aDf
0 ETH0.002410156.81601098
Stake152968312022-08-07 18:29:55693 days ago1659896995IN
0xC0840Ec5...F3Fd18aDf
0 ETH0.001193936.77108607
Stake152965382022-08-07 17:22:54693 days ago1659892974IN
0xC0840Ec5...F3Fd18aDf
0 ETH0.0033470817.6146522
Stake152964742022-08-07 17:09:22693 days ago1659892162IN
0xC0840Ec5...F3Fd18aDf
0 ETH0.0041142123.33157154
Stake152963932022-08-07 16:50:11693 days ago1659891011IN
0xC0840Ec5...F3Fd18aDf
0 ETH0.0025485114.45253098
Stake152963002022-08-07 16:31:36693 days ago1659889896IN
0xC0840Ec5...F3Fd18aDf
0 ETH0.0053795230.50706554
Stake152957042022-08-07 14:32:57694 days ago1659882777IN
0xC0840Ec5...F3Fd18aDf
0 ETH0.001125896.38523903
Stake152943042022-08-07 9:19:57694 days ago1659863997IN
0xC0840Ec5...F3Fd18aDf
0 ETH0.001272896.69885842
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, GNU AGPLv3 license
/**
 *Submitted for verification at Etherscan.io on 2021-12-17
*/

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

    constructor ( address _staking, address _BTRFLY ) {
        require( _staking != address(0) );
        staking = _staking;
        require( _BTRFLY != address(0) );
        BTRFLY = _BTRFLY;
    }

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

Contract Security Audit

Contract ABI

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

60c060405234801561001057600080fd5b506040516104573803806104578339818101604052604081101561003357600080fd5b5080516020909101516001600160a01b03821661004f57600080fd5b6001600160601b0319606083901b166080526001600160a01b03811661007457600080fd5b606081811b6001600160601b03191660a052608051901c91506001600160a01b031661038d6100ca600039806093528061010652806101c352508060b75280610192528061026152806102f5525061038d6000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806322443c10146100465780634cf088d91461006a578063a694fc3a14610072575b600080fd5b61004e610091565b604080516001600160a01b039092168252519081900360200190f35b61004e6100b5565b61008f6004803603602081101561008857600080fd5b50356100d9565b005b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b604080516323b872dd60e01b81523360048201523060248201526044810183905290516001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916323b872dd9160648083019260209291908290030181600087803b15801561014e57600080fd5b505af1158015610162573d6000803e3d6000fd5b505050506040513d602081101561017857600080fd5b50506040805163095ea7b360e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301526024820184905291517f00000000000000000000000000000000000000000000000000000000000000009092169163095ea7b3916044808201926020929091908290030181600087803b15801561020e57600080fd5b505af1158015610222573d6000803e3d6000fd5b505050506040513d602081101561023857600080fd5b505060408051637acb775760e01b81526004810183905233602482015290516001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691637acb77579160448083019260209291908290030181600087803b1580156102a957600080fd5b505af11580156102bd573d6000803e3d6000fd5b505050506040513d60208110156102d357600080fd5b505060408051630f41a04d60e11b815233600482015290516001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691631e83409a91602480830192600092919082900301818387803b15801561033c57600080fd5b505af1158015610350573d6000803e3d6000fd5b505050505056fea26469706673582212209f144938bac0ca01b9c6a3645f0d77aa20ad573b386174a80952a6a854f4971c64736f6c63430007050033000000000000000000000000bde4dfb0dbb0dd8833efb6c5bd0ce048c852c487000000000000000000000000c0d4ceb216b3ba9c3701b291766fdcba977cec3a

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100415760003560e01c806322443c10146100465780634cf088d91461006a578063a694fc3a14610072575b600080fd5b61004e610091565b604080516001600160a01b039092168252519081900360200190f35b61004e6100b5565b61008f6004803603602081101561008857600080fd5b50356100d9565b005b7f000000000000000000000000c0d4ceb216b3ba9c3701b291766fdcba977cec3a81565b7f000000000000000000000000bde4dfb0dbb0dd8833efb6c5bd0ce048c852c48781565b604080516323b872dd60e01b81523360048201523060248201526044810183905290516001600160a01b037f000000000000000000000000c0d4ceb216b3ba9c3701b291766fdcba977cec3a16916323b872dd9160648083019260209291908290030181600087803b15801561014e57600080fd5b505af1158015610162573d6000803e3d6000fd5b505050506040513d602081101561017857600080fd5b50506040805163095ea7b360e01b81526001600160a01b037f000000000000000000000000bde4dfb0dbb0dd8833efb6c5bd0ce048c852c487811660048301526024820184905291517f000000000000000000000000c0d4ceb216b3ba9c3701b291766fdcba977cec3a9092169163095ea7b3916044808201926020929091908290030181600087803b15801561020e57600080fd5b505af1158015610222573d6000803e3d6000fd5b505050506040513d602081101561023857600080fd5b505060408051637acb775760e01b81526004810183905233602482015290516001600160a01b037f000000000000000000000000bde4dfb0dbb0dd8833efb6c5bd0ce048c852c4871691637acb77579160448083019260209291908290030181600087803b1580156102a957600080fd5b505af11580156102bd573d6000803e3d6000fd5b505050506040513d60208110156102d357600080fd5b505060408051630f41a04d60e11b815233600482015290516001600160a01b037f000000000000000000000000bde4dfb0dbb0dd8833efb6c5bd0ce048c852c4871691631e83409a91602480830192600092919082900301818387803b15801561033c57600080fd5b505af1158015610350573d6000803e3d6000fd5b505050505056fea26469706673582212209f144938bac0ca01b9c6a3645f0d77aa20ad573b386174a80952a6a854f4971c64736f6c63430007050033

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

000000000000000000000000bde4dfb0dbb0dd8833efb6c5bd0ce048c852c487000000000000000000000000c0d4ceb216b3ba9c3701b291766fdcba977cec3a

-----Decoded View---------------
Arg [0] : _staking (address): 0xBdE4Dfb0dbb0Dd8833eFb6C5BD0Ce048C852C487
Arg [1] : _BTRFLY (address): 0xC0d4Ceb216B3BA9C3701B291766fDCbA977ceC3A

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000bde4dfb0dbb0dd8833efb6c5bd0ce048c852c487
Arg [1] : 000000000000000000000000c0d4ceb216b3ba9c3701b291766fdcba977cec3a


Deployed Bytecode Sourcemap

2810:613:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2881:31;;;:::i;:::-;;;;-1:-1:-1;;;;;2881:31:0;;;;;;;;;;;;;;2842:32;;;:::i;3130:290::-;;;;;;;;;;;;;;;;-1:-1:-1;3130:290:0;;:::i;:::-;;2881:31;;;:::o;2842:32::-;;;:::o;3130:290::-;3181:67;;;-1:-1:-1;;;3181:67:0;;3212:10;3181:67;;;;3232:4;3181:67;;;;;;;;;;;;-1:-1:-1;;;;;3189:6:0;3181:29;;;;:67;;;;;;;;;;;;;;-1:-1:-1;3181:29:0;:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3259:44:0;;;-1:-1:-1;;;3259:44:0;;-1:-1:-1;;;;;3285:7:0;3259:44;;;;;;;;;;;;;;3267:6;3259:24;;;;;;:44;;;;;3181:67;;3259:44;;;;;;;;-1:-1:-1;3259:24:0;:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3314:48:0;;;-1:-1:-1;;;3314:48:0;;;;;;;;3350:10;3314:48;;;;;;-1:-1:-1;;;;;3324:7:0;3314:25;;;;:48;;;;;3259:44;;3314:48;;;;;;;-1:-1:-1;3314:25:0;:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3373:39:0;;;-1:-1:-1;;;3373:39:0;;3400:10;3373:39;;;;;;-1:-1:-1;;;;;3383:7:0;3373:25;;;;:39;;;;;-1:-1:-1;;3373:39:0;;;;;;;-1:-1:-1;3373:25:0;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3130:290;:::o

Swarm Source

ipfs://9f144938bac0ca01b9c6a3645f0d77aa20ad573b386174a80952a6a854f4971c

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.