ETH Price: $3,116.08 (-5.57%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Exit170308022023-04-12 8:40:47661 days ago1681288847IN
0x7C57bF65...6f50B8259
0 ETH0.002038219.18783359
Exit168784762023-03-21 20:47:47683 days ago1679431667IN
0x7C57bF65...6f50B8259
0 ETH0.0024369920.32456047
Exit161235292022-12-06 5:01:47788 days ago1670302907IN
0x7C57bF65...6f50B8259
0 ETH0.0012934613.40654745
Exit161225282022-12-06 1:40:59788 days ago1670290859IN
0x7C57bF65...6f50B8259
0 ETH0.0012591611.85385836
Exit161224332022-12-06 1:21:47788 days ago1670289707IN
0x7C57bF65...6f50B8259
0 ETH0.0012179311.46568731
Exit161209492022-12-05 20:23:59789 days ago1670271839IN
0x7C57bF65...6f50B8259
0 ETH0.0013330412.54938725
Exit161194012022-12-05 15:08:47789 days ago1670252927IN
0x7C57bF65...6f50B8259
0 ETH0.0037324235.13726852
Exit161192182022-12-05 14:31:35789 days ago1670250695IN
0x7C57bF65...6f50B8259
0 ETH0.0016452815.48885435
Exit161189552022-12-05 13:38:59789 days ago1670247539IN
0x7C57bF65...6f50B8259
0 ETH0.0014101312.41533477
Exit161185862022-12-05 12:24:35789 days ago1670243075IN
0x7C57bF65...6f50B8259
0 ETH0.001333212.55089536
Exit161110822022-12-04 11:15:35790 days ago1670152535IN
0x7C57bF65...6f50B8259
0 ETH0.0013500812.70981779
Exit161108412022-12-04 10:26:59790 days ago1670149619IN
0x7C57bF65...6f50B8259
0 ETH0.001353912.74573622
Exit160959262022-12-02 8:27:59792 days ago1669969679IN
0x7C57bF65...6f50B8259
0 ETH0.0011047611.45070677
Get Reward160899232022-12-01 12:21:35793 days ago1669897295IN
0x7C57bF65...6f50B8259
0 ETH0.0008905911.56741241
Exit160703192022-11-28 18:36:35796 days ago1669660595IN
0x7C57bF65...6f50B8259
0 ETH0.001659315.62081375
Exit160531452022-11-26 9:03:59798 days ago1669453439IN
0x7C57bF65...6f50B8259
0 ETH0.0014076711.74
Exit160486082022-11-25 17:52:47799 days ago1669398767IN
0x7C57bF65...6f50B8259
0 ETH0.0008957413.43083584
Get Reward160486052022-11-25 17:52:11799 days ago1669398731IN
0x7C57bF65...6f50B8259
0 ETH0.0009179912.34864266
Exit160475092022-11-25 14:10:11799 days ago1669385411IN
0x7C57bF65...6f50B8259
0 ETH0.0018916417.80804289
Exit160386522022-11-24 8:29:47800 days ago1669278587IN
0x7C57bF65...6f50B8259
0 ETH0.0013809113
Exit160364632022-11-24 1:09:59800 days ago1669252199IN
0x7C57bF65...6f50B8259
0 ETH0.0014029611.70072712
Exit160263672022-11-22 15:13:35802 days ago1669130015IN
0x7C57bF65...6f50B8259
0 ETH0.0014737122.09694099
Exit160239402022-11-22 7:04:23802 days ago1669100663IN
0x7C57bF65...6f50B8259
0 ETH0.0014653212.22084339
Exit160225362022-11-22 2:22:23802 days ago1669083743IN
0x7C57bF65...6f50B8259
0 ETH0.0011680210.99590105
Exit160204442022-11-21 19:21:35803 days ago1669058495IN
0x7C57bF65...6f50B8259
0 ETH0.0012538811.80417016
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block
From
To
127807262021-07-07 14:07:511305 days ago1625666871  Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MplRewards

Compiler Version
v0.6.11+commit.5ef660b1

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-07-07
*/

// SPDX-License-Identifier:  AGPL-3.0-or-later // hevm: flattened sources of contracts/MplRewards.sol
pragma solidity =0.6.11 >=0.6.0 <0.8.0 >=0.6.2 <0.8.0;

////// contracts/interfaces/IERC2258.sol
/* pragma solidity 0.6.11; */

interface IERC2258 {

    // Increase the custody limit of a custodian either directly or via signed authorization
    function increaseCustodyAllowance(address custodian, uint256 amount) external;

    // Query individual custody limit and total custody limit across all custodians
    function custodyAllowance(address account, address custodian) external view returns (uint256);
    function totalCustodyAllowance(address account) external view returns (uint256);

    // Allows a custodian to exercise their right to transfer custodied tokens
    function transferByCustodian(address account, address receiver, uint256 amount) external;

    // Custody Events
    event CustodyTransfer(address custodian, address from, address to, uint256 amount);
    event CustodyAllowanceChanged(address account, address custodian, uint256 oldAllowance, uint256 newAllowance);

}

////// lib/openzeppelin-contracts/contracts/GSN/Context.sol
/* pragma solidity >=0.6.0 <0.8.0; */

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

////// lib/openzeppelin-contracts/contracts/access/Ownable.sol
/* pragma solidity >=0.6.0 <0.8.0; */

/* import "../GSN/Context.sol"; */
/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(_owner == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

////// lib/openzeppelin-contracts/contracts/math/Math.sol
/* pragma solidity >=0.6.0 <0.8.0; */

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }
}

////// lib/openzeppelin-contracts/contracts/math/SafeMath.sol
/* pragma solidity >=0.6.0 <0.8.0; */

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

////// lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol
/* pragma solidity >=0.6.0 <0.8.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);
}

////// lib/openzeppelin-contracts/contracts/utils/Address.sol
/* pragma solidity >=0.6.2 <0.8.0; */

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

////// lib/openzeppelin-contracts/contracts/token/ERC20/SafeERC20.sol
/* pragma solidity >=0.6.0 <0.8.0; */

/* import "./IERC20.sol"; */
/* import "../../math/SafeMath.sol"; */
/* import "../../utils/Address.sol"; */

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

////// contracts/MplRewards.sol
/* pragma solidity 0.6.11; */

/* import "lib/openzeppelin-contracts/contracts/access/Ownable.sol"; */
/* import "lib/openzeppelin-contracts/contracts/math/Math.sol"; */
/* import "lib/openzeppelin-contracts/contracts/math/SafeMath.sol"; */
/* import "lib/openzeppelin-contracts/contracts/token/ERC20/SafeERC20.sol"; */

/* import "./interfaces/IERC2258.sol"; */

// https://docs.synthetix.io/contracts/source/contracts/stakingrewards
/// @title MplRewards Synthetix farming contract fork for liquidity mining.
contract MplRewards is Ownable {

    using SafeMath  for uint256;
    using SafeERC20 for IERC20;

    IERC20    public immutable rewardsToken;
    IERC2258  public immutable stakingToken;

    uint256 public periodFinish;
    uint256 public rewardRate;
    uint256 public rewardsDuration;
    uint256 public lastUpdateTime;
    uint256 public rewardPerTokenStored;
    uint256 public lastPauseTime;
    bool    public paused;

    mapping(address => uint256) public userRewardPerTokenPaid;
    mapping(address => uint256) public rewards;

    uint256 private _totalSupply;

    mapping(address => uint256) private _balances;

    event            RewardAdded(uint256 reward);
    event                 Staked(address indexed account, uint256 amount);
    event              Withdrawn(address indexed account, uint256 amount);
    event             RewardPaid(address indexed account, uint256 reward);
    event RewardsDurationUpdated(uint256 newDuration);
    event              Recovered(address token, uint256 amount);
    event           PauseChanged(bool isPaused);

    constructor(address _rewardsToken, address _stakingToken, address _owner) public {
        rewardsToken    = IERC20(_rewardsToken);
        stakingToken    = IERC2258(_stakingToken);
        rewardsDuration = 7 days;
        transferOwnership(_owner);
    }

    function _updateReward(address account) internal {
        uint256 _rewardPerTokenStored = rewardPerToken();
        rewardPerTokenStored          = _rewardPerTokenStored;
        lastUpdateTime                = lastTimeRewardApplicable();

        if (account != address(0)) {
            rewards[account] = earned(account);
            userRewardPerTokenPaid[account] = _rewardPerTokenStored;
        }
    }

    function _notPaused() internal view {
        require(!paused, "R:PAUSED");
    }

    function totalSupply() external view returns (uint256) {
        return _totalSupply;
    }

    function balanceOf(address account) external view returns (uint256) {
        return _balances[account];
    }

    function lastTimeRewardApplicable() public view returns (uint256) {
        return Math.min(block.timestamp, periodFinish);
    }

    function rewardPerToken() public view returns (uint256) {
        return _totalSupply == 0
            ? rewardPerTokenStored
            : rewardPerTokenStored.add(
                  lastTimeRewardApplicable().sub(lastUpdateTime).mul(rewardRate).mul(1e18).div(_totalSupply)
              );
    }

    function earned(address account) public view returns (uint256) {
        return _balances[account].mul(rewardPerToken().sub(userRewardPerTokenPaid[account])).div(1e18).add(rewards[account]);
    }

    function getRewardForDuration() external view returns (uint256) {
        return rewardRate.mul(rewardsDuration);
    }

    /**
        @dev It emits a `Staked` event.
    */
    function stake(uint256 amount) external {
        _notPaused();
        _updateReward(msg.sender);
        uint256 newBalance = _balances[msg.sender].add(amount);
        require(amount > 0, "R:ZERO_STAKE");
        require(stakingToken.custodyAllowance(msg.sender, address(this)) >= newBalance, "R:INSUF_CUST_ALLOWANCE");
        _totalSupply          = _totalSupply.add(amount);
        _balances[msg.sender] = newBalance;
        emit Staked(msg.sender, amount);
    }

    /**
        @dev It emits a `Withdrawn` event.
    */
    function withdraw(uint256 amount) public {
        _notPaused();
        _updateReward(msg.sender);
        require(amount > 0, "R:ZERO_WITHDRAW");
        _totalSupply = _totalSupply.sub(amount);
        _balances[msg.sender] = _balances[msg.sender].sub(amount);
        stakingToken.transferByCustodian(msg.sender, msg.sender, amount);
        emit Withdrawn(msg.sender, amount);
    }

    /**
        @dev It emits a `RewardPaid` event if any rewards are received.
    */
    function getReward() public {
        _notPaused();
        _updateReward(msg.sender);
        uint256 reward = rewards[msg.sender];

        if (reward == uint256(0)) return;

        rewards[msg.sender] = uint256(0);
        rewardsToken.safeTransfer(msg.sender, reward);
        emit RewardPaid(msg.sender, reward);
    }

    function exit() external {
        withdraw(_balances[msg.sender]);
        getReward();
    }

    /**
        @dev Only the contract Owner may call this.
        @dev It emits a `RewardAdded` event.
    */
    function notifyRewardAmount(uint256 reward) external onlyOwner {
        _updateReward(address(0));

        uint256 _rewardRate = block.timestamp >= periodFinish
            ? reward.div(rewardsDuration)
            : reward.add(
                  periodFinish.sub(block.timestamp).mul(rewardRate)
              ).div(rewardsDuration);

        rewardRate = _rewardRate;

        // Ensure the provided reward amount is not more than the balance in the contract.
        // This keeps the reward rate in the right range, preventing overflows due to
        // very high values of rewardRate in the earned and rewardsPerToken functions;
        // Reward + leftover must be less than 2^256 / 10^18 to avoid overflow.
        uint256 balance = rewardsToken.balanceOf(address(this));
        require(_rewardRate <= balance.div(rewardsDuration), "R:REWARD_TOO_HIGH");

        lastUpdateTime = block.timestamp;
        periodFinish   = block.timestamp.add(rewardsDuration);
        emit RewardAdded(reward);
    }

    /**
        @dev End rewards emission earlier. Only the contract Owner may call this.
    */
    function updatePeriodFinish(uint256 timestamp) external onlyOwner {
        _updateReward(address(0));
        periodFinish = timestamp;
    }

    /**
        @dev Added to support recovering tokens unintentionally sent to this contract.
             Only the contract Owner may call this.
        @dev It emits a `Recovered` event.
    */
    function recoverERC20(address tokenAddress, uint256 tokenAmount) external onlyOwner {
        IERC20(tokenAddress).safeTransfer(owner(), tokenAmount);
        emit Recovered(tokenAddress, tokenAmount);
    }

    /**
        @dev Only the contract Owner may call this.
        @dev It emits a `RewardsDurationUpdated` event.
    */
    function setRewardsDuration(uint256 _rewardsDuration) external onlyOwner {
        require(block.timestamp > periodFinish, "R:PERIOD_NOT_FINISHED");
        rewardsDuration = _rewardsDuration;
        emit RewardsDurationUpdated(rewardsDuration);
    }

    /**
        @dev Change the paused state of the contract. Only the contract Owner may call this.
        @dev It emits a `PauseChanged` event.
    */
    function setPaused(bool _paused) external onlyOwner {
        // Ensure we're actually changing the state before we do anything
        require(_paused != paused, "R:ALREADY_SET");

        // Set our paused state.
        paused = _paused;

        // If applicable, set the last pause time.
        if (_paused) lastPauseTime = block.timestamp;

        // Let everyone know that our pause state has changed.
        emit PauseChanged(paused);
    }

}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_rewardsToken","type":"address"},{"internalType":"address","name":"_stakingToken","type":"address"},{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"isPaused","type":"bool"}],"name":"PauseChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Recovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newDuration","type":"uint256"}],"name":"RewardsDurationUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"exit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getRewardForDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastPauseTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardsDuration","type":"uint256"}],"name":"setRewardsDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC2258","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"updatePeriodFinish","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040523480156200001157600080fd5b50604051620019ef380380620019ef833981810160405260608110156200003757600080fd5b508051602082015160409092015190919060006200005d6001600160e01b03620000d416565b600080546001600160a01b0319166001600160a01b038316908117825560405192935091600080516020620019cf833981519152908290a3506001600160601b0319606084811b821660805283901b1660a05262093a80600355620000cb816001600160e01b03620000d816565b505050620001df565b3390565b620000eb6001600160e01b03620000d416565b6000546001600160a01b039081169116146200014e576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116620001955760405162461bcd60e51b8152600401808060200182810382526026815260200180620019a96026913960400191505060405180910390fd5b600080546040516001600160a01b0380851693921691600080516020620019cf83398151915291a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60805160601c60a05160601c61178c6200021d600039806106cd5280610b635280610d2152508061085e52806109c55280610f7a525061178c6000f3fe608060405234801561001057600080fd5b50600436106101ce5760003560e01c80637b0a47ee11610104578063c8f33c91116100a2578063df136d6511610071578063df136d65146103fb578063e9fad8ee14610403578063ebe2b12b1461040b578063f2fde38b14610413576101ce565b8063c8f33c91146103c6578063cc1a378f146103ce578063cd3daf9d146103eb578063d1af0c7d146103f3576101ce565b80638b876347116100de5780638b876347146103735780638da5cb5b1461039957806391b4ded9146103a1578063a694fc3a146103a9576101ce565b80637b0a47ee1461033757806380faa57d1461033f5780638980f11f14610347576101ce565b80633c6b16ab116101715780635c975abb1161014b5780635c975abb146102c957806370a08231146102e5578063715018a61461030b57806372f702f314610313576101ce565b80633c6b16ab146102875780633d18b912146102a4578063556f6e6b146102ac576101ce565b806318160ddd116101ad57806318160ddd146102525780631c1f78eb1461025a5780632e1a7d4d14610262578063386a95251461027f576101ce565b80628cc262146101d35780630700037d1461020b57806316c38b3c14610231575b600080fd5b6101f9600480360360208110156101e957600080fd5b50356001600160a01b0316610439565b60408051918252519081900360200190f35b6101f96004803603602081101561022157600080fd5b50356001600160a01b03166104cf565b6102506004803603602081101561024757600080fd5b503515156104e1565b005b6101f96105e1565b6101f96105e7565b6102506004803603602081101561027857600080fd5b5035610605565b6101f9610769565b6102506004803603602081101561029d57600080fd5b503561076f565b610250610983565b610250600480360360208110156102c257600080fd5b5035610a34565b6102d1610a9b565b604080519115158252519081900360200190f35b6101f9600480360360208110156102fb57600080fd5b50356001600160a01b0316610aa4565b610250610abf565b61031b610b61565b604080516001600160a01b039092168252519081900360200190f35b6101f9610b85565b6101f9610b8b565b6102506004803603604081101561035d57600080fd5b506001600160a01b038135169060200135610b99565b6101f96004803603602081101561038957600080fd5b50356001600160a01b0316610c5b565b61031b610c6d565b6101f9610c7c565b610250600480360360208110156103bf57600080fd5b5035610c82565b6101f9610e41565b610250600480360360208110156103e457600080fd5b5035610e47565b6101f9610f28565b61031b610f78565b6101f9610f9c565b610250610fa2565b6101f9610fc3565b6102506004803603602081101561042957600080fd5b50356001600160a01b0316610fc9565b6001600160a01b03811660009081526009602090815260408083205460089092528220546104c991906104bd90670de0b6b3a7640000906104b19061048c90610480610f28565b9063ffffffff6110c116565b6001600160a01b0388166000908152600b60205260409020549063ffffffff61110a16565b9063ffffffff61116316565b9063ffffffff6111a516565b92915050565b60096020526000908152604090205481565b6104e96111ff565b6000546001600160a01b03908116911614610539576040805162461bcd60e51b8152602060048201819052602482015260008051602061170d833981519152604482015290519081900360640190fd5b60075460ff1615158115151415610587576040805162461bcd60e51b815260206004820152600d60248201526c148e9053149150511657d4d155609a1b604482015290519081900360640190fd5b6007805460ff191682158015919091179091556105a357426006555b6007546040805160ff90921615158252517f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec59181900360200190a150565b600a5490565b600061060060035460025461110a90919063ffffffff16565b905090565b61060d611203565b61061633611246565b6000811161065d576040805162461bcd60e51b815260206004820152600f60248201526e523a5a45524f5f574954484452415760881b604482015290519081900360640190fd5b600a54610670908263ffffffff6110c116565b600a55336000908152600b6020526040902054610693908263ffffffff6110c116565b336000818152600b6020526040808220939093558251630558095960e31b81526004810183905260248101929092526044820184905291517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031692632ac04ac8926064808201939182900301818387803b15801561071857600080fd5b505af115801561072c573d6000803e3d6000fd5b50506040805184815290513393507f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d592509081900360200190a250565b60035481565b6107776111ff565b6000546001600160a01b039081169116146107c7576040805162461bcd60e51b8152602060048201819052602482015260008051602061170d833981519152604482015290519081900360640190fd5b6107d16000611246565b600060015442101561081f5761081a6003546104b161080d600254610801426001546110c190919063ffffffff16565b9063ffffffff61110a16565b859063ffffffff6111a516565b610833565b60035461083390839063ffffffff61116316565b6002819055604080516370a0823160e01b815230600482015290519192506000916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a08231916024808301926020929190829003018186803b1580156108a457600080fd5b505afa1580156108b8573d6000803e3d6000fd5b505050506040513d60208110156108ce57600080fd5b50516003549091506108e790829063ffffffff61116316565b82111561092f576040805162461bcd60e51b81526020600482015260116024820152700a474a48aae82a488bea89e9ebe90928e9607b1b604482015290519081900360640190fd5b426004819055600354610948919063ffffffff6111a516565b6001556040805184815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a1505050565b61098b611203565b61099433611246565b33600090815260096020526040902054806109af5750610a32565b336000818152600960205260408120556109fa907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316908363ffffffff6112a616565b60408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a2505b565b610a3c6111ff565b6000546001600160a01b03908116911614610a8c576040805162461bcd60e51b8152602060048201819052602482015260008051602061170d833981519152604482015290519081900360640190fd5b610a966000611246565b600155565b60075460ff1681565b6001600160a01b03166000908152600b602052604090205490565b610ac76111ff565b6000546001600160a01b03908116911614610b17576040805162461bcd60e51b8152602060048201819052602482015260008051602061170d833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b7f000000000000000000000000000000000000000000000000000000000000000081565b60025481565b6000610600426001546112fd565b610ba16111ff565b6000546001600160a01b03908116911614610bf1576040805162461bcd60e51b8152602060048201819052602482015260008051602061170d833981519152604482015290519081900360640190fd5b610c13610bfc610c6d565b6001600160a01b038416908363ffffffff6112a616565b604080516001600160a01b03841681526020810183905281517f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28929181900390910190a15050565b60086020526000908152604090205481565b6000546001600160a01b031690565b60065481565b610c8a611203565b610c9333611246565b336000908152600b6020526040812054610cb3908363ffffffff6111a516565b905060008211610cf9576040805162461bcd60e51b815260206004820152600c60248201526b523a5a45524f5f5354414b4560a01b604482015290519081900360640190fd5b6040805163192cb6a960e31b8152336004820152306024820152905182916001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169163c965b54891604480820192602092909190829003018186803b158015610d6857600080fd5b505afa158015610d7c573d6000803e3d6000fd5b505050506040513d6020811015610d9257600080fd5b50511015610de0576040805162461bcd60e51b8152602060048201526016602482015275523a494e5355465f435553545f414c4c4f57414e434560501b604482015290519081900360640190fd5b600a54610df3908363ffffffff6111a516565b600a55336000818152600b6020908152604091829020849055815185815291517f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d9281900390910190a25050565b60045481565b610e4f6111ff565b6000546001600160a01b03908116911614610e9f576040805162461bcd60e51b8152602060048201819052602482015260008051602061170d833981519152604482015290519081900360640190fd5b6001544211610eed576040805162461bcd60e51b8152602060048201526015602482015274148e9411549253d117d393d517d192539254d21151605a1b604482015290519081900360640190fd5b60038190556040805182815290517ffb46ca5a5e06d4540d6387b930a7c978bce0db5f449ec6b3f5d07c6e1d44f2d39181900360200190a150565b6000600a54600014610f7157610f6c610f5d600a546104b1670de0b6b3a7640000610801600254610801600454610480610b8b565b6005549063ffffffff6111a516565b610600565b5060055490565b7f000000000000000000000000000000000000000000000000000000000000000081565b60055481565b336000908152600b6020526040902054610fbb90610605565b610a32610983565b60015481565b610fd16111ff565b6000546001600160a01b03908116911614611021576040805162461bcd60e51b8152602060048201819052602482015260008051602061170d833981519152604482015290519081900360640190fd5b6001600160a01b0381166110665760405162461bcd60e51b81526004018080602001828103825260268152602001806116a06026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600061110383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611313565b9392505050565b600082611119575060006104c9565b8282028284828161112657fe5b04146111035760405162461bcd60e51b81526004018080602001828103825260218152602001806116ec6021913960400191505060405180910390fd5b600061110383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506113aa565b600082820183811015611103576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b60075460ff1615610a32576040805162461bcd60e51b8152602060048201526008602482015267148e94105554d15160c21b604482015290519081900360640190fd5b6000611250610f28565b6005819055905061125f610b8b565b6004556001600160a01b038216156112a25761127a82610439565b6001600160a01b03831660009081526009602090815260408083209390935560089052208190555b5050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526112f890849061140f565b505050565b600081831061130c5781611103565b5090919050565b600081848411156113a25760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561136757818101518382015260200161134f565b50505050905090810190601f1680156113945780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836113f95760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561136757818101518382015260200161134f565b50600083858161140557fe5b0495945050505050565b6060611464826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166114c09092919063ffffffff16565b8051909150156112f85780806020019051602081101561148357600080fd5b50516112f85760405162461bcd60e51b815260040180806020018281038252602a81526020018061172d602a913960400191505060405180910390fd5b60606114cf84846000856114d7565b949350505050565b6060824710156115185760405162461bcd60e51b81526004018080602001828103825260268152602001806116c66026913960400191505060405180910390fd5b61152185611633565b611572576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106115b15780518252601f199092019160209182019101611592565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611613576040519150601f19603f3d011682016040523d82523d6000602084013e611618565b606091505b5091509150611628828286611639565b979650505050505050565b3b151590565b60608315611648575081611103565b8251156116585782518084602001fd5b60405162461bcd60e51b815260206004820181815284516024840152845185939192839260440191908501908083836000831561136757818101518382015260200161134f56fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212208bfc3a9d28ed0fd928b556b6a638983634be2e4e12ed5cacd9dd54c44bfb657e64736f6c634300060b00334f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573738be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e000000000000000000000000033349b282065b0284d756f0577fb39c158f935e60000000000000000000000006f6c8013f639979c84b756c7fc1500eb5af18dc4000000000000000000000000d6d4bcde6c816f17889f1dd3000af0261b03a196

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101ce5760003560e01c80637b0a47ee11610104578063c8f33c91116100a2578063df136d6511610071578063df136d65146103fb578063e9fad8ee14610403578063ebe2b12b1461040b578063f2fde38b14610413576101ce565b8063c8f33c91146103c6578063cc1a378f146103ce578063cd3daf9d146103eb578063d1af0c7d146103f3576101ce565b80638b876347116100de5780638b876347146103735780638da5cb5b1461039957806391b4ded9146103a1578063a694fc3a146103a9576101ce565b80637b0a47ee1461033757806380faa57d1461033f5780638980f11f14610347576101ce565b80633c6b16ab116101715780635c975abb1161014b5780635c975abb146102c957806370a08231146102e5578063715018a61461030b57806372f702f314610313576101ce565b80633c6b16ab146102875780633d18b912146102a4578063556f6e6b146102ac576101ce565b806318160ddd116101ad57806318160ddd146102525780631c1f78eb1461025a5780632e1a7d4d14610262578063386a95251461027f576101ce565b80628cc262146101d35780630700037d1461020b57806316c38b3c14610231575b600080fd5b6101f9600480360360208110156101e957600080fd5b50356001600160a01b0316610439565b60408051918252519081900360200190f35b6101f96004803603602081101561022157600080fd5b50356001600160a01b03166104cf565b6102506004803603602081101561024757600080fd5b503515156104e1565b005b6101f96105e1565b6101f96105e7565b6102506004803603602081101561027857600080fd5b5035610605565b6101f9610769565b6102506004803603602081101561029d57600080fd5b503561076f565b610250610983565b610250600480360360208110156102c257600080fd5b5035610a34565b6102d1610a9b565b604080519115158252519081900360200190f35b6101f9600480360360208110156102fb57600080fd5b50356001600160a01b0316610aa4565b610250610abf565b61031b610b61565b604080516001600160a01b039092168252519081900360200190f35b6101f9610b85565b6101f9610b8b565b6102506004803603604081101561035d57600080fd5b506001600160a01b038135169060200135610b99565b6101f96004803603602081101561038957600080fd5b50356001600160a01b0316610c5b565b61031b610c6d565b6101f9610c7c565b610250600480360360208110156103bf57600080fd5b5035610c82565b6101f9610e41565b610250600480360360208110156103e457600080fd5b5035610e47565b6101f9610f28565b61031b610f78565b6101f9610f9c565b610250610fa2565b6101f9610fc3565b6102506004803603602081101561042957600080fd5b50356001600160a01b0316610fc9565b6001600160a01b03811660009081526009602090815260408083205460089092528220546104c991906104bd90670de0b6b3a7640000906104b19061048c90610480610f28565b9063ffffffff6110c116565b6001600160a01b0388166000908152600b60205260409020549063ffffffff61110a16565b9063ffffffff61116316565b9063ffffffff6111a516565b92915050565b60096020526000908152604090205481565b6104e96111ff565b6000546001600160a01b03908116911614610539576040805162461bcd60e51b8152602060048201819052602482015260008051602061170d833981519152604482015290519081900360640190fd5b60075460ff1615158115151415610587576040805162461bcd60e51b815260206004820152600d60248201526c148e9053149150511657d4d155609a1b604482015290519081900360640190fd5b6007805460ff191682158015919091179091556105a357426006555b6007546040805160ff90921615158252517f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec59181900360200190a150565b600a5490565b600061060060035460025461110a90919063ffffffff16565b905090565b61060d611203565b61061633611246565b6000811161065d576040805162461bcd60e51b815260206004820152600f60248201526e523a5a45524f5f574954484452415760881b604482015290519081900360640190fd5b600a54610670908263ffffffff6110c116565b600a55336000908152600b6020526040902054610693908263ffffffff6110c116565b336000818152600b6020526040808220939093558251630558095960e31b81526004810183905260248101929092526044820184905291517f0000000000000000000000006f6c8013f639979c84b756c7fc1500eb5af18dc46001600160a01b031692632ac04ac8926064808201939182900301818387803b15801561071857600080fd5b505af115801561072c573d6000803e3d6000fd5b50506040805184815290513393507f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d592509081900360200190a250565b60035481565b6107776111ff565b6000546001600160a01b039081169116146107c7576040805162461bcd60e51b8152602060048201819052602482015260008051602061170d833981519152604482015290519081900360640190fd5b6107d16000611246565b600060015442101561081f5761081a6003546104b161080d600254610801426001546110c190919063ffffffff16565b9063ffffffff61110a16565b859063ffffffff6111a516565b610833565b60035461083390839063ffffffff61116316565b6002819055604080516370a0823160e01b815230600482015290519192506000916001600160a01b037f00000000000000000000000033349b282065b0284d756f0577fb39c158f935e616916370a08231916024808301926020929190829003018186803b1580156108a457600080fd5b505afa1580156108b8573d6000803e3d6000fd5b505050506040513d60208110156108ce57600080fd5b50516003549091506108e790829063ffffffff61116316565b82111561092f576040805162461bcd60e51b81526020600482015260116024820152700a474a48aae82a488bea89e9ebe90928e9607b1b604482015290519081900360640190fd5b426004819055600354610948919063ffffffff6111a516565b6001556040805184815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a1505050565b61098b611203565b61099433611246565b33600090815260096020526040902054806109af5750610a32565b336000818152600960205260408120556109fa907f00000000000000000000000033349b282065b0284d756f0577fb39c158f935e66001600160a01b0316908363ffffffff6112a616565b60408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a2505b565b610a3c6111ff565b6000546001600160a01b03908116911614610a8c576040805162461bcd60e51b8152602060048201819052602482015260008051602061170d833981519152604482015290519081900360640190fd5b610a966000611246565b600155565b60075460ff1681565b6001600160a01b03166000908152600b602052604090205490565b610ac76111ff565b6000546001600160a01b03908116911614610b17576040805162461bcd60e51b8152602060048201819052602482015260008051602061170d833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b7f0000000000000000000000006f6c8013f639979c84b756c7fc1500eb5af18dc481565b60025481565b6000610600426001546112fd565b610ba16111ff565b6000546001600160a01b03908116911614610bf1576040805162461bcd60e51b8152602060048201819052602482015260008051602061170d833981519152604482015290519081900360640190fd5b610c13610bfc610c6d565b6001600160a01b038416908363ffffffff6112a616565b604080516001600160a01b03841681526020810183905281517f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28929181900390910190a15050565b60086020526000908152604090205481565b6000546001600160a01b031690565b60065481565b610c8a611203565b610c9333611246565b336000908152600b6020526040812054610cb3908363ffffffff6111a516565b905060008211610cf9576040805162461bcd60e51b815260206004820152600c60248201526b523a5a45524f5f5354414b4560a01b604482015290519081900360640190fd5b6040805163192cb6a960e31b8152336004820152306024820152905182916001600160a01b037f0000000000000000000000006f6c8013f639979c84b756c7fc1500eb5af18dc4169163c965b54891604480820192602092909190829003018186803b158015610d6857600080fd5b505afa158015610d7c573d6000803e3d6000fd5b505050506040513d6020811015610d9257600080fd5b50511015610de0576040805162461bcd60e51b8152602060048201526016602482015275523a494e5355465f435553545f414c4c4f57414e434560501b604482015290519081900360640190fd5b600a54610df3908363ffffffff6111a516565b600a55336000818152600b6020908152604091829020849055815185815291517f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d9281900390910190a25050565b60045481565b610e4f6111ff565b6000546001600160a01b03908116911614610e9f576040805162461bcd60e51b8152602060048201819052602482015260008051602061170d833981519152604482015290519081900360640190fd5b6001544211610eed576040805162461bcd60e51b8152602060048201526015602482015274148e9411549253d117d393d517d192539254d21151605a1b604482015290519081900360640190fd5b60038190556040805182815290517ffb46ca5a5e06d4540d6387b930a7c978bce0db5f449ec6b3f5d07c6e1d44f2d39181900360200190a150565b6000600a54600014610f7157610f6c610f5d600a546104b1670de0b6b3a7640000610801600254610801600454610480610b8b565b6005549063ffffffff6111a516565b610600565b5060055490565b7f00000000000000000000000033349b282065b0284d756f0577fb39c158f935e681565b60055481565b336000908152600b6020526040902054610fbb90610605565b610a32610983565b60015481565b610fd16111ff565b6000546001600160a01b03908116911614611021576040805162461bcd60e51b8152602060048201819052602482015260008051602061170d833981519152604482015290519081900360640190fd5b6001600160a01b0381166110665760405162461bcd60e51b81526004018080602001828103825260268152602001806116a06026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600061110383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611313565b9392505050565b600082611119575060006104c9565b8282028284828161112657fe5b04146111035760405162461bcd60e51b81526004018080602001828103825260218152602001806116ec6021913960400191505060405180910390fd5b600061110383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506113aa565b600082820183811015611103576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b60075460ff1615610a32576040805162461bcd60e51b8152602060048201526008602482015267148e94105554d15160c21b604482015290519081900360640190fd5b6000611250610f28565b6005819055905061125f610b8b565b6004556001600160a01b038216156112a25761127a82610439565b6001600160a01b03831660009081526009602090815260408083209390935560089052208190555b5050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526112f890849061140f565b505050565b600081831061130c5781611103565b5090919050565b600081848411156113a25760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561136757818101518382015260200161134f565b50505050905090810190601f1680156113945780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836113f95760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561136757818101518382015260200161134f565b50600083858161140557fe5b0495945050505050565b6060611464826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166114c09092919063ffffffff16565b8051909150156112f85780806020019051602081101561148357600080fd5b50516112f85760405162461bcd60e51b815260040180806020018281038252602a81526020018061172d602a913960400191505060405180910390fd5b60606114cf84846000856114d7565b949350505050565b6060824710156115185760405162461bcd60e51b81526004018080602001828103825260268152602001806116c66026913960400191505060405180910390fd5b61152185611633565b611572576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106115b15780518252601f199092019160209182019101611592565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611613576040519150601f19603f3d011682016040523d82523d6000602084013e611618565b606091505b5091509150611628828286611639565b979650505050505050565b3b151590565b60608315611648575081611103565b8251156116585782518084602001fd5b60405162461bcd60e51b815260206004820181815284516024840152845185939192839260440191908501908083836000831561136757818101518382015260200161134f56fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212208bfc3a9d28ed0fd928b556b6a638983634be2e4e12ed5cacd9dd54c44bfb657e64736f6c634300060b0033

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

00000000000000000000000033349b282065b0284d756f0577fb39c158f935e60000000000000000000000006f6c8013f639979c84b756c7fc1500eb5af18dc4000000000000000000000000d6d4bcde6c816f17889f1dd3000af0261b03a196

-----Decoded View---------------
Arg [0] : _rewardsToken (address): 0x33349B282065b0284d756F0577FB39c158F935e6
Arg [1] : _stakingToken (address): 0x6F6c8013f639979C84b756C7FC1500eB5aF18Dc4
Arg [2] : _owner (address): 0xd6d4Bcde6c816F17889f1Dd3000aF0261B03a196

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000033349b282065b0284d756f0577fb39c158f935e6
Arg [1] : 0000000000000000000000006f6c8013f639979c84b756c7fc1500eb5af18dc4
Arg [2] : 000000000000000000000000d6d4bcde6c816f17889f1dd3000af0261b03a196


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  ]
[ 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.