ETH Price: $3,314.73 (-5.00%)

Contract

0x81c5D2A8624A786Ac5C47Ff7AFbF0cA4a05EE4B8
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Exit212936252024-11-29 13:23:5950 days ago1732886639IN
Mars Poolin: SLP
0 ETH0.0015408216.86229348
Exit199551432024-05-26 16:08:11237 days ago1716739691IN
Mars Poolin: SLP
0 ETH0.000926177.9698374
Get Reward193545842024-03-03 12:16:11321 days ago1709468171IN
Mars Poolin: SLP
0 ETH0.0028507838.71033967
Exit190883012024-01-26 4:08:11358 days ago1706242091IN
Mars Poolin: SLP
0 ETH0.0018482815.90468499
Exit189164732024-01-02 1:35:59382 days ago1704159359IN
Mars Poolin: SLP
0 ETH0.0015335316.78246285
Get Reward189164712024-01-02 1:35:35382 days ago1704159335IN
Mars Poolin: SLP
0 ETH0.0015909617.26061777
Exit184605532023-10-30 4:19:59446 days ago1698639599IN
Mars Poolin: SLP
0 ETH0.0012842111.99572668
Get Reward184605522023-10-30 4:19:47446 days ago1698639587IN
Mars Poolin: SLP
0 ETH0.0009687912.38944295
Get Reward180661262023-09-04 22:33:11502 days ago1693866791IN
Mars Poolin: SLP
0 ETH0.0013254317.99786191
Get Reward177065172023-07-16 14:43:47552 days ago1689518627IN
Mars Poolin: SLP
0 ETH0.0013417617.15398461
Get Reward175598072023-06-25 23:39:35573 days ago1687736375IN
Mars Poolin: SLP
0 ETH0.0011541612.52584518
Exit170084372023-04-09 4:37:59650 days ago1681015079IN
Mars Poolin: SLP
0 ETH0.0025715418.67229408
Get Reward168865352023-03-22 23:56:35668 days ago1679529395IN
Mars Poolin: SLP
0 ETH0.0014503418.54784805
Get Reward167125202023-02-26 12:50:59692 days ago1677415859IN
Mars Poolin: SLP
0 ETH0.0014836318.97352909
Get Reward166363992023-02-15 20:03:47703 days ago1676491427IN
Mars Poolin: SLP
0 ETH0.0053659358.23484119
Get Reward166003872023-02-10 19:16:35708 days ago1676056595IN
Mars Poolin: SLP
0 ETH0.0018940620.55575508
Get Reward165675412023-02-06 5:05:11712 days ago1675659911IN
Mars Poolin: SLP
0 ETH0.0012624116.14441653
Exit164907392023-01-26 11:37:59723 days ago1674733079IN
Mars Poolin: SLP
0 ETH0.0018775413.627113
Get Reward163617272023-01-08 11:19:35741 days ago1673176775IN
Mars Poolin: SLP
0 ETH0.0013515614.99360597
Get Reward163277452023-01-03 17:27:11746 days ago1672766831IN
Mars Poolin: SLP
0 ETH0.0016485121.08204962
Exit163095232023-01-01 4:27:35748 days ago1672547255IN
Mars Poolin: SLP
0 ETH0.0018598113.50434821
Get Reward162690612022-12-26 12:55:11754 days ago1672059311IN
Mars Poolin: SLP
0 ETH0.000851811.66173957
Get Reward160760622022-11-29 13:51:35781 days ago1669729895IN
Mars Poolin: SLP
0 ETH0.0008497710.86737827
Exit160183532022-11-21 12:21:23789 days ago1669033283IN
Mars Poolin: SLP
0 ETH0.0010716311.72763526
Get Reward160183532022-11-21 12:21:23789 days ago1669033283IN
Mars Poolin: SLP
0 ETH0.0010575111.72763526
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MarsStakingRewards

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

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

pragma solidity ^0.5.17;

/*
 * @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.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor () internal { }
    // solhint-disable-previous-line no-empty-blocks

    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

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

/**
 * @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.
 *
 * 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.
 */
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(isOwner(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Returns true if the caller is the current owner.
     */
    function isOwner() public view returns (bool) {
        return _msgSender() == _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 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 onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

/**
 * @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);
    }
}

/**
 * @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.
     *
     * _Available since v2.4.0._
     */
    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.
     *
     * _Available since v2.4.0._
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        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.
     *
     * _Available since v2.4.0._
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
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);
}

/**
 * @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) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @dev Converts an `address` into `address payable`. Note that this is
     * simply a type cast: the actual underlying value is not changed.
     *
     * _Available since v2.4.0._
     */
    function toPayable(address account) internal pure returns (address payable) {
        return address(uint160(account));
    }

    /**
     * @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].
     *
     * _Available since v2.4.0._
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

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

/**
 * @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 ERC20;` 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));
    }

    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.

        // A Solidity high level call has three parts:
        //  1. The target address is checked to verify it contains contract code
        //  2. The call itself is made, and success asserted
        //  3. The return value is decoded, which in turn checks the size of the returned data.
        // solhint-disable-next-line max-line-length
        require(address(token).isContract(), "SafeERC20: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = address(token).call(data);
        require(success, "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");
        }
    }
}

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 *
 * _Since v2.5.0:_ this module is now much more gas efficient, given net gas
 * metering changes introduced in the Istanbul hardfork.
 */
contract ReentrancyGuard {
    bool private _notEntered;

    constructor () internal {
        // Storing an initial non-zero value makes deployment a bit more
        // expensive, but in exchange the refund on every call to nonReentrant
        // will be lower in amount. Since refunds are capped to a percetange of
        // the total transaction's gas, it is best to keep them low in cases
        // like this one, to increase the likelihood of the full refund coming
        // into effect.
        _notEntered = true;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_notEntered, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _notEntered = false;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _notEntered = true;
    }
}

contract MarsStakingRewards is Ownable, ReentrancyGuard {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    /* ========== STATE VARIABLES ========== */

    address public rewardsDistribution;
    IERC20 public rewardsToken;
    IERC20 public stakingToken;
    uint256 public periodFinish;
    uint256 public rewardRate;
    uint256 public rewardsDuration;
    uint256 public lastUpdateTime;
    uint256 public rewardPerTokenStored;

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

    uint256 private _totalSupply;
    mapping(address => uint256) private _balances;

    /* ========== CONSTRUCTOR ========== */

    constructor(
        address _rewardsDistribution,
        address _rewardsToken,
        address _stakingToken
    ) Ownable() public {
        rewardsToken = IERC20(_rewardsToken);
        stakingToken = IERC20(_stakingToken);
        rewardsDistribution = _rewardsDistribution;
    }

    function setRewardsDistribution(address _rewardsDistribution) external onlyOwner {
        require(_rewardsDistribution != address(0), "_rewardsDistribution is the zero address");
        rewardsDistribution = _rewardsDistribution;
    }

    /* ========== VIEWS ========== */

    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) {
        if (_totalSupply == 0) {
            return rewardPerTokenStored;
        }
        return
        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);
    }

    /* ========== MUTATIVE FUNCTIONS ========== */

    function stakeWithPermit(uint256 amount, uint deadline, uint8 v, bytes32 r, bytes32 s) external nonReentrant updateReward(msg.sender) {
        require(amount > 0, "Cannot stake 0");
        _totalSupply = _totalSupply.add(amount);
        _balances[msg.sender] = _balances[msg.sender].add(amount);

        // permit
        IUniswapV2ERC20(address(stakingToken)).permit(msg.sender, address(this), amount, deadline, v, r, s);

        stakingToken.safeTransferFrom(msg.sender, address(this), amount);
        emit Staked(msg.sender, amount);
    }

    function stake(uint256 amount) external nonReentrant updateReward(msg.sender) {
        require(amount > 0, "Cannot stake 0");
        _totalSupply = _totalSupply.add(amount);
        _balances[msg.sender] = _balances[msg.sender].add(amount);
        stakingToken.safeTransferFrom(msg.sender, address(this), amount);
        emit Staked(msg.sender, amount);
    }

    function withdraw(uint256 amount) public nonReentrant updateReward(msg.sender) {
        require(amount > 0, "Cannot withdraw 0");
        _totalSupply = _totalSupply.sub(amount);
        _balances[msg.sender] = _balances[msg.sender].sub(amount);
        stakingToken.safeTransfer(msg.sender, amount);
        emit Withdrawn(msg.sender, amount);
    }

    function getReward() public nonReentrant updateReward(msg.sender) {
        uint256 reward = rewards[msg.sender];
        if (reward > 0) {
            rewards[msg.sender] = 0;
            rewardsToken.safeTransfer(msg.sender, reward);
            emit RewardPaid(msg.sender, reward);
        }
    }

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

    function inCaseTokensGetStuck(address _token, uint256 _amount) external onlyOwner {
        require(_token != address(stakingToken), 'stakingToken cannot transfer.');
        IERC20(_token).safeTransfer(owner(), _amount);
    }

    /* ========== RESTRICTED FUNCTIONS ========== */

    function notifyRewardAmount(uint256 reward, uint256 duration) external onlyRewardsDistribution updateReward(address(0)) {
        if (block.timestamp >= periodFinish) {
            rewardRate = reward.div(duration);
        } else {
            uint256 remaining = periodFinish.sub(block.timestamp);
            uint256 leftover = remaining.mul(rewardRate);
            rewardRate = reward.add(leftover).div(duration);
        }

        // 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.
        uint balance = rewardsToken.balanceOf(address(this));
        require(rewardRate <= balance.div(duration), "Provided reward too high");

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

    /* ========== MODIFIERS ========== */

    modifier updateReward(address account) {
        rewardPerTokenStored = rewardPerToken();
        lastUpdateTime = lastTimeRewardApplicable();
        if (account != address(0)) {
            rewards[account] = earned(account);
            userRewardPerTokenPaid[account] = rewardPerTokenStored;
        }
        _;
    }

    modifier onlyRewardsDistribution() {
        require(msg.sender == rewardsDistribution, "Caller is not RewardsDistribution contract");
        _;
    }

    /* ========== EVENTS ========== */

    event RewardAdded(uint256 reward);
    event Staked(address indexed user, uint256 amount);
    event Withdrawn(address indexed user, uint256 amount);
    event RewardPaid(address indexed user, uint256 reward);
}

interface IUniswapV2ERC20 {
    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_rewardsDistribution","type":"address"},{"internalType":"address","name":"_rewardsToken","type":"address"},{"internalType":"address","name":"_stakingToken","type":"address"}],"payable":false,"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":"uint256","name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"exit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getReward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getRewardForDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"inCaseTokensGetStuck","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardsDistribution","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardsDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardsToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_rewardsDistribution","type":"address"}],"name":"setRewardsDistribution","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"stakeWithPermit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162002d8c38038062002d8c833981810160405260608110156200003757600080fd5b8101908080519060200190929190805190602001909291908051906020019092919050505060006200006e620001f360201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3506001600060146101000a81548160ff02191690831515021790555081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050620001fb565b600033905090565b612b81806200020b6000396000f3fe608060405234801561001057600080fd5b50600436106101c35760003560e01c806380faa57d116100f9578063cd3daf9d11610097578063e9fad8ee11610071578063e9fad8ee1461069c578063ebe2b12b146106a6578063ecd9ba82146106c4578063f2fde38b1461071d576101c3565b8063cd3daf9d14610616578063d1af0c7d14610634578063df136d651461067e576101c3565b80638f32d59b116100d35780638f32d59b1461055a578063a694fc3a1461057c578063c6d758cb146105aa578063c8f33c91146105f8576101c3565b806380faa57d1461049a5780638b876347146104b85780638da5cb5b14610510576101c3565b8063386a95251161016657806370a082311161014057806370a08231146103d0578063715018a61461042857806372f702f3146104325780637b0a47ee1461047c576101c3565b8063386a95251461035e5780633d18b9121461037c5780633fc6df6e14610386576101c3565b806319762143116101a257806319762143146102965780631c1f78eb146102da578063246132f9146102f85780632e1a7d4d14610330576101c3565b80628cc262146101c85780630700037d1461022057806318160ddd14610278575b600080fd5b61020a600480360360208110156101de57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610761565b6040518082815260200191505060405180910390f35b6102626004803603602081101561023657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061087f565b6040518082815260200191505060405180910390f35b610280610897565b6040518082815260200191505060405180910390f35b6102d8600480360360208110156102ac57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506108a1565b005b6102e26109e5565b6040518082815260200191505060405180910390f35b61032e6004803603604081101561030e57600080fd5b810190808035906020019092919080359060200190929190505050610a03565b005b61035c6004803603602081101561034657600080fd5b8101908080359060200190929190505050610de1565b005b610366611141565b6040518082815260200191505060405180910390f35b610384611147565b005b61038e611414565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610412600480360360208110156103e657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061143a565b6040518082815260200191505060405180910390f35b610430611483565b005b61043a6115bc565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6104846115e2565b6040518082815260200191505060405180910390f35b6104a26115e8565b6040518082815260200191505060405180910390f35b6104fa600480360360208110156104ce57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506115fb565b6040518082815260200191505060405180910390f35b610518611613565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61056261163c565b604051808215151515815260200191505060405180910390f35b6105a86004803603602081101561059257600080fd5b810190808035906020019092919050505061169a565b005b6105f6600480360360408110156105c057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506119fc565b005b610600611b70565b6040518082815260200191505060405180910390f35b61061e611b76565b6040518082815260200191505060405180910390f35b61063c611c04565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610686611c2a565b6040518082815260200191505060405180910390f35b6106a4611c30565b005b6106ae611c82565b6040518082815260200191505060405180910390f35b61071b600480360360a08110156106da57600080fd5b810190808035906020019092919080359060200190929190803560ff1690602001909291908035906020019092919080359060200190929190505050611c88565b005b61075f6004803603602081101561073357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612109565b005b6000610878600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461086a670de0b6b3a764000061085c61080e600960008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610800611b76565b61218f90919063ffffffff16565b600c60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546121d990919063ffffffff16565b61225f90919063ffffffff16565b6122a990919063ffffffff16565b9050919050565b600a6020528060005260406000206000915090505481565b6000600b54905090565b6108a961163c565b61091b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156109a1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526028815260200180612ad16028913960400191505060405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60006109fe6006546005546121d990919063ffffffff16565b905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610aa9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180612af9602a913960400191505060405180910390fd5b6000610ab3611b76565b600881905550610ac16115e8565b600781905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b8e57610b0481610761565b600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600854600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6004544210610bb557610baa828461225f90919063ffffffff16565b600581905550610c15565b6000610bcc4260045461218f90919063ffffffff16565b90506000610be5600554836121d990919063ffffffff16565b9050610c0c84610bfe83886122a990919063ffffffff16565b61225f90919063ffffffff16565b60058190555050505b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610cb657600080fd5b505afa158015610cca573d6000803e3d6000fd5b505050506040513d6020811015610ce057600080fd5b81019080805190602001909291905050509050610d06838261225f90919063ffffffff16565b6005541115610d7d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f50726f76696465642072657761726420746f6f2068696768000000000000000081525060200191505060405180910390fd5b42600781905550610d9783426122a990919063ffffffff16565b600481905550826006819055507fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d846040518082815260200191505060405180910390a150505050565b600060149054906101000a900460ff16610e63576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b60008060146101000a81548160ff02191690831515021790555033610e86611b76565b600881905550610e946115e8565b600781905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610f6157610ed781610761565b600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600854600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b60008211610fd7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f43616e6e6f74207769746864726177203000000000000000000000000000000081525060200191505060405180910390fd5b610fec82600b5461218f90919063ffffffff16565b600b8190555061104482600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461218f90919063ffffffff16565b600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506110d43383600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166123319092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5836040518082815260200191505060405180910390a2506001600060146101000a81548160ff02191690831515021790555050565b60065481565b600060149054906101000a900460ff166111c9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b60008060146101000a81548160ff021916908315150217905550336111ec611b76565b6008819055506111fa6115e8565b600781905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146112c75761123d81610761565b600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600854600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060008111156113f5576000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506113a63382600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166123319092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040518082815260200191505060405180910390a25b50506001600060146101000a81548160ff021916908315150217905550565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61148b61163c565b6114fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60055481565b60006115f642600454612402565b905090565b60096020528060005260406000206000915090505481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661167e61241b565b73ffffffffffffffffffffffffffffffffffffffff1614905090565b600060149054906101000a900460ff1661171c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b60008060146101000a81548160ff0219169083151502179055503361173f611b76565b60088190555061174d6115e8565b600781905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461181a5761179081610761565b600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600854600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b60008211611890576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f43616e6e6f74207374616b65203000000000000000000000000000000000000081525060200191505060405180910390fd5b6118a582600b546122a990919063ffffffff16565b600b819055506118fd82600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546122a990919063ffffffff16565b600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061198f333084600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612423909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d836040518082815260200191505060405180910390a2506001600060146101000a81548160ff02191690831515021790555050565b611a0461163c565b611a76576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611b3a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f7374616b696e67546f6b656e2063616e6e6f74207472616e736665722e00000081525060200191505060405180910390fd5b611b6c611b45611613565b828473ffffffffffffffffffffffffffffffffffffffff166123319092919063ffffffff16565b5050565b60075481565b600080600b541415611b8c576008549050611c01565b611bfe611bed600b54611bdf670de0b6b3a7640000611bd1600554611bc3600754611bb56115e8565b61218f90919063ffffffff16565b6121d990919063ffffffff16565b6121d990919063ffffffff16565b61225f90919063ffffffff16565b6008546122a990919063ffffffff16565b90505b90565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60085481565b611c78600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610de1565b611c80611147565b565b60045481565b600060149054906101000a900460ff16611d0a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b60008060146101000a81548160ff02191690831515021790555033611d2d611b76565b600881905550611d3b6115e8565b600781905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611e0857611d7e81610761565b600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600854600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b60008611611e7e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f43616e6e6f74207374616b65203000000000000000000000000000000000000081525060200191505060405180910390fd5b611e9386600b546122a990919063ffffffff16565b600b81905550611eeb86600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546122a990919063ffffffff16565b600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d505accf333089898989896040518863ffffffff1660e01b8152600401808873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018681526020018581526020018460ff1660ff168152602001838152602001828152602001975050505050505050600060405180830381600087803b15801561203157600080fd5b505af1158015612045573d6000803e3d6000fd5b50505050612098333088600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612423909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d876040518082815260200191505060405180910390a2506001600060146101000a81548160ff0219169083151502179055505050505050565b61211161163c565b612183576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b61218c81612529565b50565b60006121d183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061266d565b905092915050565b6000808314156121ec5760009050612259565b60008284029050828482816121fd57fe5b0414612254576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612ab06021913960400191505060405180910390fd5b809150505b92915050565b60006122a183836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061272d565b905092915050565b600080828401905083811015612327576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6123fd838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb905060e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506127f3565b505050565b60008183106124115781612413565b825b905092915050565b600033905090565b612523848573ffffffffffffffffffffffffffffffffffffffff166323b872dd905060e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506127f3565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156125af576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180612a8a6026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600083831115829061271a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156126df5780820151818401526020810190506126c4565b50505050905090810190601f16801561270c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b600080831182906127d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561279e578082015181840152602081019050612783565b50505050905090810190601f1680156127cb5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816127e557fe5b049050809150509392505050565b6128128273ffffffffffffffffffffffffffffffffffffffff16612a3e565b612884576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e74726163740081525060200191505060405180910390fd5b600060608373ffffffffffffffffffffffffffffffffffffffff16836040518082805190602001908083835b602083106128d357805182526020820191506020810190506020830392506128b0565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612935576040519150601f19603f3d011682016040523d82523d6000602084013e61293a565b606091505b5091509150816129b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656481525060200191505060405180910390fd5b600081511115612a38578080602001905160208110156129d157600080fd5b8101908080519060200190929190505050612a37576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180612b23602a913960400191505060405180910390fd5b5b50505050565b60008060007fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47060001b9050833f9150808214158015612a8057506000801b8214155b9250505091905056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775f72657761726473446973747269627574696f6e20697320746865207a65726f206164647265737343616c6c6572206973206e6f742052657761726473446973747269627574696f6e20636f6e74726163745361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a7231582079b495e3aef556329096ff89d011277b0b9663d8239cfbecce50d9b4b7c2da7e64736f6c6343000511003200000000000000000000000065785917bc751f6506bd4818527b1909d0b1e57a00000000000000000000000066c0dded8433c9ea86c8cf91237b14e10b4d70b700000000000000000000000054bcf4948e32a8706c286416e3ced37284f17fc9

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101c35760003560e01c806380faa57d116100f9578063cd3daf9d11610097578063e9fad8ee11610071578063e9fad8ee1461069c578063ebe2b12b146106a6578063ecd9ba82146106c4578063f2fde38b1461071d576101c3565b8063cd3daf9d14610616578063d1af0c7d14610634578063df136d651461067e576101c3565b80638f32d59b116100d35780638f32d59b1461055a578063a694fc3a1461057c578063c6d758cb146105aa578063c8f33c91146105f8576101c3565b806380faa57d1461049a5780638b876347146104b85780638da5cb5b14610510576101c3565b8063386a95251161016657806370a082311161014057806370a08231146103d0578063715018a61461042857806372f702f3146104325780637b0a47ee1461047c576101c3565b8063386a95251461035e5780633d18b9121461037c5780633fc6df6e14610386576101c3565b806319762143116101a257806319762143146102965780631c1f78eb146102da578063246132f9146102f85780632e1a7d4d14610330576101c3565b80628cc262146101c85780630700037d1461022057806318160ddd14610278575b600080fd5b61020a600480360360208110156101de57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610761565b6040518082815260200191505060405180910390f35b6102626004803603602081101561023657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061087f565b6040518082815260200191505060405180910390f35b610280610897565b6040518082815260200191505060405180910390f35b6102d8600480360360208110156102ac57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506108a1565b005b6102e26109e5565b6040518082815260200191505060405180910390f35b61032e6004803603604081101561030e57600080fd5b810190808035906020019092919080359060200190929190505050610a03565b005b61035c6004803603602081101561034657600080fd5b8101908080359060200190929190505050610de1565b005b610366611141565b6040518082815260200191505060405180910390f35b610384611147565b005b61038e611414565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610412600480360360208110156103e657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061143a565b6040518082815260200191505060405180910390f35b610430611483565b005b61043a6115bc565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6104846115e2565b6040518082815260200191505060405180910390f35b6104a26115e8565b6040518082815260200191505060405180910390f35b6104fa600480360360208110156104ce57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506115fb565b6040518082815260200191505060405180910390f35b610518611613565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61056261163c565b604051808215151515815260200191505060405180910390f35b6105a86004803603602081101561059257600080fd5b810190808035906020019092919050505061169a565b005b6105f6600480360360408110156105c057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506119fc565b005b610600611b70565b6040518082815260200191505060405180910390f35b61061e611b76565b6040518082815260200191505060405180910390f35b61063c611c04565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610686611c2a565b6040518082815260200191505060405180910390f35b6106a4611c30565b005b6106ae611c82565b6040518082815260200191505060405180910390f35b61071b600480360360a08110156106da57600080fd5b810190808035906020019092919080359060200190929190803560ff1690602001909291908035906020019092919080359060200190929190505050611c88565b005b61075f6004803603602081101561073357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612109565b005b6000610878600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461086a670de0b6b3a764000061085c61080e600960008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610800611b76565b61218f90919063ffffffff16565b600c60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546121d990919063ffffffff16565b61225f90919063ffffffff16565b6122a990919063ffffffff16565b9050919050565b600a6020528060005260406000206000915090505481565b6000600b54905090565b6108a961163c565b61091b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156109a1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526028815260200180612ad16028913960400191505060405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60006109fe6006546005546121d990919063ffffffff16565b905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610aa9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180612af9602a913960400191505060405180910390fd5b6000610ab3611b76565b600881905550610ac16115e8565b600781905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b8e57610b0481610761565b600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600854600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6004544210610bb557610baa828461225f90919063ffffffff16565b600581905550610c15565b6000610bcc4260045461218f90919063ffffffff16565b90506000610be5600554836121d990919063ffffffff16565b9050610c0c84610bfe83886122a990919063ffffffff16565b61225f90919063ffffffff16565b60058190555050505b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610cb657600080fd5b505afa158015610cca573d6000803e3d6000fd5b505050506040513d6020811015610ce057600080fd5b81019080805190602001909291905050509050610d06838261225f90919063ffffffff16565b6005541115610d7d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f50726f76696465642072657761726420746f6f2068696768000000000000000081525060200191505060405180910390fd5b42600781905550610d9783426122a990919063ffffffff16565b600481905550826006819055507fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d846040518082815260200191505060405180910390a150505050565b600060149054906101000a900460ff16610e63576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b60008060146101000a81548160ff02191690831515021790555033610e86611b76565b600881905550610e946115e8565b600781905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610f6157610ed781610761565b600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600854600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b60008211610fd7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f43616e6e6f74207769746864726177203000000000000000000000000000000081525060200191505060405180910390fd5b610fec82600b5461218f90919063ffffffff16565b600b8190555061104482600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461218f90919063ffffffff16565b600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506110d43383600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166123319092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5836040518082815260200191505060405180910390a2506001600060146101000a81548160ff02191690831515021790555050565b60065481565b600060149054906101000a900460ff166111c9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b60008060146101000a81548160ff021916908315150217905550336111ec611b76565b6008819055506111fa6115e8565b600781905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146112c75761123d81610761565b600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600854600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060008111156113f5576000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506113a63382600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166123319092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040518082815260200191505060405180910390a25b50506001600060146101000a81548160ff021916908315150217905550565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61148b61163c565b6114fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60055481565b60006115f642600454612402565b905090565b60096020528060005260406000206000915090505481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661167e61241b565b73ffffffffffffffffffffffffffffffffffffffff1614905090565b600060149054906101000a900460ff1661171c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b60008060146101000a81548160ff0219169083151502179055503361173f611b76565b60088190555061174d6115e8565b600781905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461181a5761179081610761565b600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600854600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b60008211611890576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f43616e6e6f74207374616b65203000000000000000000000000000000000000081525060200191505060405180910390fd5b6118a582600b546122a990919063ffffffff16565b600b819055506118fd82600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546122a990919063ffffffff16565b600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061198f333084600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612423909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d836040518082815260200191505060405180910390a2506001600060146101000a81548160ff02191690831515021790555050565b611a0461163c565b611a76576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611b3a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f7374616b696e67546f6b656e2063616e6e6f74207472616e736665722e00000081525060200191505060405180910390fd5b611b6c611b45611613565b828473ffffffffffffffffffffffffffffffffffffffff166123319092919063ffffffff16565b5050565b60075481565b600080600b541415611b8c576008549050611c01565b611bfe611bed600b54611bdf670de0b6b3a7640000611bd1600554611bc3600754611bb56115e8565b61218f90919063ffffffff16565b6121d990919063ffffffff16565b6121d990919063ffffffff16565b61225f90919063ffffffff16565b6008546122a990919063ffffffff16565b90505b90565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60085481565b611c78600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610de1565b611c80611147565b565b60045481565b600060149054906101000a900460ff16611d0a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b60008060146101000a81548160ff02191690831515021790555033611d2d611b76565b600881905550611d3b6115e8565b600781905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611e0857611d7e81610761565b600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600854600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b60008611611e7e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f43616e6e6f74207374616b65203000000000000000000000000000000000000081525060200191505060405180910390fd5b611e9386600b546122a990919063ffffffff16565b600b81905550611eeb86600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546122a990919063ffffffff16565b600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d505accf333089898989896040518863ffffffff1660e01b8152600401808873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018681526020018581526020018460ff1660ff168152602001838152602001828152602001975050505050505050600060405180830381600087803b15801561203157600080fd5b505af1158015612045573d6000803e3d6000fd5b50505050612098333088600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612423909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d876040518082815260200191505060405180910390a2506001600060146101000a81548160ff0219169083151502179055505050505050565b61211161163c565b612183576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b61218c81612529565b50565b60006121d183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061266d565b905092915050565b6000808314156121ec5760009050612259565b60008284029050828482816121fd57fe5b0414612254576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612ab06021913960400191505060405180910390fd5b809150505b92915050565b60006122a183836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061272d565b905092915050565b600080828401905083811015612327576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6123fd838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb905060e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506127f3565b505050565b60008183106124115781612413565b825b905092915050565b600033905090565b612523848573ffffffffffffffffffffffffffffffffffffffff166323b872dd905060e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506127f3565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156125af576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180612a8a6026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600083831115829061271a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156126df5780820151818401526020810190506126c4565b50505050905090810190601f16801561270c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b600080831182906127d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561279e578082015181840152602081019050612783565b50505050905090810190601f1680156127cb5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816127e557fe5b049050809150509392505050565b6128128273ffffffffffffffffffffffffffffffffffffffff16612a3e565b612884576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e74726163740081525060200191505060405180910390fd5b600060608373ffffffffffffffffffffffffffffffffffffffff16836040518082805190602001908083835b602083106128d357805182526020820191506020810190506020830392506128b0565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612935576040519150601f19603f3d011682016040523d82523d6000602084013e61293a565b606091505b5091509150816129b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656481525060200191505060405180910390fd5b600081511115612a38578080602001905160208110156129d157600080fd5b8101908080519060200190929190505050612a37576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180612b23602a913960400191505060405180910390fd5b5b50505050565b60008060007fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47060001b9050833f9150808214158015612a8057506000801b8214155b9250505091905056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775f72657761726473446973747269627574696f6e20697320746865207a65726f206164647265737343616c6c6572206973206e6f742052657761726473446973747269627574696f6e20636f6e74726163745361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a7231582079b495e3aef556329096ff89d011277b0b9663d8239cfbecce50d9b4b7c2da7e64736f6c63430005110032

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

00000000000000000000000065785917bc751f6506bd4818527b1909d0b1e57a00000000000000000000000066c0dded8433c9ea86c8cf91237b14e10b4d70b700000000000000000000000054bcf4948e32a8706c286416e3ced37284f17fc9

-----Decoded View---------------
Arg [0] : _rewardsDistribution (address): 0x65785917BC751F6506Bd4818527B1909D0B1e57a
Arg [1] : _rewardsToken (address): 0x66C0DDEd8433c9EA86C8cf91237B14e10b4d70B7
Arg [2] : _stakingToken (address): 0x54bcf4948e32A8706C286416e3ced37284F17fc9

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000065785917bc751f6506bd4818527b1909d0b1e57a
Arg [1] : 00000000000000000000000066c0dded8433c9ea86c8cf91237b14e10b4d70b7
Arg [2] : 00000000000000000000000054bcf4948e32a8706c286416e3ced37284f17fc9


Deployed Bytecode Sourcemap

21573:6331:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;21573:6331:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23573:198;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;23573:198:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;22109:42;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;22109:42:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;22887:93;;;:::i;:::-;;;;;;;;;;;;;;;;;;;22598:240;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;22598:240:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;23779:121;;;:::i;:::-;;;;;;;;;;;;;;;;;;;25984:1110;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;25984:1110:0;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;24905:357;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;24905:357:0;;;;;;;;;;;;;;;;;:::i;:::-;;21928:30;;;:::i;:::-;;;;;;;;;;;;;;;;;;;25270:307;;;:::i;:::-;;21755:34;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;22988:112;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;22988:112:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;2827:140;;;:::i;:::-;;21829:26;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;21896:25;;;:::i;:::-;;;;;;;;;;;;;;;;;;;23108:131;;;:::i;:::-;;;;;;;;;;;;;;;;;;;22045:57;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;22045:57:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;2016:79;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;2382:94;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;24528:369;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;24528:369:0;;;;;;;;;;;;;;;;;:::i;:::-;;25690:230;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;25690:230:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;21965:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;;23247:318;;;:::i;:::-;;;;;;;;;;;;;;;;;;;21796:26;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;22001:35;;;:::i;:::-;;;;;;;;;;;;;;;;;;;25585:97;;;:::i;:::-;;21862:27;;;:::i;:::-;;;;;;;;;;;;;;;;;;;23962:558;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;23962:558:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;3122:109;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;3122:109:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;23573:198;23627:7;23654:109;23746:7;:16;23754:7;23746:16;;;;;;;;;;;;;;;;23654:87;23736:4;23654:77;23677:53;23698:22;:31;23721:7;23698:31;;;;;;;;;;;;;;;;23677:16;:14;:16::i;:::-;:20;;:53;;;;:::i;:::-;23654:9;:18;23664:7;23654:18;;;;;;;;;;;;;;;;:22;;:77;;;;:::i;:::-;:81;;:87;;;;:::i;:::-;:91;;:109;;;;:::i;:::-;23647:116;;23573:198;;;:::o;22109:42::-;;;;;;;;;;;;;;;;;:::o;22887:93::-;22933:7;22960:12;;22953:19;;22887:93;:::o;22598:240::-;2228:9;:7;:9::i;:::-;2220:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22730:1;22698:34;;:20;:34;;;;22690:87;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22810:20;22788:19;;:42;;;;;;;;;;;;;;;;;;22598:240;:::o;23779:121::-;23834:7;23861:31;23876:15;;23861:10;;:14;;:31;;;;:::i;:::-;23854:38;;23779:121;:::o;25984:1110::-;27553:19;;;;;;;;;;;27539:33;;:10;:33;;;27531:88;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26100:1;27220:16;:14;:16::i;:::-;27197:20;:39;;;;27264:26;:24;:26::i;:::-;27247:14;:43;;;;27324:1;27305:21;;:7;:21;;;27301:157;;27362:15;27369:7;27362:6;:15::i;:::-;27343:7;:16;27351:7;27343:16;;;;;;;;;;;;;;;:34;;;;27426:20;;27392:22;:31;27415:7;27392:31;;;;;;;;;;;;;;;:54;;;;27301:157;26138:12;;26119:15;:31;26115:304;;26180:20;26191:8;26180:6;:10;;:20;;;;:::i;:::-;26167:10;:33;;;;26115:304;;;26233:17;26253:33;26270:15;26253:12;;:16;;:33;;;;:::i;:::-;26233:53;;26301:16;26320:25;26334:10;;26320:9;:13;;:25;;;;:::i;:::-;26301:44;;26373:34;26398:8;26373:20;26384:8;26373:6;:10;;:20;;;;:::i;:::-;:24;;:34;;;;:::i;:::-;26360:10;:47;;;;26115:304;;;26779:12;26794;;;;;;;;;;;:22;;;26825:4;26794:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;26794:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;26794:37:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;26794:37:0;;;;;;;;;;;;;;;;26779:52;;26864:21;26876:8;26864:7;:11;;:21;;;;:::i;:::-;26850:10;;:35;;26842:72;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26944:15;26927:14;:32;;;;26985:29;27005:8;26985:15;:19;;:29;;;;:::i;:::-;26970:12;:44;;;;27043:8;27025:15;:26;;;;27067:19;27079:6;27067:19;;;;;;;;;;;;;;;;;;27468:1;27630;25984:1110;;:::o;24905:357::-;21235:11;;;;;;;;;;;21227:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21374:5;21360:11;;:19;;;;;;;;;;;;;;;;;;24972:10;27220:16;:14;:16::i;:::-;27197:20;:39;;;;27264:26;:24;:26::i;:::-;27247:14;:43;;;;27324:1;27305:21;;:7;:21;;;27301:157;;27362:15;27369:7;27362:6;:15::i;:::-;27343:7;:16;27351:7;27343:16;;;;;;;;;;;;;;;:34;;;;27426:20;;27392:22;:31;27415:7;27392:31;;;;;;;;;;;;;;;:54;;;;27301:157;25012:1;25003:6;:10;24995:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25061:24;25078:6;25061:12;;:16;;:24;;;;:::i;:::-;25046:12;:39;;;;25120:33;25146:6;25120:9;:21;25130:10;25120:21;;;;;;;;;;;;;;;;:25;;:33;;;;:::i;:::-;25096:9;:21;25106:10;25096:21;;;;;;;;;;;;;;;:57;;;;25164:45;25190:10;25202:6;25164:12;;;;;;;;;;;:25;;;;:45;;;;;:::i;:::-;25235:10;25225:29;;;25247:6;25225:29;;;;;;;;;;;;;;;;;;21392:1;21554:4;21540:11;;:18;;;;;;;;;;;;;;;;;;24905:357;:::o;21928:30::-;;;;:::o;25270:307::-;21235:11;;;;;;;;;;;21227:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21374:5;21360:11;;:19;;;;;;;;;;;;;;;;;;25324:10;27220:16;:14;:16::i;:::-;27197:20;:39;;;;27264:26;:24;:26::i;:::-;27247:14;:43;;;;27324:1;27305:21;;:7;:21;;;27301:157;;27362:15;27369:7;27362:6;:15::i;:::-;27343:7;:16;27351:7;27343:16;;;;;;;;;;;;;;;:34;;;;27426:20;;27392:22;:31;27415:7;27392:31;;;;;;;;;;;;;;;:54;;;;27301:157;25347:14;25364:7;:19;25372:10;25364:19;;;;;;;;;;;;;;;;25347:36;;25407:1;25398:6;:10;25394:176;;;25447:1;25425:7;:19;25433:10;25425:19;;;;;;;;;;;;;;;:23;;;;25463:45;25489:10;25501:6;25463:12;;;;;;;;;;;:25;;;;:45;;;;;:::i;:::-;25539:10;25528:30;;;25551:6;25528:30;;;;;;;;;;;;;;;;;;25394:176;27468:1;21392;21554:4;21540:11;;:18;;;;;;;;;;;;;;;;;;25270:307::o;21755:34::-;;;;;;;;;;;;;:::o;22988:112::-;23047:7;23074:9;:18;23084:7;23074:18;;;;;;;;;;;;;;;;23067:25;;22988:112;;;:::o;2827:140::-;2228:9;:7;:9::i;:::-;2220:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2926:1;2889:40;;2910:6;;;;;;;;;;;2889:40;;;;;;;;;;;;2957:1;2940:6;;:19;;;;;;;;;;;;;;;;;;2827:140::o;21829:26::-;;;;;;;;;;;;;:::o;21896:25::-;;;;:::o;23108:131::-;23165:7;23192:39;23201:15;23218:12;;23192:8;:39::i;:::-;23185:46;;23108:131;:::o;22045:57::-;;;;;;;;;;;;;;;;;:::o;2016:79::-;2054:7;2081:6;;;;;;;;;;;2074:13;;2016:79;:::o;2382:94::-;2422:4;2462:6;;;;;;;;;;;2446:22;;:12;:10;:12::i;:::-;:22;;;2439:29;;2382:94;:::o;24528:369::-;21235:11;;;;;;;;;;;21227:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21374:5;21360:11;;:19;;;;;;;;;;;;;;;;;;24594:10;27220:16;:14;:16::i;:::-;27197:20;:39;;;;27264:26;:24;:26::i;:::-;27247:14;:43;;;;27324:1;27305:21;;:7;:21;;;27301:157;;27362:15;27369:7;27362:6;:15::i;:::-;27343:7;:16;27351:7;27343:16;;;;;;;;;;;;;;;:34;;;;27426:20;;27392:22;:31;27415:7;27392:31;;;;;;;;;;;;;;;:54;;;;27301:157;24634:1;24625:6;:10;24617:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24680:24;24697:6;24680:12;;:16;;:24;;;;:::i;:::-;24665:12;:39;;;;24739:33;24765:6;24739:9;:21;24749:10;24739:21;;;;;;;;;;;;;;;;:25;;:33;;;;:::i;:::-;24715:9;:21;24725:10;24715:21;;;;;;;;;;;;;;;:57;;;;24783:64;24813:10;24833:4;24840:6;24783:12;;;;;;;;;;;:29;;;;:64;;;;;;:::i;:::-;24870:10;24863:26;;;24882:6;24863:26;;;;;;;;;;;;;;;;;;21392:1;21554:4;21540:11;;:18;;;;;;;;;;;;;;;;;;24528:369;:::o;25690:230::-;2228:9;:7;:9::i;:::-;2220:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25809:12;;;;;;;;;;;25791:31;;:6;:31;;;;25783:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25867:45;25895:7;:5;:7::i;:::-;25904;25874:6;25867:27;;;;:45;;;;;:::i;:::-;25690:230;;:::o;21965:29::-;;;;:::o;23247:318::-;23294:7;23334:1;23318:12;;:17;23314:77;;;23359:20;;23352:27;;;;23314:77;23417:140;23456:90;23533:12;;23456:72;23523:4;23456:62;23507:10;;23456:46;23487:14;;23456:26;:24;:26::i;:::-;:30;;:46;;;;:::i;:::-;:50;;:62;;;;:::i;:::-;:66;;:72;;;;:::i;:::-;:76;;:90;;;;:::i;:::-;23417:20;;:24;;:140;;;;:::i;:::-;23401:156;;23247:318;;:::o;21796:26::-;;;;;;;;;;;;;:::o;22001:35::-;;;;:::o;25585:97::-;25621:31;25630:9;:21;25640:10;25630:21;;;;;;;;;;;;;;;;25621:8;:31::i;:::-;25663:11;:9;:11::i;:::-;25585:97::o;21862:27::-;;;;:::o;23962:558::-;21235:11;;;;;;;;;;;21227:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21374:5;21360:11;;:19;;;;;;;;;;;;;;;;;;24084:10;27220:16;:14;:16::i;:::-;27197:20;:39;;;;27264:26;:24;:26::i;:::-;27247:14;:43;;;;27324:1;27305:21;;:7;:21;;;27301:157;;27362:15;27369:7;27362:6;:15::i;:::-;27343:7;:16;27351:7;27343:16;;;;;;;;;;;;;;;:34;;;;27426:20;;27392:22;:31;27415:7;27392:31;;;;;;;;;;;;;;;:54;;;;27301:157;24124:1;24115:6;:10;24107:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24170:24;24187:6;24170:12;;:16;;:24;;;;:::i;:::-;24155:12;:39;;;;24229:33;24255:6;24229:9;:21;24239:10;24229:21;;;;;;;;;;;;;;;;:25;;:33;;;;:::i;:::-;24205:9;:21;24215:10;24205:21;;;;;;;;;;;;;;;:57;;;;24318:12;;;;;;;;;;;24294:45;;;24340:10;24360:4;24367:6;24375:8;24385:1;24388;24391;24294:99;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;24294:99:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;24294:99:0;;;;24406:64;24436:10;24456:4;24463:6;24406:12;;;;;;;;;;;:29;;;;:64;;;;;;:::i;:::-;24493:10;24486:26;;;24505:6;24486:26;;;;;;;;;;;;;;;;;;21392:1;21554:4;21540:11;;:18;;;;;;;;;;;;;;;;;;23962:558;;;;;:::o;3122:109::-;2228:9;:7;:9::i;:::-;2220:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3195:28;3214:8;3195:18;:28::i;:::-;3122:109;:::o;5633:136::-;5691:7;5718:43;5722:1;5725;5718:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;5711:50;;5633:136;;;;:::o;6549:471::-;6607:7;6857:1;6852;:6;6848:47;;;6882:1;6875:8;;;;6848:47;6907:9;6923:1;6919;:5;6907:17;;6952:1;6947;6943;:5;;;;;;:10;6935:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7011:1;7004:8;;;6549:471;;;;;:::o;7488:132::-;7546:7;7573:39;7577:1;7580;7573:39;;;;;;;;;;;;;;;;;:3;:39::i;:::-;7566:46;;7488:132;;;;:::o;5177:181::-;5235:7;5255:9;5271:1;5267;:5;5255:17;;5296:1;5291;:6;;5283:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5349:1;5342:8;;;5177:181;;;;:::o;16125:176::-;16208:85;16227:5;16257;:14;;;:23;;;;16282:2;16286:5;16234:58;;;;;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;16234:58:0;;;;;;;38:4:-1;29:7;25:18;67:10;61:17;96:58;199:8;192:4;186;182:15;179:29;167:10;160:49;0:215;;;16234:58:0;16208:18;:85::i;:::-;16125:176;;;:::o;3920:106::-;3978:7;4009:1;4005;:5;:13;;4017:1;4005:13;;;4013:1;4005:13;3998:20;;3920:106;;;;:::o;807:98::-;852:15;887:10;880:17;;807:98;:::o;16309:204::-;16410:95;16429:5;16459;:18;;;:27;;;;16488:4;16494:2;16498:5;16436:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;16436:68:0;;;;;;;38:4:-1;29:7;25:18;67:10;61:17;96:58;199:8;192:4;186;182:15;179:29;167:10;160:49;0:215;;;16436:68:0;16410:18;:95::i;:::-;16309:204;;;;:::o;3337:229::-;3431:1;3411:22;;:8;:22;;;;3403:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3521:8;3492:38;;3513:6;;;;;;;;;;;3492:38;;;;;;;;;;;;3550:8;3541:6;;:17;;;;;;;;;;;;;;;;;;3337:229;:::o;6106:192::-;6192:7;6225:1;6220;:6;;6228:12;6212:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;6212:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6252:9;6268:1;6264;:5;6252:17;;6289:1;6282:8;;;6106:192;;;;;:::o;8150:345::-;8236:7;8335:1;8331;:5;8338:12;8323:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;8323:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8362:9;8378:1;8374;:5;;;;;;8362:17;;8486:1;8479:8;;;8150:345;;;;;:::o;18164:1114::-;18768:27;18776:5;18768:25;;;:27::i;:::-;18760:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18905:12;18919:23;18954:5;18946:19;;18966:4;18946:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;18946:25:0;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;18904:67:0;;;;18990:7;18982:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19071:1;19051:10;:17;:21;19047:224;;;19193:10;19182:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;19182:30:0;;;;;;;;;;;;;;;;19174:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19047:224;18164:1114;;;;:::o;13249:619::-;13309:4;13571:16;13598:19;13620:66;13598:88;;;;13789:7;13777:20;13765:32;;13829:11;13817:8;:23;;:42;;;;;13856:3;13844:15;;:8;:15;;13817:42;13809:51;;;;13249:619;;;:::o

Swarm Source

bzzr://79b495e3aef556329096ff89d011277b0b9663d8239cfbecce50d9b4b7c2da7e

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

OVERVIEW

The project consists of tokens namely has-hrate certificates pBTC35A, pETH18C, and MARS. Each pBTC35A represents 1TH/s Bitcoin mining power while one pETH18C is collateralized by 1MH/s Ethereum mining power. Yields will be distributed via corresponding pools, on-chain.

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.