ETH Price: $2,467.69 (+3.90%)

Contract

0x2Fc555d589E244E1Fe5D56Ca3498d25C5988cA30
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw122162902021-04-11 3:40:271257 days ago1618112427IN
0x2Fc555d5...C5988cA30
0 ETH0.0059214365.00000134
Get Reward122102032021-04-10 5:18:141258 days ago1618031894IN
0x2Fc555d5...C5988cA30
0 ETH0.00963348111.1
Withdraw122101952021-04-10 5:16:291258 days ago1618031789IN
0x2Fc555d5...C5988cA30
0 ETH0.01589341111.1
Exit119511072021-03-01 7:56:051298 days ago1614585365IN
0x2Fc555d5...C5988cA30
0 ETH0.0115723277.1
Withdraw119502152021-03-01 4:34:001298 days ago1614573240IN
0x2Fc555d5...C5988cA30
0 ETH0.0099873578
Exit117316902021-01-26 13:50:291332 days ago1611669029IN
0x2Fc555d5...C5988cA30
0 ETH0.0090657360.4
Get Reward117225632021-01-25 4:09:261333 days ago1611547766IN
0x2Fc555d5...C5988cA30
0 ETH0.0113641131.19498089
Withdraw117225592021-01-25 4:08:561333 days ago1611547736IN
0x2Fc555d5...C5988cA30
0 ETH0.01213051133.14
Withdraw117095232021-01-23 4:06:221335 days ago1611374782IN
0x2Fc555d5...C5988cA30
0 ETH0.0085825860.00000112
Stake With Ref115811272021-01-03 11:06:391355 days ago1609671999IN
0x2Fc555d5...C5988cA30
0 ETH0.01088591105.63
Withdraw115811022021-01-03 11:00:091355 days ago1609671609IN
0x2Fc555d5...C5988cA30
0 ETH0.0100412894.63
Get Reward115810582021-01-03 10:50:151355 days ago1609671015IN
0x2Fc555d5...C5988cA30
0 ETH0.0076097374.8179536
Exit115384982020-12-27 22:11:361362 days ago1609107096IN
0x2Fc555d5...C5988cA30
0 ETH0.0146934589
Withdraw115298692020-12-26 14:30:111363 days ago1608993011IN
0x2Fc555d5...C5988cA30
0 ETH0.0053128958.32
Get Reward115298632020-12-26 14:28:271363 days ago1608992907IN
0x2Fc555d5...C5988cA30
0 ETH0.0057680557.2137296
Get Reward115273832020-12-26 5:26:591363 days ago1608960419IN
0x2Fc555d5...C5988cA30
0 ETH0.0036572336.3087136
Withdraw115020492020-12-22 7:58:341367 days ago1608623914IN
0x2Fc555d5...C5988cA30
0 ETH0.0029073531.91
Get Reward114956512020-12-21 8:32:471368 days ago1608539567IN
0x2Fc555d5...C5988cA30
0 ETH0.0032955734.11
Get Reward114949392020-12-21 6:02:451368 days ago1608530565IN
0x2Fc555d5...C5988cA30
0 ETH0.0048980442
Withdraw114949332020-12-21 6:01:511368 days ago1608530511IN
0x2Fc555d5...C5988cA30
0 ETH0.0038266642
Get Reward114804892020-12-19 0:39:051370 days ago1608338345IN
0x2Fc555d5...C5988cA30
0 ETH0.003489940.71
Withdraw114804872020-12-19 0:38:241370 days ago1608338304IN
0x2Fc555d5...C5988cA30
0 ETH0.0029768939.11872914
Withdraw114788452020-12-18 18:46:101371 days ago1608317170IN
0x2Fc555d5...C5988cA30
0 ETH0.0040174644.1
Get Reward114788412020-12-18 18:44:351371 days ago1608317075IN
0x2Fc555d5...C5988cA30
0 ETH0.0049222644.1
Withdraw114767352020-12-18 10:48:441371 days ago1608288524IN
0x2Fc555d5...C5988cA30
0 ETH0.00903437118.7
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:
MGRewardSGRGPool

Compiler Version
v0.5.8+commit.23d335f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-11-14
*/

pragma solidity ^0.5.0;

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

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

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

pragma solidity ^0.5.0;

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

        return c;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     *
     * _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;
    }
}

pragma solidity ^0.5.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
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;
    }
}

// File: @openzeppelin/contracts/ownership/Ownable.sol

pragma solidity ^0.5.0;

/**
 * @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 {
        _owner = _msgSender();
        emit OwnershipTransferred(address(0), _owner);
    }

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

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol

pragma solidity ^0.5.0;

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

    function mint(address account, uint256 amount) external;

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

// File: @openzeppelin/contracts/utils/Address.sol

pragma solidity ^0.5.5;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * This test is non-exhaustive, and there may be false-negatives: during the
     * execution of a contract's constructor, its address will be reported as
     * not containing 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.
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies in extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        // 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 != 0x0 && codehash != accountHash);
    }

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

// File: @openzeppelin/contracts/token/ERC20/SafeERC20.sol

pragma solidity ^0.5.0;

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

pragma solidity ^0.5.0;

contract IRewardDistributionRecipient is Ownable {
    address rewardDistribution;

    // function notifyRewardAmount(uint256 reward) external;

    modifier onlyRewardDistribution() {
        require(
            _msgSender() == rewardDistribution,
            "Caller is not reward distribution"
        );
        _;
    }

    function setRewardDistribution(address _rewardDistribution)
        external
        onlyOwner
    {
        require(
            _rewardDistribution != address(0),
            "rewardDistribution can't be address(0) !"
        );
        rewardDistribution = _rewardDistribution;
    }
}

interface IRef {
    function set_admin(address a) external;

    function set_referrer(address r) external;

    function add_score(uint256 d) external;
}

pragma solidity ^0.5.0;

contract LPTokenWrapper {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    IERC20 public y = IERC20(0xE58eb0e623d06e329020813568124E3541A36fCc);

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

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

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

    function stake(uint256 amount) public {
        _totalSupply = _totalSupply.add(amount);
        _balances[msg.sender] = _balances[msg.sender].add(amount);
        y.safeTransferFrom(msg.sender, address(this), amount);
    }

    function withdraw(uint256 amount) public {
        _totalSupply = _totalSupply.sub(amount);
        _balances[msg.sender] = _balances[msg.sender].sub(amount);
        y.safeTransfer(msg.sender, amount);
    }
}

contract MGRewardSGRGPool is LPTokenWrapper, IRewardDistributionRecipient {
    address public developer;

    bool isInit = true;

    IERC20 public yieldToken = IERC20(0x2c4Cd2DeCa2397B12f0982eee383C56895dfD31b);

    IERC20 public sgToken = IERC20(0x523EEAfdaC23FA2CB0C3873CdA4818cdc80e28E8);

    IRef public ref = IRef(0x08b8C77A770BbE8E19A8b2E7d90516F0ED7a6D57);

    uint256 public sgTokenLimit = 10 * 1e18;

    uint256 public constant DURATION = 30 days;

    // init 750, total 1500. 50% reduction in production every 30 days
    uint256 public initreward = 750 * 1e18;
    uint256 public starttime = 1605380400;
    uint256 public periodFinish = 0;
    uint256 public rewardRate = 0;
    uint256 public lastUpdateTime;
    uint256 public rewardPerTokenStored;
    mapping(address => uint256) public userRewardPerTokenPaid;
    mapping(address => uint256) public rewards;

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

    modifier onlyDeveloper() {
        require(msg.sender == developer);
        _;
    }

    constructor() public {
        developer = msg.sender;
        periodFinish = starttime.add(DURATION);
    }

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

    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
            balanceOf(account)
                .mul(rewardPerToken().sub(userRewardPerTokenPaid[account]))
                .div(1e18)
                .add(rewards[account]);
    }

    // stake visibility is public as overriding LPTokenWrapper's stake() function
    function stake(uint256 amount)
        public
        updateReward(msg.sender)
        checkhalve
        checkStart
    {
        require(amount > 0, "Cannot stake 0");
        super.stake(amount);
        emit Staked(msg.sender, amount);
    }

    function stakeWithRef(uint256 amount, address r) external {
        stake(amount);
        if (msg.sender != r) {
            if (sgToken.balanceOf(r) >= sgTokenLimit) {
                ref.set_referrer(r);
            }
        }
    }

    function withdraw(uint256 amount)
        public
        updateReward(msg.sender)
        checkhalve
        checkStart
    {
        require(amount > 0, "Cannot withdraw 0");
        super.withdraw(amount);
        emit Withdrawn(msg.sender, amount);
    }

    function exit() external {
        withdraw(balanceOf(msg.sender));
        getReward();
    }

    function setDeveloper(address _developer) public onlyDeveloper {
        require(_developer != address(0), "developer can't be address(0)");
        developer = _developer;
    }

    function setSgTokenLimit(uint256 _limit) public onlyDeveloper {
        sgTokenLimit = _limit;
    }

    function getReward() public updateReward(msg.sender) checkhalve checkStart {
        uint256 reward = earned(msg.sender);
        if (reward > 0) {
            rewards[msg.sender] = 0;
            yieldToken.safeTransfer(msg.sender, reward);
            ref.add_score(reward);
            emit RewardPaid(msg.sender, reward);
        }
    }

    modifier checkhalve() {
        if (block.timestamp >= periodFinish) {
            initreward = initreward.mul(50).div(100);
            yieldToken.mint(address(this), initreward);
            yieldToken.mint(developer, initreward.mul(10).div(100));

            rewardRate = initreward.div(DURATION);
            periodFinish = block.timestamp.add(DURATION);
            emit RewardAdded(initreward);
        }
        _;
    }

    modifier checkStart() {
        require(block.timestamp > starttime, "not start");
        _;
    }

    function initialization() external onlyDeveloper updateReward(address(0)) {
        require(isInit, "not initialization");

        rewardRate = initreward.div(DURATION);
        yieldToken.mint(address(this), initreward);
        yieldToken.mint(developer, initreward.mul(10).div(100));

        isInit = false;
        emit RewardAdded(initreward);
    }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[{"name":"account","type":"address"}],"name":"earned","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"rewards","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_rewardDistribution","type":"address"}],"name":"setRewardDistribution","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"DURATION","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ref","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"sgTokenLimit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"},{"name":"r","type":"address"}],"name":"stakeWithRef","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getReward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"account","type":"address"}],"name":"balanceOf","outputs":[{"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":"yieldToken","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardRate","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"starttime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"initreward","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"y","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"stake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"sgToken","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"initialization","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"lastUpdateTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"developer","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerToken","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerTokenStored","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"exit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"periodFinish","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_limit","type":"uint256"}],"name":"setSgTokenLimit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_developer","type":"address"}],"name":"setDeveloper","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"user","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"user","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"user","type":"address"},{"indexed":false,"name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]

6080604052600080546001600160a01b031990811673e58eb0e623d06e329020813568124e3541a36fcc17825560058054600160a01b60ff02191674010000000000000000000000000000000000000000179055600680548216732c4cd2deca2397b12f0982eee383c56895dfd31b17905560078054821673523eeafdac23fa2cb0c3873cda4818cdc80e28e8179055600880549091167308b8c77a770bbe8e19a8b2e7d90516f0ed7a6d57179055678ac7230489e800006009556828a857425466f80000600a55635fb02930600b55600c819055600d553480156100e357600080fd5b506100f261017560201b60201c565b600380546001600160a01b0319166001600160a01b0392831617908190556040519116906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a360058054336001600160a01b0319909116179055600b5461016d9062278d00610179602090811b6115b517901c565b600c556101f4565b3390565b6000828201838110156101ed57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b611c3080620002046000396000f3fe608060405234801561001057600080fd5b50600436106101fa5760003560e01c80638da588971161011a578063c8f33c91116100ad578063e9fad8ee1161007c578063e9fad8ee14610407578063ebe2b12b1461040f578063f099304c14610417578063f2fde38b14610434578063ff70fa491461045a576101fa565b8063c8f33c91146103e7578063ca4b208b146103ef578063cd3daf9d146103f7578063df136d65146103ff576101fa565b8063a56dfe4a116100e9578063a56dfe4a146103b2578063a694fc3a146103ba578063ac66ea8d146103d7578063c172085e146103df576101fa565b80638da588971461037e5780638da5cb5b146103865780638f32d59b1461038e5780639c907b58146103aa576101fa565b80632fe597d71161019257806376d5de851161016157806376d5de85146103405780637b0a47ee1461034857806380faa57d146103505780638b87634714610358576101fa565b80632fe597d7146102de5780633d18b9121461030a57806370a0823114610312578063715018a614610338576101fa565b80631be05289116101ce5780631be052891461028d57806321a78f68146102955780632a934a32146102b95780632e1a7d4d146102c1576101fa565b80628cc262146101ff5780630700037d146102375780630d68b7611461025d57806318160ddd14610285575b600080fd5b6102256004803603602081101561021557600080fd5b50356001600160a01b0316610480565b60408051918252519081900360200190f35b6102256004803603602081101561024d57600080fd5b50356001600160a01b0316610506565b6102836004803603602081101561027357600080fd5b50356001600160a01b0316610518565b005b6102256105de565b6102256105e5565b61029d6105ec565b604080516001600160a01b039092168252519081900360200190f35b6102256105fb565b610283600480360360208110156102d757600080fd5b5035610601565b610283600480360360408110156102f457600080fd5b50803590602001356001600160a01b03166108c1565b6102836109cc565b6102256004803603602081101561032857600080fd5b50356001600160a01b0316610ccf565b610283610cea565b61029d610d90565b610225610d9f565b610225610da5565b6102256004803603602081101561036e57600080fd5b50356001600160a01b0316610db8565b610225610dca565b61029d610dd0565b610396610ddf565b604080519115158252519081900360200190f35b610225610e05565b61029d610e0b565b610283600480360360208110156103d057600080fd5b5035610e1a565b61029d6110da565b6102836110e9565b610225611323565b61029d611329565b610225611338565b61022561138c565b610283611392565b6102256113ad565b6102836004803603602081101561042d57600080fd5b50356113b3565b6102836004803603602081101561044a57600080fd5b50356001600160a01b03166113cf565b6102836004803603602081101561047057600080fd5b50356001600160a01b0316611437565b6001600160a01b038116600090815260116020908152604080832054601090925282205461050091906104f490670de0b6b3a7640000906104e8906104d3906104c7611338565b9063ffffffff6114ce16565b6104dc88610ccf565b9063ffffffff61151716565b9063ffffffff61157316565b9063ffffffff6115b516565b92915050565b60116020526000908152604090205481565b610520610ddf565b6105745760408051600160e51b62461bcd02815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166105bc57604051600160e51b62461bcd028152600401808060200182810382526028815260200180611bdd6028913960400191505060405180910390fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6001545b90565b62278d0081565b6008546001600160a01b031681565b60095481565b3361060a611338565b600f55610615610da5565b600e556001600160a01b0381161561065c5761063081610480565b6001600160a01b038216600090815260116020908152604080832093909355600f546010909152919020555b600c5442106107de5761068060646104e86032600a5461151790919063ffffffff16565b600a81905560065460408051600160e01b6340c10f190281523060048201526024810193909352516001600160a01b03909116916340c10f1991604480830192600092919082900301818387803b1580156106da57600080fd5b505af11580156106ee573d6000803e3d6000fd5b5050600654600554600a80546001600160a01b0393841695506340c10f1994509290911691610723916064916104e891611517565b6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050600060405180830381600087803b15801561077257600080fd5b505af1158015610786573d6000803e3d6000fd5b5050600a546107a19250905062278d0063ffffffff61157316565b600d556107b74262278d0063ffffffff6115b516565b600c55600a546040805191825251600080516020611b728339815191529181900360200190a15b600b5442116108265760408051600160e51b62461bcd0281526020600482015260096024820152600160ba1b681b9bdd081cdd185c9d02604482015290519081900360640190fd5b6000821161087e5760408051600160e51b62461bcd02815260206004820152601160248201527f43616e6e6f742077697468647261772030000000000000000000000000000000604482015290519081900360640190fd5b61088782611612565b60408051838152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b6108ca82610e1a565b336001600160a01b038216146109c85760095460075460408051600160e01b6370a082310281526001600160a01b038581166004830152915191909216916370a08231916024808301926020929190829003018186803b15801561092d57600080fd5b505afa158015610941573d6000803e3d6000fd5b505050506040513d602081101561095757600080fd5b5051106109c85760085460408051600160e11b6301036c990281526001600160a01b03848116600483015291519190921691630206d93291602480830192600092919082900301818387803b1580156109af57600080fd5b505af11580156109c3573d6000803e3d6000fd5b505050505b5050565b336109d5611338565b600f556109e0610da5565b600e556001600160a01b03811615610a27576109fb81610480565b6001600160a01b038216600090815260116020908152604080832093909355600f546010909152919020555b600c544210610ba957610a4b60646104e86032600a5461151790919063ffffffff16565b600a81905560065460408051600160e01b6340c10f190281523060048201526024810193909352516001600160a01b03909116916340c10f1991604480830192600092919082900301818387803b158015610aa557600080fd5b505af1158015610ab9573d6000803e3d6000fd5b5050600654600554600a80546001600160a01b0393841695506340c10f1994509290911691610aee916064916104e891611517565b6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015610b3d57600080fd5b505af1158015610b51573d6000803e3d6000fd5b5050600a54610b6c9250905062278d0063ffffffff61157316565b600d55610b824262278d0063ffffffff6115b516565b600c55600a546040805191825251600080516020611b728339815191529181900360200190a15b600b544211610bf15760408051600160e51b62461bcd0281526020600482015260096024820152600160ba1b681b9bdd081cdd185c9d02604482015290519081900360640190fd5b6000610bfc33610480565b905080156109c85733600081815260116020526040812055600654610c2d916001600160a01b03909116908361166f565b60085460408051600160e11b63026472f30281526004810184905290516001600160a01b03909216916304c8e5e69160248082019260009290919082900301818387803b158015610c7d57600080fd5b505af1158015610c91573d6000803e3d6000fd5b50506040805184815290513393507fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048692509081900360200190a25050565b6001600160a01b031660009081526002602052604090205490565b610cf2610ddf565b610d465760408051600160e51b62461bcd02815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6003546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600380546001600160a01b0319169055565b6006546001600160a01b031681565b600d5481565b6000610db342600c546116c9565b905090565b60106020526000908152604090205481565b600b5481565b6003546001600160a01b031690565b6003546000906001600160a01b0316610df66116df565b6001600160a01b031614905090565b600a5481565b6000546001600160a01b031681565b33610e23611338565b600f55610e2e610da5565b600e556001600160a01b03811615610e7557610e4981610480565b6001600160a01b038216600090815260116020908152604080832093909355600f546010909152919020555b600c544210610ff757610e9960646104e86032600a5461151790919063ffffffff16565b600a81905560065460408051600160e01b6340c10f190281523060048201526024810193909352516001600160a01b03909116916340c10f1991604480830192600092919082900301818387803b158015610ef357600080fd5b505af1158015610f07573d6000803e3d6000fd5b5050600654600554600a80546001600160a01b0393841695506340c10f1994509290911691610f3c916064916104e891611517565b6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015610f8b57600080fd5b505af1158015610f9f573d6000803e3d6000fd5b5050600a54610fba9250905062278d0063ffffffff61157316565b600d55610fd04262278d0063ffffffff6115b516565b600c55600a546040805191825251600080516020611b728339815191529181900360200190a15b600b54421161103f5760408051600160e51b62461bcd0281526020600482015260096024820152600160ba1b681b9bdd081cdd185c9d02604482015290519081900360640190fd5b600082116110975760408051600160e51b62461bcd02815260206004820152600e60248201527f43616e6e6f74207374616b652030000000000000000000000000000000000000604482015290519081900360640190fd5b6110a0826116e3565b60408051838152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a25050565b6007546001600160a01b031681565b6005546001600160a01b0316331461110057600080fd5b600061110a611338565b600f55611115610da5565b600e556001600160a01b0381161561115c5761113081610480565b6001600160a01b038216600090815260116020908152604080832093909355600f546010909152919020555b600554600160a01b900460ff166111bd5760408051600160e51b62461bcd02815260206004820152601260248201527f6e6f7420696e697469616c697a6174696f6e0000000000000000000000000000604482015290519081900360640190fd5b600a546111d39062278d0063ffffffff61157316565b600d55600654600a5460408051600160e01b6340c10f190281523060048201526024810192909252516001600160a01b03909216916340c10f199160448082019260009290919082900301818387803b15801561122f57600080fd5b505af1158015611243573d6000803e3d6000fd5b5050600654600554600a80546001600160a01b0393841695506340c10f1994509290911691611278916064916104e891611517565b6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050600060405180830381600087803b1580156112c757600080fd5b505af11580156112db573d6000803e3d6000fd5b50506005805474ff0000000000000000000000000000000000000000191690555050600a546040805191825251600080516020611b728339815191529181900360200190a150565b600e5481565b6005546001600160a01b031681565b60006113426105de565b61134f5750600f546105e2565b610db361137d61135d6105de565b6104e8670de0b6b3a76400006104dc600d546104dc600e546104c7610da5565b600f549063ffffffff6115b516565b600f5481565b6113a361139e33610ccf565b610601565b6113ab6109cc565b565b600c5481565b6005546001600160a01b031633146113ca57600080fd5b600955565b6113d7610ddf565b61142b5760408051600160e51b62461bcd02815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61143481611745565b50565b6005546001600160a01b0316331461144e57600080fd5b6001600160a01b0381166114ac5760408051600160e51b62461bcd02815260206004820152601d60248201527f646576656c6f7065722063616e27742062652061646472657373283029000000604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b0392909216919091179055565b600061151083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506117e9565b9392505050565b60008261152657506000610500565b8282028284828161153357fe5b041461151057604051600160e51b62461bcd028152600401808060200182810382526021815260200180611b926021913960400191505060405180910390fd5b600061151083836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611883565b6000828201838110156115105760408051600160e51b62461bcd02815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600154611625908263ffffffff6114ce16565b60015533600090815260026020526040902054611648908263ffffffff6114ce16565b336000818152600260205260408120929092559054611434916001600160a01b0390911690835b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0316600160e01b63a9059cbb021790526116c49084906118eb565b505050565b60008183106116d85781611510565b5090919050565b3390565b6001546116f6908263ffffffff6115b516565b60015533600090815260026020526040902054611719908263ffffffff6115b516565b336000818152600260205260408120929092559054611434916001600160a01b03909116903084611ab2565b6001600160a01b03811661178d57604051600160e51b62461bcd028152600401808060200182810382526026815260200180611b4c6026913960400191505060405180910390fd5b6003546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600380546001600160a01b0319166001600160a01b0392909216919091179055565b6000818484111561187b57604051600160e51b62461bcd0281526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611840578181015183820152602001611828565b50505050905090810190601f16801561186d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836118d557604051600160e51b62461bcd028152602060048201818152835160248401528351909283926044909101919085019080838360008315611840578181015183820152602001611828565b5060008385816118e157fe5b0495945050505050565b6118fd826001600160a01b0316611b0f565b6119515760408051600160e51b62461bcd02815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b6020831061198f5780518252601f199092019160209182019101611970565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146119f1576040519150601f19603f3d011682016040523d82523d6000602084013e6119f6565b606091505b509150915081611a505760408051600160e51b62461bcd02815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115611aac57808060200190516020811015611a6c57600080fd5b5051611aac57604051600160e51b62461bcd02815260040180806020018281038252602a815260200180611bb3602a913960400191505060405180910390fd5b50505050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b0316600160e01b6323b872dd02179052611aac9085906118eb565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708115801590611b435750808214155b94935050505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373de88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564726577617264446973747269627574696f6e2063616e277420626520616464726573732830292021a165627a7a72305820d97f47402d3133363deece740c148427b02d64a3b7232e5410e6e8a77e8f91930029

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101fa5760003560e01c80638da588971161011a578063c8f33c91116100ad578063e9fad8ee1161007c578063e9fad8ee14610407578063ebe2b12b1461040f578063f099304c14610417578063f2fde38b14610434578063ff70fa491461045a576101fa565b8063c8f33c91146103e7578063ca4b208b146103ef578063cd3daf9d146103f7578063df136d65146103ff576101fa565b8063a56dfe4a116100e9578063a56dfe4a146103b2578063a694fc3a146103ba578063ac66ea8d146103d7578063c172085e146103df576101fa565b80638da588971461037e5780638da5cb5b146103865780638f32d59b1461038e5780639c907b58146103aa576101fa565b80632fe597d71161019257806376d5de851161016157806376d5de85146103405780637b0a47ee1461034857806380faa57d146103505780638b87634714610358576101fa565b80632fe597d7146102de5780633d18b9121461030a57806370a0823114610312578063715018a614610338576101fa565b80631be05289116101ce5780631be052891461028d57806321a78f68146102955780632a934a32146102b95780632e1a7d4d146102c1576101fa565b80628cc262146101ff5780630700037d146102375780630d68b7611461025d57806318160ddd14610285575b600080fd5b6102256004803603602081101561021557600080fd5b50356001600160a01b0316610480565b60408051918252519081900360200190f35b6102256004803603602081101561024d57600080fd5b50356001600160a01b0316610506565b6102836004803603602081101561027357600080fd5b50356001600160a01b0316610518565b005b6102256105de565b6102256105e5565b61029d6105ec565b604080516001600160a01b039092168252519081900360200190f35b6102256105fb565b610283600480360360208110156102d757600080fd5b5035610601565b610283600480360360408110156102f457600080fd5b50803590602001356001600160a01b03166108c1565b6102836109cc565b6102256004803603602081101561032857600080fd5b50356001600160a01b0316610ccf565b610283610cea565b61029d610d90565b610225610d9f565b610225610da5565b6102256004803603602081101561036e57600080fd5b50356001600160a01b0316610db8565b610225610dca565b61029d610dd0565b610396610ddf565b604080519115158252519081900360200190f35b610225610e05565b61029d610e0b565b610283600480360360208110156103d057600080fd5b5035610e1a565b61029d6110da565b6102836110e9565b610225611323565b61029d611329565b610225611338565b61022561138c565b610283611392565b6102256113ad565b6102836004803603602081101561042d57600080fd5b50356113b3565b6102836004803603602081101561044a57600080fd5b50356001600160a01b03166113cf565b6102836004803603602081101561047057600080fd5b50356001600160a01b0316611437565b6001600160a01b038116600090815260116020908152604080832054601090925282205461050091906104f490670de0b6b3a7640000906104e8906104d3906104c7611338565b9063ffffffff6114ce16565b6104dc88610ccf565b9063ffffffff61151716565b9063ffffffff61157316565b9063ffffffff6115b516565b92915050565b60116020526000908152604090205481565b610520610ddf565b6105745760408051600160e51b62461bcd02815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166105bc57604051600160e51b62461bcd028152600401808060200182810382526028815260200180611bdd6028913960400191505060405180910390fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6001545b90565b62278d0081565b6008546001600160a01b031681565b60095481565b3361060a611338565b600f55610615610da5565b600e556001600160a01b0381161561065c5761063081610480565b6001600160a01b038216600090815260116020908152604080832093909355600f546010909152919020555b600c5442106107de5761068060646104e86032600a5461151790919063ffffffff16565b600a81905560065460408051600160e01b6340c10f190281523060048201526024810193909352516001600160a01b03909116916340c10f1991604480830192600092919082900301818387803b1580156106da57600080fd5b505af11580156106ee573d6000803e3d6000fd5b5050600654600554600a80546001600160a01b0393841695506340c10f1994509290911691610723916064916104e891611517565b6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050600060405180830381600087803b15801561077257600080fd5b505af1158015610786573d6000803e3d6000fd5b5050600a546107a19250905062278d0063ffffffff61157316565b600d556107b74262278d0063ffffffff6115b516565b600c55600a546040805191825251600080516020611b728339815191529181900360200190a15b600b5442116108265760408051600160e51b62461bcd0281526020600482015260096024820152600160ba1b681b9bdd081cdd185c9d02604482015290519081900360640190fd5b6000821161087e5760408051600160e51b62461bcd02815260206004820152601160248201527f43616e6e6f742077697468647261772030000000000000000000000000000000604482015290519081900360640190fd5b61088782611612565b60408051838152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b6108ca82610e1a565b336001600160a01b038216146109c85760095460075460408051600160e01b6370a082310281526001600160a01b038581166004830152915191909216916370a08231916024808301926020929190829003018186803b15801561092d57600080fd5b505afa158015610941573d6000803e3d6000fd5b505050506040513d602081101561095757600080fd5b5051106109c85760085460408051600160e11b6301036c990281526001600160a01b03848116600483015291519190921691630206d93291602480830192600092919082900301818387803b1580156109af57600080fd5b505af11580156109c3573d6000803e3d6000fd5b505050505b5050565b336109d5611338565b600f556109e0610da5565b600e556001600160a01b03811615610a27576109fb81610480565b6001600160a01b038216600090815260116020908152604080832093909355600f546010909152919020555b600c544210610ba957610a4b60646104e86032600a5461151790919063ffffffff16565b600a81905560065460408051600160e01b6340c10f190281523060048201526024810193909352516001600160a01b03909116916340c10f1991604480830192600092919082900301818387803b158015610aa557600080fd5b505af1158015610ab9573d6000803e3d6000fd5b5050600654600554600a80546001600160a01b0393841695506340c10f1994509290911691610aee916064916104e891611517565b6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015610b3d57600080fd5b505af1158015610b51573d6000803e3d6000fd5b5050600a54610b6c9250905062278d0063ffffffff61157316565b600d55610b824262278d0063ffffffff6115b516565b600c55600a546040805191825251600080516020611b728339815191529181900360200190a15b600b544211610bf15760408051600160e51b62461bcd0281526020600482015260096024820152600160ba1b681b9bdd081cdd185c9d02604482015290519081900360640190fd5b6000610bfc33610480565b905080156109c85733600081815260116020526040812055600654610c2d916001600160a01b03909116908361166f565b60085460408051600160e11b63026472f30281526004810184905290516001600160a01b03909216916304c8e5e69160248082019260009290919082900301818387803b158015610c7d57600080fd5b505af1158015610c91573d6000803e3d6000fd5b50506040805184815290513393507fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048692509081900360200190a25050565b6001600160a01b031660009081526002602052604090205490565b610cf2610ddf565b610d465760408051600160e51b62461bcd02815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6003546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600380546001600160a01b0319169055565b6006546001600160a01b031681565b600d5481565b6000610db342600c546116c9565b905090565b60106020526000908152604090205481565b600b5481565b6003546001600160a01b031690565b6003546000906001600160a01b0316610df66116df565b6001600160a01b031614905090565b600a5481565b6000546001600160a01b031681565b33610e23611338565b600f55610e2e610da5565b600e556001600160a01b03811615610e7557610e4981610480565b6001600160a01b038216600090815260116020908152604080832093909355600f546010909152919020555b600c544210610ff757610e9960646104e86032600a5461151790919063ffffffff16565b600a81905560065460408051600160e01b6340c10f190281523060048201526024810193909352516001600160a01b03909116916340c10f1991604480830192600092919082900301818387803b158015610ef357600080fd5b505af1158015610f07573d6000803e3d6000fd5b5050600654600554600a80546001600160a01b0393841695506340c10f1994509290911691610f3c916064916104e891611517565b6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015610f8b57600080fd5b505af1158015610f9f573d6000803e3d6000fd5b5050600a54610fba9250905062278d0063ffffffff61157316565b600d55610fd04262278d0063ffffffff6115b516565b600c55600a546040805191825251600080516020611b728339815191529181900360200190a15b600b54421161103f5760408051600160e51b62461bcd0281526020600482015260096024820152600160ba1b681b9bdd081cdd185c9d02604482015290519081900360640190fd5b600082116110975760408051600160e51b62461bcd02815260206004820152600e60248201527f43616e6e6f74207374616b652030000000000000000000000000000000000000604482015290519081900360640190fd5b6110a0826116e3565b60408051838152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a25050565b6007546001600160a01b031681565b6005546001600160a01b0316331461110057600080fd5b600061110a611338565b600f55611115610da5565b600e556001600160a01b0381161561115c5761113081610480565b6001600160a01b038216600090815260116020908152604080832093909355600f546010909152919020555b600554600160a01b900460ff166111bd5760408051600160e51b62461bcd02815260206004820152601260248201527f6e6f7420696e697469616c697a6174696f6e0000000000000000000000000000604482015290519081900360640190fd5b600a546111d39062278d0063ffffffff61157316565b600d55600654600a5460408051600160e01b6340c10f190281523060048201526024810192909252516001600160a01b03909216916340c10f199160448082019260009290919082900301818387803b15801561122f57600080fd5b505af1158015611243573d6000803e3d6000fd5b5050600654600554600a80546001600160a01b0393841695506340c10f1994509290911691611278916064916104e891611517565b6040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050600060405180830381600087803b1580156112c757600080fd5b505af11580156112db573d6000803e3d6000fd5b50506005805474ff0000000000000000000000000000000000000000191690555050600a546040805191825251600080516020611b728339815191529181900360200190a150565b600e5481565b6005546001600160a01b031681565b60006113426105de565b61134f5750600f546105e2565b610db361137d61135d6105de565b6104e8670de0b6b3a76400006104dc600d546104dc600e546104c7610da5565b600f549063ffffffff6115b516565b600f5481565b6113a361139e33610ccf565b610601565b6113ab6109cc565b565b600c5481565b6005546001600160a01b031633146113ca57600080fd5b600955565b6113d7610ddf565b61142b5760408051600160e51b62461bcd02815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61143481611745565b50565b6005546001600160a01b0316331461144e57600080fd5b6001600160a01b0381166114ac5760408051600160e51b62461bcd02815260206004820152601d60248201527f646576656c6f7065722063616e27742062652061646472657373283029000000604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b0392909216919091179055565b600061151083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506117e9565b9392505050565b60008261152657506000610500565b8282028284828161153357fe5b041461151057604051600160e51b62461bcd028152600401808060200182810382526021815260200180611b926021913960400191505060405180910390fd5b600061151083836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611883565b6000828201838110156115105760408051600160e51b62461bcd02815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600154611625908263ffffffff6114ce16565b60015533600090815260026020526040902054611648908263ffffffff6114ce16565b336000818152600260205260408120929092559054611434916001600160a01b0390911690835b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0316600160e01b63a9059cbb021790526116c49084906118eb565b505050565b60008183106116d85781611510565b5090919050565b3390565b6001546116f6908263ffffffff6115b516565b60015533600090815260026020526040902054611719908263ffffffff6115b516565b336000818152600260205260408120929092559054611434916001600160a01b03909116903084611ab2565b6001600160a01b03811661178d57604051600160e51b62461bcd028152600401808060200182810382526026815260200180611b4c6026913960400191505060405180910390fd5b6003546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600380546001600160a01b0319166001600160a01b0392909216919091179055565b6000818484111561187b57604051600160e51b62461bcd0281526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611840578181015183820152602001611828565b50505050905090810190601f16801561186d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836118d557604051600160e51b62461bcd028152602060048201818152835160248401528351909283926044909101919085019080838360008315611840578181015183820152602001611828565b5060008385816118e157fe5b0495945050505050565b6118fd826001600160a01b0316611b0f565b6119515760408051600160e51b62461bcd02815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b6020831061198f5780518252601f199092019160209182019101611970565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146119f1576040519150601f19603f3d011682016040523d82523d6000602084013e6119f6565b606091505b509150915081611a505760408051600160e51b62461bcd02815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115611aac57808060200190516020811015611a6c57600080fd5b5051611aac57604051600160e51b62461bcd02815260040180806020018281038252602a815260200180611bb3602a913960400191505060405180910390fd5b50505050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b0316600160e01b6323b872dd02179052611aac9085906118eb565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708115801590611b435750808214155b94935050505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373de88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564726577617264446973747269627574696f6e2063616e277420626520616464726573732830292021a165627a7a72305820d97f47402d3133363deece740c148427b02d64a3b7232e5410e6e8a77e8f91930029

Deployed Bytecode Sourcemap

22619:5081:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;22619:5081:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24871:265;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24871:265:0;-1:-1:-1;;;;;24871:265:0;;:::i;:::-;;;;;;;;;;;;;;;;23480:42;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;23480:42:0;-1:-1:-1;;;;;23480:42:0;;:::i;21188:295::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;21188:295:0;-1:-1:-1;;;;;21188:295:0;;:::i;:::-;;21947:91;;;:::i;23052:42::-;;;:::i;22929:66::-;;;:::i;:::-;;;;-1:-1:-1;;;;;22929:66:0;;;;;;;;;;;;;;23004:39;;;:::i;25740:266::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;25740:266:0;;:::i;25489:243::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;25489:243:0;;;;;;-1:-1:-1;;;;;25489:243:0;;:::i;26418:349::-;;;:::i;22046:110::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;22046:110:0;-1:-1:-1;;;;;22046:110:0;;:::i;9253:140::-;;;:::i;22760:77::-;;;:::i;23302:29::-;;;:::i;24304:131::-;;;:::i;23416:57::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;23416:57:0;-1:-1:-1;;;;;23416:57:0;;:::i;23220:37::-;;;:::i;8442:79::-;;;:::i;8808:94::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;23175:38;;;:::i;21781:68::-;;;:::i;25227:254::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;25227:254:0;;:::i;22846:74::-;;;:::i;27332:365::-;;;:::i;23338:29::-;;;:::i;22700:24::-;;;:::i;24443:420::-;;;:::i;23374:35::-;;;:::i;26014:97::-;;;:::i;23264:31::-;;;:::i;26308:102::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;26308:102:0;;:::i;9548:109::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;9548:109:0;-1:-1:-1;;;;;9548:109:0;;:::i;26119:181::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;26119:181:0;-1:-1:-1;;;;;26119:181:0;;:::i;24871:265::-;-1:-1:-1;;;;;25111:16:0;;24925:7;25111:16;;;:7;:16;;;;;;;;;25027:22;:31;;;;;;24965:163;;25111:16;24965:123;;25083:4;;24965:95;;25006:53;;:16;:14;:16::i;:::-;:20;:53;:20;:53;:::i;:::-;24965:18;24975:7;24965:9;:18::i;:::-;:40;:95;:40;:95;:::i;:::-;:117;:123;:117;:123;:::i;:::-;:145;:163;:145;:163;:::i;:::-;24945:183;24871:265;-1:-1:-1;;24871:265:0:o;23480:42::-;;;;;;;;;;;;;:::o;21188:295::-;8654:9;:7;:9::i;:::-;8646:54;;;;;-1:-1:-1;;;;;8646:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;21323:33:0;;21301:123;;;;-1:-1:-1;;;;;21301:123:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21435:18;:40;;-1:-1:-1;;;;;;21435:40:0;-1:-1:-1;;;;;21435:40:0;;;;;;;;;;21188:295::o;21947:91::-;22018:12;;21947:91;;:::o;23052:42::-;23087:7;23052:42;:::o;22929:66::-;;;-1:-1:-1;;;;;22929:66:0;;:::o;23004:39::-;;;;:::o;25740:266::-;25812:10;24039:16;:14;:16::i;:::-;24016:20;:39;24083:26;:24;:26::i;:::-;24066:14;:43;-1:-1:-1;;;;;24124:21:0;;;24120:157;;24181:15;24188:7;24181:6;:15::i;:::-;-1:-1:-1;;;;;24162:16:0;;;;;;:7;:16;;;;;;;;:34;;;;24245:20;;24211:22;:31;;;;;;:54;24120:157;26831:12;;26812:15;:31;26808:387;;26873:27;26896:3;26873:18;26888:2;26873:10;;:14;;:18;;;;:::i;:27::-;26860:10;:40;;;26915:10;;:42;;;-1:-1:-1;;;;;26915:42:0;;26939:4;26915:42;;;;;;;;;;;;-1:-1:-1;;;;;26915:10:0;;;;:15;;:42;;;;;:10;;:42;;;;;;;:10;;:42;;;5:2:-1;;;;30:1;27;20:12;5:2;26915:42:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;26972:10:0;;26988:9;;27014:2;26999:10;;-1:-1:-1;;;;;26972:10:0;;;;-1:-1:-1;26972:15:0;;-1:-1:-1;26988:9:0;;;;;26999:27;;27022:3;;26999:18;;:14;:18::i;:27::-;26972:55;;;;;;;;;;;;;-1:-1:-1;;;;;26972:55:0;-1:-1:-1;;;;;26972:55:0;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;26972:55:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;27057:10:0;;:24;;-1:-1:-1;27057:10:0;-1:-1:-1;23087:7:0;27057:24;:14;:24;:::i;:::-;27044:10;:37;27111:29;:15;23087:7;27111:29;:19;:29;:::i;:::-;27096:12;:44;27172:10;;27160:23;;;;;;;-1:-1:-1;;;;;;;;;;;27160:23:0;;;;;;;;26808:387;27281:9;;27263:15;:27;27255:49;;;;;-1:-1:-1;;;;;27255:49:0;;;;;;;;;;;;-1:-1:-1;;;;;27255:49:0;;;;;;;;;;;;;;;25897:1;25888:6;:10;25880:40;;;;;-1:-1:-1;;;;;25880:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;25931:22;25946:6;25931:14;:22::i;:::-;25969:29;;;;;;;;25979:10;;25969:29;;;;;;;;;;25740:266;;:::o;25489:243::-;25558:13;25564:6;25558:5;:13::i;:::-;25586:10;-1:-1:-1;;;;;25586:15:0;;;25582:143;;25646:12;;25622:7;;:20;;;-1:-1:-1;;;;;25622:20:0;;-1:-1:-1;;;;;25622:20:0;;;;;;;;;:7;;;;;:17;;:20;;;;;;;;;;;;;;:7;:20;;;5:2:-1;;;;30:1;27;20:12;5:2;25622:20:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;25622:20:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;25622:20:0;:36;25618:96;;25679:3;;:19;;;-1:-1:-1;;;;;25679:19:0;;-1:-1:-1;;;;;25679:19:0;;;;;;;;;:3;;;;;:16;;:19;;;;;:3;;:19;;;;;;;:3;;:19;;;5:2:-1;;;;30:1;27;20:12;5:2;25679:19:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;25679:19:0;;;;25618:96;25489:243;;:::o;26418:349::-;26459:10;24039:16;:14;:16::i;:::-;24016:20;:39;24083:26;:24;:26::i;:::-;24066:14;:43;-1:-1:-1;;;;;24124:21:0;;;24120:157;;24181:15;24188:7;24181:6;:15::i;:::-;-1:-1:-1;;;;;24162:16:0;;;;;;:7;:16;;;;;;;;:34;;;;24245:20;;24211:22;:31;;;;;;:54;24120:157;26831:12;;26812:15;:31;26808:387;;26873:27;26896:3;26873:18;26888:2;26873:10;;:14;;:18;;;;:::i;:27::-;26860:10;:40;;;26915:10;;:42;;;-1:-1:-1;;;;;26915:42:0;;26939:4;26915:42;;;;;;;;;;;;-1:-1:-1;;;;;26915:10:0;;;;:15;;:42;;;;;:10;;:42;;;;;;;:10;;:42;;;5:2:-1;;;;30:1;27;20:12;5:2;26915:42:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;26972:10:0;;26988:9;;27014:2;26999:10;;-1:-1:-1;;;;;26972:10:0;;;;-1:-1:-1;26972:15:0;;-1:-1:-1;26988:9:0;;;;;26999:27;;27022:3;;26999:18;;:14;:18::i;:27::-;26972:55;;;;;;;;;;;;;-1:-1:-1;;;;;26972:55:0;-1:-1:-1;;;;;26972:55:0;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;26972:55:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;27057:10:0;;:24;;-1:-1:-1;27057:10:0;-1:-1:-1;23087:7:0;27057:24;:14;:24;:::i;:::-;27044:10;:37;27111:29;:15;23087:7;27111:29;:19;:29;:::i;:::-;27096:12;:44;27172:10;;27160:23;;;;;;;-1:-1:-1;;;;;;;;;;;27160:23:0;;;;;;;;26808:387;27281:9;;27263:15;:27;27255:49;;;;;-1:-1:-1;;;;;27255:49:0;;;;;;;;;;;;-1:-1:-1;;;;;27255:49:0;;;;;;;;;;;;;;;26504:14;26521:18;26528:10;26521:6;:18::i;:::-;26504:35;-1:-1:-1;26554:10:0;;26550:210;;26589:10;26603:1;26581:19;;;:7;:19;;;;;:23;26619:10;;:43;;-1:-1:-1;;;;;26619:10:0;;;;26655:6;26619:23;:43::i;:::-;26677:3;;:21;;;-1:-1:-1;;;;;26677:21:0;;;;;;;;;;-1:-1:-1;;;;;26677:3:0;;;;:13;;:21;;;;;:3;;:21;;;;;;;;:3;;:21;;;5:2:-1;;;;30:1;27;20:12;5:2;26677:21:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;26718:30:0;;;;;;;;26729:10;;-1:-1:-1;26718:30:0;;-1:-1:-1;26718:30:0;;;;;;;;27315:1;26418:349;:::o;22046:110::-;-1:-1:-1;;;;;22130:18:0;22103:7;22130:18;;;:9;:18;;;;;;;22046:110::o;9253:140::-;8654:9;:7;:9::i;:::-;8646:54;;;;;-1:-1:-1;;;;;8646:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9336:6;;9315:40;;9352:1;;-1:-1:-1;;;;;9336:6:0;;9315:40;;9352:1;;9315:40;9366:6;:19;;-1:-1:-1;;;;;;9366:19:0;;;9253:140::o;22760:77::-;;;-1:-1:-1;;;;;22760:77:0;;:::o;23302:29::-;;;;:::o;24304:131::-;24361:7;24388:39;24397:15;24414:12;;24388:8;:39::i;:::-;24381:46;;24304:131;:::o;23416:57::-;;;;;;;;;;;;;:::o;23220:37::-;;;;:::o;8442:79::-;8507:6;;-1:-1:-1;;;;;8507:6:0;8442:79;:::o;8808:94::-;8888:6;;8848:4;;-1:-1:-1;;;;;8888:6:0;8872:12;:10;:12::i;:::-;-1:-1:-1;;;;;8872:22:0;;8865:29;;8808:94;:::o;23175:38::-;;;;:::o;21781:68::-;;;-1:-1:-1;;;;;21781:68:0;;:::o;25227:254::-;25296:10;24039:16;:14;:16::i;:::-;24016:20;:39;24083:26;:24;:26::i;:::-;24066:14;:43;-1:-1:-1;;;;;24124:21:0;;;24120:157;;24181:15;24188:7;24181:6;:15::i;:::-;-1:-1:-1;;;;;24162:16:0;;;;;;:7;:16;;;;;;;;:34;;;;24245:20;;24211:22;:31;;;;;;:54;24120:157;26831:12;;26812:15;:31;26808:387;;26873:27;26896:3;26873:18;26888:2;26873:10;;:14;;:18;;;;:::i;:27::-;26860:10;:40;;;26915:10;;:42;;;-1:-1:-1;;;;;26915:42:0;;26939:4;26915:42;;;;;;;;;;;;-1:-1:-1;;;;;26915:10:0;;;;:15;;:42;;;;;:10;;:42;;;;;;;:10;;:42;;;5:2:-1;;;;30:1;27;20:12;5:2;26915:42:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;26972:10:0;;26988:9;;27014:2;26999:10;;-1:-1:-1;;;;;26972:10:0;;;;-1:-1:-1;26972:15:0;;-1:-1:-1;26988:9:0;;;;;26999:27;;27022:3;;26999:18;;:14;:18::i;:27::-;26972:55;;;;;;;;;;;;;-1:-1:-1;;;;;26972:55:0;-1:-1:-1;;;;;26972:55:0;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;26972:55:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;27057:10:0;;:24;;-1:-1:-1;27057:10:0;-1:-1:-1;23087:7:0;27057:24;:14;:24;:::i;:::-;27044:10;:37;27111:29;:15;23087:7;27111:29;:19;:29;:::i;:::-;27096:12;:44;27172:10;;27160:23;;;;;;;-1:-1:-1;;;;;;;;;;;27160:23:0;;;;;;;;26808:387;27281:9;;27263:15;:27;27255:49;;;;;-1:-1:-1;;;;;27255:49:0;;;;;;;;;;;;-1:-1:-1;;;;;27255:49:0;;;;;;;;;;;;;;;25381:1;25372:6;:10;25364:37;;;;;-1:-1:-1;;;;;25364:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;25412:19;25424:6;25412:11;:19::i;:::-;25447:26;;;;;;;;25454:10;;25447:26;;;;;;;;;;25227:254;;:::o;22846:74::-;;;-1:-1:-1;;;;;22846:74:0;;:::o;27332:365::-;23809:9;;-1:-1:-1;;;;;23809:9:0;23795:10;:23;23787:32;;;;;;27402:1;24039:16;:14;:16::i;:::-;24016:20;:39;24083:26;:24;:26::i;:::-;24066:14;:43;-1:-1:-1;;;;;24124:21:0;;;24120:157;;24181:15;24188:7;24181:6;:15::i;:::-;-1:-1:-1;;;;;24162:16:0;;;;;;:7;:16;;;;;;;;:34;;;;24245:20;;24211:22;:31;;;;;;:54;24120:157;27425:6;;-1:-1:-1;;;27425:6:0;;;;27417:37;;;;;-1:-1:-1;;;;;27417:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;27480:10;;:24;;23087:7;27480:24;:14;:24;:::i;:::-;27467:10;:37;27515:10;;27546;;27515:42;;;-1:-1:-1;;;;;27515:42:0;;27539:4;27515:42;;;;;;;;;;;;-1:-1:-1;;;;;27515:10:0;;;;:15;;:42;;;;;:10;;:42;;;;;;;;:10;;:42;;;5:2:-1;;;;30:1;27;20:12;5:2;27515:42:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;27568:10:0;;27584:9;;27610:2;27595:10;;-1:-1:-1;;;;;27568:10:0;;;;-1:-1:-1;27568:15:0;;-1:-1:-1;27584:9:0;;;;;27595:27;;27618:3;;27595:18;;:14;:18::i;:27::-;27568:55;;;;;;;;;;;;;-1:-1:-1;;;;;27568:55:0;-1:-1:-1;;;;;27568:55:0;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;27568:55:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;27636:6:0;:14;;-1:-1:-1;;27636:14:0;;;-1:-1:-1;;27678:10:0;;27666:23;;;;;;;-1:-1:-1;;;;;;;;;;;27666:23:0;;;;;;;;23830:1;27332:365::o;23338:29::-;;;;:::o;22700:24::-;;;-1:-1:-1;;;;;22700:24:0;;:::o;24443:420::-;24490:7;24514:13;:11;:13::i;:::-;24510:78;;-1:-1:-1;24556:20:0;;24549:27;;24510:78;24618:237;24661:179;24826:13;:11;:13::i;:::-;24661:138;24794:4;24661:106;24756:10;;24661:68;24714:14;;24661:26;:24;:26::i;:179::-;24618:20;;;:237;:24;:237;:::i;23374:35::-;;;;:::o;26014:97::-;26050:31;26059:21;26069:10;26059:9;:21::i;:::-;26050:8;:31::i;:::-;26092:11;:9;:11::i;:::-;26014:97::o;23264:31::-;;;;:::o;26308:102::-;23809:9;;-1:-1:-1;;;;;23809:9:0;23795:10;:23;23787:32;;;;;;26381:12;:21;26308:102::o;9548:109::-;8654:9;:7;:9::i;:::-;8646:54;;;;;-1:-1:-1;;;;;8646:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9621:28;9640:8;9621:18;:28::i;:::-;9548:109;:::o;26119:181::-;23809:9;;-1:-1:-1;;;;;23809:9:0;23795:10;:23;23787:32;;;;;;-1:-1:-1;;;;;26201:24:0;;26193:66;;;;;-1:-1:-1;;;;;26193:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;26270:9;:22;;-1:-1:-1;;;;;;26270:22:0;-1:-1:-1;;;;;26270:22:0;;;;;;;;;;26119:181::o;2118:136::-;2176:7;2203:43;2207:1;2210;2203:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;2196:50;2118:136;-1:-1:-1;;;2118:136:0:o;3068:471::-;3126:7;3371:6;3367:47;;-1:-1:-1;3401:1:0;3394:8;;3367:47;3438:5;;;3442:1;3438;:5;:1;3462:5;;;;;:10;3454:56;;;;-1:-1:-1;;;;;3454:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4007:132;4065:7;4092:39;4096:1;4099;4092:39;;;;;;;;;;;;;;;;;:3;:39::i;1662:181::-;1720:7;1752:5;;;1776:6;;;;1768:46;;;;;-1:-1:-1;;;;;1768:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;22400:212;22467:12;;:24;;22484:6;22467:24;:16;:24;:::i;:::-;22452:12;:39;22536:10;22526:21;;;;:9;:21;;;;;;:33;;22552:6;22526:33;:25;:33;:::i;:::-;22512:10;22502:21;;;;:9;:21;;;;;:57;;;;22570:1;;:34;;-1:-1:-1;;;;;22570:1:0;;;;22597:6;17023:247;17193:58;;;-1:-1:-1;;;;;17193:58:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;17193:58:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;;;179:29;160:49;;17140:122:0;;17173:5;;17140:18;:122::i;:::-;17023:247;;;:::o;374:106::-;432:7;463:1;459;:5;:13;;471:1;459:13;;;-1:-1:-1;467:1:0;;374:106;-1:-1:-1;374:106:0:o;7167:98::-;7247:10;7167:98;:::o;22164:228::-;22228:12;;:24;;22245:6;22228:24;:16;:24;:::i;:::-;22213:12;:39;22297:10;22287:21;;;;:9;:21;;;;;;:33;;22313:6;22287:33;:25;:33;:::i;:::-;22273:10;22263:21;;;;:9;:21;;;;;:57;;;;22331:1;;:53;;-1:-1:-1;;;;;22331:1:0;;;;22370:4;22377:6;22331:18;:53::i;9763:266::-;-1:-1:-1;;;;;9851:22:0;;9829:110;;;;-1:-1:-1;;;;;9829:110:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9976:6;;9955:38;;-1:-1:-1;;;;;9955:38:0;;;;9976:6;;9955:38;;9976:6;;9955:38;10004:6;:17;;-1:-1:-1;;;;;;10004:17:0;-1:-1:-1;;;;;10004:17:0;;;;;;;;;;9763:266::o;2591:226::-;2711:7;2747:12;2739:6;;;;2731:29;;;;-1:-1:-1;;;;;2731:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;2731:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2783:5:0;;;2591:226::o;4669:379::-;4789:7;4891:12;4884:5;4876:28;;;;-1:-1:-1;;;;;4876:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;4876:28:0;;4915:9;4931:1;4927;:5;;;;;;;4669:379;-1:-1:-1;;;;;4669:379:0:o;19633:1176::-;20237:27;20245:5;-1:-1:-1;;;;;20237:25:0;;:27::i;:::-;20229:71;;;;;-1:-1:-1;;;;;20229:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;20374:12;20388:23;20423:5;-1:-1:-1;;;;;20415:19:0;20435:4;20415:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;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;;;20415: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;;20373:67:0;;;;20459:7;20451:52;;;;;-1:-1:-1;;;;;20451:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20520:17;;:21;20516:286;;20693:10;20682:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;20682:30:0;20656:134;;;;-1:-1:-1;;;;;20656:134:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19633:1176;;;;:::o;17278:284::-;17475:68;;;-1:-1:-1;;;;;17475:68:0;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;17475:68:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;;;179:29;160:49;;17422:132:0;;17455:5;;17422:18;:132::i;13721:850::-;13781:4;14471:20;;14301:66;14520:15;;;;;:42;;;14551:11;14539:8;:23;;14520:42;14512:51;13721:850;-1:-1:-1;;;;13721:850:0:o

Swarm Source

bzzr://d97f47402d3133363deece740c148427b02d64a3b7232e5410e6e8a77e8f9193

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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.