MOVR Price: $23.52 (+1.56%)
Gas: 1 GWei

Contract

0x37f9A9436F5dB1ac9e346eAAB482f138DA0D8749

Overview

MOVR Balance

Moonriver Chain LogoMoonriver Chain LogoMoonriver Chain Logo0 MOVR

MOVR Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Stake42385292023-05-14 7:45:01290 days 11 hrs ago1684050301IN
RomeDAO: Staking Helper
0 MOVR0.000567462.75
Stake32797582022-12-27 19:42:18427 days 23 hrs ago1672170138IN
RomeDAO: Staking Helper
0 MOVR0.000248492.5
Stake32797372022-12-27 19:38:06427 days 23 hrs ago1672169886IN
RomeDAO: Staking Helper
0 MOVR0.000431712.5
Stake32797202022-12-27 19:34:42427 days 23 hrs ago1672169682IN
RomeDAO: Staking Helper
0 MOVR0.000431762.5
Stake32796992022-12-27 19:30:24427 days 23 hrs ago1672169424IN
RomeDAO: Staking Helper
0 MOVR0.000431762.5
Stake25286062022-09-08 16:22:36538 days 3 hrs ago1662654156IN
RomeDAO: Staking Helper
0 MOVR0.000398162.5
Stake24370692022-08-24 19:40:12552 days 23 hrs ago1661370012IN
RomeDAO: Staking Helper
0 MOVR0.000070012.5
Stake24194782022-08-21 19:19:42556 days 3 mins ago1661109582IN
RomeDAO: Staking Helper
0 MOVR0.000318552
Stake24190712022-08-21 17:39:18556 days 1 hr ago1661103558IN
RomeDAO: Staking Helper
0 MOVR0.000318552
Stake24190642022-08-21 17:37:18556 days 1 hr ago1661103438IN
RomeDAO: Staking Helper
0 MOVR0.000056032
Stake23746432022-08-13 23:18:30563 days 20 hrs ago1660432710IN
RomeDAO: Staking Helper
0 MOVR0.000248492.5
Stake23536362022-08-10 10:17:42567 days 9 hrs ago1660126662IN
RomeDAO: Staking Helper
0 MOVR0.004789130.0700159
Stake23509452022-08-09 23:32:12567 days 19 hrs ago1660087932IN
RomeDAO: Staking Helper
0 MOVR0.000398162.5
Stake23279802022-08-06 1:01:12571 days 18 hrs ago1659747672IN
RomeDAO: Staking Helper
0 MOVR0.000248492.5
Stake22991592022-07-31 20:27:36576 days 22 hrs ago1659299256IN
RomeDAO: Staking Helper
0 MOVR0.000398162.5
Stake22329422022-07-20 8:19:54588 days 11 hrs ago1658305194IN
RomeDAO: Staking Helper
0 MOVR0.000248492.5
Stake22325912022-07-20 6:50:30588 days 12 hrs ago1658299830IN
RomeDAO: Staking Helper
0 MOVR0.000248492.5
Stake22303812022-07-19 21:41:36588 days 21 hrs ago1658266896IN
RomeDAO: Staking Helper
0 MOVR0.000398182.5
Stake22303612022-07-19 21:36:54588 days 21 hrs ago1658266614IN
RomeDAO: Staking Helper
0 MOVR0.000398162.5
Stake22293502022-07-19 17:28:36589 days 1 hr ago1658251716IN
RomeDAO: Staking Helper
0 MOVR0.000398142.5
Stake22279632022-07-19 11:47:42589 days 7 hrs ago1658231262IN
RomeDAO: Staking Helper
0 MOVR0.000133051
Stake22265382022-07-19 5:59:36589 days 13 hrs ago1658210376IN
RomeDAO: Staking Helper
0 MOVR0.000398182.5
Stake22253522022-07-19 1:05:36589 days 18 hrs ago1658192736IN
RomeDAO: Staking Helper
0 MOVR0.000477763
Stake22231912022-07-18 16:05:12590 days 3 hrs ago1658160312IN
RomeDAO: Staking Helper
0 MOVR0.000398182.5
Stake22230572022-07-18 15:32:36590 days 3 hrs ago1658158356IN
RomeDAO: Staking Helper
0 MOVR0.000398162.5
View all transactions

Parent Txn Hash Block From To Value
View All Internal Transactions
Loading...
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 Security Audit

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

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100415760003560e01c80634cf088d9146100465780637acb7757146100775780639d95fbd2146100b2575b600080fd5b61004e6100ba565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6100b06004803603604081101561008d57600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff166100de565b005b61004e6103ff565b7f0000000000000000000000006f7d019502e17f1ef24ac67a260c65dd23b759f181565b604080517f23b872dd00000000000000000000000000000000000000000000000000000000815233600482015230602482015260448101849052905173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000004a436073552044d5f2f49b176853ad3ad473d9d616916323b872dd9160648083019260209291908290030181600087803b15801561017957600080fd5b505af115801561018d573d6000803e3d6000fd5b505050506040513d60208110156101a357600080fd5b5050604080517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000006f7d019502e17f1ef24ac67a260c65dd23b759f1811660048301526024820185905291517f0000000000000000000000004a436073552044d5f2f49b176853ad3ad473d9d69092169163095ea7b3916044808201926020929091908290030181600087803b15801561025f57600080fd5b505af1158015610273573d6000803e3d6000fd5b505050506040513d602081101561028957600080fd5b5050604080517f7acb77570000000000000000000000000000000000000000000000000000000081526004810184905273ffffffffffffffffffffffffffffffffffffffff838116602483015291517f0000000000000000000000006f7d019502e17f1ef24ac67a260c65dd23b759f190921691637acb7757916044808201926020929091908290030181600087803b15801561032557600080fd5b505af1158015610339573d6000803e3d6000fd5b505050506040513d602081101561034f57600080fd5b5050604080517f1e83409a00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff838116600483015291517f0000000000000000000000006f7d019502e17f1ef24ac67a260c65dd23b759f190921691631e83409a9160248082019260009290919082900301818387803b1580156103e357600080fd5b505af11580156103f7573d6000803e3d6000fd5b505050505050565b7f0000000000000000000000004a436073552044d5f2f49b176853ad3ad473d9d68156fea2646970667358221220e37b4c646a62adec437909e00021b4585192c125acfd217707b614d61549405664736f6c63430007050033

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

Txn 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.