ETH Price: $2,328.81 (-1.38%)

Contract

0x485EB5717025dBDc5df51eD142C8b7E5A00A0444
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw100518362020-05-12 14:08:162135 days ago1589292496IN
0x485EB571...5A00A0444
0 ETH0.001037824
Burn Committed F...100475822020-05-11 22:16:332136 days ago1589235393IN
0x485EB571...5A00A0444
0 ETH0.0012622915
Change State To ...100475732020-05-11 22:14:072136 days ago1589235247IN
0x485EB571...5A00A0444
0 ETH0.0004686115
Change State To ...100475662020-05-11 22:13:102136 days ago1589235190IN
0x485EB571...5A00A0444
0 ETH0.000469515
Change State To ...100475612020-05-11 22:11:292136 days ago1589235089IN
0x485EB571...5A00A0444
0 ETH0.000469615
Change State To ...100475542020-05-11 22:09:302136 days ago1589234970IN
0x485EB571...5A00A0444
0 ETH0.0004693215
Change State To ...100475322020-05-11 22:06:152136 days ago1589234775IN
0x485EB571...5A00A0444
0 ETH0.000469515
Change State To ...100475252020-05-11 22:03:592136 days ago1589234639IN
0x485EB571...5A00A0444
0 ETH0.000469615
Withdraw Delegat...100475042020-05-11 22:00:512136 days ago1589234451IN
0x485EB571...5A00A0444
0 ETH0.0006086115
Approve Bls Key ...100474532020-05-11 21:49:322136 days ago1589233772IN
0x485EB571...5A00A0444
0 ETH0.0010181515
Withdraw Delegat...100473672020-05-11 21:30:002136 days ago1589232600IN
0x485EB571...5A00A0444
0 ETH0.0008334315
Withdraw Delegat...100473662020-05-11 21:29:292136 days ago1589232569IN
0x485EB571...5A00A0444
0 ETH0.0008336115
Withdraw Delegat...100473602020-05-11 21:28:402136 days ago1589232520IN
0x485EB571...5A00A0444
0 ETH0.0005557410
Withdraw Per Nod...100473602020-05-11 21:28:402136 days ago1589232520IN
0x485EB571...5A00A0444
0 ETH0.0004866910
Deposit Delegate...100473542020-05-11 21:27:322136 days ago1589232452IN
0x485EB571...5A00A0444
0 ETH0.0015767415
Deposit Delegate...100473462020-05-11 21:26:362136 days ago1589232396IN
0x485EB571...5A00A0444
0 ETH0.0010512810
Deposit Delegate...100473442020-05-11 21:26:182136 days ago1589232378IN
0x485EB571...5A00A0444
0 ETH0.0018019215
Whitelist Accoun...100473302020-05-11 21:23:052136 days ago1589232185IN
0x485EB571...5A00A0444
0 ETH0.0014386315
Submit Stake100473292020-05-11 21:22:422136 days ago1589232162IN
0x485EB571...5A00A0444
0 ETH0.0022623615
Submit Stake100473182020-05-11 21:20:272136 days ago1589232027IN
0x485EB571...5A00A0444
0 ETH0.0038065215
Change State To ...100472952020-05-11 21:15:342136 days ago1589231734IN
0x485EB571...5A00A0444
0 ETH0.0004693215
Whitelist Accoun...100472952020-05-11 21:15:342136 days ago1589231734IN
0x485EB571...5A00A0444
0 ETH0.001467415.3
Whitelist Accoun...100472702020-05-11 21:08:392136 days ago1589231319IN
0x485EB571...5A00A0444
0 ETH0.0014386315
Whitelist Accoun...100471982020-05-11 20:54:122136 days ago1589230452IN
0x485EB571...5A00A0444
0 ETH0.001467415.3
Whitelist Accoun...100471752020-05-11 20:49:212136 days ago1589230161IN
0x485EB571...5A00A0444
0 ETH0.0012199911
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xC3a74d15...f0b1a4eb7
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
GenesisSC

Compiler Version
v0.5.15+commit.6a57276f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU GPLv3 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-05-12
*/

// File: @openzeppelin/contracts/math/Math.sol

pragma solidity ^0.5.0;

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

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

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

// 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/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/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/token/ERC20/ERC20Burnable.sol

pragma solidity ^0.5.0;



/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev See {ERC20-_burnFrom}.
     */
    function burnFrom(address account, uint256 amount) public {
        _burnFrom(account, amount);
    }
}

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

pragma solidity ^0.5.5;

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

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

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

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

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

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

pragma solidity ^0.5.0;

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

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

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

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

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

    /**
     * @dev Returns true if the caller is the current owner.
     */
    function isOwner() public view returns (bool) {
        return _msgSender() == _owner;
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public onlyOwner {
        _transferOwnership(newOwner);
    }

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

// File: contracts/GenesisSC.sol

pragma solidity ^0.5.15;






contract GenesisSC is Ownable {

    using SafeMath for uint256;
    using Math for uint256;
    using Address for address;

    enum States{Initializing, Staking, Validating, Finalized, Retired}

    // EVENTS
    event StakeDeposited(address indexed account, uint256 amount);
    event StakeWithdrawn(address indexed account, uint256 amount);
    event StateChanged(States fromState, States toState);

    // STRUCT DECLARATIONS
    struct StakingNode {
        bytes32 blsKeyHash;
        bytes32 elrondAddressHash;
        bool approved;
        bool exists;
    }

    struct WhitelistedAccount {
        uint256 numberOfNodes;
        uint256 amountStaked;
        StakingNode[] stakingNodes;
        bool exists;
        mapping(bytes32 => uint256) blsKeyHashToStakingNodeIndex;
    }

    struct DelegationDeposit {
        uint256 amount;
        bytes32 elrondAddressHash;
        bool exists;
    }

    // CONTRACT STATE VARIABLES
    uint256 public nodePrice;
    uint256 public delegationNodesLimit;
    uint256 public delegationAmountLimit;
    uint256 public currentTotalDelegated;
    address[] private _whitelistedAccountAddresses;

    ERC20Burnable public token;
    States public contractState = States.Initializing;

    mapping(address => WhitelistedAccount) private _whitelistedAccounts;
    mapping(address => DelegationDeposit) private _delegationDeposits;
    mapping (bytes32 => bool) private _approvedBlsKeyHashes;

    // MODIFIERS
    modifier onlyContract(address account)
    {
        require(account.isContract(), "[Validation] The address does not contain a contract");
        _;
    }

    modifier guardMaxDelegationLimit(uint256 amount)
    {
        require(amount <= (delegationAmountLimit - currentTotalDelegated), "[DepositDelegateStake] Your deposit would exceed the delegation limit");
        _;
    }

    modifier onlyWhitelistedAccounts(address who)
    {
        WhitelistedAccount memory account = _whitelistedAccounts[who];
        require(account.exists, "[Validation] The provided address is not whitelisted");
        _;
    }

    modifier onlyAccountsWithNodes()
    {
        require(_whitelistedAccounts[msg.sender].stakingNodes.length > 0, "[Validation] Your account has 0 nodes submitted");
        _;
    }

    modifier onlyNotWhitelistedAccounts(address who)
    {
        WhitelistedAccount memory account = _whitelistedAccounts[who];
        require(!account.exists, "[Validation] Address is already whitelisted");
        _;
    }

    // STATE GUARD MODIFIERS
    modifier whenStaking()
    {
        require(contractState == States.Staking, "[Validation] This function can be called only when contract is in staking phase");
        _;
    }

    modifier whenInitializedAndNotValidating()
    {
        require(contractState != States.Initializing, "[Validation] This function cannot be called in the initialization phase");
        require(contractState != States.Validating, "[Validation] This function cannot be called while your submitted nodes are in the validation process");
        _;
    }

    modifier whenFinalized()
    {
        require(contractState == States.Finalized, "[Validation] This function can be called only when the contract is finalized");
        _;
    }

    modifier whenNotFinalized()
    {
        require(contractState != States.Finalized, "[Validation] This function cannot be called when the contract is finalized");
        _;
    }

    modifier whenNotRetired()
    {
        require(contractState != States.Retired, "[Validation] This function cannot be called when the contract is retired");
        _;
    }

    modifier whenRetired()
    {
        require(contractState == States.Retired, "[Validation] This function can be called only when the contract is retired");
        _;
    }

    // PUBLIC FUNCTIONS
    constructor(ERC20Burnable _token, uint256 _nodePrice, uint256 _delegationNodesLimit)
    public
    {
        require(_nodePrice > 0, "[Validation] Node price must be greater than 0");

        token = _token;
        nodePrice = _nodePrice;
        delegationNodesLimit = _delegationNodesLimit;
        delegationAmountLimit = _delegationNodesLimit.mul(_nodePrice);
    }

    /**
    * submitStake can be called in the staking phase by any account that has been previously whitelisted by the Elrond
    *  team. An account can submit hashes of BLS keys to this contract (in a number that adds up to less or equal than
    *  what has been set up for that account) and an associated reward address hash for them. The total amount of ERD
    *  tokens that will be transferred from that account will be fixed to nrOfSubmittedNodes*nodePrice
    *
    * @param blsKeyHashes A list where each element represents the hash of an Elrond's native node public key
    * @param elrondAddressHash Represents the hash of an Elrond's native wallet address
    */
    function submitStake(bytes32[] calldata blsKeyHashes, bytes32 elrondAddressHash)
    external
    whenStaking
    onlyWhitelistedAccounts(msg.sender)
    {
        require(elrondAddressHash != 0, "[Validation] Elrond address hash should not be 0");

        WhitelistedAccount storage whitelistedAccount = _whitelistedAccounts[msg.sender];
        _validateStakeParameters(whitelistedAccount, blsKeyHashes);
        _addStakingNodes(whitelistedAccount, blsKeyHashes, elrondAddressHash);

        uint256 transferAmount = nodePrice.mul(blsKeyHashes.length);
        require(token.transferFrom(msg.sender, address(this), transferAmount));

        whitelistedAccount.amountStaked = whitelistedAccount.amountStaked.add(transferAmount);

        emit StakeDeposited(msg.sender, transferAmount);
    }

    /**
    * withdraw can be called by any account that has been whitelisted and has submitted BLS key hashes for their nodes
    *  and implicitly ERD tokens as staking value for them. This function will withdraw all associated tokens for
    *  nodes that have not been validated off-chain and approved by the Elrond team. If an account wants to give up
    *  and withdraw tokens for an already approved node (if the phase the contract is in still permits it), he/she
    *  can use withdrawPerNodes function
    */
    function withdraw()
    external
    whenInitializedAndNotValidating
    onlyWhitelistedAccounts(msg.sender)
    onlyAccountsWithNodes
    {
        uint256 totalSumToWithdraw;
        WhitelistedAccount storage account = _whitelistedAccounts[msg.sender];

        uint256 length = account.stakingNodes.length - 1;
        for (uint256 i = length; i <= length; i--) {
            StakingNode storage stakingNode = account.stakingNodes[i];
            if ((!stakingNode.exists) || (stakingNode.approved)) {
                continue;
            }

            totalSumToWithdraw = totalSumToWithdraw.add(nodePrice);

            _removeStakingNode(account, stakingNode.blsKeyHash);
        }

        if (totalSumToWithdraw == 0) {
            emit StakeWithdrawn(msg.sender, 0);
            return;
        }

        account.amountStaked = account.amountStaked.sub(totalSumToWithdraw);

        require(token.transfer(msg.sender, totalSumToWithdraw));

        emit StakeWithdrawn(msg.sender, totalSumToWithdraw);
    }

    /**
    * withdrawPerNodes gives the user the possibility to withdraw funds associated with the provided BLS key hashes.
    *  This function allows withdrawal also for nodes that were approved by the Elrond team, with the mention that
    *  it should happen before the contract gets in the finalized or retired state (meaning the genesis of the Elrond blockchain
    *  is established and those tokens will be minted on the main chain)
    *
    * @param blsKeyHashes A list where each element represents the hash of an Elrond's native node public key
    */
    function withdrawPerNodes(bytes32[] calldata blsKeyHashes)
    external
    whenInitializedAndNotValidating
    onlyWhitelistedAccounts(msg.sender)
    onlyAccountsWithNodes
    {
        require(blsKeyHashes.length > 0, "[Validation] You must provide at least one BLS key");

        WhitelistedAccount storage account = _whitelistedAccounts[msg.sender];
        for (uint256 i; i < blsKeyHashes.length; i++) {
            _validateBlsKeyHashForWithdrawal(account, blsKeyHashes[i]);
            _removeStakingNode(account, blsKeyHashes[i]);
        }

        uint256 totalSumToWithdraw = nodePrice.mul(blsKeyHashes.length);
        account.amountStaked = account.amountStaked.sub(totalSumToWithdraw);

        require(token.transfer(msg.sender, totalSumToWithdraw));

        emit StakeWithdrawn(msg.sender, totalSumToWithdraw);
    }

    /**
    * depositDelegateStake provides users that were not whitelisted to run nodes at the start of the
    *  Elrond blockchain with the possibility to take part anyway in the genesis of the network
    *  by delegating stake to nodes that will be ran by Elrond. The rewards will be received
    *  by the user according to the Elrond's delegation smart contract in the provided wallet address
    *
    * @param elrondAddressHash The Elrond native address hash where the user wants to receive the rewards
    * @param amount The ERD amount to be staked
    */
    function depositDelegateStake(uint256 amount, bytes32 elrondAddressHash)
    external
    whenStaking
    guardMaxDelegationLimit(amount)
    {
        require(amount > 0, "[Validation] The stake amount has to be larger than 0");
        require(!_delegationDeposits[msg.sender].exists, "[Validation] You already delegated a stake");

        _delegationDeposits[msg.sender] = DelegationDeposit(amount, elrondAddressHash, true);

        currentTotalDelegated = currentTotalDelegated.add(amount);

        require(token.transferFrom(msg.sender, address(this), amount));

        emit StakeDeposited(msg.sender, amount);
    }

    /**
    * increaseDelegatedAmount lets a user that has already delegated a number of tokens to increase that amount
    *
    * @param amount The ERD amount to be added to the existing stake
    */
    function increaseDelegatedAmount(uint256 amount)
    external
    whenStaking
    guardMaxDelegationLimit(amount)
    {
        require(amount > 0, "[Validation] The amount has to be larger than 0");

        DelegationDeposit storage deposit = _delegationDeposits[msg.sender];
        require(deposit.exists, "[Validation] You don't have a delegated stake");

        deposit.amount = deposit.amount.add(amount);
        currentTotalDelegated = currentTotalDelegated.add(amount);

        require(token.transferFrom(msg.sender, address(this), amount));

        emit StakeDeposited(msg.sender, amount);
    }

    /**
    * withdrawDelegatedStake lets a user that has already delegated a number of tokens to decrease that amount
    *
    * @param amount The ERD amount to be removed to the existing stake
    */
    function withdrawDelegatedStake(uint256 amount)
    external
    whenStaking
    {
        require(amount > 0, "[Validation] The withdraw amount has to be larger than 0");

        DelegationDeposit storage deposit = _delegationDeposits[msg.sender];
        require(deposit.exists, "[Validation] You don't have a delegated stake");
        require(amount <= deposit.amount, "[Validation] Not enough stake deposit to withdraw");

        deposit.amount = deposit.amount.sub(amount);
        currentTotalDelegated = currentTotalDelegated.sub(amount);
        require(token.transfer(msg.sender, amount));

        emit StakeWithdrawn(msg.sender, amount);
    }

    // OWNER ONLY FUNCTIONS

    /**
    * changeStateToStaking allows the owner to change the state of the contract into the staking phase
    */
    function changeStateToStaking()
    external
    onlyOwner
    whenNotRetired
    {
        emit StateChanged(contractState, States.Staking);
        contractState = States.Staking;
    }

    /**
    * changeStateToValidating allows the owner to change the state of the contract into the validating phase. With the
    *  mention that we can go into validating phase only from the staking phase.
    */
    function changeStateToValidating()
    external
    onlyOwner
    whenStaking
    {
        emit StateChanged(contractState, States.Validating);
        contractState = States.Validating;
    }

    /**
    * changeStateToFinalized allows the owner to change the state of the contract into the finalized phase
    */
    function changeStateToFinalized()
    external
    onlyOwner
    whenNotRetired
    {
        emit StateChanged(contractState, States.Finalized);
        contractState = States.Finalized;
    }

    /**
   * changeStateToRetired allows the owner to change the state of the contract into the retired phase.
   *  this can only happen if the contract is finalized - in order to prevent retiring it by mistake,
   *  since there is no turning back from this state
   */
    function changeStateToRetired()
    external
    onlyOwner
    whenFinalized
    {
        emit StateChanged(contractState, States.Retired);
        contractState = States.Retired;
    }

    /**
    * whitelistAccount allows the owner to whitelist an ethereum address to stake ERD and add nodes to run
    *  on the Elrond blockchain
    */
    function whitelistAccount(address who, uint256 numberOfNodes)
    external
    onlyOwner
    whenNotFinalized
    whenNotRetired
    onlyNotWhitelistedAccounts(who)
    {
        WhitelistedAccount storage whitelistedAccount = _whitelistedAccounts[who];
        whitelistedAccount.numberOfNodes = numberOfNodes;
        whitelistedAccount.exists = true;

        _whitelistedAccountAddresses.push(who);
    }

    /**
    * approveBlsKeyHashes gives the owner the possibility to mark some BLS key hashes submitted by an account
    *  as approved after an off-chain validation
    */
    function approveBlsKeyHashes(address who, bytes32[] calldata blsHashes)
    external
    onlyOwner
    whenNotFinalized
    whenNotRetired
    onlyWhitelistedAccounts(who)
    {
        WhitelistedAccount storage whitelistedAccount = _whitelistedAccounts[who];

        for (uint256 i = 0; i < blsHashes.length; i++) {
            require(_accountHasNode(whitelistedAccount, blsHashes[i]), "[Validation] BLS key does not exist for this account");
            require(!_approvedBlsKeyHashes[blsHashes[i]], "[Validation] Provided BLS key was already approved");

            uint256 accountIndex = whitelistedAccount.blsKeyHashToStakingNodeIndex[blsHashes[i]];
            StakingNode storage stakingNode = whitelistedAccount.stakingNodes[accountIndex];
            require(stakingNode.exists, '[Validation] Bls key does not exist for this account');
            stakingNode.approved = true;
            _approvedBlsKeyHashes[blsHashes[i]] = true;
        }
    }

    /**
    * unapproveBlsKeyHashes the same as approveBlsKeyHashes, but changing the approved flag to false for selected keys
    */
    function unapproveBlsKeyHashes(address who, bytes32[] calldata blsHashes)
    external
    onlyOwner
    whenNotFinalized
    whenNotRetired
    onlyWhitelistedAccounts(who)
    {
        WhitelistedAccount storage whitelistedAccount = _whitelistedAccounts[who];

        for (uint256 i = 0; i < blsHashes.length; i++) {
            require(_accountHasNode(whitelistedAccount, blsHashes[i]), "[Validation] BLS key does not exist for this account");
            require(_approvedBlsKeyHashes[blsHashes[i]], "[Validation] Provided BLS key was not previously approved");

            uint256 accountIndex = whitelistedAccount.blsKeyHashToStakingNodeIndex[blsHashes[i]];
            StakingNode storage stakingNode = whitelistedAccount.stakingNodes[accountIndex];
            require(stakingNode.exists, '[Validation] Bls key does not exist for this account');
            stakingNode.approved = false;
            _approvedBlsKeyHashes[blsHashes[i]] = false;
        }
    }

    /**
    * editWhitelistedAccountNumberOfNodes gives the owner the possibility to change the number of nodes a user can
    *  stake for. The number cannot be set lower than the number of nodes the user already submitted
    */
    function editWhitelistedAccountNumberOfNodes(address who, uint256 numberOfNodes)
    external
    onlyOwner
    whenNotFinalized
    whenNotRetired
    onlyWhitelistedAccounts(who)
    {
        WhitelistedAccount storage whitelistedAccount = _whitelistedAccounts[who];
        require(numberOfNodes >= whitelistedAccount.stakingNodes.length, "[Validation] Whitelisted account already submitted more nodes than you wish to allow");

        whitelistedAccount.numberOfNodes = numberOfNodes;
    }

    /**
    * burnCommittedFunds can be called by the owner after this contract is retired. This function burns the amount
    *  of tokens associated with approved nodes and delegated stake. The equivalent will be minted on the
    *  Elrond blockchain
    */
    function burnCommittedFunds()
    external
    onlyOwner
    whenRetired
    {
        uint256 totalToBurn = currentTotalDelegated;
        for(uint256 i; i < _whitelistedAccountAddresses.length; i++) {
            WhitelistedAccount memory account = _whitelistedAccounts[_whitelistedAccountAddresses[i]];
            if (!account.exists) {
                continue;
            }

            uint256 approvedNodes = _approvedNodesCount(account);
            totalToBurn = totalToBurn.add(nodePrice.mul(approvedNodes));
        }

        token.burn(totalToBurn);
    }

    /**
    * recoverLostFunds helps us recover funds for users that accidentally send tokens directly to this contract
    */
    function recoverLostFunds(address who, uint256 amount)
    external
    onlyOwner
    {
        uint256 currentBalance = token.balanceOf(address(this));
        require(amount <= currentBalance, "[Validation] Recover amount exceeds contract balance");

        uint256 correctDepositAmount = _correctDepositAmount();
        uint256 lostFundsAmount = currentBalance.sub(correctDepositAmount);
        require(amount <= lostFundsAmount, "[Validation] Recover amount exceeds lost funds amount");

        token.transfer(who, amount);
    }

    // VIEW FUNCTIONS
    function whitelistedAccountAddresses()
    external
    view
    returns (address[] memory, uint256[] memory)
    {
        address[] memory whitelistedAddresses = new address[](_whitelistedAccountAddresses.length);
        uint256[] memory whitelistedAddressesNodes = new uint256[](_whitelistedAccountAddresses.length);

        for (uint256 i = 0; i < _whitelistedAccountAddresses.length; i++) {
            whitelistedAddresses[i] = _whitelistedAccountAddresses[i];
            WhitelistedAccount storage whitelistedAccount = _whitelistedAccounts[_whitelistedAccountAddresses[i]];
            whitelistedAddressesNodes[i] = whitelistedAccount.numberOfNodes;

        }

        return (whitelistedAddresses, whitelistedAddressesNodes);
    }

    function whitelistedAccount(address who)
    external
    view
    returns (uint256 maxNumberOfNodes, uint256 amountStaked)
    {
        require(_whitelistedAccounts[who].exists, "[WhitelistedAddress] Address is not whitelisted");

        return (_whitelistedAccounts[who].numberOfNodes, _whitelistedAccounts[who].amountStaked);
    }

    function stakingNodesHashes(address who)
    external
    view
    returns (bytes32[] memory, bool[] memory, bytes32[] memory)
    {
        require(_whitelistedAccounts[who].exists, "[StakingNodesHashes] Address is not whitelisted");

        StakingNode[] memory stakingNodes = _whitelistedAccounts[who].stakingNodes;
        bytes32[] memory blsKeyHashes = new bytes32[](stakingNodes.length);
        bool[] memory blsKeyHashesStatus = new bool[](stakingNodes.length);
        bytes32[] memory rewardAddresses = new bytes32[](stakingNodes.length);

        for (uint256 i = 0; i < stakingNodes.length; i++) {
            blsKeyHashes[i] = stakingNodes[i].blsKeyHash;
            blsKeyHashesStatus[i] = stakingNodes[i].approved;
            rewardAddresses[i] = stakingNodes[i].elrondAddressHash;
        }

        return (blsKeyHashes, blsKeyHashesStatus, rewardAddresses);
    }

    function stakingNodeInfo(address who, bytes32 blsKeyHash)
    external
    view
    returns(bytes32, bool)
    {
        require(_whitelistedAccounts[who].exists, "[StakingNodeInfo] Address is not whitelisted");
        require(_accountHasNode(_whitelistedAccounts[who], blsKeyHash), "[StakingNodeInfo] Address does not have the provided node");

        WhitelistedAccount storage account = _whitelistedAccounts[who];
        uint256 nodeIndex = account.blsKeyHashToStakingNodeIndex[blsKeyHash];
        return (account.stakingNodes[nodeIndex].elrondAddressHash, account.stakingNodes[nodeIndex].approved);
    }

    function delegationDeposit(address who)
    external
    view
    returns (uint256, bytes32)
    {
        return (_delegationDeposits[who].amount, _delegationDeposits[who].elrondAddressHash);
    }

    function lostFundsAmount()
    external
    view
    returns (uint256)
    {
        uint256 currentBalance = token.balanceOf(address(this));
        uint256 correctDepositAmount = _correctDepositAmount();

        return currentBalance.sub(correctDepositAmount);
    }

    // PRIVATE FUNCTIONS
    function _addStakingNodes(WhitelistedAccount storage account, bytes32[] memory blsKeyHashes, bytes32 elrondAddressHash)
    internal
    {
        for (uint256 i = 0; i < blsKeyHashes.length; i++) {
            _insertStakingNode(account, blsKeyHashes[i], elrondAddressHash);
        }
    }

    function _validateStakeParameters(WhitelistedAccount memory account, bytes32[] memory blsKeyHashes)
    internal
    pure
    {
        require(
            account.numberOfNodes >= account.stakingNodes.length + blsKeyHashes.length,
            "[Validation] Adding this many nodes would exceed the maximum number of allowed nodes per this account"
        );
    }

    function _correctDepositAmount()
    internal
    view
    returns (uint256)
    {
        uint256 correctDepositAmount = currentTotalDelegated;
        for(uint256 i; i < _whitelistedAccountAddresses.length; i++) {
            WhitelistedAccount memory account = _whitelistedAccounts[_whitelistedAccountAddresses[i]];
            if (!account.exists) {
                continue;
            }

            correctDepositAmount = correctDepositAmount.add(nodePrice.mul(account.stakingNodes.length));
        }

        return correctDepositAmount;
    }

    // StakingNode list manipulation
    function _accountHasNode(WhitelistedAccount storage account, bytes32 blsKeyHash)
    internal
    view
    returns (bool)
    {
        if (account.stakingNodes.length == 0) {
            return false;
        }

        uint256 nodeIndex = account.blsKeyHashToStakingNodeIndex[blsKeyHash];

        return (account.stakingNodes[nodeIndex].blsKeyHash == blsKeyHash) && account.stakingNodes[nodeIndex].exists;
    }

    function _approvedNodesCount(WhitelistedAccount memory account)
    internal
    pure
    returns(uint256)
    {
        uint256 nodesCount = 0;

        for(uint256 i = 0; i < account.stakingNodes.length; i++) {
            if (account.stakingNodes[i].exists && account.stakingNodes[i].approved) {
                nodesCount++;
            }
        }

        return nodesCount;
    }

    // Node operations
    function _insertStakingNode(WhitelistedAccount storage account, bytes32 blsKeyHash, bytes32 elrondAddressHash)
    internal
    {
        require(blsKeyHash != 0, "[Validation] BLS key hash should not be 0");
        require(!_accountHasNode(account, blsKeyHash), "[Validation] BLS key was already added for this account");

        account.blsKeyHashToStakingNodeIndex[blsKeyHash] = account.stakingNodes.length;
        StakingNode memory newNode = StakingNode(blsKeyHash, elrondAddressHash, false, true);
        account.stakingNodes.push(newNode);
    }

    function _removeStakingNode(WhitelistedAccount storage account, bytes32 blsKeyHash)
    internal
    {
        uint256 nodeIndex = account.blsKeyHashToStakingNodeIndex[blsKeyHash];
        uint256 lastNodeIndex = account.stakingNodes.length - 1;

        bool stakingNodeIsApproved = account.stakingNodes[nodeIndex].approved;

        // It's not the last StakingNode so we replace this one with the last one
        if (nodeIndex != lastNodeIndex) {
            bytes32 lastHash = account.stakingNodes[lastNodeIndex].blsKeyHash;
            account.blsKeyHashToStakingNodeIndex[lastHash] = nodeIndex;
            account.stakingNodes[nodeIndex] = account.stakingNodes[lastNodeIndex];
        }

        if (stakingNodeIsApproved) {
            delete _approvedBlsKeyHashes[blsKeyHash];
        }

        account.stakingNodes.pop();
        delete account.blsKeyHashToStakingNodeIndex[blsKeyHash];
    }

    function _validateBlsKeyHashForWithdrawal(WhitelistedAccount storage account, bytes32 blsKeyHash)
    internal
    view
    {
        require(_accountHasNode(account, blsKeyHash), "[Validation] BLS key does not exist for this account");
        if (contractState == States.Finalized || contractState == States.Retired) {
            require(
                !account.stakingNodes[account.blsKeyHashToStakingNodeIndex[blsKeyHash]].approved,
                "[Validation] BLS key was already approved, you cannot withdraw the associated amount"
            );
        }
    }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"contract ERC20Burnable","name":"_token","type":"address"},{"internalType":"uint256","name":"_nodePrice","type":"uint256"},{"internalType":"uint256","name":"_delegationNodesLimit","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"StakeDeposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"StakeWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"enum GenesisSC.States","name":"fromState","type":"uint8"},{"indexed":false,"internalType":"enum GenesisSC.States","name":"toState","type":"uint8"}],"name":"StateChanged","type":"event"},{"constant":false,"inputs":[{"internalType":"address","name":"who","type":"address"},{"internalType":"bytes32[]","name":"blsHashes","type":"bytes32[]"}],"name":"approveBlsKeyHashes","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"burnCommittedFunds","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"changeStateToFinalized","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"changeStateToRetired","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"changeStateToStaking","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"changeStateToValidating","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"contractState","outputs":[{"internalType":"enum GenesisSC.States","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"currentTotalDelegated","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"delegationAmountLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"who","type":"address"}],"name":"delegationDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"delegationNodesLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32","name":"elrondAddressHash","type":"bytes32"}],"name":"depositDelegateStake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"who","type":"address"},{"internalType":"uint256","name":"numberOfNodes","type":"uint256"}],"name":"editWhitelistedAccountNumberOfNodes","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"increaseDelegatedAmount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lostFundsAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"nodePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"who","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"recoverLostFunds","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"who","type":"address"},{"internalType":"bytes32","name":"blsKeyHash","type":"bytes32"}],"name":"stakingNodeInfo","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"},{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"who","type":"address"}],"name":"stakingNodesHashes","outputs":[{"internalType":"bytes32[]","name":"","type":"bytes32[]"},{"internalType":"bool[]","name":"","type":"bool[]"},{"internalType":"bytes32[]","name":"","type":"bytes32[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes32[]","name":"blsKeyHashes","type":"bytes32[]"},{"internalType":"bytes32","name":"elrondAddressHash","type":"bytes32"}],"name":"submitStake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"internalType":"contract ERC20Burnable","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"who","type":"address"},{"internalType":"bytes32[]","name":"blsHashes","type":"bytes32[]"}],"name":"unapproveBlsKeyHashes","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"who","type":"address"},{"internalType":"uint256","name":"numberOfNodes","type":"uint256"}],"name":"whitelistAccount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"who","type":"address"}],"name":"whitelistedAccount","outputs":[{"internalType":"uint256","name":"maxNumberOfNodes","type":"uint256"},{"internalType":"uint256","name":"amountStaked","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"whitelistedAccountAddresses","outputs":[{"internalType":"address[]","name":"","type":"address[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawDelegatedStake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes32[]","name":"blsKeyHashes","type":"bytes32[]"}],"name":"withdrawPerNodes","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

0x60806040526006805460ff60a01b191690553480156200001e57600080fd5b50604051620049bc380380620049bc833981810160405260608110156200004457600080fd5b5080516020820151604090920151909190620000686001600160e01b036200013b16565b600080546001600160a01b0319166001600160a01b03928316178082556040519216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a360008211620000f15760405162461bcd60e51b815260040180806020018281038252602e8152602001806200498e602e913960400191505060405180910390fd5b600680546001600160a01b0319166001600160a01b038516179055600182905560028190556200012e81836200013f602090811b620039ae17901c565b60035550620001a6915050565b3390565b6000826200015057506000620001a0565b828202828482816200015e57fe5b04146200019d5760405162461bcd60e51b81526004018080602001828103825260218152602001806200496d6021913960400191505060405180910390fd5b90505b92915050565b6147b780620001b66000396000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c80638f32d59b1161010f578063dec64937116100a2578063f1fec2b811610071578063f1fec2b8146107cd578063f2fde38b146107d5578063f6545035146107fb578063fc0c546a14610803576101f0565b8063dec649371461075b578063ecf3148c14610763578063ed1b762f14610780578063f080edf4146107c5576101f0565b8063b7894a08116100de578063b7894a08146106d5578063b898d334146106dd578063baa5e239146106e5578063c3c75738146106ed576101f0565b80638f32d59b146106595780638f63458c14610675578063a444502b146106a1578063b4c449e3146106cd576101f0565b8063533962f0116101875780637be7b8d2116101565780637be7b8d21461056057806385209ee01461056857806385e6fa51146105945780638da5cb5b14610635576101f0565b8063533962f0146103685780635bc4d50a146103d6578063715018a6146104545780637b93367d1461045c576101f0565b80633ccfd60b116101c35780633ccfd60b146103065780633fabd39f1461030e57806347e5c2121461032b5780634b66aecc1461034e576101f0565b80631a311dbc146101f557806334bdbcf7146102755780633706f968146102a15780633a5b1dbf146102e0575b600080fd5b6102736004803603604081101561020b57600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561023557600080fd5b82018360208201111561024757600080fd5b803590602001918460208302840111600160201b8311171561026857600080fd5b50909250905061080b565b005b6102736004803603604081101561028b57600080fd5b506001600160a01b038135169060200135610c03565b6102c7600480360360208110156102b757600080fd5b50356001600160a01b0316610e8c565b6040805192835260208301919091528051918290030190f35b6102c7600480360360208110156102f657600080fd5b50356001600160a01b0316610f0d565b610273610f30565b6102736004803603602081101561032457600080fd5b50356112fc565b6102736004803603604081101561034157600080fd5b508035906020013561151f565b6103566116a4565b60408051918252519081900360200190f35b6102736004803603602081101561037e57600080fd5b810190602081018135600160201b81111561039857600080fd5b8201836020820111156103aa57600080fd5b803590602001918460208302840111600160201b831117156103cb57600080fd5b5090925090506116aa565b610273600480360360408110156103ec57600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561041657600080fd5b82018360208201111561042857600080fd5b803590602001918460208302840111600160201b8311171561044957600080fd5b509092509050611a54565b610273611e3d565b6104826004803603602081101561047257600080fd5b50356001600160a01b0316611ece565b60405180806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b838110156104ca5781810151838201526020016104b2565b50505050905001848103835286818151815260200191508051906020019060200280838360005b838110156105095781810151838201526020016104f1565b50505050905001848103825285818151815260200191508051906020019060200280838360005b83811015610548578181015183820152602001610530565b50505050905001965050505050505060405180910390f35b61027361211a565b610570612375565b6040518082600481111561058057fe5b60ff16815260200191505060405180910390f35b61059c612385565b604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b838110156105e05781810151838201526020016105c8565b50505050905001838103825284818151815260200191508051906020019060200280838360005b8381101561061f578181015183820152602001610607565b5050505090500194505050505060405180910390f35b61063d6124bd565b604080516001600160a01b039092168252519081900360200190f35b6106616124cc565b604080519115158252519081900360200190f35b6102736004803603604081101561068b57600080fd5b506001600160a01b0381351690602001356124f0565b610273600480360360408110156106b757600080fd5b506001600160a01b0381351690602001356126ce565b610273612968565b610356612a7c565b610356612b1d565b610273612b23565b6102736004803603604081101561070357600080fd5b810190602081018135600160201b81111561071d57600080fd5b82018360208201111561072f57600080fd5b803590602001918460208302840111600160201b8311171561075057600080fd5b919350915035612c34565b610273613037565b6102736004803603602081101561077957600080fd5b5035613147565b6107ac6004803603604081101561079657600080fd5b506001600160a01b03813516906020013561334b565b6040805192835290151560208301528051918290030190f35b610273613483565b610356613593565b610273600480360360208110156107eb57600080fd5b50356001600160a01b0316613599565b6103566135ec565b61063d6135f2565b6108136124cc565b610852576040805162461bcd60e51b815260206004820181905260248201526000805160206142f9833981519152604482015290519081900360640190fd5b6003600654600160a01b900460ff16600481111561086c57fe5b14156108a95760405162461bcd60e51b815260040180806020018281038252604a81526020018061453d604a913960600191505060405180910390fd5b6004600654600160a01b900460ff1660048111156108c357fe5b14156109005760405162461bcd60e51b81526004018080602001828103825260488152602001806140396048913960600191505060405180910390fd5b82610909613ea3565b60076000836001600160a01b03166001600160a01b03168152602001908152602001600020604051806080016040529081600082015481526020016001820154815260200160028201805480602002602001604051908101604052809291908181526020016000905b828210156109d45760008481526020908190206040805160808101825260038602909201805483526001808201548486015260029091015460ff8082161515938501939093526101009004909116151560608301529083529092019101610972565b505050908252506003919091015460ff1615156020909101526060810151909150610a305760405162461bcd60e51b81526004018080602001828103825260348152602001806140e66034913960400191505060405180910390fd5b6001600160a01b0385166000908152600760205260408120905b84811015610bfa57610a6e82878784818110610a6257fe5b90506020020135613601565b610aa95760405162461bcd60e51b815260040180806020018281038252603481526020018061474f6034913960400191505060405180910390fd5b60096000878784818110610ab957fe5b602090810292909201358352508101919091526040016000205460ff16610b115760405162461bcd60e51b81526004018080602001828103825260398152602001806145876039913960400191505060405180910390fd5b6000826004016000888885818110610b2557fe5b9050602002013581526020019081526020016000205490506000836002018281548110610b4e57fe5b906000526020600020906003020190508060020160019054906101000a900460ff16610bab5760405162461bcd60e51b81526004018080602001828103825260348152602001806141ac6034913960400191505060405180910390fd5b60028101805460ff1916905560006009818a8a87818110610bc857fe5b60209081029290920135835250810191909152604001600020805460ff19169115159190911790555050600101610a4a565b50505050505050565b610c0b6124cc565b610c4a576040805162461bcd60e51b815260206004820181905260248201526000805160206142f9833981519152604482015290519081900360640190fd5b6003600654600160a01b900460ff166004811115610c6457fe5b1415610ca15760405162461bcd60e51b815260040180806020018281038252604a81526020018061453d604a913960600191505060405180910390fd5b6004600654600160a01b900460ff166004811115610cbb57fe5b1415610cf85760405162461bcd60e51b81526004018080602001828103825260488152602001806140396048913960600191505060405180910390fd5b81610d01613ea3565b60076000836001600160a01b03166001600160a01b03168152602001908152602001600020604051806080016040529081600082015481526020016001820154815260200160028201805480602002602001604051908101604052809291908181526020016000905b82821015610dcc5760008481526020908190206040805160808101825260038602909201805483526001808201548486015260029091015460ff8082161515938501939093526101009004909116151560608301529083529092019101610d6a565b505050908252506003919091015460ff1615156020909101526060810151909150610e285760405162461bcd60e51b81526004018080602001828103825260348152602001806140e66034913960400191505060405180910390fd5b6001600160a01b03841660009081526007602052604090206002810154841015610e835760405162461bcd60e51b81526004018080602001828103825260548152602001806143ba6054913960600191505060405180910390fd5b92909255505050565b6001600160a01b038116600090815260076020526040812060030154819060ff16610ee85760405162461bcd60e51b815260040180806020018281038252602f81526020018061450e602f913960400191505060405180910390fd5b50506001600160a01b0316600090815260076020526040902080546001909101549091565b6001600160a01b0316600090815260086020526040902080546001909101549091565b6000600654600160a01b900460ff166004811115610f4a57fe5b1415610f875760405162461bcd60e51b81526004018080602001828103825260478152602001806146d36047913960600191505060405180910390fd5b6002600654600160a01b900460ff166004811115610fa157fe5b1415610fde5760405162461bcd60e51b815260040180806020018281038252606481526020018061440e6064913960800191505060405180910390fd5b33610fe7613ea3565b60076000836001600160a01b03166001600160a01b03168152602001908152602001600020604051806080016040529081600082015481526020016001820154815260200160028201805480602002602001604051908101604052809291908181526020016000905b828210156110b25760008481526020908190206040805160808101825260038602909201805483526001808201548486015260029091015460ff8082161515938501939093526101009004909116151560608301529083529092019101611050565b505050908252506003919091015460ff161515602090910152606081015190915061110e5760405162461bcd60e51b81526004018080602001828103825260348152602001806140e66034913960400191505060405180910390fd5b3360009081526007602052604090206002015461115c5760405162461bcd60e51b815260040180806020018281038252602f8152602001806144a6602f913960400191505060405180910390fd5b336000908152600760205260408120600281015460001901805b8181116111fa57600083600201828154811061118e57fe5b906000526020600020906003020190508060020160019054906101000a900460ff1615806111c05750600281015460ff165b156111cb57506111f1565b6001546111df90869063ffffffff61368c16565b94506111ef8482600001546136ed565b505b60001901611176565b508261122d5760408051600081529051339160008051602061423f833981519152919081900360200190a25050506112f8565b6001820154611242908463ffffffff61387016565b60018301556006546040805163a9059cbb60e01b81523360048201526024810186905290516001600160a01b039092169163a9059cbb916044808201926020929091908290030181600087803b15801561129b57600080fd5b505af11580156112af573d6000803e3d6000fd5b505050506040513d60208110156112c557600080fd5b50516112d057600080fd5b604080518481529051339160008051602061423f833981519152919081900360200190a25050505b5050565b6001600654600160a01b900460ff16600481111561131657fe5b146113525760405162461bcd60e51b815260040180806020018281038252604f8152602001806145c0604f913960600191505060405180910390fd5b80600454600354038111156113985760405162461bcd60e51b815260040180806020018281038252604581526020018061466e6045913960600191505060405180910390fd5b600082116113d75760405162461bcd60e51b815260040180806020018281038252602f815260200180614280602f913960400191505060405180910390fd5b336000908152600860205260409020600281015460ff166114295760405162461bcd60e51b815260040180806020018281038252602d81526020018061460f602d913960400191505060405180910390fd5b805461143b908463ffffffff61368c16565b8155600454611450908463ffffffff61368c16565b6004908155600654604080516323b872dd60e01b8152339381019390935230602484015260448301869052516001600160a01b03909116916323b872dd9160648083019260209291908290030181600087803b1580156114af57600080fd5b505af11580156114c3573d6000803e3d6000fd5b505050506040513d60208110156114d957600080fd5b50516114e457600080fd5b60408051848152905133917f0a7bb2e28cc4698aac06db79cf9163bfcc20719286cf59fa7d492ceda1b8edc2919081900360200190a2505050565b6001600654600160a01b900460ff16600481111561153957fe5b146115755760405162461bcd60e51b815260040180806020018281038252604f8152602001806145c0604f913960600191505060405180910390fd5b81600454600354038111156115bb5760405162461bcd60e51b815260040180806020018281038252604581526020018061466e6045913960600191505060405180910390fd5b600083116115fa5760405162461bcd60e51b815260040180806020018281038252603581526020018061471a6035913960400191505060405180910390fd5b3360009081526008602052604090206002015460ff161561164c5760405162461bcd60e51b815260040180806020018281038252602a815260200180614215602a913960400191505060405180910390fd5b604080516060810182528481526020808201858152600183850181815233600090815260089094529490922092518355519082015590516002909101805460ff1916911515919091179055600454611450908461368c565b60045481565b6000600654600160a01b900460ff1660048111156116c457fe5b14156117015760405162461bcd60e51b81526004018080602001828103825260478152602001806146d36047913960600191505060405180910390fd5b6002600654600160a01b900460ff16600481111561171b57fe5b14156117585760405162461bcd60e51b815260040180806020018281038252606481526020018061440e6064913960800191505060405180910390fd5b33611761613ea3565b60076000836001600160a01b03166001600160a01b03168152602001908152602001600020604051806080016040529081600082015481526020016001820154815260200160028201805480602002602001604051908101604052809291908181526020016000905b8282101561182c5760008481526020908190206040805160808101825260038602909201805483526001808201548486015260029091015460ff80821615159385019390935261010090049091161515606083015290835290920191016117ca565b505050908252506003919091015460ff16151560209091015260608101519091506118885760405162461bcd60e51b81526004018080602001828103825260348152602001806140e66034913960400191505060405180910390fd5b336000908152600760205260409020600201546118d65760405162461bcd60e51b815260040180806020018281038252602f8152602001806144a6602f913960400191505060405180910390fd5b826119125760405162461bcd60e51b815260040180806020018281038252603281526020018061463c6032913960400191505060405180910390fd5b336000908152600760205260408120905b8481101561196b576119478287878481811061193b57fe5b905060200201356138b2565b6119638287878481811061195757fe5b905060200201356136ed565b600101611923565b50600154600090611982908663ffffffff6139ae16565b600183015490915061199a908263ffffffff61387016565b60018301556006546040805163a9059cbb60e01b81523360048201526024810184905290516001600160a01b039092169163a9059cbb916044808201926020929091908290030181600087803b1580156119f357600080fd5b505af1158015611a07573d6000803e3d6000fd5b505050506040513d6020811015611a1d57600080fd5b5051611a2857600080fd5b604080518281529051339160008051602061423f833981519152919081900360200190a2505050505050565b611a5c6124cc565b611a9b576040805162461bcd60e51b815260206004820181905260248201526000805160206142f9833981519152604482015290519081900360640190fd5b6003600654600160a01b900460ff166004811115611ab557fe5b1415611af25760405162461bcd60e51b815260040180806020018281038252604a81526020018061453d604a913960600191505060405180910390fd5b6004600654600160a01b900460ff166004811115611b0c57fe5b1415611b495760405162461bcd60e51b81526004018080602001828103825260488152602001806140396048913960600191505060405180910390fd5b82611b52613ea3565b60076000836001600160a01b03166001600160a01b03168152602001908152602001600020604051806080016040529081600082015481526020016001820154815260200160028201805480602002602001604051908101604052809291908181526020016000905b82821015611c1d5760008481526020908190206040805160808101825260038602909201805483526001808201548486015260029091015460ff8082161515938501939093526101009004909116151560608301529083529092019101611bbb565b505050908252506003919091015460ff1615156020909101526060810151909150611c795760405162461bcd60e51b81526004018080602001828103825260348152602001806140e66034913960400191505060405180910390fd5b6001600160a01b0385166000908152600760205260408120905b84811015610bfa57611cab82878784818110610a6257fe5b611ce65760405162461bcd60e51b815260040180806020018281038252603481526020018061474f6034913960400191505060405180910390fd5b60096000878784818110611cf657fe5b602090810292909201358352508101919091526040016000205460ff1615611d4f5760405162461bcd60e51b81526004018080602001828103825260328152602001806141496032913960400191505060405180910390fd5b6000826004016000888885818110611d6357fe5b9050602002013581526020019081526020016000205490506000836002018281548110611d8c57fe5b906000526020600020906003020190508060020160019054906101000a900460ff16611de95760405162461bcd60e51b81526004018080602001828103825260348152602001806141ac6034913960400191505060405180910390fd5b60028101805460ff19166001908117909155600960008a8a87818110611e0b57fe5b60209081029290920135835250810191909152604001600020805460ff19169115159190911790555050600101611c93565b611e456124cc565b611e84576040805162461bcd60e51b815260206004820181905260248201526000805160206142f9833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6001600160a01b0381166000908152600760205260409020600301546060908190819060ff16611f2f5760405162461bcd60e51b815260040180806020018281038252602f81526020018061411a602f913960400191505060405180910390fd5b6001600160a01b0384166000908152600760209081526040808320600201805482518185028101850190935280835260609492939192909184015b82821015611fcc5760008481526020908190206040805160808101825260038602909201805483526001808201548486015260029091015460ff8082161515938501939093526101009004909116151560608301529083529092019101611f6a565b50505050905060608151604051908082528060200260200182016040528015611fff578160200160208202803883390190505b5090506060825160405190808252806020026020018201604052801561202f578160200160208202803883390190505b5090506060835160405190808252806020026020018201604052801561205f578160200160208202803883390190505b50905060005b845181101561210b5784818151811061207a57fe5b60200260200101516000015184828151811061209257fe5b6020026020010181815250508481815181106120aa57fe5b6020026020010151604001518382815181106120c257fe5b6020026020010190151590811515815250508481815181106120e057fe5b6020026020010151602001518282815181106120f857fe5b6020908102919091010152600101612065565b50919790965090945092505050565b6121226124cc565b612161576040805162461bcd60e51b815260206004820181905260248201526000805160206142f9833981519152604482015290519081900360640190fd5b6004600654600160a01b900460ff16600481111561217b57fe5b146121b75760405162461bcd60e51b815260040180806020018281038252604a8152602001806142af604a913960600191505060405180910390fd5b60045460005b60055481101561230c576121cf613ea3565b60076000600584815481106121e057fe5b60009182526020808320909101546001600160a01b03168352828101939093526040918201812082516080810184528154815260018201548186015260028201805485518188028101880187528181529296939587019492939192909184015b828210156122a25760008481526020908190206040805160808101825260038602909201805483526001808201548486015260029091015460ff8082161515938501939093526101009004909116151560608301529083529092019101612240565b505050908252506003919091015460ff16151560209091015260608101519091506122cd5750612304565b60006122d882613a07565b90506122ff6122f2826001546139ae90919063ffffffff16565b859063ffffffff61368c16565b935050505b6001016121bd565b5060065460408051630852cd8d60e31b81526004810184905290516001600160a01b03909216916342966c689160248082019260009290919082900301818387803b15801561235a57600080fd5b505af115801561236e573d6000803e3d6000fd5b5050505050565b600654600160a01b900460ff1681565b60608060606005805490506040519080825280602002602001820160405280156123b9578160200160208202803883390190505b50905060606005805490506040519080825280602002602001820160405280156123ed578160200160208202803883390190505b50905060005b6005548110156124b3576005818154811061240a57fe5b9060005260206000200160009054906101000a90046001600160a01b031683828151811061243457fe5b60200260200101906001600160a01b031690816001600160a01b0316815250506000600760006005848154811061246757fe5b60009182526020808320909101546001600160a01b031683528201929092526040019020805484519192509084908490811061249f57fe5b6020908102919091010152506001016123f3565b5090925090509091565b6000546001600160a01b031690565b600080546001600160a01b03166124e1613a74565b6001600160a01b031614905090565b6124f86124cc565b612537576040805162461bcd60e51b815260206004820181905260248201526000805160206142f9833981519152604482015290519081900360640190fd5b600654604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561258257600080fd5b505afa158015612596573d6000803e3d6000fd5b505050506040513d60208110156125ac57600080fd5b50519050808211156125ef5760405162461bcd60e51b81526004018080602001828103825260348152602001806144726034913960400191505060405180910390fd5b60006125f9613a78565b9050600061260d838363ffffffff61387016565b90508084111561264e5760405162461bcd60e51b81526004018080602001828103825260358152602001806141e06035913960400191505060405180910390fd5b6006546040805163a9059cbb60e01b81526001600160a01b038881166004830152602482018890529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156126a457600080fd5b505af11580156126b8573d6000803e3d6000fd5b505050506040513d6020811015610bfa57600080fd5b6126d66124cc565b612715576040805162461bcd60e51b815260206004820181905260248201526000805160206142f9833981519152604482015290519081900360640190fd5b6003600654600160a01b900460ff16600481111561272f57fe5b141561276c5760405162461bcd60e51b815260040180806020018281038252604a81526020018061453d604a913960600191505060405180910390fd5b6004600654600160a01b900460ff16600481111561278657fe5b14156127c35760405162461bcd60e51b81526004018080602001828103825260488152602001806140396048913960600191505060405180910390fd5b816127cc613ea3565b60076000836001600160a01b03166001600160a01b03168152602001908152602001600020604051806080016040529081600082015481526020016001820154815260200160028201805480602002602001604051908101604052809291908181526020016000905b828210156128975760008481526020908190206040805160808101825260038602909201805483526001808201548486015260029091015460ff8082161515938501939093526101009004909116151560608301529083529092019101612835565b505050908252506003919091015460ff1615156020909101526060810151909150156128f45760405162461bcd60e51b815260040180806020018281038252602b815260200180613ef5602b913960400191505060405180910390fd5b50506001600160a01b0390911660008181526007602052604081209283556003909201805460ff191660019081179091556005805491820181559092527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db090910180546001600160a01b0319169091179055565b6129706124cc565b6129af576040805162461bcd60e51b815260206004820181905260248201526000805160206142f9833981519152604482015290519081900360640190fd5b6004600654600160a01b900460ff1660048111156129c957fe5b1415612a065760405162461bcd60e51b81526004018080602001828103825260488152602001806140396048913960600191505060405180910390fd5b6000805160206146b3833981519152600660149054906101000a900460ff16600360405180836004811115612a3757fe5b60ff168152602001826004811115612a4b57fe5b60ff1681526020019250505060405180910390a1600680546003919060ff60a01b1916600160a01b835b0217905550565b600654604080516370a0823160e01b8152306004820152905160009283926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b158015612acc57600080fd5b505afa158015612ae0573d6000803e3d6000fd5b505050506040513d6020811015612af657600080fd5b505190506000612b04613a78565b9050612b16828263ffffffff61387016565b9250505090565b60025481565b612b2b6124cc565b612b6a576040805162461bcd60e51b815260206004820181905260248201526000805160206142f9833981519152604482015290519081900360640190fd5b6004600654600160a01b900460ff166004811115612b8457fe5b1415612bc15760405162461bcd60e51b81526004018080602001828103825260488152602001806140396048913960600191505060405180910390fd5b6000805160206146b3833981519152600660149054906101000a900460ff16600160405180836004811115612bf257fe5b60ff168152602001826004811115612c0657fe5b60ff1681526020019250505060405180910390a1600680546001919060ff60a01b1916600160a01b83612a75565b6001600654600160a01b900460ff166004811115612c4e57fe5b14612c8a5760405162461bcd60e51b815260040180806020018281038252604f8152602001806145c0604f913960600191505060405180910390fd5b33612c93613ea3565b60076000836001600160a01b03166001600160a01b03168152602001908152602001600020604051806080016040529081600082015481526020016001820154815260200160028201805480602002602001604051908101604052809291908181526020016000905b82821015612d5e5760008481526020908190206040805160808101825260038602909201805483526001808201548486015260029091015460ff8082161515938501939093526101009004909116151560608301529083529092019101612cfc565b505050908252506003919091015460ff1615156020909101526060810151909150612dba5760405162461bcd60e51b81526004018080602001828103825260348152602001806140e66034913960400191505060405180910390fd5b82612df65760405162461bcd60e51b81526004018080602001828103825260308152602001806140096030913960400191505060405180910390fd5b33600090815260076020908152604080832081516080810183528154815260018201548185015260028201805484518187028101870186528181529396612ef7969395889590870194909392919084015b82821015612ea95760008481526020908190206040805160808101825260038602909201805483526001808201548486015260029091015460ff8082161515938501939093526101009004909116151560608301529083529092019101612e47565b505050908252506003919091015460ff161515602091820152604080518983028181018401909252898152918a918a91829190850190849080828437600092019190915250613bcc92505050565b612f3681878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250613c17915050565b600154600090612f4c908763ffffffff6139ae16565b600654604080516323b872dd60e01b81523360048201523060248201526044810184905290519293506001600160a01b03909116916323b872dd916064808201926020929091908290030181600087803b158015612fa957600080fd5b505af1158015612fbd573d6000803e3d6000fd5b505050506040513d6020811015612fd357600080fd5b5051612fde57600080fd5b6001820154612ff3908263ffffffff61368c16565b600183015560408051828152905133917f0a7bb2e28cc4698aac06db79cf9163bfcc20719286cf59fa7d492ceda1b8edc2919081900360200190a250505050505050565b61303f6124cc565b61307e576040805162461bcd60e51b815260206004820181905260248201526000805160206142f9833981519152604482015290519081900360640190fd5b6003600654600160a01b900460ff16600481111561309857fe5b146130d45760405162461bcd60e51b815260040180806020018281038252604c81526020018061436e604c913960600191505060405180910390fd5b6000805160206146b3833981519152600660149054906101000a900460ff1660046040518083600481111561310557fe5b60ff16815260200182600481111561311957fe5b60ff1681526020019250505060405180910390a1600680546004919060ff60a01b1916600160a01b83612a75565b6001600654600160a01b900460ff16600481111561316157fe5b1461319d5760405162461bcd60e51b815260040180806020018281038252604f8152602001806145c0604f913960600191505060405180910390fd5b600081116131dc5760405162461bcd60e51b8152600401808060200182810382526038815260200180613f9a6038913960400191505060405180910390fd5b336000908152600860205260409020600281015460ff1661322e5760405162461bcd60e51b815260040180806020018281038252602d81526020018061460f602d913960400191505060405180910390fd5b805482111561326e5760405162461bcd60e51b815260040180806020018281038252603181526020018061417b6031913960400191505060405180910390fd5b8054613280908363ffffffff61387016565b8155600454613295908363ffffffff61387016565b60049081556006546040805163a9059cbb60e01b8152339381019390935260248301859052516001600160a01b039091169163a9059cbb9160448083019260209291908290030181600087803b1580156132ee57600080fd5b505af1158015613302573d6000803e3d6000fd5b505050506040513d602081101561331857600080fd5b505161332357600080fd5b604080518381529051339160008051602061423f833981519152919081900360200190a25050565b6001600160a01b038216600090815260076020526040812060030154819060ff166133a75760405162461bcd60e51b815260040180806020018281038252602c815260200180614319602c913960400191505060405180910390fd5b6001600160a01b03841660009081526007602052604090206133c99084613601565b6134045760405162461bcd60e51b81526004018080602001828103825260398152602001806144d56039913960400191505060405180910390fd5b6001600160a01b038416600090815260076020908152604080832086845260048101909252909120546002820180548290811061343d57fe5b90600052602060002090600302016001015482600201828154811061345e57fe5b600091825260209091206002600390920201015490945060ff16925050509250929050565b61348b6124cc565b6134ca576040805162461bcd60e51b815260206004820181905260248201526000805160206142f9833981519152604482015290519081900360640190fd5b6001600654600160a01b900460ff1660048111156134e457fe5b146135205760405162461bcd60e51b815260040180806020018281038252604f8152602001806145c0604f913960600191505060405180910390fd5b6000805160206146b3833981519152600660149054906101000a900460ff1660026040518083600481111561355157fe5b60ff16815260200182600481111561356557fe5b60ff1681526020019250505060405180910390a1600680546002919060ff60a01b1916600160a01b83612a75565b60015481565b6135a16124cc565b6135e0576040805162461bcd60e51b815260206004820181905260248201526000805160206142f9833981519152604482015290519081900360640190fd5b6135e981613c4f565b50565b60035481565b6006546001600160a01b031681565b600282015460009061361557506000613686565b60008281526004840160205260409020546002840180548491908390811061363957fe5b906000526020600020906003020160000154148015613682575083600201818154811061366257fe5b906000526020600020906003020160020160019054906101000a900460ff165b9150505b92915050565b6000828201838110156136e6576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b600081815260048301602052604081205460028401805491926000198301929091908490811061371957fe5b600091825260209091206002600390920201015460ff1690508282146137fe57600085600201838154811061374a57fe5b9060005260206000209060030201600001549050838660040160008381526020019081526020016000208190555085600201838154811061378757fe5b90600052602060002090600302018660020185815481106137a457fe5b600091825260209091208254600390920201908155600180830154908201556002918201805492909101805460ff938416151560ff1990911617808255915461010090819004909316151590920261ff0019909116179055505b801561381b576000848152600960205260409020805460ff191690555b8460020180548061382857fe5b6000828152602080822060036000199094019384020182815560018101839055600201805461ffff191690559190925594815260049095019093525050604082209190915550565b60006136e683836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250613cef565b6138bc8282613601565b6138f75760405162461bcd60e51b815260040180806020018281038252603481526020018061474f6034913960400191505060405180910390fd5b6003600654600160a01b900460ff16600481111561391157fe5b148061393457506004600654600160a01b900460ff16600481111561393257fe5b145b156112f8576000818152600483016020526040902054600283018054909190811061395b57fe5b600091825260209091206002600390920201015460ff16156112f85760405162461bcd60e51b8152600401808060200182810382526054815260200180613f206054913960600191505060405180910390fd5b6000826139bd57506000613686565b828202828482816139ca57fe5b04146136e65760405162461bcd60e51b815260040180806020018281038252602181526020018061425f6021913960400191505060405180910390fd5b600080805b836040015151811015613a6d5783604001518181518110613a2957fe5b6020026020010151606001518015613a59575083604001518181518110613a4c57fe5b6020026020010151604001515b15613a65576001909101905b600101613a0c565b5092915050565b3390565b600454600090815b600554811015613bc657613a92613ea3565b6007600060058481548110613aa357fe5b60009182526020808320909101546001600160a01b03168352828101939093526040918201812082516080810184528154815260018201548186015260028201805485518188028101880187528181529296939587019492939192909184015b82821015613b655760008481526020908190206040805160808101825260038602909201805483526001808201548486015260029091015460ff8082161515938501939093526101009004909116151560608301529083529092019101613b03565b505050908252506003919091015460ff1615156020909101526060810151909150613b905750613bbe565b613bba613bad8260400151516001546139ae90919063ffffffff16565b849063ffffffff61368c16565b9250505b600101613a80565b50905090565b805182604001515101826000015110156112f85760405162461bcd60e51b81526004018080602001828103825260658152602001806140816065913960800191505060405180910390fd5b60005b8251811015613c4957613c4184848381518110613c3357fe5b602002602001015184613d86565b600101613c1a565b50505050565b6001600160a01b038116613c945760405162461bcd60e51b8152600401808060200182810382526026815260200180613f746026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60008184841115613d7e5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613d43578181015183820152602001613d2b565b50505050905090810190601f168015613d705780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b81613dc25760405162461bcd60e51b81526004018080602001828103825260298152602001806143456029913960400191505060405180910390fd5b613dcc8383613601565b15613e085760405162461bcd60e51b8152600401808060200182810382526037815260200180613fd26037913960400191505060405180910390fd5b60028301546000838152600485016020526040902055613e26613ecd565b50604080516080810182529283526020808401928352600091840182815260016060860181815260029788018054808401825590865293909420955160039093029095019182559251938101939093559051919092018054925115156101000261ff001992151560ff199094169390931791909116919091179055565b60405180608001604052806000815260200160008152602001606081526020016000151581525090565b6040805160808101825260008082526020820181905291810182905260608101919091529056fe5b56616c69646174696f6e5d204164647265737320697320616c72656164792077686974656c69737465645b56616c69646174696f6e5d20424c53206b65792077617320616c726561647920617070726f7665642c20796f752063616e6e6f7420776974686472617720746865206173736f63696174656420616d6f756e744f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573735b56616c69646174696f6e5d2054686520776974686472617720616d6f756e742068617320746f206265206c6172676572207468616e20305b56616c69646174696f6e5d20424c53206b65792077617320616c726561647920616464656420666f722074686973206163636f756e745b56616c69646174696f6e5d20456c726f6e64206164647265737320686173682073686f756c64206e6f7420626520305b56616c69646174696f6e5d20546869732066756e6374696f6e2063616e6e6f742062652063616c6c6564207768656e2074686520636f6e747261637420697320726574697265645b56616c69646174696f6e5d20416464696e672074686973206d616e79206e6f64657320776f756c642065786365656420746865206d6178696d756d206e756d626572206f6620616c6c6f776564206e6f646573207065722074686973206163636f756e745b56616c69646174696f6e5d205468652070726f76696465642061646472657373206973206e6f742077686974656c69737465645b5374616b696e674e6f6465734861736865735d2041646472657373206973206e6f742077686974656c69737465645b56616c69646174696f6e5d2050726f766964656420424c53206b65792077617320616c726561647920617070726f7665645b56616c69646174696f6e5d204e6f7420656e6f756768207374616b65206465706f73697420746f2077697468647261775b56616c69646174696f6e5d20426c73206b657920646f6573206e6f7420657869737420666f722074686973206163636f756e745b56616c69646174696f6e5d205265636f76657220616d6f756e742065786365656473206c6f73742066756e647320616d6f756e745b56616c69646174696f6e5d20596f7520616c72656164792064656c6567617465642061207374616b658108595eb6bad3acefa9da467d90cc2217686d5c5ac85460f8b7849c840645fc536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775b56616c69646174696f6e5d2054686520616d6f756e742068617320746f206265206c6172676572207468616e20305b56616c69646174696f6e5d20546869732066756e6374696f6e2063616e2062652063616c6c6564206f6e6c79207768656e2074686520636f6e747261637420697320726574697265644f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725b5374616b696e674e6f6465496e666f5d2041646472657373206973206e6f742077686974656c69737465645b56616c69646174696f6e5d20424c53206b657920686173682073686f756c64206e6f7420626520305b56616c69646174696f6e5d20546869732066756e6374696f6e2063616e2062652063616c6c6564206f6e6c79207768656e2074686520636f6e74726163742069732066696e616c697a65645b56616c69646174696f6e5d2057686974656c6973746564206163636f756e7420616c7265616479207375626d6974746564206d6f7265206e6f646573207468616e20796f75207769736820746f20616c6c6f775b56616c69646174696f6e5d20546869732066756e6374696f6e2063616e6e6f742062652063616c6c6564207768696c6520796f7572207375626d6974746564206e6f6465732061726520696e207468652076616c69646174696f6e2070726f636573735b56616c69646174696f6e5d205265636f76657220616d6f756e74206578636565647320636f6e74726163742062616c616e63655b56616c69646174696f6e5d20596f7572206163636f756e74206861732030206e6f646573207375626d69747465645b5374616b696e674e6f6465496e666f5d204164647265737320646f6573206e6f742068617665207468652070726f7669646564206e6f64655b57686974656c6973746564416464726573735d2041646472657373206973206e6f742077686974656c69737465645b56616c69646174696f6e5d20546869732066756e6374696f6e2063616e6e6f742062652063616c6c6564207768656e2074686520636f6e74726163742069732066696e616c697a65645b56616c69646174696f6e5d2050726f766964656420424c53206b657920776173206e6f742070726576696f75736c7920617070726f7665645b56616c69646174696f6e5d20546869732066756e6374696f6e2063616e2062652063616c6c6564206f6e6c79207768656e20636f6e747261637420697320696e207374616b696e672070686173655b56616c69646174696f6e5d20596f7520646f6e2774206861766520612064656c656761746564207374616b655b56616c69646174696f6e5d20596f75206d7573742070726f76696465206174206c65617374206f6e6520424c53206b65795b4465706f73697444656c65676174655374616b655d20596f7572206465706f73697420776f756c6420657863656564207468652064656c65676174696f6e206c696d6974e8a97ea87e4388fa22d496b95a8ed5ced6717f49790318de2b928aaf37a021d85b56616c69646174696f6e5d20546869732066756e6374696f6e2063616e6e6f742062652063616c6c656420696e2074686520696e697469616c697a6174696f6e2070686173655b56616c69646174696f6e5d20546865207374616b6520616d6f756e742068617320746f206265206c6172676572207468616e20305b56616c69646174696f6e5d20424c53206b657920646f6573206e6f7420657869737420666f722074686973206163636f756e74a265627a7a723158202c8c274d741c32ff6e6352263954daf43f9b9de7b6ea2fb3162ff6dae6ae0a4f64736f6c634300050f0032536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775b56616c69646174696f6e5d204e6f6465207072696365206d7573742062652067726561746572207468616e2030000000000000000000000000f9986d445ced31882377b5d6a5f58eaea72288c30000000000000000000000000000000000000000000000015af1d78b58c4000000000000000000000000000000000000000000000000000000000000000003ed

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101f05760003560e01c80638f32d59b1161010f578063dec64937116100a2578063f1fec2b811610071578063f1fec2b8146107cd578063f2fde38b146107d5578063f6545035146107fb578063fc0c546a14610803576101f0565b8063dec649371461075b578063ecf3148c14610763578063ed1b762f14610780578063f080edf4146107c5576101f0565b8063b7894a08116100de578063b7894a08146106d5578063b898d334146106dd578063baa5e239146106e5578063c3c75738146106ed576101f0565b80638f32d59b146106595780638f63458c14610675578063a444502b146106a1578063b4c449e3146106cd576101f0565b8063533962f0116101875780637be7b8d2116101565780637be7b8d21461056057806385209ee01461056857806385e6fa51146105945780638da5cb5b14610635576101f0565b8063533962f0146103685780635bc4d50a146103d6578063715018a6146104545780637b93367d1461045c576101f0565b80633ccfd60b116101c35780633ccfd60b146103065780633fabd39f1461030e57806347e5c2121461032b5780634b66aecc1461034e576101f0565b80631a311dbc146101f557806334bdbcf7146102755780633706f968146102a15780633a5b1dbf146102e0575b600080fd5b6102736004803603604081101561020b57600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561023557600080fd5b82018360208201111561024757600080fd5b803590602001918460208302840111600160201b8311171561026857600080fd5b50909250905061080b565b005b6102736004803603604081101561028b57600080fd5b506001600160a01b038135169060200135610c03565b6102c7600480360360208110156102b757600080fd5b50356001600160a01b0316610e8c565b6040805192835260208301919091528051918290030190f35b6102c7600480360360208110156102f657600080fd5b50356001600160a01b0316610f0d565b610273610f30565b6102736004803603602081101561032457600080fd5b50356112fc565b6102736004803603604081101561034157600080fd5b508035906020013561151f565b6103566116a4565b60408051918252519081900360200190f35b6102736004803603602081101561037e57600080fd5b810190602081018135600160201b81111561039857600080fd5b8201836020820111156103aa57600080fd5b803590602001918460208302840111600160201b831117156103cb57600080fd5b5090925090506116aa565b610273600480360360408110156103ec57600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561041657600080fd5b82018360208201111561042857600080fd5b803590602001918460208302840111600160201b8311171561044957600080fd5b509092509050611a54565b610273611e3d565b6104826004803603602081101561047257600080fd5b50356001600160a01b0316611ece565b60405180806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b838110156104ca5781810151838201526020016104b2565b50505050905001848103835286818151815260200191508051906020019060200280838360005b838110156105095781810151838201526020016104f1565b50505050905001848103825285818151815260200191508051906020019060200280838360005b83811015610548578181015183820152602001610530565b50505050905001965050505050505060405180910390f35b61027361211a565b610570612375565b6040518082600481111561058057fe5b60ff16815260200191505060405180910390f35b61059c612385565b604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b838110156105e05781810151838201526020016105c8565b50505050905001838103825284818151815260200191508051906020019060200280838360005b8381101561061f578181015183820152602001610607565b5050505090500194505050505060405180910390f35b61063d6124bd565b604080516001600160a01b039092168252519081900360200190f35b6106616124cc565b604080519115158252519081900360200190f35b6102736004803603604081101561068b57600080fd5b506001600160a01b0381351690602001356124f0565b610273600480360360408110156106b757600080fd5b506001600160a01b0381351690602001356126ce565b610273612968565b610356612a7c565b610356612b1d565b610273612b23565b6102736004803603604081101561070357600080fd5b810190602081018135600160201b81111561071d57600080fd5b82018360208201111561072f57600080fd5b803590602001918460208302840111600160201b8311171561075057600080fd5b919350915035612c34565b610273613037565b6102736004803603602081101561077957600080fd5b5035613147565b6107ac6004803603604081101561079657600080fd5b506001600160a01b03813516906020013561334b565b6040805192835290151560208301528051918290030190f35b610273613483565b610356613593565b610273600480360360208110156107eb57600080fd5b50356001600160a01b0316613599565b6103566135ec565b61063d6135f2565b6108136124cc565b610852576040805162461bcd60e51b815260206004820181905260248201526000805160206142f9833981519152604482015290519081900360640190fd5b6003600654600160a01b900460ff16600481111561086c57fe5b14156108a95760405162461bcd60e51b815260040180806020018281038252604a81526020018061453d604a913960600191505060405180910390fd5b6004600654600160a01b900460ff1660048111156108c357fe5b14156109005760405162461bcd60e51b81526004018080602001828103825260488152602001806140396048913960600191505060405180910390fd5b82610909613ea3565b60076000836001600160a01b03166001600160a01b03168152602001908152602001600020604051806080016040529081600082015481526020016001820154815260200160028201805480602002602001604051908101604052809291908181526020016000905b828210156109d45760008481526020908190206040805160808101825260038602909201805483526001808201548486015260029091015460ff8082161515938501939093526101009004909116151560608301529083529092019101610972565b505050908252506003919091015460ff1615156020909101526060810151909150610a305760405162461bcd60e51b81526004018080602001828103825260348152602001806140e66034913960400191505060405180910390fd5b6001600160a01b0385166000908152600760205260408120905b84811015610bfa57610a6e82878784818110610a6257fe5b90506020020135613601565b610aa95760405162461bcd60e51b815260040180806020018281038252603481526020018061474f6034913960400191505060405180910390fd5b60096000878784818110610ab957fe5b602090810292909201358352508101919091526040016000205460ff16610b115760405162461bcd60e51b81526004018080602001828103825260398152602001806145876039913960400191505060405180910390fd5b6000826004016000888885818110610b2557fe5b9050602002013581526020019081526020016000205490506000836002018281548110610b4e57fe5b906000526020600020906003020190508060020160019054906101000a900460ff16610bab5760405162461bcd60e51b81526004018080602001828103825260348152602001806141ac6034913960400191505060405180910390fd5b60028101805460ff1916905560006009818a8a87818110610bc857fe5b60209081029290920135835250810191909152604001600020805460ff19169115159190911790555050600101610a4a565b50505050505050565b610c0b6124cc565b610c4a576040805162461bcd60e51b815260206004820181905260248201526000805160206142f9833981519152604482015290519081900360640190fd5b6003600654600160a01b900460ff166004811115610c6457fe5b1415610ca15760405162461bcd60e51b815260040180806020018281038252604a81526020018061453d604a913960600191505060405180910390fd5b6004600654600160a01b900460ff166004811115610cbb57fe5b1415610cf85760405162461bcd60e51b81526004018080602001828103825260488152602001806140396048913960600191505060405180910390fd5b81610d01613ea3565b60076000836001600160a01b03166001600160a01b03168152602001908152602001600020604051806080016040529081600082015481526020016001820154815260200160028201805480602002602001604051908101604052809291908181526020016000905b82821015610dcc5760008481526020908190206040805160808101825260038602909201805483526001808201548486015260029091015460ff8082161515938501939093526101009004909116151560608301529083529092019101610d6a565b505050908252506003919091015460ff1615156020909101526060810151909150610e285760405162461bcd60e51b81526004018080602001828103825260348152602001806140e66034913960400191505060405180910390fd5b6001600160a01b03841660009081526007602052604090206002810154841015610e835760405162461bcd60e51b81526004018080602001828103825260548152602001806143ba6054913960600191505060405180910390fd5b92909255505050565b6001600160a01b038116600090815260076020526040812060030154819060ff16610ee85760405162461bcd60e51b815260040180806020018281038252602f81526020018061450e602f913960400191505060405180910390fd5b50506001600160a01b0316600090815260076020526040902080546001909101549091565b6001600160a01b0316600090815260086020526040902080546001909101549091565b6000600654600160a01b900460ff166004811115610f4a57fe5b1415610f875760405162461bcd60e51b81526004018080602001828103825260478152602001806146d36047913960600191505060405180910390fd5b6002600654600160a01b900460ff166004811115610fa157fe5b1415610fde5760405162461bcd60e51b815260040180806020018281038252606481526020018061440e6064913960800191505060405180910390fd5b33610fe7613ea3565b60076000836001600160a01b03166001600160a01b03168152602001908152602001600020604051806080016040529081600082015481526020016001820154815260200160028201805480602002602001604051908101604052809291908181526020016000905b828210156110b25760008481526020908190206040805160808101825260038602909201805483526001808201548486015260029091015460ff8082161515938501939093526101009004909116151560608301529083529092019101611050565b505050908252506003919091015460ff161515602090910152606081015190915061110e5760405162461bcd60e51b81526004018080602001828103825260348152602001806140e66034913960400191505060405180910390fd5b3360009081526007602052604090206002015461115c5760405162461bcd60e51b815260040180806020018281038252602f8152602001806144a6602f913960400191505060405180910390fd5b336000908152600760205260408120600281015460001901805b8181116111fa57600083600201828154811061118e57fe5b906000526020600020906003020190508060020160019054906101000a900460ff1615806111c05750600281015460ff165b156111cb57506111f1565b6001546111df90869063ffffffff61368c16565b94506111ef8482600001546136ed565b505b60001901611176565b508261122d5760408051600081529051339160008051602061423f833981519152919081900360200190a25050506112f8565b6001820154611242908463ffffffff61387016565b60018301556006546040805163a9059cbb60e01b81523360048201526024810186905290516001600160a01b039092169163a9059cbb916044808201926020929091908290030181600087803b15801561129b57600080fd5b505af11580156112af573d6000803e3d6000fd5b505050506040513d60208110156112c557600080fd5b50516112d057600080fd5b604080518481529051339160008051602061423f833981519152919081900360200190a25050505b5050565b6001600654600160a01b900460ff16600481111561131657fe5b146113525760405162461bcd60e51b815260040180806020018281038252604f8152602001806145c0604f913960600191505060405180910390fd5b80600454600354038111156113985760405162461bcd60e51b815260040180806020018281038252604581526020018061466e6045913960600191505060405180910390fd5b600082116113d75760405162461bcd60e51b815260040180806020018281038252602f815260200180614280602f913960400191505060405180910390fd5b336000908152600860205260409020600281015460ff166114295760405162461bcd60e51b815260040180806020018281038252602d81526020018061460f602d913960400191505060405180910390fd5b805461143b908463ffffffff61368c16565b8155600454611450908463ffffffff61368c16565b6004908155600654604080516323b872dd60e01b8152339381019390935230602484015260448301869052516001600160a01b03909116916323b872dd9160648083019260209291908290030181600087803b1580156114af57600080fd5b505af11580156114c3573d6000803e3d6000fd5b505050506040513d60208110156114d957600080fd5b50516114e457600080fd5b60408051848152905133917f0a7bb2e28cc4698aac06db79cf9163bfcc20719286cf59fa7d492ceda1b8edc2919081900360200190a2505050565b6001600654600160a01b900460ff16600481111561153957fe5b146115755760405162461bcd60e51b815260040180806020018281038252604f8152602001806145c0604f913960600191505060405180910390fd5b81600454600354038111156115bb5760405162461bcd60e51b815260040180806020018281038252604581526020018061466e6045913960600191505060405180910390fd5b600083116115fa5760405162461bcd60e51b815260040180806020018281038252603581526020018061471a6035913960400191505060405180910390fd5b3360009081526008602052604090206002015460ff161561164c5760405162461bcd60e51b815260040180806020018281038252602a815260200180614215602a913960400191505060405180910390fd5b604080516060810182528481526020808201858152600183850181815233600090815260089094529490922092518355519082015590516002909101805460ff1916911515919091179055600454611450908461368c565b60045481565b6000600654600160a01b900460ff1660048111156116c457fe5b14156117015760405162461bcd60e51b81526004018080602001828103825260478152602001806146d36047913960600191505060405180910390fd5b6002600654600160a01b900460ff16600481111561171b57fe5b14156117585760405162461bcd60e51b815260040180806020018281038252606481526020018061440e6064913960800191505060405180910390fd5b33611761613ea3565b60076000836001600160a01b03166001600160a01b03168152602001908152602001600020604051806080016040529081600082015481526020016001820154815260200160028201805480602002602001604051908101604052809291908181526020016000905b8282101561182c5760008481526020908190206040805160808101825260038602909201805483526001808201548486015260029091015460ff80821615159385019390935261010090049091161515606083015290835290920191016117ca565b505050908252506003919091015460ff16151560209091015260608101519091506118885760405162461bcd60e51b81526004018080602001828103825260348152602001806140e66034913960400191505060405180910390fd5b336000908152600760205260409020600201546118d65760405162461bcd60e51b815260040180806020018281038252602f8152602001806144a6602f913960400191505060405180910390fd5b826119125760405162461bcd60e51b815260040180806020018281038252603281526020018061463c6032913960400191505060405180910390fd5b336000908152600760205260408120905b8481101561196b576119478287878481811061193b57fe5b905060200201356138b2565b6119638287878481811061195757fe5b905060200201356136ed565b600101611923565b50600154600090611982908663ffffffff6139ae16565b600183015490915061199a908263ffffffff61387016565b60018301556006546040805163a9059cbb60e01b81523360048201526024810184905290516001600160a01b039092169163a9059cbb916044808201926020929091908290030181600087803b1580156119f357600080fd5b505af1158015611a07573d6000803e3d6000fd5b505050506040513d6020811015611a1d57600080fd5b5051611a2857600080fd5b604080518281529051339160008051602061423f833981519152919081900360200190a2505050505050565b611a5c6124cc565b611a9b576040805162461bcd60e51b815260206004820181905260248201526000805160206142f9833981519152604482015290519081900360640190fd5b6003600654600160a01b900460ff166004811115611ab557fe5b1415611af25760405162461bcd60e51b815260040180806020018281038252604a81526020018061453d604a913960600191505060405180910390fd5b6004600654600160a01b900460ff166004811115611b0c57fe5b1415611b495760405162461bcd60e51b81526004018080602001828103825260488152602001806140396048913960600191505060405180910390fd5b82611b52613ea3565b60076000836001600160a01b03166001600160a01b03168152602001908152602001600020604051806080016040529081600082015481526020016001820154815260200160028201805480602002602001604051908101604052809291908181526020016000905b82821015611c1d5760008481526020908190206040805160808101825260038602909201805483526001808201548486015260029091015460ff8082161515938501939093526101009004909116151560608301529083529092019101611bbb565b505050908252506003919091015460ff1615156020909101526060810151909150611c795760405162461bcd60e51b81526004018080602001828103825260348152602001806140e66034913960400191505060405180910390fd5b6001600160a01b0385166000908152600760205260408120905b84811015610bfa57611cab82878784818110610a6257fe5b611ce65760405162461bcd60e51b815260040180806020018281038252603481526020018061474f6034913960400191505060405180910390fd5b60096000878784818110611cf657fe5b602090810292909201358352508101919091526040016000205460ff1615611d4f5760405162461bcd60e51b81526004018080602001828103825260328152602001806141496032913960400191505060405180910390fd5b6000826004016000888885818110611d6357fe5b9050602002013581526020019081526020016000205490506000836002018281548110611d8c57fe5b906000526020600020906003020190508060020160019054906101000a900460ff16611de95760405162461bcd60e51b81526004018080602001828103825260348152602001806141ac6034913960400191505060405180910390fd5b60028101805460ff19166001908117909155600960008a8a87818110611e0b57fe5b60209081029290920135835250810191909152604001600020805460ff19169115159190911790555050600101611c93565b611e456124cc565b611e84576040805162461bcd60e51b815260206004820181905260248201526000805160206142f9833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6001600160a01b0381166000908152600760205260409020600301546060908190819060ff16611f2f5760405162461bcd60e51b815260040180806020018281038252602f81526020018061411a602f913960400191505060405180910390fd5b6001600160a01b0384166000908152600760209081526040808320600201805482518185028101850190935280835260609492939192909184015b82821015611fcc5760008481526020908190206040805160808101825260038602909201805483526001808201548486015260029091015460ff8082161515938501939093526101009004909116151560608301529083529092019101611f6a565b50505050905060608151604051908082528060200260200182016040528015611fff578160200160208202803883390190505b5090506060825160405190808252806020026020018201604052801561202f578160200160208202803883390190505b5090506060835160405190808252806020026020018201604052801561205f578160200160208202803883390190505b50905060005b845181101561210b5784818151811061207a57fe5b60200260200101516000015184828151811061209257fe5b6020026020010181815250508481815181106120aa57fe5b6020026020010151604001518382815181106120c257fe5b6020026020010190151590811515815250508481815181106120e057fe5b6020026020010151602001518282815181106120f857fe5b6020908102919091010152600101612065565b50919790965090945092505050565b6121226124cc565b612161576040805162461bcd60e51b815260206004820181905260248201526000805160206142f9833981519152604482015290519081900360640190fd5b6004600654600160a01b900460ff16600481111561217b57fe5b146121b75760405162461bcd60e51b815260040180806020018281038252604a8152602001806142af604a913960600191505060405180910390fd5b60045460005b60055481101561230c576121cf613ea3565b60076000600584815481106121e057fe5b60009182526020808320909101546001600160a01b03168352828101939093526040918201812082516080810184528154815260018201548186015260028201805485518188028101880187528181529296939587019492939192909184015b828210156122a25760008481526020908190206040805160808101825260038602909201805483526001808201548486015260029091015460ff8082161515938501939093526101009004909116151560608301529083529092019101612240565b505050908252506003919091015460ff16151560209091015260608101519091506122cd5750612304565b60006122d882613a07565b90506122ff6122f2826001546139ae90919063ffffffff16565b859063ffffffff61368c16565b935050505b6001016121bd565b5060065460408051630852cd8d60e31b81526004810184905290516001600160a01b03909216916342966c689160248082019260009290919082900301818387803b15801561235a57600080fd5b505af115801561236e573d6000803e3d6000fd5b5050505050565b600654600160a01b900460ff1681565b60608060606005805490506040519080825280602002602001820160405280156123b9578160200160208202803883390190505b50905060606005805490506040519080825280602002602001820160405280156123ed578160200160208202803883390190505b50905060005b6005548110156124b3576005818154811061240a57fe5b9060005260206000200160009054906101000a90046001600160a01b031683828151811061243457fe5b60200260200101906001600160a01b031690816001600160a01b0316815250506000600760006005848154811061246757fe5b60009182526020808320909101546001600160a01b031683528201929092526040019020805484519192509084908490811061249f57fe5b6020908102919091010152506001016123f3565b5090925090509091565b6000546001600160a01b031690565b600080546001600160a01b03166124e1613a74565b6001600160a01b031614905090565b6124f86124cc565b612537576040805162461bcd60e51b815260206004820181905260248201526000805160206142f9833981519152604482015290519081900360640190fd5b600654604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561258257600080fd5b505afa158015612596573d6000803e3d6000fd5b505050506040513d60208110156125ac57600080fd5b50519050808211156125ef5760405162461bcd60e51b81526004018080602001828103825260348152602001806144726034913960400191505060405180910390fd5b60006125f9613a78565b9050600061260d838363ffffffff61387016565b90508084111561264e5760405162461bcd60e51b81526004018080602001828103825260358152602001806141e06035913960400191505060405180910390fd5b6006546040805163a9059cbb60e01b81526001600160a01b038881166004830152602482018890529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156126a457600080fd5b505af11580156126b8573d6000803e3d6000fd5b505050506040513d6020811015610bfa57600080fd5b6126d66124cc565b612715576040805162461bcd60e51b815260206004820181905260248201526000805160206142f9833981519152604482015290519081900360640190fd5b6003600654600160a01b900460ff16600481111561272f57fe5b141561276c5760405162461bcd60e51b815260040180806020018281038252604a81526020018061453d604a913960600191505060405180910390fd5b6004600654600160a01b900460ff16600481111561278657fe5b14156127c35760405162461bcd60e51b81526004018080602001828103825260488152602001806140396048913960600191505060405180910390fd5b816127cc613ea3565b60076000836001600160a01b03166001600160a01b03168152602001908152602001600020604051806080016040529081600082015481526020016001820154815260200160028201805480602002602001604051908101604052809291908181526020016000905b828210156128975760008481526020908190206040805160808101825260038602909201805483526001808201548486015260029091015460ff8082161515938501939093526101009004909116151560608301529083529092019101612835565b505050908252506003919091015460ff1615156020909101526060810151909150156128f45760405162461bcd60e51b815260040180806020018281038252602b815260200180613ef5602b913960400191505060405180910390fd5b50506001600160a01b0390911660008181526007602052604081209283556003909201805460ff191660019081179091556005805491820181559092527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db090910180546001600160a01b0319169091179055565b6129706124cc565b6129af576040805162461bcd60e51b815260206004820181905260248201526000805160206142f9833981519152604482015290519081900360640190fd5b6004600654600160a01b900460ff1660048111156129c957fe5b1415612a065760405162461bcd60e51b81526004018080602001828103825260488152602001806140396048913960600191505060405180910390fd5b6000805160206146b3833981519152600660149054906101000a900460ff16600360405180836004811115612a3757fe5b60ff168152602001826004811115612a4b57fe5b60ff1681526020019250505060405180910390a1600680546003919060ff60a01b1916600160a01b835b0217905550565b600654604080516370a0823160e01b8152306004820152905160009283926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b158015612acc57600080fd5b505afa158015612ae0573d6000803e3d6000fd5b505050506040513d6020811015612af657600080fd5b505190506000612b04613a78565b9050612b16828263ffffffff61387016565b9250505090565b60025481565b612b2b6124cc565b612b6a576040805162461bcd60e51b815260206004820181905260248201526000805160206142f9833981519152604482015290519081900360640190fd5b6004600654600160a01b900460ff166004811115612b8457fe5b1415612bc15760405162461bcd60e51b81526004018080602001828103825260488152602001806140396048913960600191505060405180910390fd5b6000805160206146b3833981519152600660149054906101000a900460ff16600160405180836004811115612bf257fe5b60ff168152602001826004811115612c0657fe5b60ff1681526020019250505060405180910390a1600680546001919060ff60a01b1916600160a01b83612a75565b6001600654600160a01b900460ff166004811115612c4e57fe5b14612c8a5760405162461bcd60e51b815260040180806020018281038252604f8152602001806145c0604f913960600191505060405180910390fd5b33612c93613ea3565b60076000836001600160a01b03166001600160a01b03168152602001908152602001600020604051806080016040529081600082015481526020016001820154815260200160028201805480602002602001604051908101604052809291908181526020016000905b82821015612d5e5760008481526020908190206040805160808101825260038602909201805483526001808201548486015260029091015460ff8082161515938501939093526101009004909116151560608301529083529092019101612cfc565b505050908252506003919091015460ff1615156020909101526060810151909150612dba5760405162461bcd60e51b81526004018080602001828103825260348152602001806140e66034913960400191505060405180910390fd5b82612df65760405162461bcd60e51b81526004018080602001828103825260308152602001806140096030913960400191505060405180910390fd5b33600090815260076020908152604080832081516080810183528154815260018201548185015260028201805484518187028101870186528181529396612ef7969395889590870194909392919084015b82821015612ea95760008481526020908190206040805160808101825260038602909201805483526001808201548486015260029091015460ff8082161515938501939093526101009004909116151560608301529083529092019101612e47565b505050908252506003919091015460ff161515602091820152604080518983028181018401909252898152918a918a91829190850190849080828437600092019190915250613bcc92505050565b612f3681878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250613c17915050565b600154600090612f4c908763ffffffff6139ae16565b600654604080516323b872dd60e01b81523360048201523060248201526044810184905290519293506001600160a01b03909116916323b872dd916064808201926020929091908290030181600087803b158015612fa957600080fd5b505af1158015612fbd573d6000803e3d6000fd5b505050506040513d6020811015612fd357600080fd5b5051612fde57600080fd5b6001820154612ff3908263ffffffff61368c16565b600183015560408051828152905133917f0a7bb2e28cc4698aac06db79cf9163bfcc20719286cf59fa7d492ceda1b8edc2919081900360200190a250505050505050565b61303f6124cc565b61307e576040805162461bcd60e51b815260206004820181905260248201526000805160206142f9833981519152604482015290519081900360640190fd5b6003600654600160a01b900460ff16600481111561309857fe5b146130d45760405162461bcd60e51b815260040180806020018281038252604c81526020018061436e604c913960600191505060405180910390fd5b6000805160206146b3833981519152600660149054906101000a900460ff1660046040518083600481111561310557fe5b60ff16815260200182600481111561311957fe5b60ff1681526020019250505060405180910390a1600680546004919060ff60a01b1916600160a01b83612a75565b6001600654600160a01b900460ff16600481111561316157fe5b1461319d5760405162461bcd60e51b815260040180806020018281038252604f8152602001806145c0604f913960600191505060405180910390fd5b600081116131dc5760405162461bcd60e51b8152600401808060200182810382526038815260200180613f9a6038913960400191505060405180910390fd5b336000908152600860205260409020600281015460ff1661322e5760405162461bcd60e51b815260040180806020018281038252602d81526020018061460f602d913960400191505060405180910390fd5b805482111561326e5760405162461bcd60e51b815260040180806020018281038252603181526020018061417b6031913960400191505060405180910390fd5b8054613280908363ffffffff61387016565b8155600454613295908363ffffffff61387016565b60049081556006546040805163a9059cbb60e01b8152339381019390935260248301859052516001600160a01b039091169163a9059cbb9160448083019260209291908290030181600087803b1580156132ee57600080fd5b505af1158015613302573d6000803e3d6000fd5b505050506040513d602081101561331857600080fd5b505161332357600080fd5b604080518381529051339160008051602061423f833981519152919081900360200190a25050565b6001600160a01b038216600090815260076020526040812060030154819060ff166133a75760405162461bcd60e51b815260040180806020018281038252602c815260200180614319602c913960400191505060405180910390fd5b6001600160a01b03841660009081526007602052604090206133c99084613601565b6134045760405162461bcd60e51b81526004018080602001828103825260398152602001806144d56039913960400191505060405180910390fd5b6001600160a01b038416600090815260076020908152604080832086845260048101909252909120546002820180548290811061343d57fe5b90600052602060002090600302016001015482600201828154811061345e57fe5b600091825260209091206002600390920201015490945060ff16925050509250929050565b61348b6124cc565b6134ca576040805162461bcd60e51b815260206004820181905260248201526000805160206142f9833981519152604482015290519081900360640190fd5b6001600654600160a01b900460ff1660048111156134e457fe5b146135205760405162461bcd60e51b815260040180806020018281038252604f8152602001806145c0604f913960600191505060405180910390fd5b6000805160206146b3833981519152600660149054906101000a900460ff1660026040518083600481111561355157fe5b60ff16815260200182600481111561356557fe5b60ff1681526020019250505060405180910390a1600680546002919060ff60a01b1916600160a01b83612a75565b60015481565b6135a16124cc565b6135e0576040805162461bcd60e51b815260206004820181905260248201526000805160206142f9833981519152604482015290519081900360640190fd5b6135e981613c4f565b50565b60035481565b6006546001600160a01b031681565b600282015460009061361557506000613686565b60008281526004840160205260409020546002840180548491908390811061363957fe5b906000526020600020906003020160000154148015613682575083600201818154811061366257fe5b906000526020600020906003020160020160019054906101000a900460ff165b9150505b92915050565b6000828201838110156136e6576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b600081815260048301602052604081205460028401805491926000198301929091908490811061371957fe5b600091825260209091206002600390920201015460ff1690508282146137fe57600085600201838154811061374a57fe5b9060005260206000209060030201600001549050838660040160008381526020019081526020016000208190555085600201838154811061378757fe5b90600052602060002090600302018660020185815481106137a457fe5b600091825260209091208254600390920201908155600180830154908201556002918201805492909101805460ff938416151560ff1990911617808255915461010090819004909316151590920261ff0019909116179055505b801561381b576000848152600960205260409020805460ff191690555b8460020180548061382857fe5b6000828152602080822060036000199094019384020182815560018101839055600201805461ffff191690559190925594815260049095019093525050604082209190915550565b60006136e683836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250613cef565b6138bc8282613601565b6138f75760405162461bcd60e51b815260040180806020018281038252603481526020018061474f6034913960400191505060405180910390fd5b6003600654600160a01b900460ff16600481111561391157fe5b148061393457506004600654600160a01b900460ff16600481111561393257fe5b145b156112f8576000818152600483016020526040902054600283018054909190811061395b57fe5b600091825260209091206002600390920201015460ff16156112f85760405162461bcd60e51b8152600401808060200182810382526054815260200180613f206054913960600191505060405180910390fd5b6000826139bd57506000613686565b828202828482816139ca57fe5b04146136e65760405162461bcd60e51b815260040180806020018281038252602181526020018061425f6021913960400191505060405180910390fd5b600080805b836040015151811015613a6d5783604001518181518110613a2957fe5b6020026020010151606001518015613a59575083604001518181518110613a4c57fe5b6020026020010151604001515b15613a65576001909101905b600101613a0c565b5092915050565b3390565b600454600090815b600554811015613bc657613a92613ea3565b6007600060058481548110613aa357fe5b60009182526020808320909101546001600160a01b03168352828101939093526040918201812082516080810184528154815260018201548186015260028201805485518188028101880187528181529296939587019492939192909184015b82821015613b655760008481526020908190206040805160808101825260038602909201805483526001808201548486015260029091015460ff8082161515938501939093526101009004909116151560608301529083529092019101613b03565b505050908252506003919091015460ff1615156020909101526060810151909150613b905750613bbe565b613bba613bad8260400151516001546139ae90919063ffffffff16565b849063ffffffff61368c16565b9250505b600101613a80565b50905090565b805182604001515101826000015110156112f85760405162461bcd60e51b81526004018080602001828103825260658152602001806140816065913960800191505060405180910390fd5b60005b8251811015613c4957613c4184848381518110613c3357fe5b602002602001015184613d86565b600101613c1a565b50505050565b6001600160a01b038116613c945760405162461bcd60e51b8152600401808060200182810382526026815260200180613f746026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60008184841115613d7e5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613d43578181015183820152602001613d2b565b50505050905090810190601f168015613d705780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b81613dc25760405162461bcd60e51b81526004018080602001828103825260298152602001806143456029913960400191505060405180910390fd5b613dcc8383613601565b15613e085760405162461bcd60e51b8152600401808060200182810382526037815260200180613fd26037913960400191505060405180910390fd5b60028301546000838152600485016020526040902055613e26613ecd565b50604080516080810182529283526020808401928352600091840182815260016060860181815260029788018054808401825590865293909420955160039093029095019182559251938101939093559051919092018054925115156101000261ff001992151560ff199094169390931791909116919091179055565b60405180608001604052806000815260200160008152602001606081526020016000151581525090565b6040805160808101825260008082526020820181905291810182905260608101919091529056fe5b56616c69646174696f6e5d204164647265737320697320616c72656164792077686974656c69737465645b56616c69646174696f6e5d20424c53206b65792077617320616c726561647920617070726f7665642c20796f752063616e6e6f7420776974686472617720746865206173736f63696174656420616d6f756e744f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573735b56616c69646174696f6e5d2054686520776974686472617720616d6f756e742068617320746f206265206c6172676572207468616e20305b56616c69646174696f6e5d20424c53206b65792077617320616c726561647920616464656420666f722074686973206163636f756e745b56616c69646174696f6e5d20456c726f6e64206164647265737320686173682073686f756c64206e6f7420626520305b56616c69646174696f6e5d20546869732066756e6374696f6e2063616e6e6f742062652063616c6c6564207768656e2074686520636f6e747261637420697320726574697265645b56616c69646174696f6e5d20416464696e672074686973206d616e79206e6f64657320776f756c642065786365656420746865206d6178696d756d206e756d626572206f6620616c6c6f776564206e6f646573207065722074686973206163636f756e745b56616c69646174696f6e5d205468652070726f76696465642061646472657373206973206e6f742077686974656c69737465645b5374616b696e674e6f6465734861736865735d2041646472657373206973206e6f742077686974656c69737465645b56616c69646174696f6e5d2050726f766964656420424c53206b65792077617320616c726561647920617070726f7665645b56616c69646174696f6e5d204e6f7420656e6f756768207374616b65206465706f73697420746f2077697468647261775b56616c69646174696f6e5d20426c73206b657920646f6573206e6f7420657869737420666f722074686973206163636f756e745b56616c69646174696f6e5d205265636f76657220616d6f756e742065786365656473206c6f73742066756e647320616d6f756e745b56616c69646174696f6e5d20596f7520616c72656164792064656c6567617465642061207374616b658108595eb6bad3acefa9da467d90cc2217686d5c5ac85460f8b7849c840645fc536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775b56616c69646174696f6e5d2054686520616d6f756e742068617320746f206265206c6172676572207468616e20305b56616c69646174696f6e5d20546869732066756e6374696f6e2063616e2062652063616c6c6564206f6e6c79207768656e2074686520636f6e747261637420697320726574697265644f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725b5374616b696e674e6f6465496e666f5d2041646472657373206973206e6f742077686974656c69737465645b56616c69646174696f6e5d20424c53206b657920686173682073686f756c64206e6f7420626520305b56616c69646174696f6e5d20546869732066756e6374696f6e2063616e2062652063616c6c6564206f6e6c79207768656e2074686520636f6e74726163742069732066696e616c697a65645b56616c69646174696f6e5d2057686974656c6973746564206163636f756e7420616c7265616479207375626d6974746564206d6f7265206e6f646573207468616e20796f75207769736820746f20616c6c6f775b56616c69646174696f6e5d20546869732066756e6374696f6e2063616e6e6f742062652063616c6c6564207768696c6520796f7572207375626d6974746564206e6f6465732061726520696e207468652076616c69646174696f6e2070726f636573735b56616c69646174696f6e5d205265636f76657220616d6f756e74206578636565647320636f6e74726163742062616c616e63655b56616c69646174696f6e5d20596f7572206163636f756e74206861732030206e6f646573207375626d69747465645b5374616b696e674e6f6465496e666f5d204164647265737320646f6573206e6f742068617665207468652070726f7669646564206e6f64655b57686974656c6973746564416464726573735d2041646472657373206973206e6f742077686974656c69737465645b56616c69646174696f6e5d20546869732066756e6374696f6e2063616e6e6f742062652063616c6c6564207768656e2074686520636f6e74726163742069732066696e616c697a65645b56616c69646174696f6e5d2050726f766964656420424c53206b657920776173206e6f742070726576696f75736c7920617070726f7665645b56616c69646174696f6e5d20546869732066756e6374696f6e2063616e2062652063616c6c6564206f6e6c79207768656e20636f6e747261637420697320696e207374616b696e672070686173655b56616c69646174696f6e5d20596f7520646f6e2774206861766520612064656c656761746564207374616b655b56616c69646174696f6e5d20596f75206d7573742070726f76696465206174206c65617374206f6e6520424c53206b65795b4465706f73697444656c65676174655374616b655d20596f7572206465706f73697420776f756c6420657863656564207468652064656c65676174696f6e206c696d6974e8a97ea87e4388fa22d496b95a8ed5ced6717f49790318de2b928aaf37a021d85b56616c69646174696f6e5d20546869732066756e6374696f6e2063616e6e6f742062652063616c6c656420696e2074686520696e697469616c697a6174696f6e2070686173655b56616c69646174696f6e5d20546865207374616b6520616d6f756e742068617320746f206265206c6172676572207468616e20305b56616c69646174696f6e5d20424c53206b657920646f6573206e6f7420657869737420666f722074686973206163636f756e74a265627a7a723158202c8c274d741c32ff6e6352263954daf43f9b9de7b6ea2fb3162ff6dae6ae0a4f64736f6c634300050f0032

Deployed Bytecode Sourcemap

25133:26068:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;25133:26068:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40436:990;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;40436:990:0;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;40436:990:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;40436:990:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;-1:-1;;;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;-1:-1;40436:990:0;;-1:-1:-1;40436:990:0;-1:-1:-1;40436:990:0;:::i;:::-;;41669:507;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;41669:507:0;;;;;;;;:::i;44523:344::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;44523:344:0;-1:-1:-1;;;;;44523:344:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;46417:204;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;46417:204:0;-1:-1:-1;;;;;46417:204:0;;:::i;31507:1051::-;;;:::i;35434:625::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;35434:625:0;;:::i;34579:640::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;34579:640:0;;;;;;;:::i;26232:36::-;;;:::i;:::-;;;;;;;;;;;;;;;;33139:856;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;33139:856:0;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;33139:856:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;33139:856:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;-1:-1;;;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;-1:-1;33139:856:0;;-1:-1:-1;33139:856:0;-1:-1:-1;33139:856:0;:::i;39311:980::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;39311:980:0;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;39311:980:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;39311:980:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;-1:-1;;;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;-1:-1;39311:980:0;;-1:-1:-1;39311:980:0;-1:-1:-1;39311:980:0;:::i;24313:140::-;;;:::i;44875:903::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;44875:903:0;-1:-1:-1;;;;;44875:903:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;44875:903: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;44875:903: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;44875:903:0;;;;;;;;;;;;;;;;;;;;;42450:587;;;:::i;26363:49::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43755:760;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;43755:760: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;43755:760:0;;;;;;;;;;;;;;;;;;;23502:79;;;:::i;:::-;;;;-1:-1:-1;;;;;23502:79:0;;;;;;;;;;;;;;23868:94;;;:::i;:::-;;;;;;;;;;;;;;;;;;43175:549;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;43175:549:0;;;;;;;;:::i;38705:420::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;38705:420:0;;;;;;;;:::i;37861:200::-;;;:::i;46629:278::-;;;:::i;26147:35::-;;;:::i;37107:194::-;;;:::i;30159:813::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;30159:813:0;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;30159:813:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;30159:813:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;-1:-1;;;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;30159:813:0;;-1:-1:-1;30159:813:0;-1:-1:-1;30159:813:0;;:::i;38346:193::-;;;:::i;36275:672::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;36275:672:0;;:::i;45786:623::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;45786:623:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;37528:200;;;:::i;26116:24::-;;;:::i;24608:109::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24608:109:0;-1:-1:-1;;;;;24608:109:0;;:::i;26189:36::-;;;:::i;26330:26::-;;;:::i;40436:990::-;23714:9;:7;:9::i;:::-;23706:54;;;;;-1:-1:-1;;;23706:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23706:54:0;;;;;;;;;;;;;;;28564:16;28547:13;;-1:-1:-1;;;28547:13:0;;;;:33;;;;;;;;;;28539:120;;;;-1:-1:-1;;;28539:120:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28754:14;28737:13;;-1:-1:-1;;;28737:13:0;;;;:31;;;;;;;;;;28729:116;;;;-1:-1:-1;;;28729:116:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40610:3;27111:33;;:::i;:::-;27147:20;:25;27168:3;-1:-1:-1;;;;;27147:25:0;-1:-1:-1;;;;;27147:25:0;;;;;;;;;;;;27111:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;27111:61:0;;;-1:-1:-1;27111:61:0;;;;;;;;;;;;;;;27191:14;;;;27111:61;;-1:-1:-1;27183:79:0;;;;-1:-1:-1;;;27183:79:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;40679:25:0;;40631:45;40679:25;;;:20;:25;;;;;;40717:702;40737:20;;;40717:702;;;40787:49;40803:18;40823:9;;40833:1;40823:12;;;;;;;;;;;;;40787:15;:49::i;:::-;40779:114;;;;-1:-1:-1;;;40779:114:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40916:21;:35;40938:9;;40948:1;40938:12;;;;;;;;;;;;;;;;40916:35;;-1:-1:-1;40916:35:0;;;;;;;;-1:-1:-1;40916:35:0;;;;40908:105;;;;-1:-1:-1;;;40908:105:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41030:20;41053:18;:47;;:61;41101:9;;41111:1;41101:12;;;;;;;;;;;;;41053:61;;;;;;;;;;;;41030:84;;41129:31;41163:18;:31;;41195:12;41163:45;;;;;;;;;;;;;;;;;;41129:79;;41231:11;:18;;;;;;;;;;;;41223:83;;;;-1:-1:-1;;;41223:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41321:20;;;:28;;-1:-1:-1;;41321:28:0;;;41344:5;41364:21;41344:5;41386:9;;41396:1;41386:12;;;;;;;;;;;;;;;;41364:35;;-1:-1:-1;41364:35:0;;;;;;;;-1:-1:-1;41364:35:0;:43;;-1:-1:-1;;41364:43:0;;;;;;;;;;-1:-1:-1;;;40759:3:0;40717:702;;;;27273:1;28856;;40436:990;;;:::o;41669:507::-;23714:9;:7;:9::i;:::-;23706:54;;;;;-1:-1:-1;;;23706:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23706:54:0;;;;;;;;;;;;;;;28564:16;28547:13;;-1:-1:-1;;;28547:13:0;;;;:33;;;;;;;;;;28539:120;;;;-1:-1:-1;;;28539:120:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28754:14;28737:13;;-1:-1:-1;;;28737:13:0;;;;:31;;;;;;;;;;28729:116;;;;-1:-1:-1;;;28729:116:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41850:3;27111:33;;:::i;:::-;27147:20;:25;27168:3;-1:-1:-1;;;;;27147:25:0;-1:-1:-1;;;;;27147:25:0;;;;;;;;;;;;27111:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;27111:61:0;;;-1:-1:-1;27111:61:0;;;;;;;;;;;;;;;27191:14;;;;27111:61;;-1:-1:-1;27183:79:0;;;;-1:-1:-1;;;27183:79:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;41919:25:0;;41871:45;41919:25;;;:20;:25;;;;;41980:31;;;:38;41963:55;;;41955:152;;;;-1:-1:-1;;;41955:152:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42120:48;;;;-1:-1:-1;;;41669:507:0:o;44523:344::-;-1:-1:-1;;;;;44674:25:0;;44602:24;44674:25;;;:20;:25;;;;;:32;;;44602:24;;44674:32;;44666:92;;;;-1:-1:-1;;;44666:92:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;44779:25:0;;;;;:20;:25;;;;;:39;;44820:38;;;;;44779:39;;44523:344::o;46417:204::-;-1:-1:-1;;;;;46537:24:0;46495:7;46537:24;;;:19;:24;;;;;:31;;46570:42;;;;;46537:31;;46417:204::o;31507:1051::-;28023:19;28006:13;;-1:-1:-1;;;28006:13:0;;;;:36;;;;;;;;;;27998:120;;;;-1:-1:-1;;;27998:120:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28154:17;28137:13;;-1:-1:-1;;;28137:13:0;;;;:34;;;;;;;;;;28129:147;;;;-1:-1:-1;;;28129:147:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31607:10;27111:33;;:::i;:::-;27147:20;:25;27168:3;-1:-1:-1;;;;;27147:25:0;-1:-1:-1;;;;;27147:25:0;;;;;;;;;;;;27111:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;27111:61:0;;;-1:-1:-1;27111:61:0;;;;;;;;;;;;;;;27191:14;;;;27111:61;;-1:-1:-1;27183:79:0;;;;-1:-1:-1;;;27183:79:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27368:10;27402:1;27347:32;;;:20;:32;;;;;:45;;:52;27339:116;;;;-1:-1:-1;;;27339:116:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31757:10;31662:26;31736:32;;;:20;:32;;;;;31798:20;;;:27;-1:-1:-1;;31798:31:0;;31840:376;31870:6;31865:1;:11;31840:376;;31898:31;31932:7;:20;;31953:1;31932:23;;;;;;;;;;;;;;;;;;31898:57;;31976:11;:18;;;;;;;;;;;;31975:19;31974:47;;;-1:-1:-1;32000:20:0;;;;;;31974:47;31970:96;;;32042:8;;;31970:96;32126:9;;32103:33;;:18;;:33;:22;:33;:::i;:::-;32082:54;;32153:51;32172:7;32181:11;:22;;;32153:18;:51::i;:::-;31840:376;;-1:-1:-1;;31878:3:0;31840:376;;;-1:-1:-1;32232:23:0;32228:111;;32277:29;;;32304:1;32277:29;;;;32292:10;;-1:-1:-1;;;;;;;;;;;32277:29:0;;;;;;;;;32321:7;;;;;32228:111;32374:20;;;;:44;;32399:18;32374:44;:24;:44;:::i;:::-;32351:20;;;:67;32439:5;;:46;;;-1:-1:-1;;;32439:46:0;;32454:10;32439:46;;;;;;;;;;;;-1:-1:-1;;;;;32439:5:0;;;;:14;;:46;;;;;;;;;;;;;;;:5;;:46;;;5:2:-1;;;;30:1;27;20:12;5:2;32439:46:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;32439:46:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;32439:46:0;32431:55;;;;;;32504:46;;;;;;;;32519:10;;-1:-1:-1;;;;;;;;;;;32504:46:0;;;;;;;;;27466:1;;;;28287;;31507:1051::o;35434:625::-;27813:14;27796:13;;-1:-1:-1;;;27796:13:0;;;;:31;;;;;;;;;27788:123;;;;-1:-1:-1;;;27788:123:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35543:6;26925:21;;26901;;:45;26890:6;:57;;26882:139;;;;-1:-1:-1;;;26882:139:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35584:1;35575:6;:10;35567:70;;;;-1:-1:-1;;;35567:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35706:10;35650:33;35686:31;;;:19;:31;;;;;35736:14;;;;;;35728:72;;;;-1:-1:-1;;;35728:72:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35830:14;;:26;;35849:6;35830:26;:18;:26;:::i;:::-;35813:43;;35891:21;;:33;;35917:6;35891:33;:25;:33;:::i;:::-;35867:21;:57;;;35945:5;;:53;;;-1:-1:-1;;;35945:53:0;;35964:10;35945:53;;;;;;;35984:4;35945:53;;;;;;;;;;;-1:-1:-1;;;;;35945:5:0;;;;:18;;:53;;;;;;;;;;;;;;:5;;:53;;;5:2:-1;;;;30:1;27;20:12;5:2;35945:53:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;35945:53:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;35945:53:0;35937:62;;;;;;36017:34;;;;;;;;36032:10;;36017:34;;;;;;;;;;27032:1;27922;35434:625;:::o;34579:640::-;27813:14;27796:13;;-1:-1:-1;;;27796:13:0;;;;:31;;;;;;;;;27788:123;;;;-1:-1:-1;;;27788:123:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34712:6;26925:21;;26901;;:45;26890:6;:57;;26882:139;;;;-1:-1:-1;;;26882:139:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34753:1;34744:6;:10;34736:76;;;;-1:-1:-1;;;34736:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34852:10;34832:31;;;;:19;:31;;;;;:38;;;;;34831:39;34823:94;;;;-1:-1:-1;;;34823:94:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34964:50;;;;;;;;;;;;;;;;;;35009:4;34964:50;;;;;;34950:10;-1:-1:-1;34930:31:0;;;:19;:31;;;;;;;:84;;;;;;;;;;;;;;;;;-1:-1:-1;;34930:84:0;;;;;;;;;;35051:21;;:33;;34964:50;35051:25;:33::i;26232:36::-;;;;:::o;33139:856::-;28023:19;28006:13;;-1:-1:-1;;;28006:13:0;;;;:36;;;;;;;;;;27998:120;;;;-1:-1:-1;;;27998:120:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28154:17;28137:13;;-1:-1:-1;;;28137:13:0;;;;:34;;;;;;;;;;28129:147;;;;-1:-1:-1;;;28129:147:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33278:10;27111:33;;:::i;:::-;27147:20;:25;27168:3;-1:-1:-1;;;;;27147:25:0;-1:-1:-1;;;;;27147:25:0;;;;;;;;;;;;27111:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;27111:61:0;;;-1:-1:-1;27111:61:0;;;;;;;;;;;;;;;27191:14;;;;27111:61;;-1:-1:-1;27183:79:0;;;;-1:-1:-1;;;27183:79:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27368:10;27402:1;27347:32;;;:20;:32;;;;;:45;;:52;27339:116;;;;-1:-1:-1;;;27339:116:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33341:23;33333:86;;;;-1:-1:-1;;;33333:86:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33490:10;33432:34;33469:32;;;:20;:32;;;;;;33512:190;33528:23;;;33512:190;;;33573:58;33606:7;33615:12;;33628:1;33615:15;;;;;;;;;;;;;33573:32;:58::i;:::-;33646:44;33665:7;33674:12;;33687:1;33674:15;;;;;;;;;;;;;33646:18;:44::i;:::-;33553:3;;33512:190;;;-1:-1:-1;33743:9:0;;33714:26;;33743:34;;33757:12;33743:34;:13;:34;:::i;:::-;33811:20;;;;33714:63;;-1:-1:-1;33811:44:0;;33714:63;33811:44;:24;:44;:::i;:::-;33788:20;;;:67;33876:5;;:46;;;-1:-1:-1;;;33876:46:0;;33891:10;33876:46;;;;;;;;;;;;-1:-1:-1;;;;;33876:5:0;;;;:14;;:46;;;;;;;;;;;;;;;:5;;:46;;;5:2:-1;;;;30:1;27;20:12;5:2;33876:46:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;33876:46:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;33876:46:0;33868:55;;;;;;33941:46;;;;;;;;33956:10;;-1:-1:-1;;;;;;;;;;;33941:46:0;;;;;;;;;27466:1;;28287;;33139:856;;:::o;39311:980::-;23714:9;:7;:9::i;:::-;23706:54;;;;;-1:-1:-1;;;23706:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23706:54:0;;;;;;;;;;;;;;;28564:16;28547:13;;-1:-1:-1;;;28547:13:0;;;;:33;;;;;;;;;;28539:120;;;;-1:-1:-1;;;28539:120:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28754:14;28737:13;;-1:-1:-1;;;28737:13:0;;;;:31;;;;;;;;;;28729:116;;;;-1:-1:-1;;;28729:116:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39483:3;27111:33;;:::i;:::-;27147:20;:25;27168:3;-1:-1:-1;;;;;27147:25:0;-1:-1:-1;;;;;27147:25:0;;;;;;;;;;;;27111:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;27111:61:0;;;-1:-1:-1;27111:61:0;;;;;;;;;;;;;;;27191:14;;;;27111:61;;-1:-1:-1;27183:79:0;;;;-1:-1:-1;;;27183:79:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;39552:25:0;;39504:45;39552:25;;;:20;:25;;;;;;39590:694;39610:20;;;39590:694;;;39660:49;39676:18;39696:9;;39706:1;39696:12;;;;;;39660:49;39652:114;;;;-1:-1:-1;;;39652:114:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39790:21;:35;39812:9;;39822:1;39812:12;;;;;;;;;;;;;;;;39790:35;;-1:-1:-1;39790:35:0;;;;;;;;-1:-1:-1;39790:35:0;;;;39789:36;39781:99;;;;-1:-1:-1;;;39781:99:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39897:20;39920:18;:47;;:61;39968:9;;39978:1;39968:12;;;;;;;;;;;;;39920:61;;;;;;;;;;;;39897:84;;39996:31;40030:18;:31;;40062:12;40030:45;;;;;;;;;;;;;;;;;;39996:79;;40098:11;:18;;;;;;;;;;;;40090:83;;;;-1:-1:-1;;;40090:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40188:20;;;:27;;-1:-1:-1;;40188:27:0;40211:4;40188:27;;;;;;40230:21;40188:20;40252:9;;40262:1;40252:12;;;;;;;;;;;;;;;;40230:35;;-1:-1:-1;40230:35:0;;;;;;;;-1:-1:-1;40230:35:0;:42;;-1:-1:-1;;40230:42:0;;;;;;;;;;-1:-1:-1;;;39632:3:0;39590:694;;24313:140;23714:9;:7;:9::i;:::-;23706:54;;;;;-1:-1:-1;;;23706:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23706:54:0;;;;;;;;;;;;;;;24412:1;24396:6;;24375:40;;-1:-1:-1;;;;;24396:6:0;;;;24375:40;;24412:1;;24375:40;24443:1;24426:19;;-1:-1:-1;;;;;;24426:19:0;;;24313:140::o;44875:903::-;-1:-1:-1;;;;;45029:25:0;;;;;;:20;:25;;;;;:32;;;44954:16;;;;;;45029:32;;45021:92;;;;-1:-1:-1;;;45021:92:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;45162:25:0;;;;;;:20;:25;;;;;;;;:38;;45126:74;;;;;;;;;;;;;;;;;:33;;:74;;45162:38;;45126:74;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45211:29;45257:12;:19;45243:34;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;45243:34:0;;45211:66;;45288:32;45334:12;:19;45323:31;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;45323:31:0;;45288:66;;45365:32;45414:12;:19;45400:34;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;45400:34:0;-1:-1:-1;45365:69:0;-1:-1:-1;45452:9:0;45447:253;45471:12;:19;45467:1;:23;45447:253;;;45530:12;45543:1;45530:15;;;;;;;;;;;;;;:26;;;45512:12;45525:1;45512:15;;;;;;;;;;;;;:44;;;;;45595:12;45608:1;45595:15;;;;;;;;;;;;;;:24;;;45571:18;45590:1;45571:21;;;;;;;;;;;;;:48;;;;;;;;;;;45655:12;45668:1;45655:15;;;;;;;;;;;;;;:33;;;45634:15;45650:1;45634:18;;;;;;;;;;;;;;;;;:54;45492:3;;45447:253;;;-1:-1:-1;45720:12:0;;45734:18;;-1:-1:-1;45720:12:0;;-1:-1:-1;44875:903:0;-1:-1:-1;;;44875:903:0:o;42450:587::-;23714:9;:7;:9::i;:::-;23706:54;;;;;-1:-1:-1;;;23706:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23706:54:0;;;;;;;;;;;;;;;28937:14;28920:13;;-1:-1:-1;;;28920:13:0;;;;:31;;;;;;;;;28912:118;;;;-1:-1:-1;;;28912:118:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42564:21;;42542:19;42596:398;42615:28;:35;42611:39;;42596:398;;;42672:33;;:::i;:::-;42708:20;:53;42729:28;42758:1;42729:31;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;42729:31:0;42708:53;;;;;;;;;;;;;;;42672:89;;;;;;;;;;;42729:31;42672:89;;;;;;;;;;;;;;;;;;;;;;;;;;;;42708:53;;42672:89;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;42672:89:0;;;-1:-1:-1;42672:89:0;;;;;;;;;;;;;;;42781:14;;;;42672:89;;-1:-1:-1;42776:64:0;;42816:8;;;42776:64;42856:21;42880:28;42900:7;42880:19;:28::i;:::-;42856:52;;42937:45;42953:28;42967:13;42953:9;;:13;;:28;;;;:::i;:::-;42937:11;;:45;:15;:45;:::i;:::-;42923:59;;42596:398;;;42652:3;;42596:398;;;-1:-1:-1;43006:5:0;;:23;;;-1:-1:-1;;;43006:23:0;;;;;;;;;;-1:-1:-1;;;;;43006:5:0;;;;:10;;:23;;;;;:5;;:23;;;;;;;;:5;;:23;;;5:2:-1;;;;30:1;27;20:12;5:2;43006:23:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;43006:23:0;;;;29041:1;42450:587::o;26363:49::-;;;-1:-1:-1;;;26363:49:0;;;;;:::o;43755:760::-;43832:16;43850;43884:37;43938:28;:35;;;;43924:50;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;43924:50:0;;43884:90;;43985:42;44044:28;:35;;;;44030:50;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;44030:50:0;-1:-1:-1;43985:95:0;-1:-1:-1;44098:9:0;44093:346;44117:28;:35;44113:39;;44093:346;;;44200:28;44229:1;44200:31;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;44200:31:0;44174:20;44195:1;44174:23;;;;;;;;;;;;;:57;-1:-1:-1;;;;;44174:57:0;;;-1:-1:-1;;;;;44174:57:0;;;;;44246:45;44294:20;:53;44315:28;44344:1;44315:31;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;44315:31:0;44294:53;;;;;;;;;;;;44393:32;;44362:28;;44294:53;;-1:-1:-1;44393:32:0;44362:25;;44388:1;;44362:28;;;;;;;;;;;;;;;:63;-1:-1:-1;44154:3:0;;44093:346;;;-1:-1:-1;44459:20:0;;-1:-1:-1;44481:25:0;-1:-1:-1;43755:760:0;;:::o;23502:79::-;23540:7;23567:6;-1:-1:-1;;;;;23567:6:0;23502:79;:::o;23868:94::-;23908:4;23948:6;;-1:-1:-1;;;;;23948:6:0;23932:12;:10;:12::i;:::-;-1:-1:-1;;;;;23932:22:0;;23925:29;;23868:94;:::o;43175:549::-;23714:9;:7;:9::i;:::-;23706:54;;;;;-1:-1:-1;;;23706:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23706:54:0;;;;;;;;;;;;;;;43300:5;;:30;;;-1:-1:-1;;;43300:30:0;;43324:4;43300:30;;;;;;43275:22;;-1:-1:-1;;;;;43300:5:0;;:15;;:30;;;;;;;;;;;;;;:5;:30;;;5:2:-1;;;;30:1;27;20:12;5:2;43300:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;43300:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;43300:30:0;;-1:-1:-1;43349:24:0;;;;43341:89;;;;-1:-1:-1;;;43341:89:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43443:28;43474:23;:21;:23::i;:::-;43443:54;-1:-1:-1;43508:23:0;43534:40;:14;43443:54;43534:40;:18;:40;:::i;:::-;43508:66;;43603:15;43593:6;:25;;43585:91;;;;-1:-1:-1;;;43585:91:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43689:5;;:27;;;-1:-1:-1;;;43689:27:0;;-1:-1:-1;;;;;43689:27:0;;;;;;;;;;;;;;;:5;;;;;:14;;:27;;;;;;;;;;;;;;:5;;:27;;;5:2:-1;;;;30:1;27;20:12;5:2;43689:27:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;43689:27:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;38705:420:0;23714:9;:7;:9::i;:::-;23706:54;;;;;-1:-1:-1;;;23706:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23706:54:0;;;;;;;;;;;;;;;28564:16;28547:13;;-1:-1:-1;;;28547:13:0;;;;:33;;;;;;;;;;28539:120;;;;-1:-1:-1;;;28539:120:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28754:14;28737:13;;-1:-1:-1;;;28737:13:0;;;;:31;;;;;;;;;;28729:116;;;;-1:-1:-1;;;28729:116:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38870:3;27548:33;;:::i;:::-;27584:20;:25;27605:3;-1:-1:-1;;;;;27584:25:0;-1:-1:-1;;;;;27584:25:0;;;;;;;;;;;;27548:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;27548:61:0;;;-1:-1:-1;27548:61:0;;;;;;;;;;;;;;;27629:14;;;;27548:61;;-1:-1:-1;27628:15:0;27620:71;;;;-1:-1:-1;;;27620:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;38939:25:0;;;38891:45;38939:25;;;:20;:25;;;;;38975:48;;;39034:25;;;;:32;;-1:-1:-1;;39034:32:0;39062:4;39034:32;;;;;;39079:28;27:10:-1;;23:18;;;45:23;;39079:38:0;;;;;;;;;-1:-1:-1;;;;;;39079:38:0;;;;;;38705:420::o;37861:200::-;23714:9;:7;:9::i;:::-;23706:54;;;;;-1:-1:-1;;;23706:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23706:54:0;;;;;;;;;;;;;;;28754:14;28737:13;;-1:-1:-1;;;28737:13:0;;;;:31;;;;;;;;;;28729:116;;;;-1:-1:-1;;;28729:116:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;37978:13:0;;;;;;;;;;;37993:16;37965:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38021:13;:32;;38037:16;;38021:13;-1:-1:-1;;;;38021:32:0;-1:-1:-1;;;38037:16:0;38021:32;;;;;;37861:200::o;46629:278::-;46744:5;;:30;;;-1:-1:-1;;;46744:30:0;;46768:4;46744:30;;;;;;46694:7;;;;-1:-1:-1;;;;;46744:5:0;;;;:15;;:30;;;;;;;;;;;;;;;:5;:30;;;5:2:-1;;;;30:1;27;20:12;5:2;46744:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;46744:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;46744:30:0;;-1:-1:-1;46785:28:0;46816:23;:21;:23::i;:::-;46785:54;-1:-1:-1;46859:40:0;:14;46785:54;46859:40;:18;:40;:::i;:::-;46852:47;;;;46629:278;:::o;26147:35::-;;;;:::o;37107:194::-;23714:9;:7;:9::i;:::-;23706:54;;;;;-1:-1:-1;;;23706:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23706:54:0;;;;;;;;;;;;;;;28754:14;28737:13;;-1:-1:-1;;;28737:13:0;;;;:31;;;;;;;;;;28729:116;;;;-1:-1:-1;;;28729:116:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;37222:13:0;;;;;;;;;;;37237:14;37209:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37263:13;:30;;37279:14;;37263:13;-1:-1:-1;;;;37263:30:0;-1:-1:-1;;;37279:14:0;37263:30;;30159:813;27813:14;27796:13;;-1:-1:-1;;;27796:13:0;;;;:31;;;;;;;;;27788:123;;;;-1:-1:-1;;;27788:123:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30300:10;27111:33;;:::i;:::-;27147:20;:25;27168:3;-1:-1:-1;;;;;27147:25:0;-1:-1:-1;;;;;27147:25:0;;;;;;;;;;;;27111:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;27111:61:0;;;-1:-1:-1;27111:61:0;;;;;;;;;;;;;;;27191:14;;;;27111:61;;-1:-1:-1;27183:79:0;;;;-1:-1:-1;;;27183:79:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30336:22;30328:83;;;;-1:-1:-1;;;30328:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30493:10;30424:45;30472:32;;;:20;:32;;;;;;;;30515:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30472:32;;30515:58;;;;30472:32;;30515:58;;;;;;;;30424:45;30515:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;30515:58:0;;;-1:-1:-1;30515:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30560:12;;;;;;30515:58;;;;30560:12;;30515:58;30560:12;30515:58;1:33:-1;99:1;81:16;;74:27;;;;-1:-1;30515:24:0;;-1:-1:-1;;;30515:58:0:i;:::-;30584:69;30601:18;30621:12;;30584:69;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;30635:17:0;;-1:-1:-1;30584:16:0;;-1:-1:-1;;30584:69:0:i;:::-;30691:9;;30666:22;;30691:34;;30705:12;30691:34;:13;:34;:::i;:::-;30744:5;;:61;;;-1:-1:-1;;;30744:61:0;;30763:10;30744:61;;;;30783:4;30744:61;;;;;;;;;;;;30666:59;;-1:-1:-1;;;;;;30744:5:0;;;;:18;;:61;;;;;;;;;;;;;;;:5;;:61;;;5:2:-1;;;;30:1;27;20:12;5:2;30744:61:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;30744:61:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;30744:61:0;30736:70;;;;;;30853:31;;;;:51;;30889:14;30853:51;:35;:51;:::i;:::-;30819:31;;;:85;30922:42;;;;;;;;30937:10;;30922:42;;;;;;;;;;27273:1;;27922;;30159:813;;;:::o;38346:193::-;23714:9;:7;:9::i;:::-;23706:54;;;;;-1:-1:-1;;;23706:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23706:54:0;;;;;;;;;;;;;;;28370:16;28353:13;;-1:-1:-1;;;28353:13:0;;;;:33;;;;;;;;;28345:122;;;;-1:-1:-1;;;28345:122:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38460:13:0;;;;;;;;;;;38475:14;38447:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38501:13;:30;;38517:14;;38501:13;-1:-1:-1;;;;38501:30:0;-1:-1:-1;;;38517:14:0;38501:30;;36275:672;27813:14;27796:13;;-1:-1:-1;;;27796:13:0;;;;:31;;;;;;;;;27788:123;;;;-1:-1:-1;;;27788:123:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36387:1;36378:6;:10;36370:79;;;;-1:-1:-1;;;36370:79:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36518:10;36462:33;36498:31;;;:19;:31;;;;;36548:14;;;;;;36540:72;;;;-1:-1:-1;;;36540:72:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36641:14;;36631:24;;;36623:86;;;;-1:-1:-1;;;36623:86:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36739:14;;:26;;36758:6;36739:26;:18;:26;:::i;:::-;36722:43;;36800:21;;:33;;36826:6;36800:33;:25;:33;:::i;:::-;36776:21;:57;;;36852:5;;:34;;;-1:-1:-1;;;36852:34:0;;36867:10;36852:34;;;;;;;;;;;;;;-1:-1:-1;;;;;36852:5:0;;;;:14;;:34;;;;;;;;;;;;;;:5;;:34;;;5:2:-1;;;;30:1;27;20:12;5:2;36852:34:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;36852:34:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;36852:34:0;36844:43;;;;;;36905:34;;;;;;;;36920:10;;-1:-1:-1;;;;;;;;;;;36905:34:0;;;;;;;;;27922:1;36275:672;:::o;45786:623::-;-1:-1:-1;;;;;45920:25:0;;45881:7;45920:25;;;:20;:25;;;;;:32;;;45881:7;;45920:32;;45912:89;;;;-1:-1:-1;;;45912:89:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;46036:25:0;;;;;;:20;:25;;;;;46020:54;;46063:10;46020:15;:54::i;:::-;46012:124;;;;-1:-1:-1;;;46012:124:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;46186:25:0;;46149:34;46186:25;;;:20;:25;;;;;;;;46242:48;;;:36;;;:48;;;;;;;46309:20;;;:31;;46242:48;;46309:31;;;;;;;;;;;;;;;;:49;;;46360:7;:20;;46381:9;46360:31;;;;;;;;;;;;;;;;:40;:31;;;;;:40;;46301:100;;-1:-1:-1;46360:40:0;;;-1:-1:-1;;;45786:623:0;;;;;:::o;37528:200::-;23714:9;:7;:9::i;:::-;23706:54;;;;;-1:-1:-1;;;23706:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23706:54:0;;;;;;;;;;;;;;;27813:14;27796:13;;-1:-1:-1;;;27796:13:0;;;;:31;;;;;;;;;27788:123;;;;-1:-1:-1;;;27788:123:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;37643:13:0;;;;;;;;;;;37658:17;37630:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37687:13;:33;;37703:17;;37687:13;-1:-1:-1;;;;37687:33:0;-1:-1:-1;;;37703:17:0;37687:33;;26116:24;;;;:::o;24608:109::-;23714:9;:7;:9::i;:::-;23706:54;;;;;-1:-1:-1;;;23706:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;23706:54:0;;;;;;;;;;;;;;;24681:28;24700:8;24681:18;:28::i;:::-;24608:109;:::o;26189:36::-;;;;:::o;26330:26::-;;;-1:-1:-1;;;;;26330:26:0;;:::o;48242:426::-;48387:20;;;:27;48361:4;;48383:77;;-1:-1:-1;48443:5:0;48436:12;;48383:77;48472:17;48492:48;;;:36;;;:48;;;;;;48561:20;;;:31;;48529:10;;48561:20;48492:48;;48561:31;;;;;;;;;;;;;;;;:42;;;:56;48560:100;;;;;48622:7;:20;;48643:9;48622:31;;;;;;;;;;;;;;;;;;:38;;;;;;;;;;;;48560:100;48553:107;;;48242:426;;;;;:::o;1762:181::-;1820:7;1852:5;;;1876:6;;;;1868:46;;;;;-1:-1:-1;;;1868:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;1934:1;1762:181;-1:-1:-1;;;1762:181:0:o;49681:925::-;49795:17;49815:48;;;:36;;;:48;;;;;;49898:20;;;:27;;49815:48;;-1:-1:-1;;49898:31:0;;;49795:17;;49898:20;49815:48;;49971:31;;;;;;;;;;;;;;:40;:31;;;;;:40;;;;;-1:-1:-1;50111:26:0;;;50107:281;;50154:16;50173:7;:20;;50194:13;50173:35;;;;;;;;;;;;;;;;;;:46;;;50154:65;;50283:9;50234:7;:36;;:46;50271:8;50234:46;;;;;;;;;;;:58;;;;50341:7;:20;;50362:13;50341:35;;;;;;;;;;;;;;;;;;50307:7;:20;;50328:9;50307:31;;;;;;;;;;;;;;;;:69;;:31;;;;;:69;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;50307:69:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;50307:69:0;;;;;;-1:-1:-1;50107:281:0;50404:21;50400:94;;;50449:33;;;;:21;:33;;;;;50442:40;;-1:-1:-1;;50442:40:0;;;50400:94;50506:7;:20;;:26;;;;;;;;;;;;;;;;-1:-1:-1;;50506:26:0;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;50506:26:0;;;;;;;50550:48;;;:36;;;;:48;;;-1:-1:-1;;50550:48:0;;;50543:55;;;;-1:-1:-1;49681:925:0:o;2218:136::-;2276:7;2303:43;2307:1;2310;2303:43;;;;;;;;;;;;;;;;;:3;:43::i;50614:584::-;50760:36;50776:7;50785:10;50760:15;:36::i;:::-;50752:101;;;;-1:-1:-1;;;50752:101:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50885:16;50868:13;;-1:-1:-1;;;50868:13:0;;;;:33;;;;;;;;;:68;;;-1:-1:-1;50922:14:0;50905:13;;-1:-1:-1;;;50905:13:0;;;;:31;;;;;;;;;50868:68;50864:327;;;51001:48;;;;:36;;;:48;;;;;;50980:20;;;:70;;:20;;51001:48;50980:70;;;;;;;;;;;;;;:79;:70;;;;;:79;;;;50979:80;50953:226;;;;-1:-1:-1;;;50953:226:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3134:471;3192:7;3437:6;3433:47;;-1:-1:-1;3467:1:0;3460:8;;3433:47;3504:5;;;3508:1;3504;:5;:1;3528:5;;;;;:10;3520:56;;;;-1:-1:-1;;;3520:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48676:400;48777:7;;;48837:202;48860:7;:20;;;:27;48856:1;:31;48837:202;;;48913:7;:20;;;48934:1;48913:23;;;;;;;;;;;;;;:30;;;:66;;;;;48947:7;:20;;;48968:1;48947:23;;;;;;;;;;;;;;:32;;;48913:66;48909:119;;;49000:12;;;;;48909:119;48889:3;;48837:202;;;-1:-1:-1;49058:10:0;48676:400;-1:-1:-1;;48676:400:0:o;7217:98::-;7297:10;7217:98;:::o;47627:569::-;47754:21;;47698:7;;;47786:363;47805:28;:35;47801:39;;47786:363;;;47862:33;;:::i;:::-;47898:20;:53;47919:28;47948:1;47919:31;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;47919:31:0;47898:53;;;;;;;;;;;;;;;47862:89;;;;;;;;;;;47919:31;47862:89;;;;;;;;;;;;;;;;;;;;;;;;;;;;47898:53;;47862:89;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;47862:89:0;;;-1:-1:-1;47862:89:0;;;;;;;;;;;;;;;47971:14;;;;47862:89;;-1:-1:-1;47966:64:0;;48006:8;;;47966:64;48069:68;48094:42;48108:7;:20;;;:27;48094:9;;:13;;:42;;;;:::i;:::-;48069:20;;:68;:24;:68;:::i;:::-;48046:91;;47786:363;;47842:3;;47786:363;;;-1:-1:-1;48168:20:0;-1:-1:-1;47627:569:0;:::o;47246:373::-;47463:12;:19;47433:7;:20;;;:27;:49;47408:7;:21;;;:74;;47386:225;;;;-1:-1:-1;;;47386:225:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46941:297;47096:9;47091:140;47115:12;:19;47111:1;:23;47091:140;;;47156:63;47175:7;47184:12;47197:1;47184:15;;;;;;;;;;;;;;47201:17;47156:18;:63::i;:::-;47136:3;;47091:140;;;;46941:297;;;:::o;24823:229::-;-1:-1:-1;;;;;24897:22:0;;24889:73;;;;-1:-1:-1;;;24889:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24999:6;;;24978:38;;-1:-1:-1;;;;;24978:38:0;;;;24999:6;;;24978:38;;;25027:6;:17;;-1:-1:-1;;;;;;25027:17:0;-1:-1:-1;;;;;25027:17:0;;;;;;;;;;24823:229::o;2691:192::-;2777:7;2813:12;2805:6;;;;2797:29;;;;-1:-1:-1;;;2797: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;2797:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2849:5:0;;;2691:192::o;49108:565::-;49257:15;49249:69;;;;-1:-1:-1;;;49249:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49338:36;49354:7;49363:10;49338:15;:36::i;:::-;49337:37;49329:105;;;;-1:-1:-1;;;49329:105:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49498:20;;;:27;49447:48;;;;:36;;;:48;;;;;:78;49536:26;;:::i;:::-;-1:-1:-1;49565:55:0;;;;;;;;;;;;;;;;;;-1:-1:-1;49565:55:0;;;;;;;;;;;;;49631:20;;;;27:10:-1;;23:18;;;45:23;;49631:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;49631:34:0;;;-1:-1:-1;;49631:34:0;;;;;;;;;;;;;;;;;49108:565::o;25133:26068::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;-1:-1:-1;25133:26068:0;;;;;;;;;;;;;;;;;;;;;;;:::o

Swarm Source

bzzr://2c8c274d741c32ff6e6352263954daf43f9b9de7b6ea2fb3162ff6dae6ae0a4f

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]

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