Contract 0x37f9a9436f5db1ac9e346eaab482f138da0d8749 1

Txn Hash Method
Block
From
To
Value [Txn Fee]
0xb5acb6b9d4573c636f61e849da6bd886902cb469da41a05498541b48512630b5Stake25286062022-09-08 16:22:3689 days 7 hrs ago0xa6ba704a3744b4644d28a141cf2837077e1f5d16 IN  RomeDAO: Staking Helper0 MOVR0.0003981625
0x036fdd79c98fc3db05cbff52f908f1c2ec0b59027a6be1a138e0af49175ba13bStake24370692022-08-24 19:40:12104 days 4 hrs ago0x087cbadf474d6248ade1b06e3cc938cb34510f94 IN  RomeDAO: Staking Helper0 MOVR0.0000700125
0xd35b980e88df4f22ac15911a9ebf7e21d7b318bd7c03c424865789b1becd8652Stake24194782022-08-21 19:19:42107 days 4 hrs ago0x7cbeecd873fd8941074228dd89c492ae21923d80 IN  RomeDAO: Staking Helper0 MOVR0.00031855
0x197911f75372a45bd46a7002d8d44be2d6f2b8c8d8d21a62fda4fed5f668c2adStake24190712022-08-21 17:39:18107 days 6 hrs ago0x7cbeecd873fd8941074228dd89c492ae21923d80 IN  RomeDAO: Staking Helper0 MOVR0.00031855
0x2ecbfd37f033c4bc0ad674bab00e63485dd5a1f489b52bf92c222c16e2928800Stake24190642022-08-21 17:37:18107 days 6 hrs ago0x7cbeecd873fd8941074228dd89c492ae21923d80 IN  RomeDAO: Staking Helper0 MOVR0.000056034
0xb631217cda2598a5b3fea3671c2a87ac225245c7f96c752547babcd786c1738fStake23746432022-08-13 23:18:30115 days 42 mins ago0x7a4852d9c1e4cf451d4cd884e9daf648adfc222f IN  RomeDAO: Staking Helper0 MOVR0.000248495
0x3028f4fe9c412d341b9d02cd28c0191a238974425c8d8b612cb61f0077566037Stake23536362022-08-10 10:17:42118 days 13 hrs ago0xf3e11d89b07e738f31de12e8d8cfa0eac7867a37 IN  RomeDAO: Staking Helper0 MOVR0.004789101082
0x8a67f3803183a8049044765b548eb5637b8a3a418f19abcb83f7cb19821d7277Stake23509452022-08-09 23:32:12119 days 28 mins ago0x287926b337f2dca79ed7beb85bc522dfb0c9830c IN  RomeDAO: Staking Helper0 MOVR0.0003981625
0xf561be35490fd5b4fb3da142cd4c396773a1685baa066ed12b7fbcfc0e929f59Stake23279802022-08-06 1:01:12122 days 22 hrs ago0xd270d4b621f1b260661564f2c00d4f50d06223e8 IN  RomeDAO: Staking Helper0 MOVR0.000248495
0xdb9e241b92582b50307f875beb342d01ac5ecbe01861e671506cb841f50cecbeStake22991592022-07-31 20:27:36128 days 3 hrs ago0xf54d3bbc1d3fa8f0d9df991de1e52c13da061d77 IN  RomeDAO: Staking Helper0 MOVR0.0003981625
0x038815957a6e77c4a821c72b91752b1de9e086aec596e4f81dd8ea1faba4d43dStake22329422022-07-20 8:19:54139 days 15 hrs ago0xb31f55d3e5e4e226356d156a21bb3b7a372ca994 IN  RomeDAO: Staking Helper0 MOVR0.000248495
0xbce0d126bd1c6525fe9cbe6d43ff07e3b42a69ad49d987a13d3822d5bf9d1a5fStake22325912022-07-20 6:50:30139 days 17 hrs ago0x7309868ec93ad5b5ebfb2f3edba770c27fb226e3 IN  RomeDAO: Staking Helper0 MOVR0.000248495
0x008a74924d0c8547850d1df0bdaea423420c03b879c65bf1240734903144213dStake22303812022-07-19 21:41:36140 days 2 hrs ago0x7a76503e4ef202952bb099321a9567c3efce9856 IN  RomeDAO: Staking Helper0 MOVR0.0003981875
0x891487696f6ef4c3cece1c4e7afbae99c5e3879d10bd14efc90595ea88dcc6c9Stake22303612022-07-19 21:36:54140 days 2 hrs ago0xf893abc692c6b597d72e391bdfb1ec467c5aca57 IN  RomeDAO: Staking Helper0 MOVR0.0003981625
0x2ea5067a530cb3f20573ef80edbac4a28fb26b06525d1c29dfca98eb12e30634Stake22293502022-07-19 17:28:36140 days 6 hrs ago0x2a9c628f9b1b06a881407ae457ffb0e51fb7e752 IN  RomeDAO: Staking Helper0 MOVR0.00039814
0xa6a18731312e35b0e6bf1add084fbd182fd0d0fe6b3736063515c7d8425c70d6Stake22279632022-07-19 11:47:42140 days 12 hrs ago0x63377e4f940ed8a8469c90228baba567ac49230c IN  RomeDAO: Staking Helper0 MOVR0.000133056
0x4b1ee60d790efcd32f3f560799be5378d908c5aa3348f0f0c74a8d62efc6f7c9Stake22265382022-07-19 5:59:36140 days 18 hrs ago0x9ada95ce2a188c51824ef76dd49850330af7545f IN  RomeDAO: Staking Helper0 MOVR0.0003981875
0xfb17d722006a3ee7ac8d5641df77fd6d35165ea577d3b3314e97c67bda800d0bStake22253522022-07-19 1:05:36140 days 22 hrs ago0x0000000b4d325bb539676dac6ec3413d5974cf0f IN  RomeDAO: Staking Helper0 MOVR0.000477768
0x5a6894a0fe09d43fd8203e391ca11d769f9600db2fe478cddc83cee62ff605e1Stake22231912022-07-18 16:05:12141 days 7 hrs ago0x08cbabbadd3c0995c052caf956cb19deaa99e0fd IN  RomeDAO: Staking Helper0 MOVR0.0003981875
0x54c412d1eec9170e205cbe54037f618c7824d6010d7645d1360422164736d87bStake22230572022-07-18 15:32:36141 days 8 hrs ago0x955a3cc054686c7ed1b5334bdf5ede9a7f2848bd IN  RomeDAO: Staking Helper0 MOVR0.0003981625
0xc8dada87f2a2d5a2ba8513e711e696b82907dcc9922ad8630b0c876506691a29Stake22218582022-07-18 10:28:42141 days 13 hrs ago0x955a3cc054686c7ed1b5334bdf5ede9a7f2848bd IN  RomeDAO: Staking Helper0 MOVR0.0003981625
0x74344cf4f9ecfe8155708cef5c1b1994e92a39d76d2d0ec7dc9938b7b540b7ebStake22210692022-07-18 7:09:12141 days 16 hrs ago0x7a76503e4ef202952bb099321a9567c3efce9856 IN  RomeDAO: Staking Helper0 MOVR0.0003981625
0xa04e256f9367eeda7b507aff30810555a5b3514d800ea23f403f04eb47f757ebStake22163692022-07-17 11:37:54142 days 12 hrs ago0x0000000b4d325bb539676dac6ec3413d5974cf0f IN  RomeDAO: Staking Helper0 MOVR0.00039814
0xf85a00f58e30988803580dd4b9fd097918e9c89a5d123dad729530e9ce42bc23Stake22154342022-07-17 7:47:12142 days 16 hrs ago0x58bb24c13f5f9114af37e72f16f183cdac151eae IN  RomeDAO: Staking Helper0 MOVR0.0000699825
0xdd4e25274aaf9a8a1dcecf957eb7be6dbe23d67230ec3e144ea341e016119119Stake22154342022-07-17 7:47:12142 days 16 hrs ago0x58bb24c13f5f9114af37e72f16f183cdac151eae IN  RomeDAO: Staking Helper0 MOVR0.00039814
[ 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 9999 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 2 : StakingHelper.sol
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.7.5;

import './interfaces/IERC20.sol';

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 ROME;

    constructor ( address _staking, address _ROME ) {
        require( _staking != address(0) );
        staking = _staking;
        require( _ROME != address(0) );
        ROME = _ROME;
    }

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

File 2 of 2 : IERC20.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.7.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);
}

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

Contract ABI

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

60c060405234801561001057600080fd5b506040516105243803806105248339818101604052604081101561003357600080fd5b5080516020909101516001600160a01b03821661004f57600080fd5b6001600160601b0319606083901b166080526001600160a01b03811661007457600080fd5b606081811b6001600160601b03191660a052608051901c91506001600160a01b03166104596100cb600039806101315280610214528061040152508060bc52806101e352806102da528061039952506104596000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80634cf088d9146100465780637acb7757146100775780639d95fbd2146100b2575b600080fd5b61004e6100ba565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6100b06004803603604081101561008d57600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff166100de565b005b61004e6103ff565b7f000000000000000000000000000000000000000000000000000000000000000081565b604080517f23b872dd00000000000000000000000000000000000000000000000000000000815233600482015230602482015260448101849052905173ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016916323b872dd9160648083019260209291908290030181600087803b15801561017957600080fd5b505af115801561018d573d6000803e3d6000fd5b505050506040513d60208110156101a357600080fd5b5050604080517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000811660048301526024820185905291517f00000000000000000000000000000000000000000000000000000000000000009092169163095ea7b3916044808201926020929091908290030181600087803b15801561025f57600080fd5b505af1158015610273573d6000803e3d6000fd5b505050506040513d602081101561028957600080fd5b5050604080517f7acb77570000000000000000000000000000000000000000000000000000000081526004810184905273ffffffffffffffffffffffffffffffffffffffff838116602483015291517f000000000000000000000000000000000000000000000000000000000000000090921691637acb7757916044808201926020929091908290030181600087803b15801561032557600080fd5b505af1158015610339573d6000803e3d6000fd5b505050506040513d602081101561034f57600080fd5b5050604080517f1e83409a00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff838116600483015291517f000000000000000000000000000000000000000000000000000000000000000090921691631e83409a9160248082019260009290919082900301818387803b1580156103e357600080fd5b505af11580156103f7573d6000803e3d6000fd5b505050505050565b7f00000000000000000000000000000000000000000000000000000000000000008156fea2646970667358221220e37b4c646a62adec437909e00021b4585192c125acfd217707b614d61549405664736f6c634300070500330000000000000000000000006f7d019502e17f1ef24ac67a260c65dd23b759f10000000000000000000000004a436073552044d5f2f49b176853ad3ad473d9d6

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

0000000000000000000000006f7d019502e17f1ef24ac67a260c65dd23b759f10000000000000000000000004a436073552044d5f2f49b176853ad3ad473d9d6

-----Decoded View---------------
Arg [0] : _staking (address): 0x6f7d019502e17f1ef24ac67a260c65dd23b759f1
Arg [1] : _ROME (address): 0x4a436073552044d5f2f49b176853ad3ad473d9d6

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000006f7d019502e17f1ef24ac67a260c65dd23b759f1
Arg [1] : 0000000000000000000000004a436073552044d5f2f49b176853ad3ad473d9d6


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