ETH Price: $3,304.69 (+2.76%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Change Owner110518942020-10-14 5:26:021570 days ago1602653162IN
0x474956cF...B27748ec2
0 ETH0.0027176285
Withdraw110480822020-10-13 15:21:141571 days ago1602602474IN
0x474956cF...B27748ec2
0 ETH0.0407723691
Cancel110480792020-10-13 15:20:221571 days ago1602602422IN
0x474956cF...B27748ec2
0 ETH0.0071228491
Withdraw Interes...110480552020-10-13 15:15:111571 days ago1602602111IN
0x474956cF...B27748ec2
0 ETH0.0509134991
Withdraw Interes...110479182020-10-13 14:38:581571 days ago1602599938IN
0x474956cF...B27748ec2
0 ETH0.0457370784
Withdraw110449532020-10-13 3:58:081572 days ago1602561488IN
0x474956cF...B27748ec2
0 ETH0.0324822775
Cancel110449482020-10-13 3:55:501572 days ago1602561350IN
0x474956cF...B27748ec2
0 ETH0.0058704775
Withdraw110442872020-10-13 1:29:051572 days ago1602552545IN
0x474956cF...B27748ec2
0 ETH0.0249014455.57761732
Cancel110442752020-10-13 1:27:491572 days ago1602552469IN
0x474956cF...B27748ec2
0 ETH0.0041484653
Withdraw Interes...110430242020-10-12 20:48:201572 days ago1602535700IN
0x474956cF...B27748ec2
0 ETH0.0125232423.00000145
Withdraw Interes...110410032020-10-12 13:17:511572 days ago1602508671IN
0x474956cF...B27748ec2
0 ETH0.0318908757
Withdraw Interes...110402282020-10-12 10:29:331572 days ago1602498573IN
0x474956cF...B27748ec2
0 ETH0.0299172356.1
Withdraw110402252020-10-12 10:28:561572 days ago1602498536IN
0x474956cF...B27748ec2
0 ETH0.0242939956.1
Cancel110392592020-10-12 6:54:331572 days ago1602485673IN
0x474956cF...B27748ec2
0 ETH0.0030236838.63
Withdraw Interes...110375832020-10-12 0:39:491573 days ago1602463189IN
0x474956cF...B27748ec2
0 ETH0.0137435424.2
Withdraw110375742020-10-12 0:38:061573 days ago1602463086IN
0x474956cF...B27748ec2
0 ETH0.0119371525
Cancel110375662020-10-12 0:36:351573 days ago1602462995IN
0x474956cF...B27748ec2
0 ETH0.0020350926.00000156
Withdraw Interes...110374472020-10-12 0:07:151573 days ago1602461235IN
0x474956cF...B27748ec2
0 ETH0.0136122225
Withdraw110371122020-10-11 22:55:041573 days ago1602456904IN
0x474956cF...B27748ec2
0 ETH0.0112472325.1
Cancel110371092020-10-11 22:54:071573 days ago1602456847IN
0x474956cF...B27748ec2
0 ETH0.0019646525.1
Withdraw110370652020-10-11 22:44:081573 days ago1602456248IN
0x474956cF...B27748ec2
0 ETH0.0134414430
Cancel110370582020-10-11 22:43:131573 days ago1602456193IN
0x474956cF...B27748ec2
0 ETH0.0023481930
Withdraw110306972020-10-10 23:20:381574 days ago1602372038IN
0x474956cF...B27748ec2
0 ETH0.0125467128
Cancel110306742020-10-10 23:15:501574 days ago1602371750IN
0x474956cF...B27748ec2
0 ETH0.0024264631
Withdraw Interes...110306692020-10-10 23:14:481574 days ago1602371688IN
0x474956cF...B27748ec2
0 ETH0.0152456928
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block
From
To
106950872020-08-20 5:08:401625 days ago1597900120
0x474956cF...B27748ec2
 Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Lockup

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MPL-2.0 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-08-20
*/

// File: @openzeppelin/contracts/GSN/Context.sol

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

	/**
	 * @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/math/SafeMath.sol

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

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

pragma solidity ^0.5.0;

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20Mintable}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20 {
	using SafeMath for uint256;

	mapping(address => uint256) private _balances;

	mapping(address => mapping(address => uint256)) private _allowances;

	uint256 private _totalSupply;

	/**
	 * @dev See {IERC20-totalSupply}.
	 */
	function totalSupply() public view returns (uint256) {
		return _totalSupply;
	}

	/**
	 * @dev See {IERC20-balanceOf}.
	 */
	function balanceOf(address account) public view returns (uint256) {
		return _balances[account];
	}

	/**
	 * @dev See {IERC20-transfer}.
	 *
	 * Requirements:
	 *
	 * - `recipient` cannot be the zero address.
	 * - the caller must have a balance of at least `amount`.
	 */
	function transfer(address recipient, uint256 amount) public returns (bool) {
		_transfer(_msgSender(), recipient, amount);
		return true;
	}

	/**
	 * @dev See {IERC20-allowance}.
	 */
	function allowance(address owner, address spender)
		public
		view
		returns (uint256)
	{
		return _allowances[owner][spender];
	}

	/**
	 * @dev See {IERC20-approve}.
	 *
	 * Requirements:
	 *
	 * - `spender` cannot be the zero address.
	 */
	function approve(address spender, uint256 amount) public returns (bool) {
		_approve(_msgSender(), spender, amount);
		return true;
	}

	/**
	 * @dev See {IERC20-transferFrom}.
	 *
	 * Emits an {Approval} event indicating the updated allowance. This is not
	 * required by the EIP. See the note at the beginning of {ERC20};
	 *
	 * Requirements:
	 * - `sender` and `recipient` cannot be the zero address.
	 * - `sender` must have a balance of at least `amount`.
	 * - the caller must have allowance for `sender`'s tokens of at least
	 * `amount`.
	 */
	function transferFrom(
		address sender,
		address recipient,
		uint256 amount
	) public returns (bool) {
		_transfer(sender, recipient, amount);
		_approve(
			sender,
			_msgSender(),
			_allowances[sender][_msgSender()].sub(
				amount,
				"ERC20: transfer amount exceeds allowance"
			)
		);
		return true;
	}

	/**
	 * @dev Atomically increases the allowance granted to `spender` by the caller.
	 *
	 * This is an alternative to {approve} that can be used as a mitigation for
	 * problems described in {IERC20-approve}.
	 *
	 * Emits an {Approval} event indicating the updated allowance.
	 *
	 * Requirements:
	 *
	 * - `spender` cannot be the zero address.
	 */
	function increaseAllowance(address spender, uint256 addedValue)
		public
		returns (bool)
	{
		_approve(
			_msgSender(),
			spender,
			_allowances[_msgSender()][spender].add(addedValue)
		);
		return true;
	}

	/**
	 * @dev Atomically decreases the allowance granted to `spender` by the caller.
	 *
	 * This is an alternative to {approve} that can be used as a mitigation for
	 * problems described in {IERC20-approve}.
	 *
	 * Emits an {Approval} event indicating the updated allowance.
	 *
	 * Requirements:
	 *
	 * - `spender` cannot be the zero address.
	 * - `spender` must have allowance for the caller of at least
	 * `subtractedValue`.
	 */
	function decreaseAllowance(address spender, uint256 subtractedValue)
		public
		returns (bool)
	{
		_approve(
			_msgSender(),
			spender,
			_allowances[_msgSender()][spender].sub(
				subtractedValue,
				"ERC20: decreased allowance below zero"
			)
		);
		return true;
	}

	/**
	 * @dev Moves tokens `amount` from `sender` to `recipient`.
	 *
	 * This is internal function is equivalent to {transfer}, and can be used to
	 * e.g. implement automatic token fees, slashing mechanisms, etc.
	 *
	 * Emits a {Transfer} event.
	 *
	 * Requirements:
	 *
	 * - `sender` cannot be the zero address.
	 * - `recipient` cannot be the zero address.
	 * - `sender` must have a balance of at least `amount`.
	 */
	function _transfer(
		address sender,
		address recipient,
		uint256 amount
	) internal {
		require(sender != address(0), "ERC20: transfer from the zero address");
		require(recipient != address(0), "ERC20: transfer to the zero address");

		_balances[sender] = _balances[sender].sub(
			amount,
			"ERC20: transfer amount exceeds balance"
		);
		_balances[recipient] = _balances[recipient].add(amount);
		emit Transfer(sender, recipient, amount);
	}

	/** @dev Creates `amount` tokens and assigns them to `account`, increasing
	 * the total supply.
	 *
	 * Emits a {Transfer} event with `from` set to the zero address.
	 *
	 * Requirements
	 *
	 * - `to` cannot be the zero address.
	 */
	function _mint(address account, uint256 amount) internal {
		require(account != address(0), "ERC20: mint to the zero address");

		_totalSupply = _totalSupply.add(amount);
		_balances[account] = _balances[account].add(amount);
		emit Transfer(address(0), account, amount);
	}

	/**
	 * @dev Destroys `amount` tokens from `account`, reducing the
	 * total supply.
	 *
	 * Emits a {Transfer} event with `to` set to the zero address.
	 *
	 * Requirements
	 *
	 * - `account` cannot be the zero address.
	 * - `account` must have at least `amount` tokens.
	 */
	function _burn(address account, uint256 amount) internal {
		require(account != address(0), "ERC20: burn from the zero address");

		_balances[account] = _balances[account].sub(
			amount,
			"ERC20: burn amount exceeds balance"
		);
		_totalSupply = _totalSupply.sub(amount);
		emit Transfer(account, address(0), amount);
	}

	/**
	 * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
	 *
	 * This is internal function is equivalent to `approve`, and can be used to
	 * e.g. set automatic allowances for certain subsystems, etc.
	 *
	 * Emits an {Approval} event.
	 *
	 * Requirements:
	 *
	 * - `owner` cannot be the zero address.
	 * - `spender` cannot be the zero address.
	 */
	function _approve(
		address owner,
		address spender,
		uint256 amount
	) internal {
		require(owner != address(0), "ERC20: approve from the zero address");
		require(spender != address(0), "ERC20: approve to the zero address");

		_allowances[owner][spender] = amount;
		emit Approval(owner, spender, amount);
	}

	/**
	 * @dev Destroys `amount` tokens from `account`.`amount` is then deducted
	 * from the caller's allowance.
	 *
	 * See {_burn} and {_approve}.
	 */
	function _burnFrom(address account, uint256 amount) internal {
		_burn(account, amount);
		_approve(
			account,
			_msgSender(),
			_allowances[account][_msgSender()].sub(
				amount,
				"ERC20: burn amount exceeds allowance"
			)
		);
	}
}

// File: @openzeppelin/contracts/access/Roles.sol

pragma solidity ^0.5.0;

/**
 * @title Roles
 * @dev Library for managing addresses assigned to a Role.
 */
library Roles {
	struct Role {
		mapping(address => bool) bearer;
	}

	/**
	 * @dev Give an account access to this role.
	 */
	function add(Role storage role, address account) internal {
		require(!has(role, account), "Roles: account already has role");
		role.bearer[account] = true;
	}

	/**
	 * @dev Remove an account's access to this role.
	 */
	function remove(Role storage role, address account) internal {
		require(has(role, account), "Roles: account does not have role");
		role.bearer[account] = false;
	}

	/**
	 * @dev Check if an account has this role.
	 * @return bool
	 */
	function has(Role storage role, address account)
		internal
		view
		returns (bool)
	{
		require(account != address(0), "Roles: account is the zero address");
		return role.bearer[account];
	}
}

// File: @openzeppelin/contracts/access/roles/MinterRole.sol

pragma solidity ^0.5.0;

contract MinterRole is Context {
	using Roles for Roles.Role;

	event MinterAdded(address indexed account);
	event MinterRemoved(address indexed account);

	Roles.Role private _minters;

	constructor() internal {
		_addMinter(_msgSender());
	}

	modifier onlyMinter() {
		require(
			isMinter(_msgSender()),
			"MinterRole: caller does not have the Minter role"
		);
		_;
	}

	function isMinter(address account) public view returns (bool) {
		return _minters.has(account);
	}

	function addMinter(address account) public onlyMinter {
		_addMinter(account);
	}

	function renounceMinter() public {
		_removeMinter(_msgSender());
	}

	function _addMinter(address account) internal {
		_minters.add(account);
		emit MinterAdded(account);
	}

	function _removeMinter(address account) internal {
		_minters.remove(account);
		emit MinterRemoved(account);
	}
}

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

pragma solidity ^0.5.0;

/**
 * @dev Extension of {ERC20} that adds a set of accounts with the {MinterRole},
 * which have permission to mint (create) new tokens as they see fit.
 *
 * At construction, the deployer of the contract is the only minter.
 */
contract ERC20Mintable is ERC20, MinterRole {
	/**
	 * @dev See {ERC20-_mint}.
	 *
	 * Requirements:
	 *
	 * - the caller must have the {MinterRole}.
	 */
	function mint(address account, uint256 amount)
		public
		onlyMinter
		returns (bool)
	{
		_mint(account, amount);
		return true;
	}
}

// File: contracts/src/common/libs/Decimals.sol

pragma solidity ^0.5.0;

/**
 * Library for emulating calculations involving decimals.
 */
library Decimals {
	using SafeMath for uint256;
	uint120 private constant basisValue = 1000000000000000000;

	/**
	 * Returns the ratio of the first argument to the second argument.
	 */
	function outOf(uint256 _a, uint256 _b)
		internal
		pure
		returns (uint256 result)
	{
		if (_a == 0) {
			return 0;
		}
		uint256 a = _a.mul(basisValue);
		if (a < _b) {
			return 0;
		}
		return (a.div(_b));
	}

	/**
	 * Returns multiplied the number by 10^18.
	 * This is used when there is a very large difference between the two numbers passed to the `outOf` function.
	 */
	function mulBasis(uint256 _a) internal pure returns (uint256) {
		return _a.mul(basisValue);
	}

	/**
	 * Returns by changing the numerical value being emulated to the original number of digits.
	 */
	function divBasis(uint256 _a) internal pure returns (uint256) {
		return _a.div(basisValue);
	}
}

// File: contracts/src/common/interface/IGroup.sol

pragma solidity ^0.5.0;

contract IGroup {
	function isGroup(address _addr) public view returns (bool);

	function addGroup(address _addr) external;

	function getGroupKey(address _addr) internal pure returns (bytes32) {
		return keccak256(abi.encodePacked("_group", _addr));
	}
}

// File: contracts/src/common/validate/AddressValidator.sol

pragma solidity ^0.5.0;

/**
 * A module that provides common validations patterns.
 */
contract AddressValidator {
	string constant errorMessage = "this is illegal address";

	/**
	 * Validates passed address is not a zero address.
	 */
	function validateIllegalAddress(address _addr) external pure {
		require(_addr != address(0), errorMessage);
	}

	/**
	 * Validates passed address is included in an address set.
	 */
	function validateGroup(address _addr, address _groupAddr) external view {
		require(IGroup(_groupAddr).isGroup(_addr), errorMessage);
	}

	/**
	 * Validates passed address is included in two address sets.
	 */
	function validateGroups(
		address _addr,
		address _groupAddr1,
		address _groupAddr2
	) external view {
		if (IGroup(_groupAddr1).isGroup(_addr)) {
			return;
		}
		require(IGroup(_groupAddr2).isGroup(_addr), errorMessage);
	}

	/**
	 * Validates that the address of the first argument is equal to the address of the second argument.
	 */
	function validateAddress(address _addr, address _target) external pure {
		require(_addr == _target, errorMessage);
	}

	/**
	 * Validates passed address equals to the two addresses.
	 */
	function validateAddresses(
		address _addr,
		address _target1,
		address _target2
	) external pure {
		if (_addr == _target1) {
			return;
		}
		require(_addr == _target2, errorMessage);
	}

	/**
	 * Validates passed address equals to the three addresses.
	 */
	function validate3Addresses(
		address _addr,
		address _target1,
		address _target2,
		address _target3
	) external pure {
		if (_addr == _target1) {
			return;
		}
		if (_addr == _target2) {
			return;
		}
		require(_addr == _target3, errorMessage);
	}
}

// File: contracts/src/common/validate/UsingValidator.sol

pragma solidity ^0.5.0;

// prettier-ignore

/**
 * Module for contrast handling AddressValidator.
 */
contract UsingValidator {
	AddressValidator private _validator;

	/**
	 * Create a new AddressValidator contract when initialize.
	 */
	constructor() public {
		_validator = new AddressValidator();
	}

	/**
	 * Returns the set AddressValidator address.
	 */
	function addressValidator() internal view returns (AddressValidator) {
		return _validator;
	}
}

// File: contracts/src/property/IProperty.sol

pragma solidity ^0.5.0;

contract IProperty {
	function author() external view returns (address);

	function withdraw(address _sender, uint256 _value) external;
}

// File: contracts/src/common/lifecycle/Killable.sol

pragma solidity ^0.5.0;

/**
 * A module that allows contracts to self-destruct.
 */
contract Killable {
	address payable public _owner;

	/**
	 * Initialized with the deployer as the owner.
	 */
	constructor() internal {
		_owner = msg.sender;
	}

	/**
	 * Self-destruct the contract.
	 * This function can only be executed by the owner.
	 */
	function kill() public {
		require(msg.sender == _owner, "only owner method");
		selfdestruct(_owner);
	}
}

// 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 {
		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;
	}
}

// File: contracts/src/common/config/AddressConfig.sol

pragma solidity ^0.5.0;

/**
 * A registry contract to hold the latest contract addresses.
 * Dev Protocol will be upgradeable by this contract.
 */
contract AddressConfig is Ownable, UsingValidator, Killable {
	address public token = 0x98626E2C9231f03504273d55f397409deFD4a093;
	address public allocator;
	address public allocatorStorage;
	address public withdraw;
	address public withdrawStorage;
	address public marketFactory;
	address public marketGroup;
	address public propertyFactory;
	address public propertyGroup;
	address public metricsGroup;
	address public metricsFactory;
	address public policy;
	address public policyFactory;
	address public policySet;
	address public policyGroup;
	address public lockup;
	address public lockupStorage;
	address public voteTimes;
	address public voteTimesStorage;
	address public voteCounter;
	address public voteCounterStorage;

	/**
	 * Set the latest Allocator contract address.
	 * Only the owner can execute this function.
	 */
	function setAllocator(address _addr) external onlyOwner {
		allocator = _addr;
	}

	/**
	 * Set the latest AllocatorStorage contract address.
	 * Only the owner can execute this function.
	 * NOTE: But currently, the AllocatorStorage contract is not used.
	 */
	function setAllocatorStorage(address _addr) external onlyOwner {
		allocatorStorage = _addr;
	}

	/**
	 * Set the latest Withdraw contract address.
	 * Only the owner can execute this function.
	 */
	function setWithdraw(address _addr) external onlyOwner {
		withdraw = _addr;
	}

	/**
	 * Set the latest WithdrawStorage contract address.
	 * Only the owner can execute this function.
	 */
	function setWithdrawStorage(address _addr) external onlyOwner {
		withdrawStorage = _addr;
	}

	/**
	 * Set the latest MarketFactory contract address.
	 * Only the owner can execute this function.
	 */
	function setMarketFactory(address _addr) external onlyOwner {
		marketFactory = _addr;
	}

	/**
	 * Set the latest MarketGroup contract address.
	 * Only the owner can execute this function.
	 */
	function setMarketGroup(address _addr) external onlyOwner {
		marketGroup = _addr;
	}

	/**
	 * Set the latest PropertyFactory contract address.
	 * Only the owner can execute this function.
	 */
	function setPropertyFactory(address _addr) external onlyOwner {
		propertyFactory = _addr;
	}

	/**
	 * Set the latest PropertyGroup contract address.
	 * Only the owner can execute this function.
	 */
	function setPropertyGroup(address _addr) external onlyOwner {
		propertyGroup = _addr;
	}

	/**
	 * Set the latest MetricsFactory contract address.
	 * Only the owner can execute this function.
	 */
	function setMetricsFactory(address _addr) external onlyOwner {
		metricsFactory = _addr;
	}

	/**
	 * Set the latest MetricsGroup contract address.
	 * Only the owner can execute this function.
	 */
	function setMetricsGroup(address _addr) external onlyOwner {
		metricsGroup = _addr;
	}

	/**
	 * Set the latest PolicyFactory contract address.
	 * Only the owner can execute this function.
	 */
	function setPolicyFactory(address _addr) external onlyOwner {
		policyFactory = _addr;
	}

	/**
	 * Set the latest PolicyGroup contract address.
	 * Only the owner can execute this function.
	 */
	function setPolicyGroup(address _addr) external onlyOwner {
		policyGroup = _addr;
	}

	/**
	 * Set the latest PolicySet contract address.
	 * Only the owner can execute this function.
	 */
	function setPolicySet(address _addr) external onlyOwner {
		policySet = _addr;
	}

	/**
	 * Set the latest Policy contract address.
	 * Only the latest PolicyFactory contract can execute this function.
	 */
	function setPolicy(address _addr) external {
		addressValidator().validateAddress(msg.sender, policyFactory);
		policy = _addr;
	}

	/**
	 * Set the latest Dev contract address.
	 * Only the owner can execute this function.
	 */
	function setToken(address _addr) external onlyOwner {
		token = _addr;
	}

	/**
	 * Set the latest Lockup contract address.
	 * Only the owner can execute this function.
	 */
	function setLockup(address _addr) external onlyOwner {
		lockup = _addr;
	}

	/**
	 * Set the latest LockupStorage contract address.
	 * Only the owner can execute this function.
	 * NOTE: But currently, the LockupStorage contract is not used as a stand-alone because it is inherited from the Lockup contract.
	 */
	function setLockupStorage(address _addr) external onlyOwner {
		lockupStorage = _addr;
	}

	/**
	 * Set the latest VoteTimes contract address.
	 * Only the owner can execute this function.
	 * NOTE: But currently, the VoteTimes contract is not used.
	 */
	function setVoteTimes(address _addr) external onlyOwner {
		voteTimes = _addr;
	}

	/**
	 * Set the latest VoteTimesStorage contract address.
	 * Only the owner can execute this function.
	 * NOTE: But currently, the VoteTimesStorage contract is not used.
	 */
	function setVoteTimesStorage(address _addr) external onlyOwner {
		voteTimesStorage = _addr;
	}

	/**
	 * Set the latest VoteCounter contract address.
	 * Only the owner can execute this function.
	 */
	function setVoteCounter(address _addr) external onlyOwner {
		voteCounter = _addr;
	}

	/**
	 * Set the latest VoteCounterStorage contract address.
	 * Only the owner can execute this function.
	 * NOTE: But currently, the VoteCounterStorage contract is not used as a stand-alone because it is inherited from the VoteCounter contract.
	 */
	function setVoteCounterStorage(address _addr) external onlyOwner {
		voteCounterStorage = _addr;
	}
}

// File: contracts/src/common/config/UsingConfig.sol

pragma solidity ^0.5.0;

/**
 * Module for using AddressConfig contracts.
 */
contract UsingConfig {
	AddressConfig private _config;

	/**
	 * Initialize the argument as AddressConfig address.
	 */
	constructor(address _addressConfig) public {
		_config = AddressConfig(_addressConfig);
	}

	/**
	 * Returns the latest AddressConfig instance.
	 */
	function config() internal view returns (AddressConfig) {
		return _config;
	}

	/**
	 * Returns the latest AddressConfig address.
	 */
	function configAddress() external view returns (address) {
		return address(_config);
	}
}

// File: contracts/src/common/storage/EternalStorage.sol

pragma solidity ^0.5.0;

/**
 * Module for persisting states.
 * Stores a map for `uint256`, `string`, `address`, `bytes32`, `bool`, and `int256` type with `bytes32` type as a key.
 */
contract EternalStorage {
	address private currentOwner = msg.sender;

	mapping(bytes32 => uint256) private uIntStorage;
	mapping(bytes32 => string) private stringStorage;
	mapping(bytes32 => address) private addressStorage;
	mapping(bytes32 => bytes32) private bytesStorage;
	mapping(bytes32 => bool) private boolStorage;
	mapping(bytes32 => int256) private intStorage;

	/**
	 * Modifiers to validate that only the owner can execute.
	 */
	modifier onlyCurrentOwner() {
		require(msg.sender == currentOwner, "not current owner");
		_;
	}

	/**
	 * Transfer the owner.
	 * Only the owner can execute this function.
	 */
	function changeOwner(address _newOwner) external {
		require(msg.sender == currentOwner, "not current owner");
		currentOwner = _newOwner;
	}

	// *** Getter Methods ***

	/**
	 * Returns the value of the `uint256` type that mapped to the given key.
	 */
	function getUint(bytes32 _key) external view returns (uint256) {
		return uIntStorage[_key];
	}

	/**
	 * Returns the value of the `string` type that mapped to the given key.
	 */
	function getString(bytes32 _key) external view returns (string memory) {
		return stringStorage[_key];
	}

	/**
	 * Returns the value of the `address` type that mapped to the given key.
	 */
	function getAddress(bytes32 _key) external view returns (address) {
		return addressStorage[_key];
	}

	/**
	 * Returns the value of the `bytes32` type that mapped to the given key.
	 */
	function getBytes(bytes32 _key) external view returns (bytes32) {
		return bytesStorage[_key];
	}

	/**
	 * Returns the value of the `bool` type that mapped to the given key.
	 */
	function getBool(bytes32 _key) external view returns (bool) {
		return boolStorage[_key];
	}

	/**
	 * Returns the value of the `int256` type that mapped to the given key.
	 */
	function getInt(bytes32 _key) external view returns (int256) {
		return intStorage[_key];
	}

	// *** Setter Methods ***

	/**
	 * Maps a value of `uint256` type to a given key.
	 * Only the owner can execute this function.
	 */
	function setUint(bytes32 _key, uint256 _value) external onlyCurrentOwner {
		uIntStorage[_key] = _value;
	}

	/**
	 * Maps a value of `string` type to a given key.
	 * Only the owner can execute this function.
	 */
	function setString(bytes32 _key, string calldata _value)
		external
		onlyCurrentOwner
	{
		stringStorage[_key] = _value;
	}

	/**
	 * Maps a value of `address` type to a given key.
	 * Only the owner can execute this function.
	 */
	function setAddress(bytes32 _key, address _value)
		external
		onlyCurrentOwner
	{
		addressStorage[_key] = _value;
	}

	/**
	 * Maps a value of `bytes32` type to a given key.
	 * Only the owner can execute this function.
	 */
	function setBytes(bytes32 _key, bytes32 _value) external onlyCurrentOwner {
		bytesStorage[_key] = _value;
	}

	/**
	 * Maps a value of `bool` type to a given key.
	 * Only the owner can execute this function.
	 */
	function setBool(bytes32 _key, bool _value) external onlyCurrentOwner {
		boolStorage[_key] = _value;
	}

	/**
	 * Maps a value of `int256` type to a given key.
	 * Only the owner can execute this function.
	 */
	function setInt(bytes32 _key, int256 _value) external onlyCurrentOwner {
		intStorage[_key] = _value;
	}

	// *** Delete Methods ***

	/**
	 * Deletes the value of the `uint256` type that mapped to the given key.
	 * Only the owner can execute this function.
	 */
	function deleteUint(bytes32 _key) external onlyCurrentOwner {
		delete uIntStorage[_key];
	}

	/**
	 * Deletes the value of the `string` type that mapped to the given key.
	 * Only the owner can execute this function.
	 */
	function deleteString(bytes32 _key) external onlyCurrentOwner {
		delete stringStorage[_key];
	}

	/**
	 * Deletes the value of the `address` type that mapped to the given key.
	 * Only the owner can execute this function.
	 */
	function deleteAddress(bytes32 _key) external onlyCurrentOwner {
		delete addressStorage[_key];
	}

	/**
	 * Deletes the value of the `bytes32` type that mapped to the given key.
	 * Only the owner can execute this function.
	 */
	function deleteBytes(bytes32 _key) external onlyCurrentOwner {
		delete bytesStorage[_key];
	}

	/**
	 * Deletes the value of the `bool` type that mapped to the given key.
	 * Only the owner can execute this function.
	 */
	function deleteBool(bytes32 _key) external onlyCurrentOwner {
		delete boolStorage[_key];
	}

	/**
	 * Deletes the value of the `int256` type that mapped to the given key.
	 * Only the owner can execute this function.
	 */
	function deleteInt(bytes32 _key) external onlyCurrentOwner {
		delete intStorage[_key];
	}
}

// File: contracts/src/common/storage/UsingStorage.sol

pragma solidity ^0.5.0;

/**
 * Module for contrast handling EternalStorage.
 */
contract UsingStorage is Ownable {
	address private _storage;

	/**
	 * Modifier to verify that EternalStorage is set.
	 */
	modifier hasStorage() {
		require(_storage != address(0), "storage is not set");
		_;
	}

	/**
	 * Returns the set EternalStorage instance.
	 */
	function eternalStorage()
		internal
		view
		hasStorage
		returns (EternalStorage)
	{
		return EternalStorage(_storage);
	}

	/**
	 * Returns the set EternalStorage address.
	 */
	function getStorageAddress() external view hasStorage returns (address) {
		return _storage;
	}

	/**
	 * Create a new EternalStorage contract.
	 * This function call will fail if the EternalStorage contract is already set.
	 * Also, only the owner can execute it.
	 */
	function createStorage() external onlyOwner {
		require(_storage == address(0), "storage is set");
		EternalStorage tmp = new EternalStorage();
		_storage = address(tmp);
	}

	/**
	 * Assigns the EternalStorage contract that has already been created.
	 * Only the owner can execute this function.
	 */
	function setStorage(address _storageAddress) external onlyOwner {
		_storage = _storageAddress;
	}

	/**
	 * Delegates the owner of the current EternalStorage contract.
	 * Only the owner can execute this function.
	 */
	function changeOwner(address newOwner) external onlyOwner {
		EternalStorage(_storage).changeOwner(newOwner);
	}
}

// File: contracts/src/lockup/LockupStorage.sol

pragma solidity ^0.5.0;

contract LockupStorage is UsingStorage {
	using SafeMath for uint256;

	uint256 public constant basis = 100000000000000000000000000000000;

	//AllValue
	function setStorageAllValue(uint256 _value) internal {
		bytes32 key = getStorageAllValueKey();
		eternalStorage().setUint(key, _value);
	}

	function getStorageAllValue() public view returns (uint256) {
		bytes32 key = getStorageAllValueKey();
		return eternalStorage().getUint(key);
	}

	function getStorageAllValueKey() private pure returns (bytes32) {
		return keccak256(abi.encodePacked("_allValue"));
	}

	//Value
	function setStorageValue(
		address _property,
		address _sender,
		uint256 _value
	) internal {
		bytes32 key = getStorageValueKey(_property, _sender);
		eternalStorage().setUint(key, _value);
	}

	function getStorageValue(address _property, address _sender)
		public
		view
		returns (uint256)
	{
		bytes32 key = getStorageValueKey(_property, _sender);
		return eternalStorage().getUint(key);
	}

	function getStorageValueKey(address _property, address _sender)
		private
		pure
		returns (bytes32)
	{
		return keccak256(abi.encodePacked("_value", _property, _sender));
	}

	//PropertyValue
	function setStoragePropertyValue(address _property, uint256 _value)
		internal
	{
		bytes32 key = getStoragePropertyValueKey(_property);
		eternalStorage().setUint(key, _value);
	}

	function getStoragePropertyValue(address _property)
		public
		view
		returns (uint256)
	{
		bytes32 key = getStoragePropertyValueKey(_property);
		return eternalStorage().getUint(key);
	}

	function getStoragePropertyValueKey(address _property)
		private
		pure
		returns (bytes32)
	{
		return keccak256(abi.encodePacked("_propertyValue", _property));
	}

	//WithdrawalStatus
	function setStorageWithdrawalStatus(
		address _property,
		address _from,
		uint256 _value
	) internal {
		bytes32 key = getStorageWithdrawalStatusKey(_property, _from);
		eternalStorage().setUint(key, _value);
	}

	function getStorageWithdrawalStatus(address _property, address _from)
		public
		view
		returns (uint256)
	{
		bytes32 key = getStorageWithdrawalStatusKey(_property, _from);
		return eternalStorage().getUint(key);
	}

	function getStorageWithdrawalStatusKey(address _property, address _sender)
		private
		pure
		returns (bytes32)
	{
		return
			keccak256(
				abi.encodePacked("_withdrawalStatus", _property, _sender)
			);
	}

	//InterestPrice
	function setStorageInterestPrice(address _property, uint256 _value)
		internal
	{
		// The previously used function
		// This function is only used in testing
		eternalStorage().setUint(getStorageInterestPriceKey(_property), _value);
	}

	function getStorageInterestPrice(address _property)
		public
		view
		returns (uint256)
	{
		return eternalStorage().getUint(getStorageInterestPriceKey(_property));
	}

	function getStorageInterestPriceKey(address _property)
		private
		pure
		returns (bytes32)
	{
		return keccak256(abi.encodePacked("_interestTotals", _property));
	}

	//LastInterestPrice
	function setStorageLastInterestPrice(
		address _property,
		address _user,
		uint256 _value
	) internal {
		eternalStorage().setUint(
			getStorageLastInterestPriceKey(_property, _user),
			_value
		);
	}

	function getStorageLastInterestPrice(address _property, address _user)
		public
		view
		returns (uint256)
	{
		return
			eternalStorage().getUint(
				getStorageLastInterestPriceKey(_property, _user)
			);
	}

	function getStorageLastInterestPriceKey(address _property, address _user)
		private
		pure
		returns (bytes32)
	{
		return
			keccak256(
				abi.encodePacked("_lastLastInterestPrice", _property, _user)
			);
	}

	//LastSameRewardsAmountAndBlock
	function setStorageLastSameRewardsAmountAndBlock(
		uint256 _amount,
		uint256 _block
	) internal {
		uint256 record = _amount.mul(basis).add(_block);
		eternalStorage().setUint(
			getStorageLastSameRewardsAmountAndBlockKey(),
			record
		);
	}

	function getStorageLastSameRewardsAmountAndBlock()
		public
		view
		returns (uint256 _amount, uint256 _block)
	{
		uint256 record = eternalStorage().getUint(
			getStorageLastSameRewardsAmountAndBlockKey()
		);
		uint256 amount = record.div(basis);
		uint256 blockNumber = record.sub(amount.mul(basis));
		return (amount, blockNumber);
	}

	function getStorageLastSameRewardsAmountAndBlockKey()
		private
		pure
		returns (bytes32)
	{
		return keccak256(abi.encodePacked("_LastSameRewardsAmountAndBlock"));
	}

	//CumulativeGlobalRewards
	function setStorageCumulativeGlobalRewards(uint256 _value) internal {
		eternalStorage().setUint(
			getStorageCumulativeGlobalRewardsKey(),
			_value
		);
	}

	function getStorageCumulativeGlobalRewards() public view returns (uint256) {
		return eternalStorage().getUint(getStorageCumulativeGlobalRewardsKey());
	}

	function getStorageCumulativeGlobalRewardsKey()
		private
		pure
		returns (bytes32)
	{
		return keccak256(abi.encodePacked("_cumulativeGlobalRewards"));
	}

	//LastCumulativeGlobalReward
	function setStorageLastCumulativeGlobalReward(
		address _property,
		address _user,
		uint256 _value
	) internal {
		eternalStorage().setUint(
			getStorageLastCumulativeGlobalRewardKey(_property, _user),
			_value
		);
	}

	function getStorageLastCumulativeGlobalReward(
		address _property,
		address _user
	) public view returns (uint256) {
		return
			eternalStorage().getUint(
				getStorageLastCumulativeGlobalRewardKey(_property, _user)
			);
	}

	function getStorageLastCumulativeGlobalRewardKey(
		address _property,
		address _user
	) private pure returns (bytes32) {
		return
			keccak256(
				abi.encodePacked(
					"_LastCumulativeGlobalReward",
					_property,
					_user
				)
			);
	}

	//LastCumulativePropertyInterest
	function setStorageLastCumulativePropertyInterest(
		address _property,
		address _user,
		uint256 _value
	) internal {
		eternalStorage().setUint(
			getStorageLastCumulativePropertyInterestKey(_property, _user),
			_value
		);
	}

	function getStorageLastCumulativePropertyInterest(
		address _property,
		address _user
	) public view returns (uint256) {
		return
			eternalStorage().getUint(
				getStorageLastCumulativePropertyInterestKey(_property, _user)
			);
	}

	function getStorageLastCumulativePropertyInterestKey(
		address _property,
		address _user
	) private pure returns (bytes32) {
		return
			keccak256(
				abi.encodePacked(
					"_lastCumulativePropertyInterest",
					_property,
					_user
				)
			);
	}

	//CumulativeLockedUpUnitAndBlock
	function setStorageCumulativeLockedUpUnitAndBlock(
		address _addr,
		uint256 _unit,
		uint256 _block
	) internal {
		uint256 record = _unit.mul(basis).add(_block);
		eternalStorage().setUint(
			getStorageCumulativeLockedUpUnitAndBlockKey(_addr),
			record
		);
	}

	function getStorageCumulativeLockedUpUnitAndBlock(address _addr)
		public
		view
		returns (uint256 _unit, uint256 _block)
	{
		uint256 record = eternalStorage().getUint(
			getStorageCumulativeLockedUpUnitAndBlockKey(_addr)
		);
		uint256 unit = record.div(basis);
		uint256 blockNumber = record.sub(unit.mul(basis));
		return (unit, blockNumber);
	}

	function getStorageCumulativeLockedUpUnitAndBlockKey(address _addr)
		private
		pure
		returns (bytes32)
	{
		return
			keccak256(
				abi.encodePacked("_cumulativeLockedUpUnitAndBlock", _addr)
			);
	}

	//CumulativeLockedUpValue
	function setStorageCumulativeLockedUpValue(address _addr, uint256 _value)
		internal
	{
		eternalStorage().setUint(
			getStorageCumulativeLockedUpValueKey(_addr),
			_value
		);
	}

	function getStorageCumulativeLockedUpValue(address _addr)
		public
		view
		returns (uint256)
	{
		return
			eternalStorage().getUint(
				getStorageCumulativeLockedUpValueKey(_addr)
			);
	}

	function getStorageCumulativeLockedUpValueKey(address _addr)
		private
		pure
		returns (bytes32)
	{
		return keccak256(abi.encodePacked("_cumulativeLockedUpValue", _addr));
	}

	//PendingWithdrawal
	function setStoragePendingInterestWithdrawal(
		address _property,
		address _user,
		uint256 _value
	) internal {
		eternalStorage().setUint(
			getStoragePendingInterestWithdrawalKey(_property, _user),
			_value
		);
	}

	function getStoragePendingInterestWithdrawal(
		address _property,
		address _user
	) public view returns (uint256) {
		return
			eternalStorage().getUint(
				getStoragePendingInterestWithdrawalKey(_property, _user)
			);
	}

	function getStoragePendingInterestWithdrawalKey(
		address _property,
		address _user
	) private pure returns (bytes32) {
		return
			keccak256(
				abi.encodePacked("_pendingInterestWithdrawal", _property, _user)
			);
	}

	//DIP4GenesisBlock
	function setStorageDIP4GenesisBlock(uint256 _block) internal {
		eternalStorage().setUint(getStorageDIP4GenesisBlockKey(), _block);
	}

	function getStorageDIP4GenesisBlock() public view returns (uint256) {
		return eternalStorage().getUint(getStorageDIP4GenesisBlockKey());
	}

	function getStorageDIP4GenesisBlockKey() private pure returns (bytes32) {
		return keccak256(abi.encodePacked("_dip4GenesisBlock"));
	}

	//LastCumulativeLockedUpAndBlock
	function setStorageLastCumulativeLockedUpAndBlock(
		address _property,
		address _user,
		uint256 _cLocked,
		uint256 _block
	) internal {
		uint256 record = _cLocked.mul(basis).add(_block);
		eternalStorage().setUint(
			getStorageLastCumulativeLockedUpAndBlockKey(_property, _user),
			record
		);
	}

	function getStorageLastCumulativeLockedUpAndBlock(
		address _property,
		address _user
	) public view returns (uint256 _cLocked, uint256 _block) {
		uint256 record = eternalStorage().getUint(
			getStorageLastCumulativeLockedUpAndBlockKey(_property, _user)
		);
		uint256 cLocked = record.div(basis);
		uint256 blockNumber = record.sub(cLocked.mul(basis));

		return (cLocked, blockNumber);
	}

	function getStorageLastCumulativeLockedUpAndBlockKey(
		address _property,
		address _user
	) private pure returns (bytes32) {
		return
			keccak256(
				abi.encodePacked(
					"_lastCumulativeLockedUpAndBlock",
					_property,
					_user
				)
			);
	}
}

// File: contracts/src/policy/IPolicy.sol

pragma solidity ^0.5.0;

contract IPolicy {
	function rewards(uint256 _lockups, uint256 _assets)
		external
		view
		returns (uint256);

	function holdersShare(uint256 _amount, uint256 _lockups)
		external
		view
		returns (uint256);

	function assetValue(uint256 _value, uint256 _lockups)
		external
		view
		returns (uint256);

	function authenticationFee(uint256 _assets, uint256 _propertyAssets)
		external
		view
		returns (uint256);

	function marketApproval(uint256 _agree, uint256 _opposite)
		external
		view
		returns (bool);

	function policyApproval(uint256 _agree, uint256 _opposite)
		external
		view
		returns (bool);

	function marketVotingBlocks() external view returns (uint256);

	function policyVotingBlocks() external view returns (uint256);

	function abstentionPenalty(uint256 _count) external view returns (uint256);

	function lockUpBlocks() external view returns (uint256);
}

// File: contracts/src/allocator/IAllocator.sol

pragma solidity ^0.5.0;

contract IAllocator {
	function calculateMaxRewardsPerBlock() public view returns (uint256);

	function beforeBalanceChange(
		address _property,
		address _from,
		address _to
		// solium-disable-next-line indentation
	) external;
}

// File: contracts/src/lockup/ILockup.sol

pragma solidity ^0.5.0;

contract ILockup {
	function lockup(
		address _from,
		address _property,
		uint256 _value
		// solium-disable-next-line indentation
	) external;

	function update() public;

	function cancel(address _property) external;

	function withdraw(address _property) external;

	function difference(address _property, uint256 _lastReward)
		public
		view
		returns (
			uint256 _reward,
			uint256 _holdersAmount,
			uint256 _holdersPrice,
			uint256 _interestAmount,
			uint256 _interestPrice
		);

	function getPropertyValue(address _property)
		external
		view
		returns (uint256);

	function getAllValue() external view returns (uint256);

	function getValue(address _property, address _sender)
		external
		view
		returns (uint256);

	function calculateWithdrawableInterestAmount(
		address _property,
		address _user
	)
		public
		view
		returns (
			// solium-disable-next-line indentation
			uint256
		);

	function withdrawInterest(address _property) external;
}

// File: contracts/src/metrics/IMetricsGroup.sol

pragma solidity ^0.5.0;

contract IMetricsGroup is IGroup {
	function removeGroup(address _addr) external;

	function totalIssuedMetrics() external view returns (uint256);

	function getMetricsCountPerProperty(address _property)
		public
		view
		returns (uint256);

	function hasAssets(address _property) public view returns (bool);
}

// File: contracts/src/lockup/Lockup.sol

pragma solidity ^0.5.0;

// prettier-ignore

/**
 * A contract that manages the staking of DEV tokens and calculates rewards.
 * Staking and the following mechanism determines that reward calculation.
 *
 * Variables:
 * -`M`: Maximum mint amount per block determined by Allocator contract
 * -`B`: Number of blocks during staking
 * -`P`: Total number of staking locked up in a Property contract
 * -`S`: Total number of staking locked up in all Property contracts
 * -`U`: Number of staking per account locked up in a Property contract
 *
 * Formula:
 * Staking Rewards = M * B * (P / S) * (U / P)
 *
 * Note:
 * -`M`, `P` and `S` vary from block to block, and the variation cannot be predicted.
 * -`B` is added every time the Ethereum block is created.
 * - Only `U` and `B` are predictable variables.
 * - As `M`, `P` and `S` cannot be observed from a staker, the "cumulative sum" is often used to calculate ratio variation with history.
 * - Reward withdrawal always withdraws the total withdrawable amount.
 *
 * Scenario:
 * - Assume `M` is fixed at 500
 * - Alice stakes 100 DEV on Property-A (Alice's staking state on Property-A: `M`=500, `B`=0, `P`=100, `S`=100, `U`=100)
 * - After 10 blocks, Bob stakes 60 DEV on Property-B (Alice's staking state on Property-A: `M`=500, `B`=10, `P`=100, `S`=160, `U`=100)
 * - After 10 blocks, Carol stakes 40 DEV on Property-A (Alice's staking state on Property-A: `M`=500, `B`=20, `P`=140, `S`=200, `U`=100)
 * - After 10 blocks, Alice withdraws Property-A staking reward. The reward at this time is 5000 DEV (10 blocks * 500 DEV) + 3125 DEV (10 blocks * 62.5% * 500 DEV) + 2500 DEV (10 blocks * 50% * 500 DEV).
 */
contract Lockup is ILockup, UsingConfig, UsingValidator, LockupStorage {
	using SafeMath for uint256;
	using Decimals for uint256;
	event Lockedup(address _from, address _property, uint256 _value);

	/**
	 * Initialize the passed address as AddressConfig address.
	 */
	// solium-disable-next-line no-empty-blocks
	constructor(address _config) public UsingConfig(_config) {}

	/**
	 * Adds staking.
	 * Only the Dev contract can execute this function.
	 */
	function lockup(
		address _from,
		address _property,
		uint256 _value
	) external {
		/**
		 * Validates the sender is Dev contract.
		 */
		addressValidator().validateAddress(msg.sender, config().token());

		/**
		 * Validates the target of staking is included Property set.
		 */
		addressValidator().validateGroup(_property, config().propertyGroup());
		require(_value != 0, "illegal lockup value");

		/**
		 * Validates the passed Property has greater than 1 asset.
		 */
		require(
			IMetricsGroup(config().metricsGroup()).hasAssets(_property),
			"unable to stake to unauthenticated property"
		);

		/**
		 * Refuses new staking when after cancel staking and until release it.
		 */
		bool isWaiting = getStorageWithdrawalStatus(_property, _from) != 0;
		require(isWaiting == false, "lockup is already canceled");

		/**
		 * Since the reward per block that can be withdrawn will change with the addition of staking,
		 * saves the undrawn withdrawable reward before addition it.
		 */
		updatePendingInterestWithdrawal(_property, _from);

		/**
		 * Saves the variables at the time of staking to prepare for reward calculation.
		 */
		(, , , uint256 interest, ) = difference(_property, 0);
		updateStatesAtLockup(_property, _from, interest);

		/**
		 * Saves variables that should change due to the addition of staking.
		 */
		updateValues(true, _from, _property, _value);
		emit Lockedup(_from, _property, _value);
	}

	/**
	 * Cancel staking.
	 * The staking amount can be withdrawn after the blocks specified by `Policy.lockUpBlocks` have passed.
	 */
	function cancel(address _property) external {
		/**
		 * Validates the target of staked is included Property set.
		 */
		addressValidator().validateGroup(_property, config().propertyGroup());

		/**
		 * Validates the sender is staking to the target Property.
		 */
		require(hasValue(_property, msg.sender), "dev token is not locked");

		/**
		 * Validates not already been canceled.
		 */
		bool isWaiting = getStorageWithdrawalStatus(_property, msg.sender) != 0;
		require(isWaiting == false, "lockup is already canceled");

		/**
		 * Get `Policy.lockUpBlocks`, add it to the current block number, and saves that block number in `WithdrawalStatus`.
		 * Staking is cannot release until the block number saved in `WithdrawalStatus` is reached.
		 */
		uint256 blockNumber = IPolicy(config().policy()).lockUpBlocks();
		blockNumber = blockNumber.add(block.number);
		setStorageWithdrawalStatus(_property, msg.sender, blockNumber);
	}

	/**
	 * Withdraw staking.
	 * Releases canceled staking and transfer the staked amount to the sender.
	 */
	function withdraw(address _property) external {
		/**
		 * Validates the target of staked is included Property set.
		 */
		addressValidator().validateGroup(_property, config().propertyGroup());

		/**
		 * Validates the block number reaches the block number where staking can be released.
		 */
		require(possible(_property, msg.sender), "waiting for release");

		/**
		 * Validates the sender is staking to the target Property.
		 */
		uint256 lockedUpValue = getStorageValue(_property, msg.sender);
		require(lockedUpValue != 0, "dev token is not locked");

		/**
		 * Since the increase of rewards will stop with the release of the staking,
		 * saves the undrawn withdrawable reward before releasing it.
		 */
		updatePendingInterestWithdrawal(_property, msg.sender);

		/**
		 * Transfer the staked amount to the sender.
		 */
		IProperty(_property).withdraw(msg.sender, lockedUpValue);

		/**
		 * Saves variables that should change due to the canceling staking..
		 */
		updateValues(false, msg.sender, _property, lockedUpValue);

		/**
		 * Sets the staked amount to 0.
		 */
		setStorageValue(_property, msg.sender, 0);

		/**
		 * Sets the cancellation status to not have.
		 */
		setStorageWithdrawalStatus(_property, msg.sender, 0);
	}

	/**
	 * Returns the current staking amount, and the block number in which the recorded last.
	 * These values are used to calculate the cumulative sum of the staking.
	 */
	function getCumulativeLockedUpUnitAndBlock(address _property)
		private
		view
		returns (uint256 _unit, uint256 _block)
	{
		/**
		 * Get the current staking amount and the last recorded block number from the `CumulativeLockedUpUnitAndBlock` storage.
		 * If the last recorded block number is not 0, it is returns as it is.
		 */
		(
			uint256 unit,
			uint256 lastBlock
		) = getStorageCumulativeLockedUpUnitAndBlock(_property);
		if (lastBlock > 0) {
			return (unit, lastBlock);
		}

		/**
		 * If the last recorded block number is 0, this function falls back as already staked before the current specs (before DIP4).
		 * More detail for DIP4: https://github.com/dev-protocol/DIPs/issues/4
		 *
		 * When the passed address is 0, the caller wants to know the total staking amount on the protocol,
		 * so gets the total staking amount from `AllValue` storage.
		 * When the address is other than 0, the caller wants to know the staking amount of a Property,
		 * so gets the staking amount from the `PropertyValue` storage.
		 */
		unit = _property == address(0)
			? getStorageAllValue()
			: getStoragePropertyValue(_property);

		/**
		 * Staking pre-DIP4 will be treated as staked simultaneously with the DIP4 release.
		 * Therefore, the last recorded block number is the same as the DIP4 release block.
		 */
		lastBlock = getStorageDIP4GenesisBlock();
		return (unit, lastBlock);
	}

	/**
	 * Returns the cumulative sum of the staking on passed address, the current staking amount,
	 * and the block number in which the recorded last.
	 * The latest cumulative sum can be calculated using the following formula:
	 * (current staking amount) * (current block number - last recorded block number) + (last cumulative sum)
	 */
	function getCumulativeLockedUp(address _property)
		public
		view
		returns (
			uint256 _value,
			uint256 _unit,
			uint256 _block
		)
	{
		/**
		 * Gets the current staking amount and the last recorded block number from the `getCumulativeLockedUpUnitAndBlock` function.
		 */
		(uint256 unit, uint256 lastBlock) = getCumulativeLockedUpUnitAndBlock(
			_property
		);

		/**
		 * Gets the last cumulative sum of the staking from `CumulativeLockedUpValue` storage.
		 */
		uint256 lastValue = getStorageCumulativeLockedUpValue(_property);

		/**
		 * Returns the latest cumulative sum, current staking amount as a unit, and last recorded block number.
		 */
		return (
			lastValue.add(unit.mul(block.number.sub(lastBlock))),
			unit,
			lastBlock
		);
	}

	/**
	 * Returns the cumulative sum of the staking on the protocol totally, the current staking amount,
	 * and the block number in which the recorded last.
	 */
	function getCumulativeLockedUpAll()
		public
		view
		returns (
			uint256 _value,
			uint256 _unit,
			uint256 _block
		)
	{
		/**
		 * If the 0 address is passed as a key, it indicates the entire protocol.
		 */
		return getCumulativeLockedUp(address(0));
	}

	/**
	 * Updates the `CumulativeLockedUpValue` and `CumulativeLockedUpUnitAndBlock` storage.
	 * This function expected to executes when the amount of staking as a unit changes.
	 */
	function updateCumulativeLockedUp(
		bool _addition,
		address _property,
		uint256 _unit
	) private {
		address zero = address(0);

		/**
		 * Gets the cumulative sum of the staking amount, staking amount, and last recorded block number for the passed Property address.
		 */
		(uint256 lastValue, uint256 lastUnit, ) = getCumulativeLockedUp(
			_property
		);

		/**
		 * Gets the cumulative sum of the staking amount, staking amount, and last recorded block number for the protocol total.
		 */
		(uint256 lastValueAll, uint256 lastUnitAll, ) = getCumulativeLockedUp(
			zero
		);

		/**
		 * Adds or subtracts the staking amount as a new unit to the cumulative sum of the staking for the passed Property address.
		 */
		setStorageCumulativeLockedUpValue(
			_property,
			_addition ? lastValue.add(_unit) : lastValue.sub(_unit)
		);

		/**
		 * Adds or subtracts the staking amount as a new unit to the cumulative sum of the staking for the protocol total.
		 */
		setStorageCumulativeLockedUpValue(
			zero,
			_addition ? lastValueAll.add(_unit) : lastValueAll.sub(_unit)
		);

		/**
		 * Adds or subtracts the staking amount to the staking unit for the passed Property address.
		 * Also, record the latest block number.
		 */
		setStorageCumulativeLockedUpUnitAndBlock(
			_property,
			_addition ? lastUnit.add(_unit) : lastUnit.sub(_unit),
			block.number
		);

		/**
		 * Adds or subtracts the staking amount to the staking unit for the protocol total.
		 * Also, record the latest block number.
		 */
		setStorageCumulativeLockedUpUnitAndBlock(
			zero,
			_addition ? lastUnitAll.add(_unit) : lastUnitAll.sub(_unit),
			block.number
		);
	}

	/**
	 * Updates cumulative sum of the maximum mint amount calculated by Allocator contract, the latest maximum mint amount per block,
	 * and the last recorded block number.
	 * The cumulative sum of the maximum mint amount is always added.
	 * By recording that value when the staker last stakes, the difference from the when the staker stakes can be calculated.
	 */
	function update() public {
		/**
		 * Gets the cumulative sum of the maximum mint amount and the maximum mint number per block.
		 */
		(uint256 _nextRewards, uint256 _amount) = dry();

		/**
		 * Records each value and the latest block number.
		 */
		setStorageCumulativeGlobalRewards(_nextRewards);
		setStorageLastSameRewardsAmountAndBlock(_amount, block.number);
	}

	/**
	 * Updates the cumulative sum of the maximum mint amount when staking, the cumulative sum of staker reward as an interest of the target Property
	 * and the cumulative staking amount, and the latest block number.
	 */
	function updateStatesAtLockup(
		address _property,
		address _user,
		uint256 _interest
	) private {
		/**
		 * Gets the cumulative sum of the maximum mint amount.
		 */
		(uint256 _reward, ) = dry();

		/**
		 * Records each value and the latest block number.
		 */
		if (isSingle(_property, _user)) {
			setStorageLastCumulativeGlobalReward(_property, _user, _reward);
		}
		setStorageLastCumulativePropertyInterest(_property, _user, _interest);
		(uint256 cLocked, , ) = getCumulativeLockedUp(_property);
		setStorageLastCumulativeLockedUpAndBlock(
			_property,
			_user,
			cLocked,
			block.number
		);
	}

	/**
	 * Returns the last cumulative staking amount of the passed Property address and the last recorded block number.
	 */
	function getLastCumulativeLockedUpAndBlock(address _property, address _user)
		private
		view
		returns (uint256 _cLocked, uint256 _block)
	{
		/**
		 * Gets the values from `LastCumulativeLockedUpAndBlock` storage.
		 */
		(
			uint256 cLocked,
			uint256 blockNumber
		) = getStorageLastCumulativeLockedUpAndBlock(_property, _user);

		/**
		 * When the last recorded block number is 0, the block number at the time of the DIP4 release is returned as being staked at the same time as the DIP4 release.
		 * More detail for DIP4: https://github.com/dev-protocol/DIPs/issues/4
		 */
		if (blockNumber == 0) {
			blockNumber = getStorageDIP4GenesisBlock();
		}
		return (cLocked, blockNumber);
	}

	/**
	 * Referring to the values recorded in each storage to returns the latest cumulative sum of the maximum mint amount and the latest maximum mint amount per block.
	 */
	function dry()
		private
		view
		returns (uint256 _nextRewards, uint256 _amount)
	{
		/**
		 * Gets the latest mint amount per block from Allocator contract.
		 */
		uint256 rewardsAmount = IAllocator(config().allocator())
			.calculateMaxRewardsPerBlock();

		/**
		 * Gets the maximum mint amount per block, and the last recorded block number from `LastSameRewardsAmountAndBlock` storage.
		 */
		(
			uint256 lastAmount,
			uint256 lastBlock
		) = getStorageLastSameRewardsAmountAndBlock();

		/**
		 * If the recorded maximum mint amount per block and the result of the Allocator contract are different,
		 * the result of the Allocator contract takes precedence as a maximum mint amount per block.
		 */
		uint256 lastMaxRewards = lastAmount == rewardsAmount
			? rewardsAmount
			: lastAmount;

		/**
		 * Calculates the difference between the latest block number and the last recorded block number.
		 */
		uint256 blocks = lastBlock > 0 ? block.number.sub(lastBlock) : 0;

		/**
		 * Adds the calculated new cumulative maximum mint amount to the recorded cumulative maximum mint amount.
		 */
		uint256 additionalRewards = lastMaxRewards.mul(blocks);
		uint256 nextRewards = getStorageCumulativeGlobalRewards().add(
			additionalRewards
		);

		/**
		 * Returns the latest theoretical cumulative sum of maximum mint amount and maximum mint amount per block.
		 */
		return (nextRewards, rewardsAmount);
	}

	/**
	 * Returns the latest theoretical cumulative sum of maximum mint amount, the holder's reward of the passed Property address and its unit price,
	 * and the staker's reward as interest and its unit price.
	 * The latest theoretical cumulative sum of maximum mint amount is got from `dry` function.
	 * The Holder's reward is a staking(delegation) reward received by the holder of the Property contract(token) according to the share.
	 * The unit price of the holder's reward is the reward obtained per 1 piece of Property contract(token).
	 * The staker rewards are rewards for staking users.
	 * The unit price of the staker reward is the reward per DEV token 1 piece that is staking.
	 */
	function difference(address _property, uint256 _lastReward)
		public
		view
		returns (
			uint256 _reward,
			uint256 _holdersAmount,
			uint256 _holdersPrice,
			uint256 _interestAmount,
			uint256 _interestPrice
		)
	{
		/**
		 * Gets the cumulative sum of the maximum mint amount.
		 */
		(uint256 rewards, ) = dry();

		/**
		 * Gets the cumulative sum of the staking amount of the passed Property address and
		 * the cumulative sum of the staking amount of the protocol total.
		 */
		(uint256 valuePerProperty, , ) = getCumulativeLockedUp(_property);
		(uint256 valueAll, , ) = getCumulativeLockedUpAll();

		/**
		 * Calculates the amount of reward that can be received by the Property from the ratio of the cumulative sum of the staking amount of the Property address
		 * and the cumulative sum of the staking amount of the protocol total.
		 * If the past cumulative sum of the maximum mint amount passed as the second argument is 1 or more,
		 * this result is the difference from that cumulative sum.
		 */
		uint256 propertyRewards = rewards.sub(_lastReward).mul(
			valuePerProperty.mulBasis().outOf(valueAll)
		);

		/**
		 * Gets the staking amount and total supply of the Property and calls `Policy.holdersShare` function to calculates
		 * the holder's reward amount out of the total reward amount.
		 */
		uint256 lockedUpPerProperty = getStoragePropertyValue(_property);
		uint256 totalSupply = ERC20Mintable(_property).totalSupply();
		uint256 holders = IPolicy(config().policy()).holdersShare(
			propertyRewards,
			lockedUpPerProperty
		);

		/**
		 * The total rewards amount minus the holder reward amount is the staker rewards as an interest.
		 */
		uint256 interest = propertyRewards.sub(holders);

		/**
		 * Returns each value and a unit price of each reward.
		 */
		return (
			rewards,
			holders,
			holders.div(totalSupply),
			interest,
			lockedUpPerProperty > 0 ? interest.div(lockedUpPerProperty) : 0
		);
	}

	/**
	 * Returns the staker reward as interest.
	 */
	function _calculateInterestAmount(address _property, address _user)
		private
		view
		returns (uint256)
	{
		/**
		 * Gets the cumulative sum of the staking amount, current staking amount, and last recorded block number of the Property.
		 */
		(
			uint256 cLockProperty,
			uint256 unit,
			uint256 lastBlock
		) = getCumulativeLockedUp(_property);

		/**
		 * Gets the cumulative sum of staking amount and block number of Property when the user staked.
		 */
		(
			uint256 lastCLocked,
			uint256 lastBlockUser
		) = getLastCumulativeLockedUpAndBlock(_property, _user);

		/**
		 * Get the amount the user is staking for the Property.
		 */
		uint256 lockedUpPerAccount = getStorageValue(_property, _user);

		/**
		 * Gets the cumulative sum of the Property's staker reward when the user staked.
		 */
		uint256 lastInterest = getStorageLastCumulativePropertyInterest(
			_property,
			_user
		);

		/**
		 * Calculates the cumulative sum of the staking amount from the time the user staked to the present.
		 * It can be calculated by multiplying the staking amount by the number of elapsed blocks.
		 */
		uint256 cLockUser = lockedUpPerAccount.mul(
			block.number.sub(lastBlockUser)
		);

		/**
		 * Determines if the user is the only staker to the Property.
		 */
		bool isOnly = unit == lockedUpPerAccount && lastBlock <= lastBlockUser;

		/**
		 * If the user is the Property's only staker and the first staker, and the only staker on the protocol:
		 */
		if (isSingle(_property, _user)) {
			/**
			 * Passing the cumulative sum of the maximum mint amount when staked, to the `difference` function,
			 * gets the staker reward amount that the user can receive from the time of staking to the present.
			 * In the case of the staking is single, the ratio of the Property and the user account for 100% of the cumulative sum of the maximum mint amount,
			 * so the difference cannot be calculated with the value of `LastCumulativePropertyInterest`.
			 * Therefore, it is necessary to calculate the difference using the cumulative sum of the maximum mint amounts at the time of staked.
			 */
			(, , , , uint256 interestPrice) = difference(
				_property,
				getStorageLastCumulativeGlobalReward(_property, _user)
			);

			/**
			 * Returns the result after adjusted decimals to 10^18.
			 */
			uint256 result = interestPrice
				.mul(lockedUpPerAccount)
				.divBasis()
				.divBasis();
			return result;

			/**
			 * If not the single but the only staker:
			 */
		} else if (isOnly) {
			/**
			 * Pass 0 to the `difference` function to gets the Property's cumulative sum of the staker reward.
			 */
			(, , , uint256 interest, ) = difference(_property, 0);

			/**
			 * Calculates the difference in rewards that can be received by subtracting the Property's cumulative sum of staker rewards at the time of staking.
			 */
			uint256 result = interest >= lastInterest
				? interest.sub(lastInterest).divBasis().divBasis()
				: 0;
			return result;
		}

		/**
		 * If the user is the Property's not the first staker and not the only staker:
		 */

		/**
		 * Pass 0 to the `difference` function to gets the Property's cumulative sum of the staker reward.
		 */
		(, , , uint256 interest, ) = difference(_property, 0);

		/**
		 * Calculates the share of rewards that can be received by the user among Property's staker rewards.
		 * "Cumulative sum of the staking amount of the Property at the time of staking" is subtracted from "cumulative sum of the staking amount of the Property",
		 * and calculates the cumulative sum of staking amounts from the time of staking to the present.
		 * The ratio of the "cumulative sum of staking amount from the time the user staked to the present" to that value is the share.
		 */
		uint256 share = cLockUser.outOf(cLockProperty.sub(lastCLocked));

		/**
		 * If the Property's staker reward is greater than the value of the `CumulativePropertyInterest` storage,
		 * calculates the difference and multiply by the share.
		 * Otherwise, it returns 0.
		 */
		uint256 result = interest >= lastInterest
			? interest
				.sub(lastInterest)
				.mul(share)
				.divBasis()
				.divBasis()
				.divBasis()
			: 0;
		return result;
	}

	/**
	 * Returns the total rewards currently available for withdrawal. (For calling from inside the contract)
	 */
	function _calculateWithdrawableInterestAmount(
		address _property,
		address _user
	) private view returns (uint256) {
		/**
		 * If the passed Property has not authenticated, returns always 0.
		 */
		if (
			IMetricsGroup(config().metricsGroup()).hasAssets(_property) == false
		) {
			return 0;
		}

		/**
		 * Gets the reward amount in saved without withdrawal.
		 */
		uint256 pending = getStoragePendingInterestWithdrawal(_property, _user);

		/**
		 * Gets the reward amount of before DIP4.
		 */
		uint256 legacy = __legacyWithdrawableInterestAmount(_property, _user);

		/**
		 * Gets the latest withdrawal reward amount.
		 */
		uint256 amount = _calculateInterestAmount(_property, _user);

		/**
		 * Returns the sum of all values.
		 */
		uint256 withdrawableAmount = amount
			.add(pending) // solium-disable-next-line indentation
			.add(legacy);
		return withdrawableAmount;
	}

	/**
	 * Returns the total rewards currently available for withdrawal. (For calling from external of the contract)
	 */
	function calculateWithdrawableInterestAmount(
		address _property,
		address _user
	) public view returns (uint256) {
		uint256 amount = _calculateWithdrawableInterestAmount(_property, _user);
		return amount;
	}

	/**
	 * Withdraws staking reward as an interest.
	 */
	function withdrawInterest(address _property) external {
		/**
		 * Validates the target of staking is included Property set.
		 */
		addressValidator().validateGroup(_property, config().propertyGroup());

		/**
		 * Gets the withdrawable amount.
		 */
		uint256 value = _calculateWithdrawableInterestAmount(
			_property,
			msg.sender
		);

		/**
		 * Gets the cumulative sum of staker rewards of the passed Property address.
		 */
		(, , , uint256 interest, ) = difference(_property, 0);

		/**
		 * Validates rewards amount there are 1 or more.
		 */
		require(value > 0, "your interest amount is 0");

		/**
		 * Sets the unwithdrawn reward amount to 0.
		 */
		setStoragePendingInterestWithdrawal(_property, msg.sender, 0);

		/**
		 * Creates a Dev token instance.
		 */
		ERC20Mintable erc20 = ERC20Mintable(config().token());

		/**
		 * Updates the staking status to avoid double rewards.
		 */
		updateStatesAtLockup(_property, msg.sender, interest);
		__updateLegacyWithdrawableInterestAmount(_property, msg.sender);

		/**
		 * Mints the reward.
		 */
		require(erc20.mint(msg.sender, value), "dev mint failed");

		/**
		 * Since the total supply of tokens has changed, updates the latest maximum mint amount.
		 */
		update();
	}

	/**
	 * Status updates with the addition or release of staking.
	 */
	function updateValues(
		bool _addition,
		address _account,
		address _property,
		uint256 _value
	) private {
		/**
		 * If added staking:
		 */
		if (_addition) {
			/**
			 * Updates the cumulative sum of the staking amount of the passed Property and the cumulative amount of the staking amount of the protocol total.
			 */
			updateCumulativeLockedUp(true, _property, _value);

			/**
			 * Updates the current staking amount of the protocol total.
			 */
			addAllValue(_value);

			/**
			 * Updates the current staking amount of the Property.
			 */
			addPropertyValue(_property, _value);

			/**
			 * Updates the user's current staking amount in the Property.
			 */
			addValue(_property, _account, _value);

			/**
			 * If released staking:
			 */
		} else {
			/**
			 * Updates the cumulative sum of the staking amount of the passed Property and the cumulative amount of the staking amount of the protocol total.
			 */
			updateCumulativeLockedUp(false, _property, _value);

			/**
			 * Updates the current staking amount of the protocol total.
			 */
			subAllValue(_value);

			/**
			 * Updates the current staking amount of the Property.
			 */
			subPropertyValue(_property, _value);
		}

		/**
		 * Since each staking amount has changed, updates the latest maximum mint amount.
		 */
		update();
	}

	/**
	 * Returns the staking amount of the protocol total.
	 */
	function getAllValue() external view returns (uint256) {
		return getStorageAllValue();
	}

	/**
	 * Adds the staking amount of the protocol total.
	 */
	function addAllValue(uint256 _value) private {
		uint256 value = getStorageAllValue();
		value = value.add(_value);
		setStorageAllValue(value);
	}

	/**
	 * Subtracts the staking amount of the protocol total.
	 */
	function subAllValue(uint256 _value) private {
		uint256 value = getStorageAllValue();
		value = value.sub(_value);
		setStorageAllValue(value);
	}

	/**
	 * Returns the user's staking amount in the Property.
	 */
	function getValue(address _property, address _sender)
		external
		view
		returns (uint256)
	{
		return getStorageValue(_property, _sender);
	}

	/**
	 * Adds the user's staking amount in the Property.
	 */
	function addValue(
		address _property,
		address _sender,
		uint256 _value
	) private {
		uint256 value = getStorageValue(_property, _sender);
		value = value.add(_value);
		setStorageValue(_property, _sender, value);
	}

	/**
	 * Returns whether the user is staking in the Property.
	 */
	function hasValue(address _property, address _sender)
		private
		view
		returns (bool)
	{
		uint256 value = getStorageValue(_property, _sender);
		return value != 0;
	}

	/**
	 * Returns whether a single user has all staking share.
	 * This value is true when only one Property and one user is historically the only staker.
	 */
	function isSingle(address _property, address _user)
		private
		view
		returns (bool)
	{
		uint256 perAccount = getStorageValue(_property, _user);
		(uint256 cLockProperty, uint256 unitProperty, ) = getCumulativeLockedUp(
			_property
		);
		(uint256 cLockTotal, , ) = getCumulativeLockedUpAll();
		return perAccount == unitProperty && cLockProperty == cLockTotal;
	}

	/**
	 * Returns the staking amount of the Property.
	 */
	function getPropertyValue(address _property)
		external
		view
		returns (uint256)
	{
		return getStoragePropertyValue(_property);
	}

	/**
	 * Adds the staking amount of the Property.
	 */
	function addPropertyValue(address _property, uint256 _value) private {
		uint256 value = getStoragePropertyValue(_property);
		value = value.add(_value);
		setStoragePropertyValue(_property, value);
	}

	/**
	 * Subtracts the staking amount of the Property.
	 */
	function subPropertyValue(address _property, uint256 _value) private {
		uint256 value = getStoragePropertyValue(_property);
		uint256 nextValue = value.sub(_value);
		setStoragePropertyValue(_property, nextValue);
	}

	/**
	 * Saves the latest reward amount as an undrawn amount.
	 */
	function updatePendingInterestWithdrawal(address _property, address _user)
		private
	{
		/**
		 * Gets the latest reward amount.
		 */
		uint256 withdrawableAmount = _calculateWithdrawableInterestAmount(
			_property,
			_user
		);

		/**
		 * Saves the amount to `PendingInterestWithdrawal` storage.
		 */
		setStoragePendingInterestWithdrawal(
			_property,
			_user,
			withdrawableAmount
		);

		/**
		 * Updates the reward amount of before DIP4 to prevent further addition it.
		 */
		__updateLegacyWithdrawableInterestAmount(_property, _user);
	}

	/**
	 * Returns whether the staking can be released.
	 */
	function possible(address _property, address _from)
		private
		view
		returns (bool)
	{
		uint256 blockNumber = getStorageWithdrawalStatus(_property, _from);
		if (blockNumber == 0) {
			return false;
		}
		if (blockNumber <= block.number) {
			return true;
		} else {
			if (IPolicy(config().policy()).lockUpBlocks() == 1) {
				return true;
			}
		}
		return false;
	}

	/**
	 * Returns the reward amount of the calculation model before DIP4.
	 * It can be calculated by subtracting "the last cumulative sum of reward unit price" from
	 * "the current cumulative sum of reward unit price," and multiplying by the staking amount.
	 */
	function __legacyWithdrawableInterestAmount(
		address _property,
		address _user
	) private view returns (uint256) {
		uint256 _last = getStorageLastInterestPrice(_property, _user);
		uint256 price = getStorageInterestPrice(_property);
		uint256 priceGap = price.sub(_last);
		uint256 lockedUpValue = getStorageValue(_property, _user);
		uint256 value = priceGap.mul(lockedUpValue);
		return value.divBasis();
	}

	/**
	 * Updates and treats the reward of before DIP4 as already received.
	 */
	function __updateLegacyWithdrawableInterestAmount(
		address _property,
		address _user
	) private {
		uint256 interestPrice = getStorageInterestPrice(_property);
		if (getStorageLastInterestPrice(_property, _user) != interestPrice) {
			setStorageLastInterestPrice(_property, _user, interestPrice);
		}
	}

	/**
	 * Updates the block number of the time of DIP4 release.
	 */
	function setDIP4GenesisBlock(uint256 _block) external onlyOwner {
		/**
		 * Validates the value is not set.
		 */
		require(getStorageDIP4GenesisBlock() == 0, "already set the value");

		/**
		 * Sets the value.
		 */
		setStorageDIP4GenesisBlock(_block);
	}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_config","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"address","name":"_property","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Lockedup","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"constant":true,"inputs":[],"name":"basis","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_property","type":"address"},{"internalType":"address","name":"_user","type":"address"}],"name":"calculateWithdrawableInterestAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_property","type":"address"}],"name":"cancel","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"changeOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"configAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"createStorage","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_property","type":"address"},{"internalType":"uint256","name":"_lastReward","type":"uint256"}],"name":"difference","outputs":[{"internalType":"uint256","name":"_reward","type":"uint256"},{"internalType":"uint256","name":"_holdersAmount","type":"uint256"},{"internalType":"uint256","name":"_holdersPrice","type":"uint256"},{"internalType":"uint256","name":"_interestAmount","type":"uint256"},{"internalType":"uint256","name":"_interestPrice","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getAllValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_property","type":"address"}],"name":"getCumulativeLockedUp","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"uint256","name":"_unit","type":"uint256"},{"internalType":"uint256","name":"_block","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getCumulativeLockedUpAll","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"uint256","name":"_unit","type":"uint256"},{"internalType":"uint256","name":"_block","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_property","type":"address"}],"name":"getPropertyValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getStorageAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getStorageAllValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getStorageCumulativeGlobalRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"getStorageCumulativeLockedUpUnitAndBlock","outputs":[{"internalType":"uint256","name":"_unit","type":"uint256"},{"internalType":"uint256","name":"_block","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"getStorageCumulativeLockedUpValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getStorageDIP4GenesisBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_property","type":"address"}],"name":"getStorageInterestPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_property","type":"address"},{"internalType":"address","name":"_user","type":"address"}],"name":"getStorageLastCumulativeGlobalReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_property","type":"address"},{"internalType":"address","name":"_user","type":"address"}],"name":"getStorageLastCumulativeLockedUpAndBlock","outputs":[{"internalType":"uint256","name":"_cLocked","type":"uint256"},{"internalType":"uint256","name":"_block","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_property","type":"address"},{"internalType":"address","name":"_user","type":"address"}],"name":"getStorageLastCumulativePropertyInterest","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_property","type":"address"},{"internalType":"address","name":"_user","type":"address"}],"name":"getStorageLastInterestPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getStorageLastSameRewardsAmountAndBlock","outputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_block","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_property","type":"address"},{"internalType":"address","name":"_user","type":"address"}],"name":"getStoragePendingInterestWithdrawal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_property","type":"address"}],"name":"getStoragePropertyValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_property","type":"address"},{"internalType":"address","name":"_sender","type":"address"}],"name":"getStorageValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_property","type":"address"},{"internalType":"address","name":"_from","type":"address"}],"name":"getStorageWithdrawalStatus","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_property","type":"address"},{"internalType":"address","name":"_sender","type":"address"}],"name":"getValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_property","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"lockup","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":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_block","type":"uint256"}],"name":"setDIP4GenesisBlock","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_storageAddress","type":"address"}],"name":"setStorage","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"update","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_property","type":"address"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_property","type":"address"}],"name":"withdrawInterest","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162004c1b38038062004c1b833981810160405260208110156200003757600080fd5b5051600080546001600160a01b0319166001600160a01b038316179055604051620000629062000105565b604051809103906000f0801580156200007f573d6000803e3d6000fd5b50600180546001600160a01b0319166001600160a01b03929092169190911790556000620000ac62000101565b600280546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3505062000113565b3390565b61072b80620044f083390190565b6143cd80620001236000396000f3fe608060405234801561001057600080fd5b50600436106102325760003560e01c80638da5cb5b11610130578063d6c31871116100b8578063f2fde38b1161007c578063f2fde38b146106a8578063f385cecb146106ce578063f9c514e4146106d6578063fb971d0114610704578063fd1ac3d81461070c57610232565b8063d6c3187114610617578063d85c7f4a1461061f578063e35e8cf11461064d578063edaf329f14610683578063f11248d21461068b57610232565b8063a2e62045116100ff578063a2e620451461056f578063a6f9dae114610577578063a7c25e051461059d578063af45f322146105c3578063d24f87a6146105e957610232565b80638da5cb5b146104f75780638f32d59b146104ff5780639137c1a71461051b57806395490d6c1461054157610232565b806360a05668116101be57806375b9504a1161018257806375b9504a1461048b5780637654f7ab146104b95780638017333d146104c157806381136f5a146104c957806387407e4c146104ef57610232565b806360a05668146103f957806360cec3701461041f5780636afa639c146104275780636f968c9f14610455578063715018a61461048357610232565b80634484ef69116102055780634484ef69146103185780634c33fe941461035757806351cff8d91461037f578063523f91b6146103a557806355fac3be146103cb57610232565b8063270d33bc1461023757806328dfdc1c14610277578063322d19eb146102ce578063393a4d34146102f4575b600080fd5b6102656004803603604081101561024d57600080fd5b506001600160a01b0381358116916020013516610732565b60408051918252519081900360200190f35b6102a36004803603604081101561028d57600080fd5b506001600160a01b0381351690602001356107bd565b6040805195865260208601949094528484019290925260608401526080830152519081900360a00190f35b610265600480360360208110156102e457600080fd5b50356001600160a01b03166109ee565b6102fc610a75565b604080516001600160a01b039092168252519081900360200190f35b61033e6004803603602081101561032e57600080fd5b50356001600160a01b0316610ada565b6040805192835260208301919091528051918290030190f35b61037d6004803603602081101561036d57600080fd5b50356001600160a01b0316610bbe565b005b61037d6004803603602081101561039557600080fd5b50356001600160a01b0316610e5e565b610265600480360360208110156103bb57600080fd5b50356001600160a01b031661108b565b610265600480360360408110156103e157600080fd5b506001600160a01b03813581169160200135166110ac565b6104016110bf565b60408051938452602084019290925282820152519081900360600190f35b6102656110d9565b6102656004803603604081101561043d57600080fd5b506001600160a01b038135811691602001351661115e565b6102656004803603604081101561046b57600080fd5b506001600160a01b0381358116916020013516611180565b61037d6111a2565b61033e600480360360408110156104a157600080fd5b506001600160a01b0381358116916020013516611233565b61026561130b565b61026561131a565b610265600480360360208110156104df57600080fd5b50356001600160a01b031661133a565b6102656113c6565b6102fc611450565b61050761145f565b604080519115158252519081900360200190f35b61037d6004803603602081101561053157600080fd5b50356001600160a01b0316611485565b6102656004803603604081101561055757600080fd5b506001600160a01b03813581169160200135166114ee565b61037d61157c565b61037d6004803603602081101561058d57600080fd5b50356001600160a01b031661159e565b610401600480360360208110156105b357600080fd5b50356001600160a01b031661164e565b61037d600480360360208110156105d957600080fd5b50356001600160a01b03166116ae565b610265600480360360408110156105ff57600080fd5b506001600160a01b038135811691602001351661196a565b6102fc611977565b6102656004803603604081101561063557600080fd5b506001600160a01b0381358116916020013516611986565b61037d6004803603606081101561066357600080fd5b506001600160a01b038135811691602081013590911690604001356119a8565b61033e611dcc565b61037d600480360360208110156106a157600080fd5b5035611ea0565b61037d600480360360208110156106be57600080fd5b50356001600160a01b0316611f45565b610265611f95565b610265600480360360408110156106ec57600080fd5b506001600160a01b0381358116916020013516611fa6565b61037d611fbb565b6102656004803603602081101561072257600080fd5b50356001600160a01b031661209f565b600061073c610a75565b6001600160a01b031663bd02d0f561075485856120aa565b6040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561078857600080fd5b505afa15801561079c573d6000803e3d6000fd5b505050506040513d60208110156107b257600080fd5b505190505b92915050565b6000806000806000806107ce612113565b50905060006107dc8961164e565b5050905060006107ea6110bf565b50509050600061082861080c8361080086612275565b9063ffffffff61228f16565b61081c868d63ffffffff6122dc16565b9063ffffffff61231e16565b905060006108358c61133a565b905060008c6001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561087257600080fd5b505afa158015610886573d6000803e3d6000fd5b505050506040513d602081101561089c57600080fd5b5051905060006108aa611977565b6001600160a01b0316630505c8c96040518163ffffffff1660e01b815260040160206040518083038186803b1580156108e257600080fd5b505afa1580156108f6573d6000803e3d6000fd5b505050506040513d602081101561090c57600080fd5b505160408051631759a88560e31b8152600481018790526024810186905290516001600160a01b039092169163bacd442891604480820192602092909190829003018186803b15801561095e57600080fd5b505afa158015610972573d6000803e3d6000fd5b505050506040513d602081101561098857600080fd5b50519050600061099e858363ffffffff6122dc16565b905087826109b2818663ffffffff61237716565b83600088116109c25760006109d2565b6109d2858963ffffffff61237716565b9c509c509c509c509c5050505050505050509295509295909350565b60006109f8610a75565b6001600160a01b031663bd02d0f5610a0f846123b9565b6040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015610a4357600080fd5b505afa158015610a57573d6000803e3d6000fd5b505050506040513d6020811015610a6d57600080fd5b505192915050565b6003546000906001600160a01b0316610aca576040805162461bcd60e51b81526020600482015260126024820152711cdd1bdc9859d9481a5cc81b9bdd081cd95d60721b604482015290519081900360640190fd5b506003546001600160a01b031690565b6000806000610ae7610a75565b6001600160a01b031663bd02d0f5610afe86612416565b6040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015610b3257600080fd5b505afa158015610b46573d6000803e3d6000fd5b505050506040513d6020811015610b5c57600080fd5b505190506000610b7f826904ee2d6d415b85acef8160201b63ffffffff61237716565b90506000610bb0610ba3836904ee2d6d415b85acef8160201b63ffffffff61231e16565b849063ffffffff6122dc16565b91945090925050505b915091565b610bc6612473565b6001600160a01b031663d16ff47082610bdd611977565b6001600160a01b031663ffeed7a96040518163ffffffff1660e01b815260040160206040518083038186803b158015610c1557600080fd5b505afa158015610c29573d6000803e3d6000fd5b505050506040513d6020811015610c3f57600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b039384166004820152929091166024830152516044808301926000929190829003018186803b158015610c8f57600080fd5b505afa158015610ca3573d6000803e3d6000fd5b50505050610cb18133612482565b610cfc576040805162461bcd60e51b815260206004820152601760248201527619195d881d1bdad95b881a5cc81b9bdd081b1bd8dad959604a1b604482015290519081900360640190fd5b6000610d08823361196a565b1580159150610d5e576040805162461bcd60e51b815260206004820152601a60248201527f6c6f636b757020697320616c72656164792063616e63656c6564000000000000604482015290519081900360640190fd5b6000610d68611977565b6001600160a01b0316630505c8c96040518163ffffffff1660e01b815260040160206040518083038186803b158015610da057600080fd5b505afa158015610db4573d6000803e3d6000fd5b505050506040513d6020811015610dca57600080fd5b5051604080516392a3f61760e01b815290516001600160a01b03909216916392a3f61791600480820192602092909190829003018186803b158015610e0e57600080fd5b505afa158015610e22573d6000803e3d6000fd5b505050506040513d6020811015610e3857600080fd5b50519050610e4c814363ffffffff61249916565b9050610e598333836124f3565b505050565b610e66612473565b6001600160a01b031663d16ff47082610e7d611977565b6001600160a01b031663ffeed7a96040518163ffffffff1660e01b815260040160206040518083038186803b158015610eb557600080fd5b505afa158015610ec9573d6000803e3d6000fd5b505050506040513d6020811015610edf57600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b039384166004820152929091166024830152516044808301926000929190829003018186803b158015610f2f57600080fd5b505afa158015610f43573d6000803e3d6000fd5b50505050610f518133612574565b610f98576040805162461bcd60e51b815260206004820152601360248201527277616974696e6720666f722072656c6561736560681b604482015290519081900360640190fd5b6000610fa482336114ee565b905080610ff2576040805162461bcd60e51b815260206004820152601760248201527619195d881d1bdad95b881a5cc81b9bdd081b1bd8dad959604a1b604482015290519081900360640190fd5b610ffc8233612699565b6040805163f3fef3a360e01b81523360048201526024810183905290516001600160a01b0384169163f3fef3a391604480830192600092919082900301818387803b15801561104a57600080fd5b505af115801561105e573d6000803e3d6000fd5b5050505061106f60003384846126bc565b61107b82336000612710565b611087823360006124f3565b5050565b6000611095610a75565b6001600160a01b031663bd02d0f5610a0f8461271c565b60006110b883836114ee565b9392505050565b60008060006110ce600061164e565b925092509250909192565b60006110e3610a75565b6001600160a01b031663bd02d0f56110f961276b565b6040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561112d57600080fd5b505afa158015611141573d6000803e3d6000fd5b505050506040513d602081101561115757600080fd5b5051905090565b6000611168610a75565b6001600160a01b031663bd02d0f561075485856127a7565b600061118a610a75565b6001600160a01b031663bd02d0f56107548585612809565b6111aa61145f565b6111e9576040805162461bcd60e51b8152602060048201819052602482015260008051602061434e833981519152604482015290519081900360640190fd5b6002546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600280546001600160a01b0319169055565b6000806000611240610a75565b6001600160a01b031663bd02d0f56112588787612872565b6040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561128c57600080fd5b505afa1580156112a0573d6000803e3d6000fd5b505050506040513d60208110156112b657600080fd5b5051905060006112d9826904ee2d6d415b85acef8160201b63ffffffff61237716565b905060006112fd610ba3836904ee2d6d415b85acef8160201b63ffffffff61231e16565b919791965090945050505050565b60006113156113c6565b905090565b6000611324610a75565b6001600160a01b031663bd02d0f56110f96128db565b60008061134683612923565b9050611350610a75565b6001600160a01b031663bd02d0f5826040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561139357600080fd5b505afa1580156113a7573d6000803e3d6000fd5b505050506040513d60208110156113bd57600080fd5b50519392505050565b6000806113d1612971565b90506113db610a75565b6001600160a01b031663bd02d0f5826040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561141e57600080fd5b505afa158015611432573d6000803e3d6000fd5b505050506040513d602081101561144857600080fd5b505191505090565b6002546001600160a01b031690565b6002546000906001600160a01b03166114766129a5565b6001600160a01b031614905090565b61148d61145f565b6114cc576040805162461bcd60e51b8152602060048201819052602482015260008051602061434e833981519152604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6000806114fb84846129a9565b9050611505610a75565b6001600160a01b031663bd02d0f5826040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561154857600080fd5b505afa15801561155c573d6000803e3d6000fd5b505050506040513d602081101561157257600080fd5b5051949350505050565b600080611587612113565b91509150611594826129fb565b6110878143612a57565b6115a661145f565b6115e5576040805162461bcd60e51b8152602060048201819052602482015260008051602061434e833981519152604482015290519081900360640190fd5b6003546040805163a6f9dae160e01b81526001600160a01b0384811660048301529151919092169163a6f9dae191602480830192600092919082900301818387803b15801561163357600080fd5b505af1158015611647573d6000803e3d6000fd5b5050505050565b600080600080600061165f86612af5565b91509150600061166e876109ee565b90506116a0611693611686438563ffffffff6122dc16565b859063ffffffff61231e16565b829063ffffffff61249916565b979296509094509092505050565b6116b6612473565b6001600160a01b031663d16ff470826116cd611977565b6001600160a01b031663ffeed7a96040518163ffffffff1660e01b815260040160206040518083038186803b15801561170557600080fd5b505afa158015611719573d6000803e3d6000fd5b505050506040513d602081101561172f57600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b039384166004820152929091166024830152516044808301926000929190829003018186803b15801561177f57600080fd5b505afa158015611793573d6000803e3d6000fd5b5050505060006117a38233612b54565b905060006117b28360006107bd565b5093505050506000821161180d576040805162461bcd60e51b815260206004820152601960248201527f796f757220696e74657265737420616d6f756e74206973203000000000000000604482015290519081900360640190fd5b61181983336000612c8f565b6000611823611977565b6001600160a01b031663fc0c546a6040518163ffffffff1660e01b815260040160206040518083038186803b15801561185b57600080fd5b505afa15801561186f573d6000803e3d6000fd5b505050506040513d602081101561188557600080fd5b50519050611894843384612caf565b61189e8433612cfc565b604080516340c10f1960e01b81523360048201526024810185905290516001600160a01b038316916340c10f199160448083019260209291908290030181600087803b1580156118ed57600080fd5b505af1158015611901573d6000803e3d6000fd5b505050506040513d602081101561191757600080fd5b505161195c576040805162461bcd60e51b815260206004820152600f60248201526e19195d881b5a5b9d0819985a5b1959608a1b604482015290519081900360640190fd5b61196461157c565b50505050565b6000806114fb8484612d24565b6000546001600160a01b031690565b6000611990610a75565b6001600160a01b031663bd02d0f56107548585612d81565b6119b0612473565b6001600160a01b03166349616d79336119c7611977565b6001600160a01b031663fc0c546a6040518163ffffffff1660e01b815260040160206040518083038186803b1580156119ff57600080fd5b505afa158015611a13573d6000803e3d6000fd5b505050506040513d6020811015611a2957600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b039384166004820152929091166024830152516044808301926000929190829003018186803b158015611a7957600080fd5b505afa158015611a8d573d6000803e3d6000fd5b50505050611a99612473565b6001600160a01b031663d16ff47083611ab0611977565b6001600160a01b031663ffeed7a96040518163ffffffff1660e01b815260040160206040518083038186803b158015611ae857600080fd5b505afa158015611afc573d6000803e3d6000fd5b505050506040513d6020811015611b1257600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b039384166004820152929091166024830152516044808301926000929190829003018186803b158015611b6257600080fd5b505afa158015611b76573d6000803e3d6000fd5b505050508060001415611bc7576040805162461bcd60e51b8152602060048201526014602482015273696c6c6567616c206c6f636b75702076616c756560601b604482015290519081900360640190fd5b611bcf611977565b6001600160a01b031663628f043d6040518163ffffffff1660e01b815260040160206040518083038186803b158015611c0757600080fd5b505afa158015611c1b573d6000803e3d6000fd5b505050506040513d6020811015611c3157600080fd5b505160408051638b234cb160e01b81526001600160a01b03858116600483015291519190921691638b234cb1916024808301926020929190829003018186803b158015611c7d57600080fd5b505afa158015611c91573d6000803e3d6000fd5b505050506040513d6020811015611ca757600080fd5b5051611ce45760405162461bcd60e51b815260040180806020018281038252602b81526020018061436e602b913960400191505060405180910390fd5b6000611cf0838561196a565b1580159150611d46576040805162461bcd60e51b815260206004820152601a60248201527f6c6f636b757020697320616c72656164792063616e63656c6564000000000000604482015290519081900360640190fd5b611d508385612699565b6000611d5d8460006107bd565b509350505050611d6e848683612caf565b611d7b60018686866126bc565b604080516001600160a01b0380881682528616602082015280820185905290517f71601c75cd9722fdbd6d57dbb30980d4a4bd6169ba3d456dc18b7f878629d7bf9181900360600190a15050505050565b6000806000611dd9610a75565b6001600160a01b031663bd02d0f5611def612dea565b6040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015611e2357600080fd5b505afa158015611e37573d6000803e3d6000fd5b505050506040513d6020811015611e4d57600080fd5b505190506000611e70826904ee2d6d415b85acef8160201b63ffffffff61237716565b90506000611e94610ba3836904ee2d6d415b85acef8160201b63ffffffff61231e16565b91945090925050509091565b611ea861145f565b611ee7576040805162461bcd60e51b8152602060048201819052602482015260008051602061434e833981519152604482015290519081900360640190fd5b611eef6110d9565b15611f39576040805162461bcd60e51b8152602060048201526015602482015274616c726561647920736574207468652076616c756560581b604482015290519081900360640190fd5b611f4281612e32565b50565b611f4d61145f565b611f8c576040805162461bcd60e51b8152602060048201819052602482015260008051602061434e833981519152604482015290519081900360640190fd5b611f4281612e50565b6904ee2d6d415b85acef8160201b81565b600080611fb38484612b54565b949350505050565b611fc361145f565b612002576040805162461bcd60e51b8152602060048201819052602482015260008051602061434e833981519152604482015290519081900360640190fd5b6003546001600160a01b031615612051576040805162461bcd60e51b815260206004820152600e60248201526d1cdd1bdc9859d9481a5cc81cd95d60921b604482015290519081900360640190fd5b600060405161205f906136cf565b604051809103906000f08015801561207b573d6000803e3d6000fd5b50600380546001600160a01b0319166001600160a01b039290921691909117905550565b60006107b78261133a565b604080517f5f70656e64696e67496e7465726573745769746864726177616c0000000000006020808301919091526001600160601b0319606086811b8216603a85015285901b16604e830152825160428184030181526062909201909252805191012092915050565b6000806000612120611977565b6001600160a01b031663aa5dcecc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561215857600080fd5b505afa15801561216c573d6000803e3d6000fd5b505050506040513d602081101561218257600080fd5b505160408051633aa5460b60e01b815290516001600160a01b0390921691633aa5460b91600480820192602092909190829003018186803b1580156121c657600080fd5b505afa1580156121da573d6000803e3d6000fd5b505050506040513d60208110156121f057600080fd5b505190506000806121ff611dcc565b9150915060008383146122125782612214565b835b90506000808311612226576000612236565b612236438463ffffffff6122dc16565b9050600061224a838363ffffffff61231e16565b905060006122668261225a61131a565b9063ffffffff61249916565b98509596505050505050509091565b60006107b782670de0b6b3a764000063ffffffff61231e16565b60008261229e575060006107b7565b60006122b884670de0b6b3a764000063ffffffff61231e16565b9050828110156122cc5760009150506107b7565b611fb3818463ffffffff61237716565b60006110b883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612ef1565b60008261232d575060006107b7565b8282028284828161233a57fe5b04146110b85760405162461bcd60e51b815260040180806020018281038252602181526020018061432d6021913960400191505060405180910390fd5b60006110b883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612f88565b604080517f5f63756d756c61746976654c6f636b6564557056616c7565000000000000000060208083019190915260609390931b6001600160601b03191660388201528151808203602c018152604c909101909152805191012090565b604080517f5f63756d756c61746976654c6f636b65645570556e6974416e64426c6f636b0060208083019190915260609390931b6001600160601b031916603f820152815180820360330181526053909101909152805191012090565b6001546001600160a01b031690565b60008061248f84846114ee565b1515949350505050565b6000828201838110156110b8576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60006124ff8484612d24565b9050612509610a75565b6001600160a01b031663e2a4853a82846040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b15801561255657600080fd5b505af115801561256a573d6000803e3d6000fd5b5050505050505050565b600080612581848461196a565b9050806125925760009150506107b7565b4381116125a35760019150506107b7565b6125ab611977565b6001600160a01b0316630505c8c96040518163ffffffff1660e01b815260040160206040518083038186803b1580156125e357600080fd5b505afa1580156125f7573d6000803e3d6000fd5b505050506040513d602081101561260d57600080fd5b5051604080516392a3f61760e01b815290516001600160a01b03909216916392a3f61791600480820192602092909190829003018186803b15801561265157600080fd5b505afa158015612665573d6000803e3d6000fd5b505050506040513d602081101561267b57600080fd5b50516001141561268f5760019150506107b7565b5060009392505050565b60006126a58383612b54565b90506126b2838383612c8f565b610e598383612cfc565b83156126f1576126ce60018383612fed565b6126d7816130c9565b6126e182826130f0565b6126ec828483613119565b61195c565b6126fd60008383612fed565b61270681613144565b61195c8282613160565b60006124ff84846129a9565b604080516e5f696e746572657374546f74616c7360881b60208083019190915260609390931b6001600160601b031916602f820152815180820360230181526043909101909152805191012090565b60408051705f6469703447656e65736973426c6f636b60781b602080830191909152825180830360110181526031909201909252805191012090565b60408051755f6c6173744c617374496e746572657374507269636560501b6020808301919091526001600160601b0319606086811b8216603685015285901b16604a8301528251603e818403018152605e909201909252805191012092915050565b604080517f5f6c61737443756d756c617469766550726f7065727479496e746572657374006020808301919091526001600160601b0319606086811b8216603f85015285901b166053830152825160478184030181526067909201909252805191012092915050565b604080517f5f6c61737443756d756c61746976654c6f636b65645570416e64426c6f636b006020808301919091526001600160601b0319606086811b8216603f85015285901b166053830152825160478184030181526067909201909252805191012092915050565b604080517f5f63756d756c6174697665476c6f62616c526577617264730000000000000000602080830191909152825180830360180181526038909201909252805191012090565b604080516d5f70726f706572747956616c756560901b60208083019190915260609390931b6001600160601b031916602e820152815180820360220181526042909101909152805191012090565b60408051685f616c6c56616c756560b81b602080830191909152825180830360090181526029909201909252805191012090565b3390565b60408051655f76616c756560d01b6020808301919091526001600160601b0319606086811b8216602685015285901b16603a8301528251602e818403018152604e909201909252805191012092915050565b612a03610a75565b6001600160a01b031663e2a4853a612a196128db565b836040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b15801561163357600080fd5b6000612a7a8261225a856904ee2d6d415b85acef8160201b63ffffffff61231e16565b9050612a84610a75565b6001600160a01b031663e2a4853a612a9a612dea565b836040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b158015612ad857600080fd5b505af1158015612aec573d6000803e3d6000fd5b50505050505050565b600080600080612b0485610ada565b90925090508015612b19579092509050610bb9565b6001600160a01b03851615612b3657612b318561133a565b612b3e565b612b3e6113c6565b9150612b486110d9565b91935090915050915091565b6000612b5e611977565b6001600160a01b031663628f043d6040518163ffffffff1660e01b815260040160206040518083038186803b158015612b9657600080fd5b505afa158015612baa573d6000803e3d6000fd5b505050506040513d6020811015612bc057600080fd5b505160408051638b234cb160e01b81526001600160a01b03868116600483015291519190921691638b234cb1916024808301926020929190829003018186803b158015612c0c57600080fd5b505afa158015612c20573d6000803e3d6000fd5b505050506040513d6020811015612c3657600080fd5b5051612c44575060006107b7565b6000612c508484610732565b90506000612c5e858561318b565b90506000612c6c86866131f2565b90506000612c848361225a848763ffffffff61249916565b979650505050505050565b612c97610a75565b6001600160a01b031663e2a4853a612a9a85856120aa565b6000612cb9612113565b509050612cc6848461337d565b15612cd657612cd68484836133c2565b612ce18484846133e2565b6000612cec8561164e565b5050905061164785858343613402565b6000612d078361108b565b905080612d14848461115e565b14610e5957610e598383836134a4565b60408051705f7769746864726177616c53746174757360781b6020808301919091526001600160601b0319606086811b8216603185015285901b166045830152825160398184030181526059909201909252805191012092915050565b604080517f5f4c61737443756d756c6174697665476c6f62616c52657761726400000000006020808301919091526001600160601b0319606086811b8216603b85015285901b16604f830152825160438184030181526063909201909252805191012092915050565b604080517f5f4c61737453616d6552657761726473416d6f756e74416e64426c6f636b00006020808301919091528251808303601e018152603e909201909252805191012090565b612e3a610a75565b6001600160a01b031663e2a4853a612a1961276b565b6001600160a01b038116612e955760405162461bcd60e51b81526004018080602001828103825260268152602001806143076026913960400191505060405180910390fd5b6002546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600280546001600160a01b0319166001600160a01b0392909216919091179055565b60008184841115612f805760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612f45578181015183820152602001612f2d565b50505050905090810190601f168015612f725780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183612fd75760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315612f45578181015183820152602001612f2d565b506000838581612fe357fe5b0495945050505050565b60008080612ffa8561164e565b509150915060008061300b8561164e565b5091509150613043878961302e57613029868963ffffffff6122dc16565b61303e565b61303e868963ffffffff61249916565b6134c4565b61306c858961305c57613029848963ffffffff6122dc16565b61303e848963ffffffff61249916565b6130a0878961308a57613085858963ffffffff6122dc16565b61309a565b61309a858963ffffffff61249916565b4361353d565b61256a85896130b957613085838963ffffffff6122dc16565b61309a838963ffffffff61249916565b60006130d36113c6565b90506130e5818363ffffffff61249916565b9050611087816135bf565b60006130fb8361133a565b905061310d818363ffffffff61249916565b9050610e598382613620565b600061312584846114ee565b9050613137818363ffffffff61249916565b9050611964848483612710565b600061314e6113c6565b90506130e5818363ffffffff6122dc16565b600061316b8361133a565b9050600061317f828463ffffffff6122dc16565b90506119648482613620565b600080613198848461115e565b905060006131a58561108b565b905060006131b9828463ffffffff6122dc16565b905060006131c787876114ee565b905060006131db838363ffffffff61231e16565b90506131e681613682565b98975050505050505050565b6000806000806132018661164e565b925092509250600080613214888861369c565b91509150600061322489896114ee565b905060006132328a8a611180565b90506000613256613249438663ffffffff6122dc16565b849063ffffffff61231e16565b9050600083881480156132695750848711155b90506132758c8c61337d565b156132c857600061328f8d61328a8f8f611986565b6107bd565b94505050505060006132b56132b06132b0888561231e90919063ffffffff16565b613682565b9b506107b79a5050505050505050505050565b80156133065760006132db8d60006107bd565b5093505050506000848210156132f25760006132b5565b6132b56132b080848863ffffffff6122dc16565b60006133138d60006107bd565b509350505050600061333e613331898d6122dc90919063ffffffff16565b859063ffffffff61228f16565b905060008583101561335157600061336a565b61336a6132b080808561081c888c63ffffffff6122dc16565b9f9e505050505050505050505050505050565b60008061338a84846114ee565b90506000806133988661164e565b509150915060006133a76110bf565b505090508184148015612c8457509190911495945050505050565b6133ca610a75565b6001600160a01b031663e2a4853a612a9a8585612d81565b6133ea610a75565b6001600160a01b031663e2a4853a612a9a8585612809565b60006134258261225a856904ee2d6d415b85acef8160201b63ffffffff61231e16565b905061342f610a75565b6001600160a01b031663e2a4853a6134478787612872565b836040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b15801561348557600080fd5b505af1158015613499573d6000803e3d6000fd5b505050505050505050565b6134ac610a75565b6001600160a01b031663e2a4853a612a9a85856127a7565b6134cc610a75565b6001600160a01b031663e2a4853a6134e3846123b9565b836040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b15801561352157600080fd5b505af1158015613535573d6000803e3d6000fd5b505050505050565b60006135608261225a856904ee2d6d415b85acef8160201b63ffffffff61231e16565b905061356a610a75565b6001600160a01b031663e2a4853a61358186612416565b836040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b15801561255657600080fd5b60006135c9612971565b90506135d3610a75565b6001600160a01b031663e2a4853a82846040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b15801561352157600080fd5b600061362b83612923565b9050613635610a75565b6001600160a01b031663e2a4853a82846040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b158015612ad857600080fd5b60006107b782670de0b6b3a764000063ffffffff61237716565b6000806000806136ac8686611233565b9150915080600014156136c4576136c16110d9565b90505b909590945092505050565b610c2a806136dd8339019056fe6080604052600080546001600160a01b0319163317905534801561002257600080fd5b50610bf8806100326000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c8063a6f9dae1116100ad578063d5d2c56011610071578063d5d2c560146103f5578063dc97d96214610418578063e2a4853a14610435578063e2b202bf14610458578063f6bb3cc41461047557610121565b8063a6f9dae114610332578063abfdcced14610358578063bd02d0f51461037d578063c031a180146103ac578063ca446dd9146103c957610121565b8063616b59f6116100f4578063616b59f6146101be5780636e899550146101db5780637ae1cfca146102525780638c16009514610283578063986e791a146102a057610121565b80630e14a3761461012657806321f8a721146101455780632c62ff2d1461017e5780633e49bed01461019b575b600080fd5b6101436004803603602081101561013c57600080fd5b5035610492565b005b6101626004803603602081101561015b57600080fd5b50356104fd565b604080516001600160a01b039092168252519081900360200190f35b6101436004803603602081101561019457600080fd5b5035610518565b610143600480360360408110156101b157600080fd5b508035906020013561057d565b610143600480360360208110156101d457600080fd5b50356105dc565b610143600480360360408110156101f157600080fd5b8135919081019060408101602082013564010000000081111561021357600080fd5b82018360208201111561022557600080fd5b8035906020019184600183028401116401000000008311171561024757600080fd5b50909250905061063a565b61026f6004803603602081101561026857600080fd5b50356106a6565b604080519115158252519081900360200190f35b6101436004803603602081101561029957600080fd5b50356106bb565b6102bd600480360360208110156102b657600080fd5b5035610719565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102f75781810151838201526020016102df565b50505050905090810190601f1680156103245780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101436004803603602081101561034857600080fd5b50356001600160a01b03166107b8565b6101436004803603604081101561036e57600080fd5b50803590602001351515610827565b61039a6004803603602081101561039357600080fd5b5035610894565b60408051918252519081900360200190f35b61039a600480360360208110156103c257600080fd5b50356108a6565b610143600480360360408110156103df57600080fd5b50803590602001356001600160a01b03166108b8565b6101436004803603604081101561040b57600080fd5b5080359060200135610933565b61039a6004803603602081101561042e57600080fd5b5035610992565b6101436004803603604081101561044b57600080fd5b50803590602001356109a4565b6101436004803603602081101561046e57600080fd5b5035610a03565b6101436004803603602081101561048b57600080fd5b5035610a61565b6000546001600160a01b031633146104df576040805162461bcd60e51b81526020600482015260116024820152600080516020610ba4833981519152604482015290519081900360640190fd5b600090815260036020526040902080546001600160a01b0319169055565b6000908152600360205260409020546001600160a01b031690565b6000546001600160a01b03163314610565576040805162461bcd60e51b81526020600482015260116024820152600080516020610ba4833981519152604482015290519081900360640190fd5b6000908152600560205260409020805460ff19169055565b6000546001600160a01b031633146105ca576040805162461bcd60e51b81526020600482015260116024820152600080516020610ba4833981519152604482015290519081900360640190fd5b60009182526006602052604090912055565b6000546001600160a01b03163314610629576040805162461bcd60e51b81526020600482015260116024820152600080516020610ba4833981519152604482015290519081900360640190fd5b600090815260046020526040812055565b6000546001600160a01b03163314610687576040805162461bcd60e51b81526020600482015260116024820152600080516020610ba4833981519152604482015290519081900360640190fd5b60008381526002602052604090206106a0908383610ac8565b50505050565b60009081526005602052604090205460ff1690565b6000546001600160a01b03163314610708576040805162461bcd60e51b81526020600482015260116024820152600080516020610ba4833981519152604482015290519081900360640190fd5b600090815260066020526040812055565b600081815260026020818152604092839020805484516001821615610100026000190190911693909304601f810183900483028401830190945283835260609390918301828280156107ac5780601f10610781576101008083540402835291602001916107ac565b820191906000526020600020905b81548152906001019060200180831161078f57829003601f168201915b50505050509050919050565b6000546001600160a01b03163314610805576040805162461bcd60e51b81526020600482015260116024820152600080516020610ba4833981519152604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610874576040805162461bcd60e51b81526020600482015260116024820152600080516020610ba4833981519152604482015290519081900360640190fd5b600091825260056020526040909120805460ff1916911515919091179055565b60009081526001602052604090205490565b60009081526004602052604090205490565b6000546001600160a01b03163314610905576040805162461bcd60e51b81526020600482015260116024820152600080516020610ba4833981519152604482015290519081900360640190fd5b60009182526003602052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b6000546001600160a01b03163314610980576040805162461bcd60e51b81526020600482015260116024820152600080516020610ba4833981519152604482015290519081900360640190fd5b60009182526004602052604090912055565b60009081526006602052604090205490565b6000546001600160a01b031633146109f1576040805162461bcd60e51b81526020600482015260116024820152600080516020610ba4833981519152604482015290519081900360640190fd5b60009182526001602052604090912055565b6000546001600160a01b03163314610a50576040805162461bcd60e51b81526020600482015260116024820152600080516020610ba4833981519152604482015290519081900360640190fd5b600090815260016020526040812055565b6000546001600160a01b03163314610aae576040805162461bcd60e51b81526020600482015260116024820152600080516020610ba4833981519152604482015290519081900360640190fd5b6000818152600260205260408120610ac591610b46565b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610b095782800160ff19823516178555610b36565b82800160010185558215610b36579182015b82811115610b36578235825591602001919060010190610b1b565b50610b42929150610b86565b5090565b50805460018160011615610100020316600290046000825580601f10610b6c5750610ac5565b601f016020900490600052602060002090810190610ac591905b610ba091905b80821115610b425760008155600101610b8c565b9056fe6e6f742063757272656e74206f776e6572000000000000000000000000000000a265627a7a723158201be7c272e6d7800a9c9849b0410839b3d9fab9886270332b734a4d44d9e7723864736f6c634300051100324f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572756e61626c6520746f207374616b6520746f20756e61757468656e746963617465642070726f7065727479a265627a7a72315820941b7116e5aea27eddbda223ec4ba1c457c2427e18397c7fd22a5f1b250f350964736f6c63430005110032608060405234801561001057600080fd5b5061070b806100206000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c80631bde7d8f1461006757806349616d79146100a75780636dd893b9146100d5578063a21929631461010d578063b292b54914610145578063d16ff4701461016b575b600080fd5b6100a56004803603608081101561007d57600080fd5b506001600160a01b038135811691602081013582169160408201358116916060013516610199565b005b6100a5600480360360408110156100bd57600080fd5b506001600160a01b03813581169160200135166102a1565b6100a5600480360360608110156100eb57600080fd5b506001600160a01b03813581169160208101358216916040909101351661032b565b6100a56004803603606081101561012357600080fd5b506001600160a01b0381358116916020810135821691604090910135166103cf565b6100a56004803603602081101561015b57600080fd5b50356001600160a01b031661054b565b6100a56004803603604081101561018157600080fd5b506001600160a01b03813581169160200135166105c6565b826001600160a01b0316846001600160a01b031614156101b85761029b565b816001600160a01b0316846001600160a01b031614156101d75761029b565b806001600160a01b0316846001600160a01b0316146040518060400160405280601781526020016000805160206106b7833981519152815250906102995760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561025e578181015183820152602001610246565b50505050905090810190601f16801561028b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505b50505050565b806001600160a01b0316826001600160a01b0316146040518060400160405280601781526020016000805160206106b7833981519152815250906103265760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561025e578181015183820152602001610246565b505050565b816001600160a01b0316836001600160a01b0316141561034a57610326565b806001600160a01b0316836001600160a01b0316146040518060400160405280601781526020016000805160206106b78339815191528152509061029b5760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561025e578181015183820152602001610246565b816001600160a01b0316639e0cc3c4846040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561042557600080fd5b505afa158015610439573d6000803e3d6000fd5b505050506040513d602081101561044f57600080fd5b50511561045b57610326565b806001600160a01b0316639e0cc3c4846040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156104b157600080fd5b505afa1580156104c5573d6000803e3d6000fd5b505050506040513d60208110156104db57600080fd5b505160408051808201909152601781526000805160206106b783398151915260208201529061029b5760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561025e578181015183820152602001610246565b60408051808201909152601781526000805160206106b783398151915260208201526001600160a01b0382166105c25760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561025e578181015183820152602001610246565b5050565b806001600160a01b0316639e0cc3c4836040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561061c57600080fd5b505afa158015610630573d6000803e3d6000fd5b505050506040513d602081101561064657600080fd5b505160408051808201909152601781526000805160206106b78339815191526020820152906103265760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561025e57818101518382015260200161024656fe7468697320697320696c6c6567616c2061646472657373000000000000000000a265627a7a72315820667b5de3a803aaac8684108683c8810e13256a965db08b51f2f62d7cb8b8b15364736f6c634300051100320000000000000000000000001d415aa39d647834786eb9b5a333a50e9935b796

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102325760003560e01c80638da5cb5b11610130578063d6c31871116100b8578063f2fde38b1161007c578063f2fde38b146106a8578063f385cecb146106ce578063f9c514e4146106d6578063fb971d0114610704578063fd1ac3d81461070c57610232565b8063d6c3187114610617578063d85c7f4a1461061f578063e35e8cf11461064d578063edaf329f14610683578063f11248d21461068b57610232565b8063a2e62045116100ff578063a2e620451461056f578063a6f9dae114610577578063a7c25e051461059d578063af45f322146105c3578063d24f87a6146105e957610232565b80638da5cb5b146104f75780638f32d59b146104ff5780639137c1a71461051b57806395490d6c1461054157610232565b806360a05668116101be57806375b9504a1161018257806375b9504a1461048b5780637654f7ab146104b95780638017333d146104c157806381136f5a146104c957806387407e4c146104ef57610232565b806360a05668146103f957806360cec3701461041f5780636afa639c146104275780636f968c9f14610455578063715018a61461048357610232565b80634484ef69116102055780634484ef69146103185780634c33fe941461035757806351cff8d91461037f578063523f91b6146103a557806355fac3be146103cb57610232565b8063270d33bc1461023757806328dfdc1c14610277578063322d19eb146102ce578063393a4d34146102f4575b600080fd5b6102656004803603604081101561024d57600080fd5b506001600160a01b0381358116916020013516610732565b60408051918252519081900360200190f35b6102a36004803603604081101561028d57600080fd5b506001600160a01b0381351690602001356107bd565b6040805195865260208601949094528484019290925260608401526080830152519081900360a00190f35b610265600480360360208110156102e457600080fd5b50356001600160a01b03166109ee565b6102fc610a75565b604080516001600160a01b039092168252519081900360200190f35b61033e6004803603602081101561032e57600080fd5b50356001600160a01b0316610ada565b6040805192835260208301919091528051918290030190f35b61037d6004803603602081101561036d57600080fd5b50356001600160a01b0316610bbe565b005b61037d6004803603602081101561039557600080fd5b50356001600160a01b0316610e5e565b610265600480360360208110156103bb57600080fd5b50356001600160a01b031661108b565b610265600480360360408110156103e157600080fd5b506001600160a01b03813581169160200135166110ac565b6104016110bf565b60408051938452602084019290925282820152519081900360600190f35b6102656110d9565b6102656004803603604081101561043d57600080fd5b506001600160a01b038135811691602001351661115e565b6102656004803603604081101561046b57600080fd5b506001600160a01b0381358116916020013516611180565b61037d6111a2565b61033e600480360360408110156104a157600080fd5b506001600160a01b0381358116916020013516611233565b61026561130b565b61026561131a565b610265600480360360208110156104df57600080fd5b50356001600160a01b031661133a565b6102656113c6565b6102fc611450565b61050761145f565b604080519115158252519081900360200190f35b61037d6004803603602081101561053157600080fd5b50356001600160a01b0316611485565b6102656004803603604081101561055757600080fd5b506001600160a01b03813581169160200135166114ee565b61037d61157c565b61037d6004803603602081101561058d57600080fd5b50356001600160a01b031661159e565b610401600480360360208110156105b357600080fd5b50356001600160a01b031661164e565b61037d600480360360208110156105d957600080fd5b50356001600160a01b03166116ae565b610265600480360360408110156105ff57600080fd5b506001600160a01b038135811691602001351661196a565b6102fc611977565b6102656004803603604081101561063557600080fd5b506001600160a01b0381358116916020013516611986565b61037d6004803603606081101561066357600080fd5b506001600160a01b038135811691602081013590911690604001356119a8565b61033e611dcc565b61037d600480360360208110156106a157600080fd5b5035611ea0565b61037d600480360360208110156106be57600080fd5b50356001600160a01b0316611f45565b610265611f95565b610265600480360360408110156106ec57600080fd5b506001600160a01b0381358116916020013516611fa6565b61037d611fbb565b6102656004803603602081101561072257600080fd5b50356001600160a01b031661209f565b600061073c610a75565b6001600160a01b031663bd02d0f561075485856120aa565b6040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561078857600080fd5b505afa15801561079c573d6000803e3d6000fd5b505050506040513d60208110156107b257600080fd5b505190505b92915050565b6000806000806000806107ce612113565b50905060006107dc8961164e565b5050905060006107ea6110bf565b50509050600061082861080c8361080086612275565b9063ffffffff61228f16565b61081c868d63ffffffff6122dc16565b9063ffffffff61231e16565b905060006108358c61133a565b905060008c6001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561087257600080fd5b505afa158015610886573d6000803e3d6000fd5b505050506040513d602081101561089c57600080fd5b5051905060006108aa611977565b6001600160a01b0316630505c8c96040518163ffffffff1660e01b815260040160206040518083038186803b1580156108e257600080fd5b505afa1580156108f6573d6000803e3d6000fd5b505050506040513d602081101561090c57600080fd5b505160408051631759a88560e31b8152600481018790526024810186905290516001600160a01b039092169163bacd442891604480820192602092909190829003018186803b15801561095e57600080fd5b505afa158015610972573d6000803e3d6000fd5b505050506040513d602081101561098857600080fd5b50519050600061099e858363ffffffff6122dc16565b905087826109b2818663ffffffff61237716565b83600088116109c25760006109d2565b6109d2858963ffffffff61237716565b9c509c509c509c509c5050505050505050509295509295909350565b60006109f8610a75565b6001600160a01b031663bd02d0f5610a0f846123b9565b6040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015610a4357600080fd5b505afa158015610a57573d6000803e3d6000fd5b505050506040513d6020811015610a6d57600080fd5b505192915050565b6003546000906001600160a01b0316610aca576040805162461bcd60e51b81526020600482015260126024820152711cdd1bdc9859d9481a5cc81b9bdd081cd95d60721b604482015290519081900360640190fd5b506003546001600160a01b031690565b6000806000610ae7610a75565b6001600160a01b031663bd02d0f5610afe86612416565b6040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015610b3257600080fd5b505afa158015610b46573d6000803e3d6000fd5b505050506040513d6020811015610b5c57600080fd5b505190506000610b7f826904ee2d6d415b85acef8160201b63ffffffff61237716565b90506000610bb0610ba3836904ee2d6d415b85acef8160201b63ffffffff61231e16565b849063ffffffff6122dc16565b91945090925050505b915091565b610bc6612473565b6001600160a01b031663d16ff47082610bdd611977565b6001600160a01b031663ffeed7a96040518163ffffffff1660e01b815260040160206040518083038186803b158015610c1557600080fd5b505afa158015610c29573d6000803e3d6000fd5b505050506040513d6020811015610c3f57600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b039384166004820152929091166024830152516044808301926000929190829003018186803b158015610c8f57600080fd5b505afa158015610ca3573d6000803e3d6000fd5b50505050610cb18133612482565b610cfc576040805162461bcd60e51b815260206004820152601760248201527619195d881d1bdad95b881a5cc81b9bdd081b1bd8dad959604a1b604482015290519081900360640190fd5b6000610d08823361196a565b1580159150610d5e576040805162461bcd60e51b815260206004820152601a60248201527f6c6f636b757020697320616c72656164792063616e63656c6564000000000000604482015290519081900360640190fd5b6000610d68611977565b6001600160a01b0316630505c8c96040518163ffffffff1660e01b815260040160206040518083038186803b158015610da057600080fd5b505afa158015610db4573d6000803e3d6000fd5b505050506040513d6020811015610dca57600080fd5b5051604080516392a3f61760e01b815290516001600160a01b03909216916392a3f61791600480820192602092909190829003018186803b158015610e0e57600080fd5b505afa158015610e22573d6000803e3d6000fd5b505050506040513d6020811015610e3857600080fd5b50519050610e4c814363ffffffff61249916565b9050610e598333836124f3565b505050565b610e66612473565b6001600160a01b031663d16ff47082610e7d611977565b6001600160a01b031663ffeed7a96040518163ffffffff1660e01b815260040160206040518083038186803b158015610eb557600080fd5b505afa158015610ec9573d6000803e3d6000fd5b505050506040513d6020811015610edf57600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b039384166004820152929091166024830152516044808301926000929190829003018186803b158015610f2f57600080fd5b505afa158015610f43573d6000803e3d6000fd5b50505050610f518133612574565b610f98576040805162461bcd60e51b815260206004820152601360248201527277616974696e6720666f722072656c6561736560681b604482015290519081900360640190fd5b6000610fa482336114ee565b905080610ff2576040805162461bcd60e51b815260206004820152601760248201527619195d881d1bdad95b881a5cc81b9bdd081b1bd8dad959604a1b604482015290519081900360640190fd5b610ffc8233612699565b6040805163f3fef3a360e01b81523360048201526024810183905290516001600160a01b0384169163f3fef3a391604480830192600092919082900301818387803b15801561104a57600080fd5b505af115801561105e573d6000803e3d6000fd5b5050505061106f60003384846126bc565b61107b82336000612710565b611087823360006124f3565b5050565b6000611095610a75565b6001600160a01b031663bd02d0f5610a0f8461271c565b60006110b883836114ee565b9392505050565b60008060006110ce600061164e565b925092509250909192565b60006110e3610a75565b6001600160a01b031663bd02d0f56110f961276b565b6040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561112d57600080fd5b505afa158015611141573d6000803e3d6000fd5b505050506040513d602081101561115757600080fd5b5051905090565b6000611168610a75565b6001600160a01b031663bd02d0f561075485856127a7565b600061118a610a75565b6001600160a01b031663bd02d0f56107548585612809565b6111aa61145f565b6111e9576040805162461bcd60e51b8152602060048201819052602482015260008051602061434e833981519152604482015290519081900360640190fd5b6002546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600280546001600160a01b0319169055565b6000806000611240610a75565b6001600160a01b031663bd02d0f56112588787612872565b6040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561128c57600080fd5b505afa1580156112a0573d6000803e3d6000fd5b505050506040513d60208110156112b657600080fd5b5051905060006112d9826904ee2d6d415b85acef8160201b63ffffffff61237716565b905060006112fd610ba3836904ee2d6d415b85acef8160201b63ffffffff61231e16565b919791965090945050505050565b60006113156113c6565b905090565b6000611324610a75565b6001600160a01b031663bd02d0f56110f96128db565b60008061134683612923565b9050611350610a75565b6001600160a01b031663bd02d0f5826040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561139357600080fd5b505afa1580156113a7573d6000803e3d6000fd5b505050506040513d60208110156113bd57600080fd5b50519392505050565b6000806113d1612971565b90506113db610a75565b6001600160a01b031663bd02d0f5826040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561141e57600080fd5b505afa158015611432573d6000803e3d6000fd5b505050506040513d602081101561144857600080fd5b505191505090565b6002546001600160a01b031690565b6002546000906001600160a01b03166114766129a5565b6001600160a01b031614905090565b61148d61145f565b6114cc576040805162461bcd60e51b8152602060048201819052602482015260008051602061434e833981519152604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6000806114fb84846129a9565b9050611505610a75565b6001600160a01b031663bd02d0f5826040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561154857600080fd5b505afa15801561155c573d6000803e3d6000fd5b505050506040513d602081101561157257600080fd5b5051949350505050565b600080611587612113565b91509150611594826129fb565b6110878143612a57565b6115a661145f565b6115e5576040805162461bcd60e51b8152602060048201819052602482015260008051602061434e833981519152604482015290519081900360640190fd5b6003546040805163a6f9dae160e01b81526001600160a01b0384811660048301529151919092169163a6f9dae191602480830192600092919082900301818387803b15801561163357600080fd5b505af1158015611647573d6000803e3d6000fd5b5050505050565b600080600080600061165f86612af5565b91509150600061166e876109ee565b90506116a0611693611686438563ffffffff6122dc16565b859063ffffffff61231e16565b829063ffffffff61249916565b979296509094509092505050565b6116b6612473565b6001600160a01b031663d16ff470826116cd611977565b6001600160a01b031663ffeed7a96040518163ffffffff1660e01b815260040160206040518083038186803b15801561170557600080fd5b505afa158015611719573d6000803e3d6000fd5b505050506040513d602081101561172f57600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b039384166004820152929091166024830152516044808301926000929190829003018186803b15801561177f57600080fd5b505afa158015611793573d6000803e3d6000fd5b5050505060006117a38233612b54565b905060006117b28360006107bd565b5093505050506000821161180d576040805162461bcd60e51b815260206004820152601960248201527f796f757220696e74657265737420616d6f756e74206973203000000000000000604482015290519081900360640190fd5b61181983336000612c8f565b6000611823611977565b6001600160a01b031663fc0c546a6040518163ffffffff1660e01b815260040160206040518083038186803b15801561185b57600080fd5b505afa15801561186f573d6000803e3d6000fd5b505050506040513d602081101561188557600080fd5b50519050611894843384612caf565b61189e8433612cfc565b604080516340c10f1960e01b81523360048201526024810185905290516001600160a01b038316916340c10f199160448083019260209291908290030181600087803b1580156118ed57600080fd5b505af1158015611901573d6000803e3d6000fd5b505050506040513d602081101561191757600080fd5b505161195c576040805162461bcd60e51b815260206004820152600f60248201526e19195d881b5a5b9d0819985a5b1959608a1b604482015290519081900360640190fd5b61196461157c565b50505050565b6000806114fb8484612d24565b6000546001600160a01b031690565b6000611990610a75565b6001600160a01b031663bd02d0f56107548585612d81565b6119b0612473565b6001600160a01b03166349616d79336119c7611977565b6001600160a01b031663fc0c546a6040518163ffffffff1660e01b815260040160206040518083038186803b1580156119ff57600080fd5b505afa158015611a13573d6000803e3d6000fd5b505050506040513d6020811015611a2957600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b039384166004820152929091166024830152516044808301926000929190829003018186803b158015611a7957600080fd5b505afa158015611a8d573d6000803e3d6000fd5b50505050611a99612473565b6001600160a01b031663d16ff47083611ab0611977565b6001600160a01b031663ffeed7a96040518163ffffffff1660e01b815260040160206040518083038186803b158015611ae857600080fd5b505afa158015611afc573d6000803e3d6000fd5b505050506040513d6020811015611b1257600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b039384166004820152929091166024830152516044808301926000929190829003018186803b158015611b6257600080fd5b505afa158015611b76573d6000803e3d6000fd5b505050508060001415611bc7576040805162461bcd60e51b8152602060048201526014602482015273696c6c6567616c206c6f636b75702076616c756560601b604482015290519081900360640190fd5b611bcf611977565b6001600160a01b031663628f043d6040518163ffffffff1660e01b815260040160206040518083038186803b158015611c0757600080fd5b505afa158015611c1b573d6000803e3d6000fd5b505050506040513d6020811015611c3157600080fd5b505160408051638b234cb160e01b81526001600160a01b03858116600483015291519190921691638b234cb1916024808301926020929190829003018186803b158015611c7d57600080fd5b505afa158015611c91573d6000803e3d6000fd5b505050506040513d6020811015611ca757600080fd5b5051611ce45760405162461bcd60e51b815260040180806020018281038252602b81526020018061436e602b913960400191505060405180910390fd5b6000611cf0838561196a565b1580159150611d46576040805162461bcd60e51b815260206004820152601a60248201527f6c6f636b757020697320616c72656164792063616e63656c6564000000000000604482015290519081900360640190fd5b611d508385612699565b6000611d5d8460006107bd565b509350505050611d6e848683612caf565b611d7b60018686866126bc565b604080516001600160a01b0380881682528616602082015280820185905290517f71601c75cd9722fdbd6d57dbb30980d4a4bd6169ba3d456dc18b7f878629d7bf9181900360600190a15050505050565b6000806000611dd9610a75565b6001600160a01b031663bd02d0f5611def612dea565b6040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015611e2357600080fd5b505afa158015611e37573d6000803e3d6000fd5b505050506040513d6020811015611e4d57600080fd5b505190506000611e70826904ee2d6d415b85acef8160201b63ffffffff61237716565b90506000611e94610ba3836904ee2d6d415b85acef8160201b63ffffffff61231e16565b91945090925050509091565b611ea861145f565b611ee7576040805162461bcd60e51b8152602060048201819052602482015260008051602061434e833981519152604482015290519081900360640190fd5b611eef6110d9565b15611f39576040805162461bcd60e51b8152602060048201526015602482015274616c726561647920736574207468652076616c756560581b604482015290519081900360640190fd5b611f4281612e32565b50565b611f4d61145f565b611f8c576040805162461bcd60e51b8152602060048201819052602482015260008051602061434e833981519152604482015290519081900360640190fd5b611f4281612e50565b6904ee2d6d415b85acef8160201b81565b600080611fb38484612b54565b949350505050565b611fc361145f565b612002576040805162461bcd60e51b8152602060048201819052602482015260008051602061434e833981519152604482015290519081900360640190fd5b6003546001600160a01b031615612051576040805162461bcd60e51b815260206004820152600e60248201526d1cdd1bdc9859d9481a5cc81cd95d60921b604482015290519081900360640190fd5b600060405161205f906136cf565b604051809103906000f08015801561207b573d6000803e3d6000fd5b50600380546001600160a01b0319166001600160a01b039290921691909117905550565b60006107b78261133a565b604080517f5f70656e64696e67496e7465726573745769746864726177616c0000000000006020808301919091526001600160601b0319606086811b8216603a85015285901b16604e830152825160428184030181526062909201909252805191012092915050565b6000806000612120611977565b6001600160a01b031663aa5dcecc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561215857600080fd5b505afa15801561216c573d6000803e3d6000fd5b505050506040513d602081101561218257600080fd5b505160408051633aa5460b60e01b815290516001600160a01b0390921691633aa5460b91600480820192602092909190829003018186803b1580156121c657600080fd5b505afa1580156121da573d6000803e3d6000fd5b505050506040513d60208110156121f057600080fd5b505190506000806121ff611dcc565b9150915060008383146122125782612214565b835b90506000808311612226576000612236565b612236438463ffffffff6122dc16565b9050600061224a838363ffffffff61231e16565b905060006122668261225a61131a565b9063ffffffff61249916565b98509596505050505050509091565b60006107b782670de0b6b3a764000063ffffffff61231e16565b60008261229e575060006107b7565b60006122b884670de0b6b3a764000063ffffffff61231e16565b9050828110156122cc5760009150506107b7565b611fb3818463ffffffff61237716565b60006110b883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612ef1565b60008261232d575060006107b7565b8282028284828161233a57fe5b04146110b85760405162461bcd60e51b815260040180806020018281038252602181526020018061432d6021913960400191505060405180910390fd5b60006110b883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612f88565b604080517f5f63756d756c61746976654c6f636b6564557056616c7565000000000000000060208083019190915260609390931b6001600160601b03191660388201528151808203602c018152604c909101909152805191012090565b604080517f5f63756d756c61746976654c6f636b65645570556e6974416e64426c6f636b0060208083019190915260609390931b6001600160601b031916603f820152815180820360330181526053909101909152805191012090565b6001546001600160a01b031690565b60008061248f84846114ee565b1515949350505050565b6000828201838110156110b8576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60006124ff8484612d24565b9050612509610a75565b6001600160a01b031663e2a4853a82846040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b15801561255657600080fd5b505af115801561256a573d6000803e3d6000fd5b5050505050505050565b600080612581848461196a565b9050806125925760009150506107b7565b4381116125a35760019150506107b7565b6125ab611977565b6001600160a01b0316630505c8c96040518163ffffffff1660e01b815260040160206040518083038186803b1580156125e357600080fd5b505afa1580156125f7573d6000803e3d6000fd5b505050506040513d602081101561260d57600080fd5b5051604080516392a3f61760e01b815290516001600160a01b03909216916392a3f61791600480820192602092909190829003018186803b15801561265157600080fd5b505afa158015612665573d6000803e3d6000fd5b505050506040513d602081101561267b57600080fd5b50516001141561268f5760019150506107b7565b5060009392505050565b60006126a58383612b54565b90506126b2838383612c8f565b610e598383612cfc565b83156126f1576126ce60018383612fed565b6126d7816130c9565b6126e182826130f0565b6126ec828483613119565b61195c565b6126fd60008383612fed565b61270681613144565b61195c8282613160565b60006124ff84846129a9565b604080516e5f696e746572657374546f74616c7360881b60208083019190915260609390931b6001600160601b031916602f820152815180820360230181526043909101909152805191012090565b60408051705f6469703447656e65736973426c6f636b60781b602080830191909152825180830360110181526031909201909252805191012090565b60408051755f6c6173744c617374496e746572657374507269636560501b6020808301919091526001600160601b0319606086811b8216603685015285901b16604a8301528251603e818403018152605e909201909252805191012092915050565b604080517f5f6c61737443756d756c617469766550726f7065727479496e746572657374006020808301919091526001600160601b0319606086811b8216603f85015285901b166053830152825160478184030181526067909201909252805191012092915050565b604080517f5f6c61737443756d756c61746976654c6f636b65645570416e64426c6f636b006020808301919091526001600160601b0319606086811b8216603f85015285901b166053830152825160478184030181526067909201909252805191012092915050565b604080517f5f63756d756c6174697665476c6f62616c526577617264730000000000000000602080830191909152825180830360180181526038909201909252805191012090565b604080516d5f70726f706572747956616c756560901b60208083019190915260609390931b6001600160601b031916602e820152815180820360220181526042909101909152805191012090565b60408051685f616c6c56616c756560b81b602080830191909152825180830360090181526029909201909252805191012090565b3390565b60408051655f76616c756560d01b6020808301919091526001600160601b0319606086811b8216602685015285901b16603a8301528251602e818403018152604e909201909252805191012092915050565b612a03610a75565b6001600160a01b031663e2a4853a612a196128db565b836040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b15801561163357600080fd5b6000612a7a8261225a856904ee2d6d415b85acef8160201b63ffffffff61231e16565b9050612a84610a75565b6001600160a01b031663e2a4853a612a9a612dea565b836040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b158015612ad857600080fd5b505af1158015612aec573d6000803e3d6000fd5b50505050505050565b600080600080612b0485610ada565b90925090508015612b19579092509050610bb9565b6001600160a01b03851615612b3657612b318561133a565b612b3e565b612b3e6113c6565b9150612b486110d9565b91935090915050915091565b6000612b5e611977565b6001600160a01b031663628f043d6040518163ffffffff1660e01b815260040160206040518083038186803b158015612b9657600080fd5b505afa158015612baa573d6000803e3d6000fd5b505050506040513d6020811015612bc057600080fd5b505160408051638b234cb160e01b81526001600160a01b03868116600483015291519190921691638b234cb1916024808301926020929190829003018186803b158015612c0c57600080fd5b505afa158015612c20573d6000803e3d6000fd5b505050506040513d6020811015612c3657600080fd5b5051612c44575060006107b7565b6000612c508484610732565b90506000612c5e858561318b565b90506000612c6c86866131f2565b90506000612c848361225a848763ffffffff61249916565b979650505050505050565b612c97610a75565b6001600160a01b031663e2a4853a612a9a85856120aa565b6000612cb9612113565b509050612cc6848461337d565b15612cd657612cd68484836133c2565b612ce18484846133e2565b6000612cec8561164e565b5050905061164785858343613402565b6000612d078361108b565b905080612d14848461115e565b14610e5957610e598383836134a4565b60408051705f7769746864726177616c53746174757360781b6020808301919091526001600160601b0319606086811b8216603185015285901b166045830152825160398184030181526059909201909252805191012092915050565b604080517f5f4c61737443756d756c6174697665476c6f62616c52657761726400000000006020808301919091526001600160601b0319606086811b8216603b85015285901b16604f830152825160438184030181526063909201909252805191012092915050565b604080517f5f4c61737453616d6552657761726473416d6f756e74416e64426c6f636b00006020808301919091528251808303601e018152603e909201909252805191012090565b612e3a610a75565b6001600160a01b031663e2a4853a612a1961276b565b6001600160a01b038116612e955760405162461bcd60e51b81526004018080602001828103825260268152602001806143076026913960400191505060405180910390fd5b6002546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600280546001600160a01b0319166001600160a01b0392909216919091179055565b60008184841115612f805760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612f45578181015183820152602001612f2d565b50505050905090810190601f168015612f725780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183612fd75760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315612f45578181015183820152602001612f2d565b506000838581612fe357fe5b0495945050505050565b60008080612ffa8561164e565b509150915060008061300b8561164e565b5091509150613043878961302e57613029868963ffffffff6122dc16565b61303e565b61303e868963ffffffff61249916565b6134c4565b61306c858961305c57613029848963ffffffff6122dc16565b61303e848963ffffffff61249916565b6130a0878961308a57613085858963ffffffff6122dc16565b61309a565b61309a858963ffffffff61249916565b4361353d565b61256a85896130b957613085838963ffffffff6122dc16565b61309a838963ffffffff61249916565b60006130d36113c6565b90506130e5818363ffffffff61249916565b9050611087816135bf565b60006130fb8361133a565b905061310d818363ffffffff61249916565b9050610e598382613620565b600061312584846114ee565b9050613137818363ffffffff61249916565b9050611964848483612710565b600061314e6113c6565b90506130e5818363ffffffff6122dc16565b600061316b8361133a565b9050600061317f828463ffffffff6122dc16565b90506119648482613620565b600080613198848461115e565b905060006131a58561108b565b905060006131b9828463ffffffff6122dc16565b905060006131c787876114ee565b905060006131db838363ffffffff61231e16565b90506131e681613682565b98975050505050505050565b6000806000806132018661164e565b925092509250600080613214888861369c565b91509150600061322489896114ee565b905060006132328a8a611180565b90506000613256613249438663ffffffff6122dc16565b849063ffffffff61231e16565b9050600083881480156132695750848711155b90506132758c8c61337d565b156132c857600061328f8d61328a8f8f611986565b6107bd565b94505050505060006132b56132b06132b0888561231e90919063ffffffff16565b613682565b9b506107b79a5050505050505050505050565b80156133065760006132db8d60006107bd565b5093505050506000848210156132f25760006132b5565b6132b56132b080848863ffffffff6122dc16565b60006133138d60006107bd565b509350505050600061333e613331898d6122dc90919063ffffffff16565b859063ffffffff61228f16565b905060008583101561335157600061336a565b61336a6132b080808561081c888c63ffffffff6122dc16565b9f9e505050505050505050505050505050565b60008061338a84846114ee565b90506000806133988661164e565b509150915060006133a76110bf565b505090508184148015612c8457509190911495945050505050565b6133ca610a75565b6001600160a01b031663e2a4853a612a9a8585612d81565b6133ea610a75565b6001600160a01b031663e2a4853a612a9a8585612809565b60006134258261225a856904ee2d6d415b85acef8160201b63ffffffff61231e16565b905061342f610a75565b6001600160a01b031663e2a4853a6134478787612872565b836040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b15801561348557600080fd5b505af1158015613499573d6000803e3d6000fd5b505050505050505050565b6134ac610a75565b6001600160a01b031663e2a4853a612a9a85856127a7565b6134cc610a75565b6001600160a01b031663e2a4853a6134e3846123b9565b836040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b15801561352157600080fd5b505af1158015613535573d6000803e3d6000fd5b505050505050565b60006135608261225a856904ee2d6d415b85acef8160201b63ffffffff61231e16565b905061356a610a75565b6001600160a01b031663e2a4853a61358186612416565b836040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b15801561255657600080fd5b60006135c9612971565b90506135d3610a75565b6001600160a01b031663e2a4853a82846040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b15801561352157600080fd5b600061362b83612923565b9050613635610a75565b6001600160a01b031663e2a4853a82846040518363ffffffff1660e01b81526004018083815260200182815260200192505050600060405180830381600087803b158015612ad857600080fd5b60006107b782670de0b6b3a764000063ffffffff61237716565b6000806000806136ac8686611233565b9150915080600014156136c4576136c16110d9565b90505b909590945092505050565b610c2a806136dd8339019056fe6080604052600080546001600160a01b0319163317905534801561002257600080fd5b50610bf8806100326000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c8063a6f9dae1116100ad578063d5d2c56011610071578063d5d2c560146103f5578063dc97d96214610418578063e2a4853a14610435578063e2b202bf14610458578063f6bb3cc41461047557610121565b8063a6f9dae114610332578063abfdcced14610358578063bd02d0f51461037d578063c031a180146103ac578063ca446dd9146103c957610121565b8063616b59f6116100f4578063616b59f6146101be5780636e899550146101db5780637ae1cfca146102525780638c16009514610283578063986e791a146102a057610121565b80630e14a3761461012657806321f8a721146101455780632c62ff2d1461017e5780633e49bed01461019b575b600080fd5b6101436004803603602081101561013c57600080fd5b5035610492565b005b6101626004803603602081101561015b57600080fd5b50356104fd565b604080516001600160a01b039092168252519081900360200190f35b6101436004803603602081101561019457600080fd5b5035610518565b610143600480360360408110156101b157600080fd5b508035906020013561057d565b610143600480360360208110156101d457600080fd5b50356105dc565b610143600480360360408110156101f157600080fd5b8135919081019060408101602082013564010000000081111561021357600080fd5b82018360208201111561022557600080fd5b8035906020019184600183028401116401000000008311171561024757600080fd5b50909250905061063a565b61026f6004803603602081101561026857600080fd5b50356106a6565b604080519115158252519081900360200190f35b6101436004803603602081101561029957600080fd5b50356106bb565b6102bd600480360360208110156102b657600080fd5b5035610719565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102f75781810151838201526020016102df565b50505050905090810190601f1680156103245780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101436004803603602081101561034857600080fd5b50356001600160a01b03166107b8565b6101436004803603604081101561036e57600080fd5b50803590602001351515610827565b61039a6004803603602081101561039357600080fd5b5035610894565b60408051918252519081900360200190f35b61039a600480360360208110156103c257600080fd5b50356108a6565b610143600480360360408110156103df57600080fd5b50803590602001356001600160a01b03166108b8565b6101436004803603604081101561040b57600080fd5b5080359060200135610933565b61039a6004803603602081101561042e57600080fd5b5035610992565b6101436004803603604081101561044b57600080fd5b50803590602001356109a4565b6101436004803603602081101561046e57600080fd5b5035610a03565b6101436004803603602081101561048b57600080fd5b5035610a61565b6000546001600160a01b031633146104df576040805162461bcd60e51b81526020600482015260116024820152600080516020610ba4833981519152604482015290519081900360640190fd5b600090815260036020526040902080546001600160a01b0319169055565b6000908152600360205260409020546001600160a01b031690565b6000546001600160a01b03163314610565576040805162461bcd60e51b81526020600482015260116024820152600080516020610ba4833981519152604482015290519081900360640190fd5b6000908152600560205260409020805460ff19169055565b6000546001600160a01b031633146105ca576040805162461bcd60e51b81526020600482015260116024820152600080516020610ba4833981519152604482015290519081900360640190fd5b60009182526006602052604090912055565b6000546001600160a01b03163314610629576040805162461bcd60e51b81526020600482015260116024820152600080516020610ba4833981519152604482015290519081900360640190fd5b600090815260046020526040812055565b6000546001600160a01b03163314610687576040805162461bcd60e51b81526020600482015260116024820152600080516020610ba4833981519152604482015290519081900360640190fd5b60008381526002602052604090206106a0908383610ac8565b50505050565b60009081526005602052604090205460ff1690565b6000546001600160a01b03163314610708576040805162461bcd60e51b81526020600482015260116024820152600080516020610ba4833981519152604482015290519081900360640190fd5b600090815260066020526040812055565b600081815260026020818152604092839020805484516001821615610100026000190190911693909304601f810183900483028401830190945283835260609390918301828280156107ac5780601f10610781576101008083540402835291602001916107ac565b820191906000526020600020905b81548152906001019060200180831161078f57829003601f168201915b50505050509050919050565b6000546001600160a01b03163314610805576040805162461bcd60e51b81526020600482015260116024820152600080516020610ba4833981519152604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610874576040805162461bcd60e51b81526020600482015260116024820152600080516020610ba4833981519152604482015290519081900360640190fd5b600091825260056020526040909120805460ff1916911515919091179055565b60009081526001602052604090205490565b60009081526004602052604090205490565b6000546001600160a01b03163314610905576040805162461bcd60e51b81526020600482015260116024820152600080516020610ba4833981519152604482015290519081900360640190fd5b60009182526003602052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b6000546001600160a01b03163314610980576040805162461bcd60e51b81526020600482015260116024820152600080516020610ba4833981519152604482015290519081900360640190fd5b60009182526004602052604090912055565b60009081526006602052604090205490565b6000546001600160a01b031633146109f1576040805162461bcd60e51b81526020600482015260116024820152600080516020610ba4833981519152604482015290519081900360640190fd5b60009182526001602052604090912055565b6000546001600160a01b03163314610a50576040805162461bcd60e51b81526020600482015260116024820152600080516020610ba4833981519152604482015290519081900360640190fd5b600090815260016020526040812055565b6000546001600160a01b03163314610aae576040805162461bcd60e51b81526020600482015260116024820152600080516020610ba4833981519152604482015290519081900360640190fd5b6000818152600260205260408120610ac591610b46565b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610b095782800160ff19823516178555610b36565b82800160010185558215610b36579182015b82811115610b36578235825591602001919060010190610b1b565b50610b42929150610b86565b5090565b50805460018160011615610100020316600290046000825580601f10610b6c5750610ac5565b601f016020900490600052602060002090810190610ac591905b610ba091905b80821115610b425760008155600101610b8c565b9056fe6e6f742063757272656e74206f776e6572000000000000000000000000000000a265627a7a723158201be7c272e6d7800a9c9849b0410839b3d9fab9886270332b734a4d44d9e7723864736f6c634300051100324f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572756e61626c6520746f207374616b6520746f20756e61757468656e746963617465642070726f7065727479a265627a7a72315820941b7116e5aea27eddbda223ec4ba1c457c2427e18397c7fd22a5f1b250f350964736f6c63430005110032

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

0000000000000000000000001d415aa39d647834786eb9b5a333a50e9935b796

-----Decoded View---------------
Arg [0] : _config (address): 0x1D415aa39D647834786EB9B5a333A50e9935b796

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000001d415aa39d647834786eb9b5a333a50e9935b796


Deployed Bytecode Sourcemap

54438:30228:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;54438:30228:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47929:233;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;47929:233:0;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;68828:2009;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;68828:2009:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47280:200;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;47280:200:0;-1:-1:-1;;;;;47280:200:0;;:::i;38436:97::-;;;:::i;:::-;;;;-1:-1:-1;;;;;38436:97:0;;;;;;;;;;;;;;46476:362;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;46476:362:0;-1:-1:-1;;;;;46476:362:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;56536:961;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;56536:961:0;-1:-1:-1;;;;;56536:961:0;;:::i;:::-;;57614:1291;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;57614:1291:0;-1:-1:-1;;;;;57614:1291:0;;:::i;42200:173::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;42200:173:0;-1:-1:-1;;;;;42200:173:0;;:::i;80104:149::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;80104:149:0;;;;;;;;;;:::i;61825:273::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;48564:142;;;:::i;42795:218::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;42795:218:0;;;;;;;;;;:::i;45643:243::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;45643:243:0;;;;;;;;;;:::i;25631:125::-;;;:::i;49207:405::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;49207:405:0;;;;;;;;;;:::i;79494:92::-;;;:::i;44265:156::-;;;:::i;40863:195::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;40863:195:0;-1:-1:-1;;;;;40863:195:0;;:::i;39763:148::-;;;:::i;24901:70::-;;;:::i;25219:85::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;39029:100;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;39029:100:0;-1:-1:-1;;;;;39029:100:0;;:::i;40260:205::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;40260:205:0;;;;;;;;;;:::i;64381:381::-;;;:::i;39258:114::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;39258:114:0;-1:-1:-1;;;;;39258:114:0;;:::i;60869:785::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;60869:785:0;-1:-1:-1;;;;;60869:785:0;;:::i;76675:1292::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;76675:1292:0;-1:-1:-1;;;;;76675:1292:0;;:::i;41485:223::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;41485:223:0;;;;;;;;;;:::i;32662:90::-;;;:::i;44861:235::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;44861:235:0;;;;;;;;;;:::i;54911:1481::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;54911:1481:0;;;;;;;;;;;;;;;;;:::i;43535:350::-;;;:::i;84393:270::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;84393:270:0;;:::i;25896:100::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;25896:100:0;-1:-1:-1;;;;;25896:100:0;;:::i;39532:65::-;;;:::i;76394:218::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;76394:218:0;;;;;;;;;;:::i;38716:177::-;;;:::i;81415:139::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;81415:139:0;-1:-1:-1;;;;;81415:139:0;;:::i;47929:233::-;48039:7;48064:16;:14;:16::i;:::-;-1:-1:-1;;;;;48064:24:0;;48095:56;48134:9;48145:5;48095:38;:56::i;:::-;48064:93;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;48064:93:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;48064:93:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;48064:93:0;;-1:-1:-1;47929:233:0;;;;;:::o;68828:2009::-;68923:15;68944:22;68972:21;68999:23;69028:22;69136:15;69157:5;:3;:5::i;:::-;69135:27;;;69341:24;69373:32;69395:9;69373:21;:32::i;:::-;69340:65;;;;69411:16;69435:26;:24;:26::i;:::-;69410:51;;;;69880:23;69906:82;69940:43;69974:8;69940:27;:16;:25;:27::i;:::-;:33;:43;:33;:43;:::i;:::-;69906:24;:7;69918:11;69906:24;:11;:24;:::i;:::-;:28;:82;:28;:82;:::i;:::-;69880:108;;70192:27;70222:34;70246:9;70222:23;:34::i;:::-;70192:64;;70261:19;70297:9;-1:-1:-1;;;;;70283:36:0;;:38;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;70283:38:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;70283:38:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;70283:38:0;;-1:-1:-1;70326:15:0;70352:8;:6;:8::i;:::-;-1:-1:-1;;;;;70352:15:0;;:17;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;70352:17:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;70352:17:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;70352:17:0;70344:90;;;-1:-1:-1;;;70344:90:0;;;;;;;;;;;;;;;;-1:-1:-1;;;;;70344:39:0;;;;;;:90;;;;;70352:17;;70344:90;;;;;;;;:39;:90;;;5:2:-1;;;;30:1;27;20:12;5:2;70344:90:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;70344:90:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;70344:90:0;;-1:-1:-1;70555:16:0;70574:28;:15;70344:90;70574:28;:19;:28;:::i;:::-;70555:47;-1:-1:-1;70694:7:0;70707;70720:24;70707:7;70732:11;70720:24;:11;:24;:::i;:::-;70750:8;70786:1;70764:19;:23;:63;;70826:1;70764:63;;;70790:33;:8;70803:19;70790:33;:12;:33;:::i;:::-;70681:151;;;;;;;;;;;;;;;;;;68828:2009;;;;;;;;:::o;47280:200::-;47368:7;47395:16;:14;:16::i;:::-;-1:-1:-1;;;;;47395:24:0;;47426:43;47463:5;47426:36;:43::i;:::-;47395:80;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;47395:80:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;47395:80:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;47395:80:0;;47280:200;-1:-1:-1;;47280:200:0:o;38436:97::-;38124:8;;38499:7;;-1:-1:-1;;;;;38124:8:0;38116:53;;;;;-1:-1:-1;;;38116:53:0;;;;;;;;;;;;-1:-1:-1;;;38116:53:0;;;;;;;;;;;;;;;-1:-1:-1;38520:8:0;;-1:-1:-1;;;;;38520:8:0;38436:97;:::o;46476:362::-;46571:13;46586:14;46609;46626:16;:14;:16::i;:::-;-1:-1:-1;;;;;46626:24:0;;46656:50;46700:5;46656:43;:50::i;:::-;46626:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;46626:85:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;46626:85:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;46626:85:0;;-1:-1:-1;46716:12:0;46731:17;46626:85;-1:-1:-1;;;46731:17:0;:10;:17;:::i;:::-;46716:32;-1:-1:-1;46753:19:0;46775:27;46786:15;46716:32;-1:-1:-1;;;46786:15:0;:8;:15;:::i;:::-;46775:6;;:27;:10;:27;:::i;:::-;46815:4;;-1:-1:-1;46753:49:0;;-1:-1:-1;;;46476:362:0;;;;:::o;56536:961::-;56662:18;:16;:18::i;:::-;-1:-1:-1;;;;;56662:32:0;;56695:9;56706:8;:6;:8::i;:::-;-1:-1:-1;;;;;56706:22:0;;:24;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;56706:24:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;56706:24:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;56706:24:0;56662:69;;;-1:-1:-1;;;;;;56662:69:0;;;;;;;-1:-1:-1;;;;;56662:69:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;56662:69:0;;;;;;;;;;;5:2:-1;;;;30:1;27;20:12;5:2;56662:69:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;56662:69:0;;;;56822:31;56831:9;56842:10;56822:8;:31::i;:::-;56814:67;;;;;-1:-1:-1;;;56814:67:0;;;;;;;;;;;;-1:-1:-1;;;56814:67:0;;;;;;;;;;;;;;;56945:14;56962:49;56989:9;57000:10;56962:26;:49::i;:::-;:54;;;;-1:-1:-1;57021:57:0;;;;;-1:-1:-1;;;57021:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;57314:19;57344:8;:6;:8::i;:::-;-1:-1:-1;;;;;57344:15:0;;:17;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;57344:17:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;57344:17:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;57344:17:0;57336:41;;;-1:-1:-1;;;57336:41:0;;;;-1:-1:-1;;;;;57336:39:0;;;;;;:41;;;;;57344:17;;57336:41;;;;;;;;:39;:41;;;5:2:-1;;;;30:1;27;20:12;5:2;57336:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;57336:41:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;57336:41:0;;-1:-1:-1;57396:29:0;57336:41;57412:12;57396:29;:15;:29;:::i;:::-;57382:43;;57430:62;57457:9;57468:10;57480:11;57430:26;:62::i;:::-;56536:961;;;:::o;57614:1291::-;57742:18;:16;:18::i;:::-;-1:-1:-1;;;;;57742:32:0;;57775:9;57786:8;:6;:8::i;:::-;-1:-1:-1;;;;;57786:22:0;;:24;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;57786:24:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;57786:24:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;57786:24:0;57742:69;;;-1:-1:-1;;;;;;57742:69:0;;;;;;;-1:-1:-1;;;;;57742:69:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;57742:69:0;;;;;;;;;;;5:2:-1;;;;30:1;27;20:12;5:2;57742:69:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;57742:69:0;;;;57929:31;57938:9;57949:10;57929:8;:31::i;:::-;57921:63;;;;;-1:-1:-1;;;57921:63:0;;;;;;;;;;;;-1:-1:-1;;;57921:63:0;;;;;;;;;;;;;;;58067:21;58091:38;58107:9;58118:10;58091:15;:38::i;:::-;58067:62;-1:-1:-1;58142:18:0;58134:54;;;;;-1:-1:-1;;;58134:54:0;;;;;;;;;;;;-1:-1:-1;;;58134:54:0;;;;;;;;;;;;;;;58353;58385:9;58396:10;58353:31;:54::i;:::-;58476:56;;;-1:-1:-1;;;58476:56:0;;58506:10;58476:56;;;;;;;;;;;;-1:-1:-1;;;;;58476:29:0;;;;;:56;;;;;-1:-1:-1;;58476:56:0;;;;;;;-1:-1:-1;58476:29:0;:56;;;5:2:-1;;;;30:1;27;20:12;5:2;58476:56:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;58476:56:0;;;;58625:57;58638:5;58645:10;58657:9;58668:13;58625:12;:57::i;:::-;58738:41;58754:9;58765:10;58777:1;58738:15;:41::i;:::-;58848:52;58875:9;58886:10;58898:1;58848:26;:52::i;:::-;57614:1291;;:::o;42200:173::-;42282:7;42305:16;:14;:16::i;:::-;-1:-1:-1;;;;;42305:24:0;;42330:37;42357:9;42330:26;:37::i;80104:149::-;80190:7;80213:35;80229:9;80240:7;80213:15;:35::i;:::-;80206:42;80104:149;-1:-1:-1;;;80104:149:0:o;61825:273::-;61896:14;61916:13;61935:14;62060:33;62090:1;62060:21;:33::i;:::-;62053:40;;;;;;61825:273;;;:::o;48564:142::-;48623:7;48644:16;:14;:16::i;:::-;-1:-1:-1;;;;;48644:24:0;;48669:31;:29;:31::i;:::-;48644:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;48644:57:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;48644:57:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;48644:57:0;;-1:-1:-1;48564:142:0;:::o;42795:218::-;42896:7;42923:16;:14;:16::i;:::-;-1:-1:-1;;;;;42923:24:0;;42954:48;42985:9;42996:5;42954:30;:48::i;45643:243::-;45758:7;45783:16;:14;:16::i;:::-;-1:-1:-1;;;;;45783:24:0;;45814:61;45858:9;45869:5;45814:43;:61::i;25631:125::-;25086:9;:7;:9::i;:::-;25078:54;;;;;-1:-1:-1;;;25078:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;25078:54:0;;;;;;;;;;;;;;;25708:6;;25687:40;;25724:1;;-1:-1:-1;;;;;25708:6:0;;25687:40;;25724:1;;25687:40;25732:6;:19;;-1:-1:-1;;;;;;25732:19:0;;;25631:125::o;49207:405::-;49322:16;49340:14;49361;49378:16;:14;:16::i;:::-;-1:-1:-1;;;;;49378:24:0;;49408:61;49452:9;49463:5;49408:43;:61::i;:::-;49378:96;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;49378:96:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;49378:96:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;49378:96:0;;-1:-1:-1;49479:15:0;49497:17;49378:96;-1:-1:-1;;;49497:17:0;:10;:17;:::i;:::-;49479:35;-1:-1:-1;49519:19:0;49541:30;49552:18;49479:35;-1:-1:-1;;;49552:18:0;:11;:18;:::i;49541:30::-;49586:7;;;;-1:-1:-1;49207:405:0;;-1:-1:-1;;;;;49207:405:0:o;79494:92::-;79540:7;79561:20;:18;:20::i;:::-;79554:27;;79494:92;:::o;44265:156::-;44331:7;44352:16;:14;:16::i;:::-;-1:-1:-1;;;;;44352:24:0;;44377:38;:36;:38::i;40863:195::-;40945:7;40961:11;40975:37;41002:9;40975:26;:37::i;:::-;40961:51;;41024:16;:14;:16::i;:::-;-1:-1:-1;;;;;41024:24:0;;41049:3;41024:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;41024:29:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;41024:29:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;41024:29:0;;40863:195;-1:-1:-1;;;40863:195:0:o;39763:148::-;39814:7;39828:11;39842:23;:21;:23::i;:::-;39828:37;;39877:16;:14;:16::i;:::-;-1:-1:-1;;;;;39877:24:0;;39902:3;39877:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;39877:29:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;39877:29:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;39877:29:0;;-1:-1:-1;;39763:148:0;:::o;24901:70::-;24960:6;;-1:-1:-1;;;;;24960:6:0;24901:70;:::o;25219:85::-;25293:6;;25259:4;;-1:-1:-1;;;;;25293:6:0;25277:12;:10;:12::i;:::-;-1:-1:-1;;;;;25277:22:0;;25270:29;;25219:85;:::o;39029:100::-;25086:9;:7;:9::i;:::-;25078:54;;;;;-1:-1:-1;;;25078:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;25078:54:0;;;;;;;;;;;;;;;39098:8;:26;;-1:-1:-1;;;;;;39098:26:0;-1:-1:-1;;;;;39098:26:0;;;;;;;;;;39029:100::o;40260:205::-;40351:7;40367:11;40381:38;40400:9;40411:7;40381:18;:38::i;:::-;40367:52;;40431:16;:14;:16::i;:::-;-1:-1:-1;;;;;40431:24:0;;40456:3;40431:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;40431:29:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;40431:29:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;40431:29:0;;40260:205;-1:-1:-1;;;;40260:205:0:o;64381:381::-;64522:20;64544:15;64563:5;:3;:5::i;:::-;64521:47;;;;64643;64677:12;64643:33;:47::i;:::-;64695:62;64735:7;64744:12;64695:39;:62::i;39258:114::-;25086:9;:7;:9::i;:::-;25078:54;;;;;-1:-1:-1;;;25078:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;25078:54:0;;;;;;;;;;;;;;;39336:8;;39321:46;;;-1:-1:-1;;;39321:46:0;;-1:-1:-1;;;;;39321:46:0;;;;;;;;;39336:8;;;;;39321:36;;:46;;;;;39336:8;;39321:46;;;;;;;39336:8;;39321:46;;;5:2:-1;;;;30:1;27;20:12;5:2;39321:46:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;39321:46:0;;;;39258:114;:::o;60869:785::-;60954:14;60974:13;60993:14;61163:12;61177:17;61198:53;61237:9;61198:33;:53::i;:::-;61162:89;;;;61362:17;61382:44;61416:9;61382:33;:44::i;:::-;61362:64;-1:-1:-1;61567:52:0;61581:37;61590:27;:12;61607:9;61590:27;:16;:27;:::i;:::-;61581:4;;:37;:8;:37;:::i;:::-;61567:9;;:52;:13;:52;:::i;:::-;61554:95;61625:4;;-1:-1:-1;61635:9:0;;-1:-1:-1;60869:785:0;;-1:-1:-1;;;60869:785:0:o;76675:1292::-;76812:18;:16;:18::i;:::-;-1:-1:-1;;;;;76812:32:0;;76845:9;76856:8;:6;:8::i;:::-;-1:-1:-1;;;;;76856:22:0;;:24;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;76856:24:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;76856:24:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;76856:24:0;76812:69;;;-1:-1:-1;;;;;;76812:69:0;;;;;;;-1:-1:-1;;;;;76812:69:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;76812:69:0;;;;;;;;;;;5:2:-1;;;;30:1;27;20:12;5:2;76812:69:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;76812:69:0;;;;76938:13;76954:72;76996:9;77011:10;76954:36;:72::i;:::-;76938:88;;77134:16;77156:24;77167:9;77178:1;77156:10;:24::i;:::-;77127:53;;;;;;77269:1;77261:5;:9;77253:47;;;;;-1:-1:-1;;;77253:47:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;77368:61;77404:9;77415:10;77427:1;77368:35;:61::i;:::-;77486:19;77522:8;:6;:8::i;:::-;-1:-1:-1;;;;;77522:14:0;;:16;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;77522:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;77522:16:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;77522:16:0;;-1:-1:-1;77618:53:0;77639:9;77650:10;77662:8;77618:20;:53::i;:::-;77676:63;77717:9;77728:10;77676:40;:63::i;:::-;77792:29;;;-1:-1:-1;;;77792:29:0;;77803:10;77792:29;;;;;;;;;;;;-1:-1:-1;;;;;77792:10:0;;;;;:29;;;;;;;;;;;;;;-1:-1:-1;77792:10:0;:29;;;5:2:-1;;;;30:1;27;20:12;5:2;77792:29:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;77792:29:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;77792:29:0;77784:57;;;;;-1:-1:-1;;;77784:57:0;;;;;;;;;;;;-1:-1:-1;;;77784:57:0;;;;;;;;;;;;;;;77954:8;:6;:8::i;:::-;76675:1292;;;;:::o;41485:223::-;41585:7;41601:11;41615:47;41645:9;41656:5;41615:29;:47::i;32662:90::-;32710:7;32739;-1:-1:-1;;;;;32739:7:0;32662:90;:::o;44861:235::-;44972:7;44997:16;:14;:16::i;:::-;-1:-1:-1;;;;;44997:24:0;;45028:57;45068:9;45079:5;45028:39;:57::i;54911:1481::-;55062:18;:16;:18::i;:::-;-1:-1:-1;;;;;55062:34:0;;55097:10;55109:8;:6;:8::i;:::-;-1:-1:-1;;;;;55109:14:0;;:16;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;55109:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;55109:16:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;55109:16:0;55062:64;;;-1:-1:-1;;;;;;55062:64:0;;;;;;;-1:-1:-1;;;;;55062:64:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;55062:64:0;;;;;;;;;;;5:2:-1;;;;30:1;27;20:12;5:2;55062:64:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;55062:64:0;;;;55211:18;:16;:18::i;:::-;-1:-1:-1;;;;;55211:32:0;;55244:9;55255:8;:6;:8::i;:::-;-1:-1:-1;;;;;55255:22:0;;:24;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;55255:24:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;55255:24:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;55255:24:0;55211:69;;;-1:-1:-1;;;;;;55211:69:0;;;;;;;-1:-1:-1;;;;;55211:69:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;55211:69:0;;;;;;;;;;;5:2:-1;;;;30:1;27;20:12;5:2;55211:69:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;55211:69:0;;;;55293:6;55303:1;55293:11;;55285:44;;;;;-1:-1:-1;;;55285:44:0;;;;;;;;;;;;-1:-1:-1;;;55285:44:0;;;;;;;;;;;;;;;55439:8;:6;:8::i;:::-;-1:-1:-1;;;;;55439:21:0;;:23;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;55439:23:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;55439:23:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;55439:23:0;55425:59;;;-1:-1:-1;;;55425:59:0;;-1:-1:-1;;;;;55425:59:0;;;;;;;;;:48;;;;;;;:59;;;;;55439:23;;55425:59;;;;;;;:48;:59;;;5:2:-1;;;;30:1;27;20:12;5:2;55425:59:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;55425:59:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;55425:59:0;55412:128;;;;-1:-1:-1;;;55412:128:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55635:14;55652:44;55679:9;55690:5;55652:26;:44::i;:::-;:49;;;;-1:-1:-1;55706:57:0;;;;;-1:-1:-1;;;55706:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;55945:49;55977:9;55988:5;55945:31;:49::i;:::-;56106:16;56128:24;56139:9;56150:1;56128:10;:24::i;:::-;56099:53;;;;;;56157:48;56178:9;56189:5;56196:8;56157:20;:48::i;:::-;56299:44;56312:4;56318:5;56325:9;56336:6;56299:12;:44::i;:::-;56353:34;;;-1:-1:-1;;;;;56353:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;54911:1481;;;;;:::o;43535:350::-;43616:15;43633:14;43656;43673:16;:14;:16::i;:::-;-1:-1:-1;;;;;43673:24:0;;43703:44;:42;:44::i;:::-;43673:79;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;43673:79:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;43673:79:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;43673:79:0;;-1:-1:-1;43757:14:0;43774:17;43673:79;-1:-1:-1;;;43774:17:0;:10;:17;:::i;:::-;43757:34;-1:-1:-1;43796:19:0;43818:29;43829:17;43757:34;-1:-1:-1;;;43829:17:0;:10;:17;:::i;43818:29::-;43860:6;;-1:-1:-1;43796:51:0;;-1:-1:-1;;;43535:350:0;;:::o;84393:270::-;25086:9;:7;:9::i;:::-;25078:54;;;;;-1:-1:-1;;;25078:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;25078:54:0;;;;;;;;;;;;;;;84522:28;:26;:28::i;:::-;:33;84514:67;;;;;-1:-1:-1;;;84514:67:0;;;;;;;;;;;;-1:-1:-1;;;84514:67:0;;;;;;;;;;;;;;;84624:34;84651:6;84624:26;:34::i;:::-;84393:270;:::o;25896:100::-;25086:9;:7;:9::i;:::-;25078:54;;;;;-1:-1:-1;;;25078:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;25078:54:0;;;;;;;;;;;;;;;25963:28;25982:8;25963:18;:28::i;39532:65::-;-1:-1:-1;;;39532:65:0;:::o;76394:218::-;76504:7;76518:14;76535:54;76572:9;76583:5;76535:36;:54::i;:::-;76518:71;76394:218;-1:-1:-1;;;;76394:218:0:o;38716:177::-;25086:9;:7;:9::i;:::-;25078:54;;;;;-1:-1:-1;;;25078:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;25078:54:0;;;;;;;;;;;;;;;38773:8;;-1:-1:-1;;;;;38773:8:0;:22;38765:49;;;;;-1:-1:-1;;;38765:49:0;;;;;;;;;;;;-1:-1:-1;;;38765:49:0;;;;;;;;;;;;;;;38819:18;38840:20;;;;;:::i;:::-;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;38865:8:0;:23;;-1:-1:-1;;;;;;38865:23:0;-1:-1:-1;;;;;38865:23:0;;;;;;;;;;-1:-1:-1;38716:177:0:o;81415:139::-;81492:7;81515:34;81539:9;81515:23;:34::i;48167:230::-;48322:64;;;;;;;;;;;;-1:-1:-1;;;;;;48322:64:0;;;;;;;;;;;;;;;;;;;;22:32:-1;26:21;;;22:32;6:49;;48322:64:0;;;;;;;48306:86;;;;;48167:230;;;;:::o;66660:1458::-;66706:20;66728:15;66835:21;66870:8;:6;:8::i;:::-;-1:-1:-1;;;;;66870:18:0;;:20;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;66870:20:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;66870:20:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;66870:20:0;66859:67;;;-1:-1:-1;;;66859:67:0;;;;-1:-1:-1;;;;;66859:65:0;;;;;;:67;;;;;66870:20;;66859:67;;;;;;;;:65;:67;;;5:2:-1;;;;30:1;27;20:12;5:2;66859:67:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;66859:67:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;66859:67:0;;-1:-1:-1;67080:18:0;;67129:41;:39;:41::i;:::-;67074:96;;;;67395:22;67434:13;67420:10;:27;:64;;67474:10;67420:64;;;67454:13;67420:64;67395:89;;67605:14;67634:1;67622:9;:13;:47;;67668:1;67622:47;;;67638:27;:12;67655:9;67638:27;:16;:27;:::i;:::-;67605:64;-1:-1:-1;67799:25:0;67827:26;:14;67605:64;67827:26;:18;:26;:::i;:::-;67799:54;;67858:19;67880:67;67925:17;67880:35;:33;:35::i;:::-;:39;:67;:39;:67;:::i;:::-;67858:89;-1:-1:-1;68099:13:0;;-1:-1:-1;;;;;;;66660:1458:0;;:::o;20199:97::-;20252:7;20273:18;:2;19694:19;20273:18;:6;:18;:::i;19800:225::-;19871:14;19898:7;19894:33;;-1:-1:-1;19920:1:0;19913:8;;19894:33;19931:9;19943:18;:2;19694:19;19943:18;:6;:18;:::i;:::-;19931:30;;19974:2;19970:1;:6;19966:32;;;19991:1;19984:8;;;;;19966:32;20010:9;:1;20016:2;20010:9;:5;:9;:::i;5180:127::-;5238:7;5259:43;5263:1;5266;5259:43;;;;;;;;;;;;;;;;;:3;:43::i;6013:411::-;6071:7;6292:6;6288:32;;-1:-1:-1;6313:1:0;6306:8;;6288:32;6338:5;;;6342:1;6338;:5;:1;6356:5;;;;;:10;6348:56;;;;-1:-1:-1;;;6348:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6856:123;6914:7;6935:39;6939:1;6942;6935:39;;;;;;;;;;;;;;;;;:3;:39::i;47485:182::-;47610:51;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;47610:51:0;;;;;;;26:21:-1;;;22:32;;6:49;;47610:51:0;;;;;;;47600:62;;;;;;47485:182::o;46843:211::-;46985:58;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;46985:58:0;;;;;;;26:21:-1;;;22:32;;6:49;;46985:58:0;;;;;;;46969:80;;;;;;46843:211::o;23128:96::-;23209:10;;-1:-1:-1;;;;;23209:10:0;23128:96;:::o;80627:176::-;80712:4;80725:13;80741:35;80757:9;80768:7;80741:15;:35::i;:::-;80788:10;;;80627:176;-1:-1:-1;;;;80627:176:0:o;4775:160::-;4833:7;4859:5;;;4877:6;;;;4869:46;;;;;-1:-1:-1;;;4869:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;41259:221;41372:11;41386:47;41416:9;41427:5;41386:29;:47::i;:::-;41372:61;;41438:16;:14;:16::i;:::-;-1:-1:-1;;;;;41438:24:0;;41463:3;41468:6;41438:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;41438:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;41438:37:0;;;;41259:221;;;;:::o;82830:388::-;82913:4;82926:19;82948:44;82975:9;82986:5;82948:26;:44::i;:::-;82926:66;-1:-1:-1;83001:16:0;82997:46;;83032:5;83025:12;;;;;82997:46;83066:12;83051:11;:27;83047:150;;83093:4;83086:11;;;;;83047:150;83127:8;:6;:8::i;:::-;-1:-1:-1;;;;;83127:15:0;;:17;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;83127:17:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;83127:17:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;83127:17:0;83119:41;;;-1:-1:-1;;;83119:41:0;;;;-1:-1:-1;;;;;83119:39:0;;;;;;:41;;;;;83127:17;;83119:41;;;;;;;;:39;:41;;;5:2:-1;;;;30:1;27;20:12;5:2;83119:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;83119:41:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;83119:41:0;83164:1;83119:46;83115:77;;;83181:4;83174:11;;;;;83115:77;-1:-1:-1;83208:5:0;;82830:388;-1:-1:-1;;;82830:388:0:o;82186:577::-;82330:26;82359:67;82401:9;82416:5;82359:36;:67::i;:::-;82330:96;;82510:90;82551:9;82566:5;82577:18;82510:35;:90::i;:::-;82700:58;82741:9;82752:5;82700:40;:58::i;78045:1377::-;78207:9;78203:1101;;;78390:49;78415:4;78421:9;78432:6;78390:24;:49::i;:::-;78528:19;78540:6;78528:11;:19::i;:::-;78630:35;78647:9;78658:6;78630:16;:35::i;:::-;78755:37;78764:9;78775:8;78785:6;78755:8;:37::i;:::-;78203:1101;;;79022:50;79047:5;79054:9;79065:6;79022:24;:50::i;:::-;79161:19;79173:6;79161:11;:19::i;:::-;79263:35;79280:9;79291:6;79263:16;:35::i;40052:203::-;40156:11;40170:38;40189:9;40200:7;40170:18;:38::i;42378:171::-;42497:46;;;-1:-1:-1;;;42497:46:0;;;;;;;;;;;;;-1:-1:-1;;;;;;42497:46:0;;;;;;;26:21:-1;;;22:32;;6:49;;42497:46:0;;;;;;;42487:57;;;;;;42378:171::o;48711:137::-;48805:37;;;-1:-1:-1;;;48805:37:0;;;;;;;;;;26:21:-1;;;48805:37:0;22:32:-1;6:49;;48805:37:0;;;;;;;48795:48;;;;;48711:137;:::o;43018:219::-;43166:60;;;-1:-1:-1;;;43166:60:0;;;;;;;;-1:-1:-1;;;;;;43166:60:0;;;;;;;;;;;;;;;;;;;;22:32:-1;26:21;;;22:32;6:49;;43166:60:0;;;;;;;43150:82;;;;;43018:219;;;;:::o;45891:265::-;46051:94;;;;;;;;;;;;-1:-1:-1;;;;;;46051:94:0;;;;;;;;;;;;;;;;;;;;22:32:-1;26:21;;;22:32;6:49;;46051:94:0;;;;;;;46035:116;;;;;45891:265;;;;:::o;49617:::-;49777:94;;;;;;;;;;;;-1:-1:-1;;;;;;49777:94:0;;;;;;;;;;;;;;;;;;;;22:32:-1;26:21;;;22:32;6:49;;49777:94:0;;;;;;;49761:116;;;;;49617:265;;;;:::o;44426:162::-;44538:44;;;;;;;;;;;;;;26:21:-1;;;44538:44:0;22:32:-1;6:49;;44538:44:0;;;;;;;44528:55;;;;;44426:162;:::o;41063:170::-;41182:45;;;-1:-1:-1;;;41182:45:0;;;;;;;;;;;;;-1:-1:-1;;;;;;41182:45:0;;;;;;;26:21:-1;;;22:32;;6:49;;41182:45:0;;;;;;;41172:56;;;;;;41063:170::o;39916:121::-;40002:29;;;-1:-1:-1;;;40002:29:0;;;;;;;;;;26:21:-1;;;40002:29:0;22:32:-1;6:49;;40002:29:0;;;;;;;39992:40;;;;;39916:121;:::o;843:89::-;917:10;843:89;:::o;40470:180::-;40598:46;;;-1:-1:-1;;;40598:46:0;;;;;;;;-1:-1:-1;;;;;;40598:46:0;;;;;;;;;;;;;;;;;;;;22:32:-1;26:21;;;22:32;6:49;;40598:46:0;;;;;;;40588:57;;;;;40470:180;;;;:::o;44097:163::-;44170:16;:14;:16::i;:::-;-1:-1:-1;;;;;44170:24:0;;44200:38;:36;:38::i;:::-;44244:6;44170:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;43276:254:0;43382:14;43399:30;43422:6;43399:18;:7;-1:-1:-1;;;43399:18:0;:11;:18;:::i;:30::-;43382:47;;43434:16;:14;:16::i;:::-;-1:-1:-1;;;;;43434:24:0;;43464:44;:42;:44::i;:::-;43514:6;43434:91;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;43434:91:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;43434:91:0;;;;43276:254;;;:::o;59087:1431::-;59180:13;59195:14;59435:12;59453:17;59478:51;59519:9;59478:40;:51::i;:::-;59429:100;;-1:-1:-1;59429:100:0;-1:-1:-1;59538:13:0;;59534:55;;59567:4;;-1:-1:-1;59573:9:0;-1:-1:-1;59559:24:0;;59534:55;-1:-1:-1;;;;;60158:23:0;;;:91;;60215:34;60239:9;60215:23;:34::i;:::-;60158:91;;;60188:20;:18;:20::i;:::-;60151:98;;60456:28;:26;:28::i;:::-;60497:4;;-1:-1:-1;60444:40:0;;-1:-1:-1;;59087:1431:0;;;:::o;75338:928::-;75450:7;75571:8;:6;:8::i;:::-;-1:-1:-1;;;;;75571:21:0;;:23;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;75571:23:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;75571:23:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;75571:23:0;75557:59;;;-1:-1:-1;;;75557:59:0;;-1:-1:-1;;;;;75557:59:0;;;;;;;;;:48;;;;;;;:59;;;;;75571:23;;75557:59;;;;;;;:48;:59;;;5:2:-1;;;;30:1;27;20:12;5:2;75557:59:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;75557:59:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;75557:59:0;75548:103;;-1:-1:-1;75644:1:0;75637:8;;75548:103;75729:15;75747:53;75783:9;75794:5;75747:35;:53::i;:::-;75729:71;;75866:14;75883:52;75918:9;75929:5;75883:34;:52::i;:::-;75866:69;;76004:14;76021:42;76046:9;76057:5;76021:24;:42::i;:::-;76004:59;-1:-1:-1;76121:26:0;76150:81;76224:6;76150:24;76004:59;76166:7;76150:24;:15;:24;:::i;:81::-;76121:110;75338:928;-1:-1:-1;;;;;;;75338:928:0:o;47694:230::-;47816:16;:14;:16::i;:::-;-1:-1:-1;;;;;47816:24:0;;47846:56;47885:9;47896:5;47846:38;:56::i;64995:636::-;65177:15;65198:5;:3;:5::i;:::-;65176:27;;;65282:26;65291:9;65302:5;65282:8;:26::i;:::-;65278:107;;;65316:63;65353:9;65364:5;65371:7;65316:36;:63::i;:::-;65389:69;65430:9;65441:5;65448:9;65389:40;:69::i;:::-;65464:15;65487:32;65509:9;65487:21;:32::i;:::-;65463:56;;;;65524:102;65570:9;65585:5;65596:7;65609:12;65524:40;:102::i;84003:314::-;84110:21;84134:34;84158:9;84134:23;:34::i;:::-;84110:58;;84226:13;84177:45;84205:9;84216:5;84177:27;:45::i;:::-;:62;84173:140;;84247:60;84275:9;84286:5;84293:13;84247:27;:60::i;41713:217::-;41862:57;;;-1:-1:-1;;;41862:57:0;;;;;;;;-1:-1:-1;;;;;;41862:57:0;;;;;;;;;;;;;;;;;;;;22:32:-1;26:21;;;22:32;6:49;;41862:57:0;;;;;;;41846:79;;;;;41713:217;;;;:::o;45101:257::-;45257:90;;;;;;;;;;;;-1:-1:-1;;;;;;45257:90:0;;;;;;;;;;;;;;;;;;;;22:32:-1;26:21;;;22:32;6:49;;45257:90:0;;;;;;;45241:112;;;;;45101:257;;;;:::o;43890:174::-;44008:50;;;;;;;;;;;;;;26:21:-1;;;44008:50:0;22:32:-1;6:49;;44008:50:0;;;;;;;43998:61;;;;;43890:174;:::o;48423:136::-;48489:16;:14;:16::i;:::-;-1:-1:-1;;;;;48489:24:0;;48514:31;:29;:31::i;26090:221::-;-1:-1:-1;;;;;26163:22:0;;26150:86;;;;-1:-1:-1;;;26150:86:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26267:6;;26246:38;;-1:-1:-1;;;;;26246:38:0;;;;26267:6;;26246:38;;26267:6;;26246:38;26289:6;:17;;-1:-1:-1;;;;;;26289:17:0;-1:-1:-1;;;;;26289:17:0;;;;;;;;;;26090:221::o;5608:184::-;5707:7;5737:12;5729:6;;;;5721:29;;;;-1:-1:-1;;;5721: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;5721:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5767:5:0;;;5608:184::o;7467:325::-;7566:7;7656:12;7649:5;7641:28;;;;-1:-1:-1;;;7641:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;7641:28:0;;7674:9;7690:1;7686;:5;;;;;;;7467:325;-1:-1:-1;;;;;7467:325:0:o;62290:1710::-;62400:12;;;62621:41;62648:9;62621:21;:41::i;:::-;62579:83;;;;;62808:20;62830:19;62855:36;62882:4;62855:21;:36::i;:::-;62807:84;;;;;63039:114;63078:9;63093;:55;;63128:20;:9;63142:5;63128:20;:13;:20;:::i;:::-;63093:55;;;63105:20;:9;63119:5;63105:20;:13;:20;:::i;:::-;63039:33;:114::i;:::-;63292:115;63331:4;63341:9;:61;;63379:23;:12;63396:5;63379:23;:16;:23;:::i;63341:61::-;63353:23;:12;63370:5;63353:23;:16;:23;:::i;63292:115::-;63568:137;63614:9;63629;:53;;63663:19;:8;63676:5;63663:19;:12;:19;:::i;:::-;63629:53;;;63641:19;:8;63654:5;63641:19;:12;:19;:::i;:::-;63688:12;63568:40;:137::i;:::-;63857:138;63903:4;63913:9;:59;;63950:22;:11;63966:5;63950:22;:15;:22;:::i;63913:59::-;63925:22;:11;63941:5;63925:22;:15;:22;:::i;79655:151::-;79705:13;79721:20;:18;:20::i;:::-;79705:36;-1:-1:-1;79754:17:0;79705:36;79764:6;79754:17;:9;:17;:::i;:::-;79746:25;;79776;79795:5;79776:18;:25::i;81617:205::-;81691:13;81707:34;81731:9;81707:23;:34::i;:::-;81691:50;-1:-1:-1;81754:17:0;81691:50;81764:6;81754:17;:9;:17;:::i;:::-;81746:25;;81776:41;81800:9;81811:5;81776:23;:41::i;80323:229::-;80419:13;80435:35;80451:9;80462:7;80435:15;:35::i;:::-;80419:51;-1:-1:-1;80483:17:0;80419:51;80493:6;80483:17;:9;:17;:::i;:::-;80475:25;;80505:42;80521:9;80532:7;80541:5;80505:15;:42::i;79880:151::-;79930:13;79946:20;:18;:20::i;:::-;79930:36;-1:-1:-1;79979:17:0;79930:36;79989:6;79979:17;:9;:17;:::i;81890:221::-;81964:13;81980:34;82004:9;81980:23;:34::i;:::-;81964:50;-1:-1:-1;82019:17:0;82039;81964:50;82049:6;82039:17;:9;:17;:::i;:::-;82019:37;;82061:45;82085:9;82096;82061:23;:45::i;83492:423::-;83602:7;83616:13;83632:45;83660:9;83671:5;83632:27;:45::i;:::-;83616:61;;83682:13;83698:34;83722:9;83698:23;:34::i;:::-;83682:50;-1:-1:-1;83737:16:0;83756;83682:50;83766:5;83756:16;:9;:16;:::i;:::-;83737:35;;83777:21;83801:33;83817:9;83828:5;83801:15;:33::i;:::-;83777:57;-1:-1:-1;83839:13:0;83855:27;:8;83777:57;83855:27;:12;:27;:::i;:::-;83839:43;;83894:16;:5;:14;:16::i;:::-;83887:23;83492:423;-1:-1:-1;;;;;;;;83492:423:0:o;70898:4317::-;70997:7;71158:21;71185:12;71203:17;71228:32;71250:9;71228:21;:32::i;:::-;71152:108;;;;;;71386:19;71411:21;71440:51;71474:9;71485:5;71440:33;:51::i;:::-;71380:111;;;;71571:26;71600:33;71616:9;71627:5;71600:15;:33::i;:::-;71571:62;;71738:20;71761:71;71807:9;71822:5;71761:40;:71::i;:::-;71738:94;-1:-1:-1;72051:17:0;72071:64;72099:31;:12;72116:13;72099:31;:16;:31;:::i;:::-;72071:18;;:64;:22;:64;:::i;:::-;72051:84;;72221:11;72243:18;72235:4;:26;:56;;;;;72278:13;72265:9;:26;;72235:56;72221:70;;72423:26;72432:9;72443:5;72423:8;:26::i;:::-;72419:1546;;;73077:21;73102:93;73119:9;73135:54;73172:9;73183:5;73135:36;:54::i;:::-;73102:10;:93::i;:::-;73068:127;;;;;;73279:14;73296:77;:60;:43;73320:18;73296:13;:23;;:43;;;;:::i;:::-;:58;:60::i;:77::-;73279:94;-1:-1:-1;73379:13:0;;-1:-1:-1;;;;;;;;;;;73379:13:0;72419:1546;73472:6;73468:497;;;73612:16;73634:24;73645:9;73656:1;73634:10;:24::i;:::-;73605:53;;;;;;73834:14;73863:12;73851:8;:24;;:89;;73939:1;73851:89;;;73883:48;:37;;:8;73896:12;73883:26;:12;:26;:::i;73468:497::-;74192:16;74214:24;74225:9;74236:1;74214:10;:24::i;:::-;74185:53;;;;;;74753:13;74769:47;74785:30;74803:11;74785:13;:17;;:30;;;;:::i;:::-;74769:9;;:47;:15;:47;:::i;:::-;74753:63;;75036:14;75065:12;75053:8;:24;;:139;;75191:1;75053:139;;;75084:100;:83;;;75127:5;75084:32;:8;75103:12;75084:32;:18;:32;:::i;:100::-;75036:156;70898:4317;-1:-1:-1;;;;;;;;;;;;;;;70898:4317:0:o;80971:378::-;81054:4;81067:18;81088:33;81104:9;81115:5;81088:15;:33::i;:::-;81067:54;;81127:21;81150:20;81176:41;81203:9;81176:21;:41::i;:::-;81126:91;;;;;81223:18;81249:26;:24;:26::i;:::-;81222:53;;;;81301:12;81287:10;:26;:57;;;;-1:-1:-1;81317:27:0;;;;;81280:64;-1:-1:-1;;;;;80971:378:0:o;44624:232::-;44747:16;:14;:16::i;:::-;-1:-1:-1;;;;;44747:24:0;;44777:57;44817:9;44828:5;44777:39;:57::i;45398:240::-;45525:16;:14;:16::i;:::-;-1:-1:-1;;;;;45525:24:0;;45555:61;45599:9;45610:5;45555:43;:61::i;48888:314::-;49036:14;49053:31;49077:6;49053:19;:8;-1:-1:-1;;;49053:19:0;:12;:19;:::i;:31::-;49036:48;;49089:16;:14;:16::i;:::-;-1:-1:-1;;;;;49089:24:0;;49119:61;49163:9;49174:5;49119:43;:61::i;:::-;49186:6;49089:108;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;49089:108:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;49089:108:0;;;;48888:314;;;;;:::o;42576:214::-;42690:16;:14;:16::i;:::-;-1:-1:-1;;;;;42690:24:0;;42720:48;42751:9;42762:5;42720:30;:48::i;47087:188::-;47180:16;:14;:16::i;:::-;-1:-1:-1;;;;;47180:24:0;;47210:43;47247:5;47210:36;:43::i;:::-;47259:6;47180:90;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;47180:90:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;47180:90:0;;;;47087:188;;:::o;46196:275::-;46319:14;46336:28;46357:6;46336:16;:5;-1:-1:-1;;;46336:16:0;:9;:16;:::i;:28::-;46319:45;;46369:16;:14;:16::i;:::-;-1:-1:-1;;;;;46369:24:0;;46399:50;46443:5;46399:43;:50::i;:::-;46455:6;46369:97;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;39616:142:0;39674:11;39688:23;:21;:23::i;:::-;39674:37;;39716:16;:14;:16::i;:::-;-1:-1:-1;;;;;39716:24:0;;39741:3;39746:6;39716:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;40673:185:0;40760:11;40774:37;40801:9;40774:26;:37::i;:::-;40760:51;;40816:16;:14;:16::i;:::-;-1:-1:-1;;;;;40816:24:0;;40841:3;40846:6;40816:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;20407:97:0;20460:7;20481:18;:2;19694:19;20481:18;:6;:18;:::i;65763:716::-;65871:16;65889:14;66001:15;66022:19;66049:58;66090:9;66101:5;66049:40;:58::i;:::-;65995:112;;;;66369:11;66384:1;66369:16;66365:76;;;66407:28;:26;:28::i;:::-;66393:42;;66365:76;66453:7;;;;-1:-1:-1;65763:716:0;-1:-1:-1;;;65763:716:0:o;54438:30228::-;;;;;;;;:::o

Swarm Source

bzzr://667b5de3a803aaac8684108683c8810e13256a965db08b51f2f62d7cb8b8b153

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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