Contract 0x91377b0acbcf0914e5ab37f884591dd468224131

Txn Hash Method
Block
From
To
Value [Txn Fee]
0x245e2108ad6076aa22d274c6cd71a368a7cca5788e7d906bea1bac2887b641ddStake58436662022-12-03 9:07:322 days 16 hrs ago0xb417405b5f8b5cca328b2e5ea49c708a2cd4bd2a IN  GambleFi DAO: Staking Helper0 CRO2.373888936012 4,868.227558272
0x5b56970b27b49b3b52ccf69962a2da55b0a486144ee81feaca91b866063f329dStake58261482022-12-02 5:28:173 days 20 hrs ago0x0f57ef1147705d5ddc3591093f086f6e027550bb IN  GambleFi DAO: Staking Helper0 CRO2.3717870059740
0xd19a2c8229e7e5c53679f43b5818348b73871d24668e9974d99defaad43f54c4Stake58070842022-11-30 23:25:005 days 2 hrs ago0xb417405b5f8b5cca328b2e5ea49c708a2cd4bd2a IN  GambleFi DAO: Staking Helper0 CRO2.374593953686 4,869.91305193
0xe77f9a3a132ff561e644cb058d7c12f89a295dcddf46931e12f7b466bbe10113Stake58055212022-11-30 20:57:025 days 4 hrs ago0x75715af6be26e0f98c683c5b1418b2dee58247e7 IN  GambleFi DAO: Staking Helper0 CRO2.1533248271980
0xae6a832ff82f106d7f097f70013f768a7099b8614399039f1571c368ca799e3dStake57965682022-11-30 6:50:115 days 19 hrs ago0x75715af6be26e0f98c683c5b1418b2dee58247e7 IN  GambleFi DAO: Staking Helper0 CRO2.372448274570
0xcf6e1e6b6acd2f76bc71cef5a104d6120bbd00dbe49cfe50909269a9e865289dStake57589212022-11-27 18:56:438 days 6 hrs ago0x9d7764f655406b103b4131bfbc12d4c7f2cf76cf IN  GambleFi DAO: Staking Helper0 CRO2.375677893816 4,872.136040067
0xd304f03bdeff38d24b602784ea230b24dcf8083265b045ba4f407b737d99ae05Stake57573622022-11-27 16:27:388 days 9 hrs ago0x03e25cc8b328001f34563ea6014c6fc76da50214 IN  GambleFi DAO: Staking Helper0 CRO2.3756541580050
0xb8fd69867267913e9b325fd7d61687a461ab357d9d46af4e56a7363ac1f03b15Stake56690642022-11-21 21:06:1414 days 4 hrs ago0x36931aaa494ffc5cdba45c6d3365dcda9673ceb5 IN  GambleFi DAO: Staking Helper0 CRO2.3753856650190
0x5584f572eee7826a8764dfb27f9d92aa220e34b7f0ef9059a1a5f9512cbabbf9Stake56606012022-11-21 7:46:3414 days 18 hrs ago0x75715af6be26e0f98c683c5b1418b2dee58247e7 IN  GambleFi DAO: Staking Helper0 CRO2.3755185427810
0x515a8d6be522d6937454fa1a2494d2de8b10120079645d0546d2bfae2ae74d3aStake55880382022-11-16 13:32:0919 days 12 hrs ago0x404af62ef381ae3ac2bca28b821ab8e95aea75d6 IN  GambleFi DAO: Staking Helper0 CRO2.3795934872480
0x6942c255e119d8e7840cd9811470bf5ca80c93823aa6b0da09e33e1b5ccfac7cStake55774532022-11-15 20:50:3620 days 5 hrs ago0x36931aaa494ffc5cdba45c6d3365dcda9673ceb5 IN  GambleFi DAO: Staking Helper0 CRO2.3773333650490
0x72be500c4a1e66fd5de87cedc9620c888e5f327ef44c1e9e319fefe2142a56d6Stake55743752022-11-15 15:58:5520 days 9 hrs ago0xb417405b5f8b5cca328b2e5ea49c708a2cd4bd2a IN  GambleFi DAO: Staking Helper0 CRO2.379956472261 4,880.670493882
0xd2a80e42f0bd3cdde0bd28a1c4b9ac8a5c016192c3880cf07b60619aff21fb3dStake55637582022-11-14 23:11:0821 days 2 hrs ago0x404af62ef381ae3ac2bca28b821ab8e95aea75d6 IN  GambleFi DAO: Staking Helper0 CRO2.1605403428010
0x74577756165b92960debcbf51125a1340886a793d1a2bc2f5e55f4f3db73c02cStake55633802022-11-14 22:35:1121 days 3 hrs ago0x404af62ef381ae3ac2bca28b821ab8e95aea75d6 IN  GambleFi DAO: Staking Helper0 CRO2.1605479403840
0x59074f890b596dafa7b2b2e28ff08bad40cd6283c5622ef20ec21cb4c768726eStake55603722022-11-14 17:48:4821 days 8 hrs ago0x9635c6247da5a95739510105d0b2b7c34ae70fdb IN  GambleFi DAO: Staking Helper0 CRO2.3802662223010
0x5d17b41bd6a839a30c0d7a8568566ff76b73714b8f1b8c90f36d5dff9231e1f2Stake55537292022-11-14 7:15:5021 days 18 hrs ago0x0f57ef1147705d5ddc3591093f086f6e027550bb IN  GambleFi DAO: Staking Helper0 CRO2.3778546546610
0xd48f462f9290f3b5b572b6b4036a311dc6026eab29b9a3f88f2c874426a5904aStake55528822022-11-14 5:54:5821 days 19 hrs ago0x7edc3f0d95234f852d553ca90bfd687db0d0a726 IN  GambleFi DAO: Staking Helper0 CRO2.380369169251 4,881.63695944
0xb3780ba63aac82bbefbdd67e164637513cc0fb997518d9d86f8af68b23632beeStake55319982022-11-12 20:38:0623 days 5 hrs ago0x404af62ef381ae3ac2bca28b821ab8e95aea75d6 IN  GambleFi DAO: Staking Helper0 CRO2.3808101117020
0x178603c9d45cf4a120229e6fe25d4d0b707e6f062f235f1179ee439fb4d940bbStake55154312022-11-11 18:29:5924 days 7 hrs ago0x15c10824e89af32c3c713919d2ac3464d2441f11 IN  GambleFi DAO: Staking Helper0 CRO2.381177830695 4,883.295354132
0xbd6cc60dc691c9ac185aec6d3a63813553be66424ce9088e8dd4360264aa9609Stake54886812022-11-10 0:15:5726 days 1 hr ago0x404af62ef381ae3ac2bca28b821ab8e95aea75d6 IN  GambleFi DAO: Staking Helper0 CRO2.1619679210790
0xdc9a36cac41fb8b1ab8e1b16d34be4bb70f55986b00763109358388f2b3c0cb5Stake54874422022-11-09 22:17:5426 days 3 hrs ago0x404af62ef381ae3ac2bca28b821ab8e95aea75d6 IN  GambleFi DAO: Staking Helper0 CRO2.1619918653950
0xb2d7aefa49a16e8f1d9b475d78aaed8c804c2cc20046b8d3a440f6d4bfa5fa30Stake54775152022-11-09 6:31:3626 days 19 hrs ago0x404af62ef381ae3ac2bca28b821ab8e95aea75d6 IN  GambleFi DAO: Staking Helper0 CRO2.1621855277540
0xcff359a0dbd99ed4ef94498d40e116803dd0bf21802ec564f6761f64ad857fb1Stake54737212022-11-09 0:32:1527 days 1 hr ago0x404af62ef381ae3ac2bca28b821ab8e95aea75d6 IN  GambleFi DAO: Staking Helper0 CRO2.1622626268420
0x119dfb1ba9c29e5a6c37145312663bcc32fd30dd60355f129de3b60c84e8b6daStake54666292022-11-08 13:15:3327 days 12 hrs ago0x404af62ef381ae3ac2bca28b821ab8e95aea75d6 IN  GambleFi DAO: Staking Helper0 CRO2.1623989440860
0x1af0000404c105e8865066993495ff44abad3c6451e1ebc0004103862db95823Stake54422502022-11-06 22:45:0429 days 3 hrs ago0xb417405b5f8b5cca328b2e5ea49c708a2cd4bd2a IN  GambleFi DAO: Staking Helper0 CRO2.382847093207 4,886.598404131
[ Download CSV Export 
Parent Txn Hash Block From To Value
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 cronoscan.com on 2022-02-11
*/

/**
 By interacting with this Solidity Smart Contract you accept the following Terms & Conditions https://bit.ly/3HR6Ly4
*/

// 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 {

    event LogStake(address indexed recipient, uint amount);

    IStaking public immutable staking;
    IERC20 public immutable betify;

    constructor ( address _staking, address _betify ) {
        require( _staking != address(0) );
        staking = IStaking(_staking);
        require( _betify != address(0) );
        betify = IERC20(_betify);
    }

    function stake( uint _amount, address recipient ) external {
        betify.transferFrom( msg.sender, address(this), _amount );
        betify.approve( address(staking), _amount );
        staking.stake( _amount, recipient );
        staking.claim( recipient );
        emit LogStake(recipient, _amount);
    }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_staking","type":"address"},{"internalType":"address","name":"_betify","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LogStake","type":"event"},{"inputs":[],"name":"betify","outputs":[{"internalType":"contract IERC20","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":"contract IStaking","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60c060405234801561001057600080fd5b506040516104b03803806104b08339818101604052604081101561003357600080fd5b5080516020909101516001600160a01b03821661004f57600080fd5b6001600160601b0319606083901b166080526001600160a01b03811661007457600080fd5b606081811b6001600160601b03191660a052608051901c91506001600160a01b03166103e66100ca6000398060a2528061011552806101d252508060c652806101a15280610272528061030b52506103e66000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80630bbfd628146100465780634cf088d91461006a5780637acb775714610072575b600080fd5b61004e6100a0565b604080516001600160a01b039092168252519081900360200190f35b61004e6100c4565b61009e6004803603604081101561008857600080fd5b50803590602001356001600160a01b03166100e8565b005b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b604080516323b872dd60e01b81523360048201523060248201526044810184905290516001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916323b872dd9160648083019260209291908290030181600087803b15801561015d57600080fd5b505af1158015610171573d6000803e3d6000fd5b505050506040513d602081101561018757600080fd5b50506040805163095ea7b360e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301526024820185905291517f00000000000000000000000000000000000000000000000000000000000000009092169163095ea7b3916044808201926020929091908290030181600087803b15801561021d57600080fd5b505af1158015610231573d6000803e3d6000fd5b505050506040513d602081101561024757600080fd5b505060408051637acb775760e01b8152600481018490526001600160a01b03838116602483015291517f000000000000000000000000000000000000000000000000000000000000000090921691637acb7757916044808201926020929091908290030181600087803b1580156102bd57600080fd5b505af11580156102d1573d6000803e3d6000fd5b505050506040513d60208110156102e757600080fd5b505060408051630f41a04d60e11b81526001600160a01b03838116600483015291517f000000000000000000000000000000000000000000000000000000000000000090921691631e83409a9160248082019260009290919082900301818387803b15801561035557600080fd5b505af1158015610369573d6000803e3d6000fd5b50506040805185815290516001600160a01b03851693507f3dbdcfd4c1f2e08931aae3d544e149a1e643143f5234d166fe3debb78338849592509081900360200190a2505056fea2646970667358221220a10eaa9f939af92de8015c5d2d5be121e954efa1430e4c41e7552a1a712ccce964736f6c63430007050033000000000000000000000000335cac92af7015be7802170b62ebc4c74900484d000000000000000000000000d465b6b4937d768075414d413e981af0b49349cc

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

000000000000000000000000335cac92af7015be7802170b62ebc4c74900484d000000000000000000000000d465b6b4937d768075414d413e981af0b49349cc

-----Decoded View---------------
Arg [0] : _staking (address): 0x335cac92af7015be7802170b62ebc4c74900484d
Arg [1] : _betify (address): 0xd465b6b4937d768075414d413e981af0b49349cc

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000335cac92af7015be7802170b62ebc4c74900484d
Arg [1] : 000000000000000000000000d465b6b4937d768075414d413e981af0b49349cc


Deployed ByteCode Sourcemap

2939:720:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3074:30;;;:::i;:::-;;;;-1:-1:-1;;;;;3074:30:0;;;;;;;;;;;;;;3034:33;;;:::i;3340:316::-;;;;;;;;;;;;;;;;-1:-1:-1;3340:316:0;;;;;;-1:-1:-1;;;;;3340:316:0;;:::i;:::-;;3074:30;;;:::o;3034:33::-;;;:::o;3340:316::-;3410:57;;;-1:-1:-1;;;3410:57:0;;3431:10;3410:57;;;;3451:4;3410:57;;;;;;;;;;;;-1:-1:-1;;;;;3410:6:0;:19;;;;:57;;;;;;;;;;;;;;-1:-1:-1;3410:19:0;:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3478:43:0;;;-1:-1:-1;;;3478:43:0;;-1:-1:-1;;;;;3502:7:0;3478:43;;;;;;;;;;;;;;:6;:14;;;;;;:43;;;;;3410:57;;3478:43;;;;;;;;-1:-1:-1;3478:14:0;:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3532:35:0;;;-1:-1:-1;;;3532:35:0;;;;;;;;-1:-1:-1;;;;;3532:35:0;;;;;;;;;:7;:13;;;;;;:35;;;;;3478:43;;3532:35;;;;;;;;-1:-1:-1;3532:13:0;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3578:26:0;;;-1:-1:-1;;;3578:26:0;;-1:-1:-1;;;;;3578:26:0;;;;;;;;;:7;:13;;;;;;:26;;;;;-1:-1:-1;;3578:26:0;;;;;;;;-1:-1:-1;3578:13:0;:26;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3620:28:0;;;;;;;;-1:-1:-1;;;;;3620:28:0;;;-1:-1:-1;3620:28:0;;-1:-1:-1;3620:28:0;;;;;;;;3340:316;;:::o

Swarm Source

ipfs://a10eaa9f939af92de8015c5d2d5be121e954efa1430e4c41e7552a1a712ccce9
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.