ETH Price: $3,471.44 (-1.28%)
Gas: 3 Gwei

Contract

0xDFBF1C5951C26b5f5ec850673ABB4806a4DF9E57
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60806040123329662021-04-29 3:32:351182 days ago1619667155IN
 Create: HodlDex
0 ETH0.2654353355

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
HodlDex

Compiler Version
v0.6.6+commit.6c089d02

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, Unlicense license

Contract Source Code (Solidity)

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

pragma solidity 0.6.6;

// SPDX-License-Identifier: Unlicensed

// Deployment process:
// deploy 2 proxies
// deploy Dex, Oracle and TokenReserve
// initConfigure Dex and TokenReserve
// migrate data 
// remove all migration role members
// contract is trading


// SPDX-License-Identifier: Unlicensed
// SPDX-License-Identifier: MIT


// SPDX-License-Identifier: MIT


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

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}
/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
contract Ownable is Context {
    address private _owner;

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

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

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

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

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

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


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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

interface IUniswap {
    function getReserves() external view returns(uint112, uint112, uint32);
}

interface IHodlDex {
    function increaseTransactionCount(uint256 txnCount) external;
}

interface IHOracle {
   function read() external view returns(uint ethUsd18); 
}

contract HOracle is IHOracle, Ownable {
    using SafeMath for uint; 

    bool called;
    uint private _lastEOSTxnCount;

    event TxnIncrease(uint indexed currentEOSTxnCount, uint indexed txnIncreaseAmount);

    constructor() public {
    }

    IUniswap uniswap = IUniswap(0xB4e16d0168e52d35CaCD2c6185b44281Ec28C9Dc);
    uint constant PRECISION = 10 ** 18;
    uint constant UNISWAP_SHIFT = 10 ** 12;
    

    //switch to chainlink
    function read() public view override returns(uint ethUsd18) {
        (uint112 uniswapReserve0, uint112 uniswapReserve1, /*uint32 timeStamp*/) = uniswap.getReserves();
        ethUsd18 = (uint(uniswapReserve0) * PRECISION * UNISWAP_SHIFT) / (uniswapReserve1);
    }

   
    function getLastEOSTxnCount() external view returns(uint) {
        return _lastEOSTxnCount;
    }

    function increaseTxnCount(uint currentEOSTxnCount) external onlyOwner returns(bool) {
        require(!called, "waiting for the last call to finish");
        called = true;
        require(_lastEOSTxnCount < currentEOSTxnCount, "current txn count should be larger than last txn count");
        uint txnIncreaseAmount = currentEOSTxnCount.sub(_lastEOSTxnCount);

        (bool success,  ) = address(0xC310644A0Cf1cAE7E240A48090c3cdB9Edb53941).call{gas: 300000}(abi.encodeWithSignature("increaseTransactionCount(uint256)", txnIncreaseAmount));
        //address(_hodlDexProxy).increaseTransactionCount(txnIncreaseAmount);
        if(success) {
            _lastEOSTxnCount = currentEOSTxnCount;
            emit TxnIncrease(currentEOSTxnCount, txnIncreaseAmount);
        }
        called = false;
        return success;
    }

}

// SPDX-License-Identifier: MIT


// SPDX-License-Identifier: Unlicensed

library Bytes32Set {
    
    struct Set {
        mapping(bytes32 => uint) keyPointers;
        bytes32[] keyList;
    }
    
    /**
     * @notice insert a key. 
     * @dev duplicate keys are not permitted.
     * @param self storage pointer to a Set. 
     * @param key value to insert.
     */
    function insert(Set storage self, bytes32 key) internal {
        require(!exists(self, key), "Bytes32Set: key already exists in the set.");
        self.keyPointers[key] = self.keyList.length;
        self.keyList.push(key);
    }

    /**
     * @notice remove a key.
     * @dev key to remove must exist. 
     * @param self storage pointer to a Set.
     * @param key value to remove.
     */
    function remove(Set storage self, bytes32 key) internal {
        require(exists(self, key), "Bytes32Set: key does not exist in the set.");
        uint last = count(self) - 1;
        uint rowToReplace = self.keyPointers[key];
        if(rowToReplace != last) {
            bytes32 keyToMove = self.keyList[last];
            self.keyPointers[keyToMove] = rowToReplace;
            self.keyList[rowToReplace] = keyToMove;
        }
        delete self.keyPointers[key];
        self.keyList.pop();
    }

    /**
     * @notice count the keys.
     * @param self storage pointer to a Set. 
     */    
    function count(Set storage self) internal view returns(uint) {
        return(self.keyList.length);
    }
    
    /**
     * @notice check if a key is in the Set.
     * @param self storage pointer to a Set.
     * @param key value to check. 
     * @return bool true: Set member, false: not a Set member.
     */
    function exists(Set storage self, bytes32 key) internal view returns(bool) {
        if(self.keyList.length == 0) return false;
        return self.keyList[self.keyPointers[key]] == key;
    }

    /**
     * @notice fetch a key by row (enumerate).
     * @param self storage pointer to a Set.
     * @param index row to enumerate. Must be < count() - 1.
     */    
    function keyAtIndex(Set storage self, uint index) internal view returns(bytes32) {
        return self.keyList[index];
    }
}

library FIFOSet {
    
    using Bytes32Set for Bytes32Set.Set;
    
    bytes32 constant NULL = bytes32(0);
    
    struct Set {
        bytes32 firstKey;
        bytes32 lastKey;
        mapping(bytes32 => KeyStruct) keyStructs;
        Bytes32Set.Set keySet;
    }

    struct KeyStruct {
            bytes32 nextKey;
            bytes32 previousKey;
    }

    function count(Set storage self) internal view returns(uint) {
        return self.keySet.count();
    }
    
    function first(Set storage self) internal view returns(bytes32) {
        return self.firstKey;
    }
    
    function last(Set storage self) internal view returns(bytes32) {
        return self.lastKey;
    }
    
    function exists(Set storage self, bytes32 key) internal view returns(bool) {
        return self.keySet.exists(key);
    }
    
    function isFirst(Set storage self, bytes32 key) internal view returns(bool) {
        return key==self.firstKey;
    }
    
    function isLast(Set storage self, bytes32 key) internal view returns(bool) {
        return key==self.lastKey;
    }    
    
    function previous(Set storage self, bytes32 key) internal view returns(bytes32) {
        require(exists(self, key), "FIFOSet: key not found") ;
        return self.keyStructs[key].previousKey;
    }
    
    function next(Set storage self, bytes32 key) internal view returns(bytes32) {
        require(exists(self, key), "FIFOSet: key not found");
        return self.keyStructs[key].nextKey;
    }
    
    function append(Set storage self, bytes32 key) internal {
        require(key != NULL, "FIFOSet: key cannot be zero");
        require(!exists(self, key), "FIFOSet: duplicate key"); 
        bytes32 lastKey = self.lastKey;
        KeyStruct storage k = self.keyStructs[key];
        KeyStruct storage l = self.keyStructs[lastKey];
        if(lastKey==NULL) {                
            self.firstKey = key;
        } else {
            l.nextKey = key;
        }
        k.previousKey = lastKey;
        self.keySet.insert(key);
        self.lastKey = key;
    }

    function remove(Set storage self, bytes32 key) internal {
        require(exists(self, key), "FIFOSet: key not found");
        KeyStruct storage k = self.keyStructs[key];
        bytes32 keyBefore = k.previousKey;
        bytes32 keyAfter = k.nextKey;
        bytes32 firstKey = first(self);
        bytes32 lastKey = last(self);
        KeyStruct storage p = self.keyStructs[keyBefore];
        KeyStruct storage n = self.keyStructs[keyAfter];
        
        if(count(self) == 1) {
            self.firstKey = NULL;
            self.lastKey = NULL;
        } else {
            if(key == firstKey) {
                n.previousKey = NULL;
                self.firstKey = keyAfter;  
            } else 
            if(key == lastKey) {
                p.nextKey = NULL;
                self.lastKey = keyBefore;
            } else {
                p.nextKey = keyAfter;
                n.previousKey = keyBefore;
            }
        }
        self.keySet.remove(key);
        delete self.keyStructs[key];
    }
}

// SPDX-License-Identifier: Unlicensed
//import "@openzeppelin/contracts/math/SafeMath.sol";

interface ProportionalInterface {
    function circulatingSupply() external view returns(uint amount); 
}

library Proportional {
    
    using SafeMath for uint;
    
    uint constant PRECISION = 10 ** 18;
    
    struct System {
        uint birthday;
        uint periodicity;
        address source;
        bytes32 shareAsset;                 // The asset used to determine shares, e.g. use HODL shares to distribute Eth proportionally.
        mapping(bytes32 => Asset) asset;
    }
    
    struct Asset {
        Distribution[] distributions;
        mapping(address => User) users;
    }
    
    struct Distribution {
        uint denominator;                   // Usually the supply, used to calculate user shares, e.g. balance / circulating supply
        uint amount;                        // The distribution amount. Accumulates allocations. Does not decrement with claims. 
        uint period;                        // Timestamp when the accounting period was closed. 
    }
    
    struct User {
        UserBalance[] userBalances;
        uint processingDistributionIndex;   // The next distribution of *this asset* to process for the user.
        uint processingBalanceIndex;        // The *shareAsset* balance record to use to compute user shares for the next distribution.
    }
    
    struct UserBalance {
        uint balance;                       // Last observed user balance in an accounting period 
        uint controlled;                    // Additional funds controlled the the user, e.g. escrowed, time-locked, open sell orders 
        uint period;                        // The period observed
    }
    
    bytes32 constant public ETH_ASSET = keccak256("Eth");

    event IncreaseDistribution(address sender, bytes32 indexed assetId, uint period, uint amount);
    event DistributionClosed(address sender, bytes32 indexed assetId, uint distributionAmount, uint denominator, uint closedPeriod, uint newPeriod);
    event DistributionPaid(address indexed receiver, bytes32 indexed assetId, uint period, uint amount, uint balanceIndex, uint distributionIndex);
    event UserBalanceIncreased(address indexed sender, bytes32 indexed assetId, uint period, address user, uint toBalance, uint toControlled);
    event UserBalanceReduced(address indexed sender, bytes32 indexed assetId, uint period, address user, uint fromBalance, uint fromControlled);
    event UserFastForward(address indexed sender, bytes32 indexed assetId, uint balanceIndex);
 
    /*******************************************************************
     * Initialize before using the library
     *******************************************************************/   
    
    function init(System storage self, bytes32[] storage assetId, bytes32 shareAssetId, uint birthday, uint periodicity, address source) internal {
        Distribution memory d = Distribution({
            denominator: 0,
            amount: 0,
            period: 0
        });
        self.shareAsset = shareAssetId;
        self.birthday = birthday;
        self.periodicity = periodicity;
        self.source = source;
        for(uint i=0; i<assetId.length; i++) {
            Asset storage a = self.asset[assetId[i]];
            a.distributions.push(d); // initialize with an open distribution in row 0.
        }
    }
    
    /*******************************************************************
     * Adjust balances 
     *******************************************************************/ 
     
    function add(System storage self, bytes32 assetId, address user, uint toBalance, uint toControlled) internal {
        Asset storage a = self.asset[assetId];
        User storage u = a.users[user];
        (uint currentBalance, uint balancePeriod, uint controlled) = userLatestBalanceUpdate(self, assetId, user);
        uint balanceCount = u.userBalances.length;

        uint p = period(self);
        currentBalance = currentBalance.add(toBalance);
        controlled = controlled.add(toControlled);
        UserBalance memory b = UserBalance({
            balance: currentBalance,  
            period: p,
            controlled: controlled
        });
        
        emit UserBalanceIncreased(msg.sender, assetId, p, user, toBalance, toControlled);

        /**
          We can overwrite the current userBalance, if:
           - this is not the share asset used for calculating proportional shares of distributions
           - the last row is already tracking the current period. 
        */

        if(balanceCount > 0 && (assetId != self.shareAsset || balancePeriod == p)) {
            u.userBalances[balanceCount - 1] = b; // overwrite the last row;
            return;
        }

        /**
          A new user, not seen before, is not entitled to distributions that closed before the current period. 
          Therefore, we point to the last distribution if it is open, or beyond it to indicate that this user will 
          participate in the next future distribution, if any.
        */

        // PATCH April 18, 2021

        // When receiving sharteAsset (HODL) for the first time, the OTHER asset distribution pointer goes to the most recent open distribution.        

        if(balanceCount == 0 && assetId == self.shareAsset) {
            // Asset storage ethAsset = self.asset[ETH_ASSET];
            // User storage ethUser = ethAsset.users[user];
            self.asset[ETH_ASSET].users[user].processingDistributionIndex = distributionCount(self, ETH_ASSET) - 1;
            if(self.asset[ETH_ASSET].distributions[self.asset[ETH_ASSET].users[user].processingDistributionIndex].period < p) {
                self.asset[ETH_ASSET].users[user].processingDistributionIndex++;
            }
        }

        // END PATCH April 18, 2021

        if(balanceCount == 0) {
            u.processingDistributionIndex = distributionCount(self, assetId) - 1; 
            if(a.distributions[u.processingDistributionIndex].period < p) {
                u.processingDistributionIndex++;
            }
        }

        /**
          There may be gaps in the distribution periods when no distribution was allocated. If the distribution pointer
          refers to a future, undefined distribution, then the balance to use is always the most recent known balance, 
          which is this update.
        */

        if(u.processingDistributionIndex == self.asset[assetId].distributions.length) {
            u.processingBalanceIndex = u.userBalances.length;
        }

        /**
          Appending a new userBalance preserves the user's closing balance in prior periods. 
        */

        u.userBalances.push(b); 
        return;

    }
    
    function sub(System storage self, bytes32 assetId, address user, uint fromBalance, uint fromControlled) internal {
        Asset storage a = self.asset[assetId];
        User storage u = a.users[user];
        uint balanceCount = u.userBalances.length;
        (uint currentBalance, uint balancePeriod, uint controlled) = userLatestBalanceUpdate(self, assetId, user); 
        
        uint p = period(self);
        currentBalance = currentBalance.sub(fromBalance, "Prop NSF");
        controlled = controlled.sub(fromControlled, "Prop nsf");
        UserBalance memory b = UserBalance({
            balance: currentBalance, 
            period: p,
            controlled: controlled
        });
        
        emit UserBalanceReduced(msg.sender, assetId, p, user, fromBalance, fromControlled);
        
        // re-use a userBalance row if possible
        if(balanceCount > 0 && (assetId != self.shareAsset || balancePeriod == p)) {
            u.userBalances[balanceCount - 1] = b; 
            return;
        }
        
        // if the distribution index points to a future distribution, then the balance index is the most recent balance
        if(u.processingDistributionIndex == self.asset[assetId].distributions.length) {
            u.processingBalanceIndex = u.userBalances.length;
        }

        // Append a new user balance row when we need to retain history or start a new user
        u.userBalances.push(b); // start a new row 
        return;
    }
    
    /*******************************************************************
     * Distribute 
     *******************************************************************/   
     
    function increaseDistribution(System storage self, bytes32 assetId, uint amount) internal {
        Asset storage a = self.asset[assetId];
        Distribution storage d = a.distributions[a.distributions.length - 1];
        if(d.period < period(self)) {
            _closeDistribution(self, assetId);
            d = a.distributions[a.distributions.length - 1];
        }
        if(amount> 0) {
            d.amount = d.amount.add(amount);
            emit IncreaseDistribution(msg.sender, assetId, period(self), amount);
        }
    }

    function _closeDistribution(System storage self, bytes32 assetId) private {
        Asset storage a = self.asset[assetId];
        Distribution storage d = a.distributions[a.distributions.length - 1];
        uint p = period(self);
        d.denominator = circulatingSupply(self);
        Distribution memory newDist = Distribution({
            denominator: 0,
            amount: 0,
            period: p
        });
        a.distributions.push(newDist); 
        emit DistributionClosed(msg.sender, assetId, d.amount, d.denominator, d.period, p);
    }    
    
    /*******************************************************************
     * Claim 
     *******************************************************************/   
     
    // look ahead in accounting history
    
    function peakNextUserBalancePeriod(User storage user, uint balanceIndex) private view returns(uint period) {
        if(balanceIndex + 1 < user.userBalances.length) {
            period = user.userBalances[balanceIndex + 1].period;
        } else {
            period = PRECISION; // never - this large number is a proxy for future, undefined
        }
    }
    
    function peakNextDistributionPeriod(System storage self, uint distributionIndex) private view returns(uint period) {
        Asset storage a = self.asset[self.shareAsset];
        if(distributionIndex + 1 < a.distributions.length) {
            period = a.distributions[distributionIndex + 1].period;
        } else {
            period = PRECISION - 1; // never - this large number is a proxy for future, undefined
        }
    }
    
    // move forward. Pointers are allowed to extend past the end by one row, meaning "next" period with activity.
    
    function nudgeUserBalanceIndex(System storage self, bytes32 assetId, address user, uint balanceIndex) private {
        if(balanceIndex < self.asset[self.shareAsset].users[user].userBalances.length) self.asset[assetId].users[user].processingBalanceIndex = balanceIndex + 1;
    }
    
    function nudgeUserDistributionIndex(System storage self, bytes32 assetId, address user, uint distributionIndex) private {
        if(distributionIndex < self.asset[assetId].distributions.length) self.asset[assetId].users[user].processingDistributionIndex = distributionIndex + 1;
    }

    function processNextUserDistribution(System storage self, bytes32 assetId, address user) internal returns(uint amount) {
        Asset storage a = self.asset[assetId];
        Asset storage s = self.asset[self.shareAsset]; //always hodlc
        User storage ua = a.users[user];
        User storage us = s.users[user];
        
        /*
          Closing distributions on-the-fly 
          - enables all users to begin claiming their distributions
          - reduces the need for a manual "poke" to close a distribution when no allocations take place in the following period 
          - reduces gaps from periods when no allocation occured followed by an allocation 
          - reduces possible iteration over those gaps near 286.
        */

        poke(self, assetId);

        // begin processing next distribution
        uint balanceIndex;
        uint distributionIndex;
        bool closed;
        (amount, balanceIndex, distributionIndex, closed) = nextUserDistributionDetails(self, assetId, user); 
        if(!closed) return 0;
        
        Distribution storage d = a.distributions[distributionIndex];

        // transfer the amount from the distribution to the user
        emit DistributionPaid(user, assetId, d.period, amount, balanceIndex, distributionIndex);
        add(self, assetId, user, amount, 0);
        
        /****************************************************************
         * Adjust the index pointers to prepare for the next distribution 
         ****************************************************************/
         
        uint nextUserBalancePeriod = peakNextUserBalancePeriod(us, balanceIndex);
        uint nextDistributionPeriod = peakNextDistributionPeriod(self, distributionIndex);
        
        nudgeUserDistributionIndex(self, assetId, user, distributionIndex);
        
        // if the next distribution to process isn't open (nothing has been writen), 
        // then fast-forward to the lastest shareAsset balance
        if(ua.processingDistributionIndex == a.distributions.length) {
            ua.processingBalanceIndex = us.userBalances.length - 1;
            return amount;
        }
      
        /** 
         * Consider advancing to the next userBalance index/
         * A gap in distribution records is possible if no funds are distributed, no claims are processed and no one 
         * pokes the asset manually. Gaps are discouraged but this loop resolves them if/when they occur.
         ****/

        while(nextUserBalancePeriod <= nextDistributionPeriod) {
            nudgeUserBalanceIndex(self, assetId, user, balanceIndex);
            (/* amount */, balanceIndex, /* distributionIndex */, /* closed */) = nextUserDistributionDetails(self, assetId, user);
            nextUserBalancePeriod = peakNextUserBalancePeriod(us, balanceIndex);
        }
    }
    
    /*******************************************************************
     * Force close a period to enable claims
     *******************************************************************/ 
    
    function poke(System storage self, bytes32 assetId) internal  {
        increaseDistribution(self, assetId, 0);
    }

    /********************************************************************
     * The user's historical shareBalance is used  to compute shares of a supply which is applied to an 
     * unclaimed distribution of the asset itself (assetId).  
     ********************************************************************/
    
    function nextUserDistributionDetails(System storage self, bytes32 assetId, address user) 
        internal 
        view
        returns(
            uint amount,
            uint balanceIndex,
            uint distributionIndex,
            bool closed)
    {
        
        Asset storage a = self.asset[assetId];
        Asset storage s = self.asset[self.shareAsset];
        User storage ua = a.users[user];
        User storage us = s.users[user]; 
        
        // shareAsset balance index, this asset distribution index
        balanceIndex = ua.processingBalanceIndex;
        distributionIndex = ua.processingDistributionIndex;

        // if the user distribution index points to an as-yet uninitialized period (future) then it is not payable
        if(a.distributions.length < distributionIndex + 1) return(0, balanceIndex, distributionIndex, false);
        
        // the distribution to work with (this asset) from the user's asset distribution index
        Distribution storage d = a.distributions[distributionIndex];
        // the demoninator for every asset snapshots the share asset supply when the distribution is closed
        uint supply = d.denominator;
        closed = supply != 0;
        
        // if the user has no balance history then there is no entitlement. If the distribution is open then it is not payable.
        if(us.userBalances.length < balanceIndex + 1 || !closed) return(0, balanceIndex, distributionIndex, closed);

        // the user balance to work with (share asset) from the user's balance index
        UserBalance storage ub = us.userBalances[balanceIndex];        
        
        // shares include both the unincumbered user balance and any controlled balances, e.g. open sell orders, escrow, etc.
        uint shares = ub.balance + ub.controlled;
        
        // distribution / suppler, e.g. amount per share 
        uint distroAmt = d.amount;
        uint globalRatio = (distroAmt * PRECISION) / supply;
        
        // the user receives the amount per unit * the units they have or control 
        amount = (shares * globalRatio) / PRECISION;
    }
    
    /*******************************************************************
     * Inspect Configuration
     *******************************************************************/    
    
    function configuration(System storage self) internal view returns(uint birthday, uint periodicity, address source, bytes32 shareAsset) {
        birthday = self.birthday;
        periodicity = self.periodicity;
        source = self.source;
        shareAsset = self.shareAsset;
    }

    /*******************************************************************
     * Inspect Periods 
     *******************************************************************/

    function period(System storage self) internal view returns(uint periodNumber) {
        uint age = now.sub(self.birthday, "P502");
        periodNumber = age / self.periodicity;
    }
    
    /*******************************************************************
     * Inspect User Balances 
     *******************************************************************/    

    function balanceOf(System storage self, bytes32 assetId, address user) internal view returns(uint balance) {
        Asset storage a = self.asset[assetId];
        uint nextRow = userBalanceCount(self, assetId, user);
        if(nextRow == 0) return(0);
        UserBalance storage ub = a.users[user].userBalances[nextRow - 1];
        return ub.balance;
    }
    
    function additionalControlled(System storage self, bytes32 assetId, address user) internal view returns(uint controlled) {
        Asset storage a = self.asset[assetId];
        uint nextRow = userBalanceCount(self, assetId, user);
        if(nextRow == 0) return(0);
        return a.users[user].userBalances[nextRow - 1].controlled;
    }
    
    // There are 0-1 userBalance records for each distribution period
    function userBalanceCount(System storage self, bytes32 assetId, address user) internal view returns(uint count) {
        Asset storage a = self.asset[assetId];
        return a.users[user].userBalances.length;
    }
    
    function userBalanceAtIndex(System storage self, bytes32 assetId, address user, uint index) internal view returns(uint balance, uint controlled, uint _period) {
        Asset storage a = self.asset[assetId];
        UserBalance storage ub = a.users[user].userBalances[index];
        return (ub.balance, ub.controlled, ub.period);
    }
    
    function userLatestBalanceUpdate(System storage self, bytes32 assetId, address user) internal view returns(uint balance, uint _period, uint controlled) {
        Asset storage a = self.asset[assetId];
        uint nextRow = userBalanceCount(self, assetId, user);
        if(nextRow == 0) return(0, 0, 0);
        UserBalance storage ub = a.users[user].userBalances[nextRow - 1];
        balance = ub.balance;
        _period = ub.period;
        controlled = ub.controlled;
    }

    function getPointers(System storage self, bytes32 assetId, address user) internal view returns(uint pdi, uint pbi) {
        Asset storage a = self.asset[assetId];
        a.users[user].processingDistributionIndex;
        return (a.users[user].processingDistributionIndex, a.users[user].processingBalanceIndex);
    }
    
    /*******************************************************************
     * Inspect Distributions
     *******************************************************************/     

    function circulatingSupply(System storage self) internal view returns(uint supply) {
        supply = ProportionalInterface(self.source).circulatingSupply(); // Inspect the external source
    }
    
    function distributionCount(System storage self, bytes32 assetId) internal view returns(uint count) {
        count = self.asset[assetId].distributions.length;
    }
    
    function distributionAtIndex(System storage self, bytes32 assetId, uint index) internal view returns(uint denominator, uint amount, uint _period) {
        Asset storage a = self.asset[assetId];
        return (
            a.distributions[index].denominator,
            a.distributions[index].amount,
            a.distributions[index].period);
    }
}

// SPDX-License-Identifier: Unlicensed


// SPDX-License-Identifier: Unlicensed
// SPDX-License-Identifier: MIT


// SPDX-License-Identifier: MIT


// SPDX-License-Identifier: MIT


/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}
// SPDX-License-Identifier: MIT


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

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

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

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

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

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

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

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

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

/**
 * @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 {ERC20PresetMinterPauser}.
 *
 * 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;
    using Address for address;

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name, string memory symbol) public {
        _name = name;
        _symbol = symbol;
        _decimals = 18;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is
     * called.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view returns (uint8) {
        return _decimals;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view override 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 virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

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

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override 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 virtual override 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 virtual 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 virtual 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 virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        _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 virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _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 virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        _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 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 virtual {
        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 Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal {
        _decimals = decimals_;
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be to transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}

/**
 * @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).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        uint256 decreasedAllowance = allowance(account, _msgSender()).sub(amount, "ERC20: burn amount exceeds allowance");

        _approve(account, _msgSender(), decreasedAllowance);
        _burn(account, amount);
    }
}
// import "@openzeppelin/contracts/token/ERC20/ERC20Burnable.sol";
// import "@openzeppelin/contracts/access/Ownable.sol";


contract HTEthUsd is ERC20Burnable, Ownable {
    
    constructor () ERC20("HODL ERC20 Token, Ethereum, US Dollar", "HTETHUSD") public {
    	_setupDecimals(18);
    }
    
    function mint(address user, uint amount) external onlyOwner { // TODO: Check ownership graph
        _mint(user, amount);
    }
}
// SPDX-License-Identifier: MIT


// SPDX-License-Identifier: MIT


/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.0.0, only sets of type `address` (`AddressSet`) and `uint256`
 * (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) { // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint256(_at(set._inner, index)));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context {
    using EnumerableSet for EnumerableSet.AddressSet;
    using Address for address;

    struct RoleData {
        EnumerableSet.AddressSet members;
        bytes32 adminRole;
    }

    mapping (bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view returns (bool) {
        return _roles[role].members.contains(account);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view returns (uint256) {
        return _roles[role].members.length();
    }

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view returns (address) {
        return _roles[role].members.at(index);
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant");

        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke");

        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        emit RoleAdminChanged(role, _roles[role].adminRole, adminRole);
        _roles[role].adminRole = adminRole;
    }

    function _grantRole(bytes32 role, address account) private {
        if (_roles[role].members.add(account)) {
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (_roles[role].members.remove(account)) {
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}
// SPDX-License-Identifier: MIT



/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 * 
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {UpgradeableProxy-constructor}.
 * 
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 */
abstract contract Initializable {

    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        require(_initializing || _isConstructor() || !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /// @dev Returns true if and only if the function is running in the constructor
    function _isConstructor() private view returns (bool) {
        // extcodesize checks the size of the code stored in an address, and
        // address returns the current address. Since the code is still not
        // deployed when running a constructor, any checks on its code size will
        // yield zero, making it an effective way to detect if a contract is
        // under construction or not.
        address self = address(this);
        uint256 cs;
        // solhint-disable-next-line no-inline-assembly
        assembly { cs := extcodesize(self) }
        return cs == 0;
    }
}

interface IDex {
    function allocateDistribution(uint amountHodl) external;
    function convertHodlToUsd(uint amtHodl) external view returns(uint inUsd);
    function convertUsdToHodl(uint amtUsd) external view returns(uint inHodl);
    function user(address userAddr) external view returns(uint balanceEth, uint balanceHodl, uint controlledHodl);
}

contract HTokenReserve is Initializable, AccessControl {
    
    using SafeMath for uint;
    bool initialized;
    uint allocationTimer;
    IDex dex;
    HTEthUsd token;
    
    bytes32 constant public DEX_ROLE = keccak256("Dex Role");
    
    uint constant FREQUENCY = 1 days;

    modifier periodic {
        if((block.timestamp - allocationTimer) > FREQUENCY) {
            allocateSurplus();
            allocationTimer = block.timestamp;
        }
        _;
    }

    modifier onlyDex {
        require(hasRole(DEX_ROLE, msg.sender), "HTokenReserve - 403, sender is not a Dex");
        _;
    }
    
    modifier ifInitialized {
        require(initialized, "HTokenReserve - 403, contract not initialized.");
        _;
    }
    
    event Deployed(address deployer);
    event Configured(address deployer, address dexContract, address tokenContract);
    event HTEthUsdIssued(address indexed user, uint HCEthUsdToReserve, uint HTEthUsdIssued);
    event HCEthUsdRedeemed(address indexed user, uint HTEthUsdBurned, uint HCEthUsdFromReserve);
    event SurplusAllocated(address indexed receiver, uint amountHCEthUsd);
    
    constructor() public {
        emit Deployed(msg.sender);
        allocationTimer = block.timestamp;
    }

    function init(address dexAddr) external initializer {
        // configure access control
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _setupRole(DEX_ROLE, dexAddr); 

        // join contracts       
        dex = IDex(dexAddr);
        token = new HTEthUsd();
        
        initialized = true;
        emit Configured(msg.sender, dexAddr, address(token));        
    }
    
    function dexContract() external view returns(address dexAddr) {
        return address(dex);
    }
    
    /**************************************************************************************
     * Swaps - amounts (both directions) are USD tokens representing $1 * 10 ** 18
     **************************************************************************************/    
    
    function issueHTEthUsd(address user, uint amountUsd) external ifInitialized periodic onlyDex returns(uint amtHcEthUsd) {
        amtHcEthUsd = dex.convertUsdToHodl(amountUsd);
        emit HTEthUsdIssued(user, amtHcEthUsd, amountUsd); 
        token.mint(user, amountUsd);
    }
    
    function burnHTEthUsd(address user, uint amountUsd) external ifInitialized periodic onlyDex returns(uint amtHcEthUsd) {
        amtHcEthUsd = dex.convertUsdToHodl(amountUsd);
        emit HCEthUsdRedeemed(user, amountUsd, amtHcEthUsd);
        token.burnFrom(user, amountUsd);
    }
    
    /**************************************************************************************
     * Send surplus hodl tokens to the dex for distribution - reserve remains at 100%
     * This occurs periodicially and anyone is allowed to force it to happen.
     **************************************************************************************/ 
     
    function allocateSurplus() public ifInitialized {
        uint amount = surplusHCEthUsd();
        emit SurplusAllocated(address(dex), amount);
        dex.allocateDistribution(amount);
    }
    
    /**************************************************************************************
     * Inspect the state
     **************************************************************************************/     
    
    function erc20Token() public view returns(address erc20) {
        return address(token);
    }
    
    function reservesHCEthUsd() public view returns(uint hcEthUsdBalance) {
        (/* uint balanceEth */, hcEthUsdBalance, /* uint controlledHodl */) = dex.user(address(this));
    }
    
    function reserveUsd() public view returns(uint usdValue) {
        usdValue = dex.convertHodlToUsd(reservesHCEthUsd());
    }
    
    function circulatingUsd() public view returns(uint usdValue) {
        return token.totalSupply();
    }
    
    function surplusHCEthUsd() public view returns(uint HCEthUsdSurplus) {
        uint reserveHCEthUsd = reservesHCEthUsd();
        uint requiredCHEthUsd = dex.convertUsdToHodl(circulatingUsd());
        HCEthUsdSurplus = reserveHCEthUsd.sub(requiredCHEthUsd);
    }
    
    function surplusUsdValue() public  view  returns(uint usdValue) {
        usdValue = reserveUsd().sub(circulatingUsd());
    }  
}

interface IHTokenReserve {
    function erc20Contract() external view returns(address erc20);
    function issueHTEthUsd(address user, uint amountUsd) external returns(uint amtHcEthUsd);
    function burnHTEthUsd(address user, uint amountUsd) external returns(uint amtHcEthUsd);
    function tokenReserveContract() external view returns(IHTokenReserve _reserve);
    function dexContract() external view returns(address dexAddr);
}

contract HodlDex is IDex, Initializable, AccessControl {
    
    using SafeMath for uint;                                        // OpenZeppelin safeMath utility
    using FIFOSet for FIFOSet.Set;                                  // FIFO key sets
    using Proportional for Proportional.System;                     // Balance management with proportional distribution 
    
    IHOracle oracle;                                                // Must implement the read() view function (EthUsd18 uint256)
    IHTokenReserve tokenReserve;                                    // The ERC20 token reserve
    
    bytes32 constant public MIGRATION_ROLE = keccak256("Migration Role");
    bytes32 constant public RESERVE_ROLE = keccak256("Reserve Role");
    bytes32 constant public ORACLE_ROLE = keccak256("Oracle Role");
    bytes32 constant public ADMIN_ROLE = keccak256("Admin Role");  
    bytes32 constant public ETH_ASSET = keccak256("Eth");
    bytes32 constant public HODL_ASSET = keccak256("HODL");
    
    bytes32[] assetIds;                                             // Accessible in the library

    bytes32 constant NULL = bytes32(0); 
    address constant UNDEFINED = address(0);
    uint constant PRECISION = 10 ** 18;                             // Precision is 18 decimal places
    uint constant TOTAL_SUPPLY = 20000000 * (10**18);               // Total supply - initially goes to the reserve, which is address(this)
    uint constant SLEEP_TIME = 30 days;                             // Grace period before time-based accrual kicks in
    uint constant DAILY_ACCRUAL_RATE_DECAY = 999999838576236000;    // Rate of decay applied daily reduces daily accrual APR to about 5% after 30 years
    uint constant USD_TXN_ADJUSTMENT = 10**14;                      // $0.0001 with 18 decimal places of precision - 1/100th of a cent
    
    uint constant BIRTHDAY = 1595899309;                            // Now time when the contract was deployed
    uint constant MIN_ORDER_USD = 50 * 10 ** 18;                    // Minimum order size is $50 in USD precision
    uint constant MAX_THRESHOLD_USD = 10 * 10 ** 18;                // Order limits removed when HODL_USD exceeds $10
    uint constant MAX_ORDER_FACTOR = 5000;                          // Max Order Volume will be 5K * hodl_usd until threshold ($10).  
    uint constant DISTRIBUTION_PERIOD = 30 days;                    // Periodicity for distributions

    /**************************************************************************************
     * block 11094768 values from old dex at 0x56b9d34F9f4E4A1A82D847128c1B2264B34D2fAe
    **************************************************************************************/    

    uint constant _accrualDaysProcessed = 54;                       // Days of stateful accrual applied
    uint constant _HODL_USD = 1335574612014710427;                  // HODL:USD exchange rate last recorded
    uint constant _DAILY_ACCRUAL_RATE = 1001892104261953098;        // Initial daily accrual is 0.19% (100.19% multiplier) which is about 100% APR
    uint public accrualDaysProcessed;
    uint private HODL_USD;
    uint private DAILY_ACCRUAL_RATE;

    /**************************************************************************************
     * Counters
     **************************************************************************************/     
    
    uint public entropy_counter;                                    // Ensure unique order ids
    uint public eth_usd_block;                                      // Block number of last ETH_USD recorded
    uint public error_count;                                        // Oracle read errors
    uint public ETH_USD;                                            // Last recorded ETH_USD rate

    Proportional.System balance;                                    // Account balances with proportional distribution system 

    struct SellOrder {
        address seller;
        uint volumeHodl;
        uint askUsd;
    } 
    
    struct BuyOrder {
        address buyer;
        uint bidEth;
    }
    
    mapping(bytes32 => SellOrder) public sellOrder;
    mapping(bytes32 => BuyOrder) public buyOrder; 

    FIFOSet.Set sellOrderIdFifo;                                    // SELL orders in order of declaration
    FIFOSet.Set buyOrderIdFifo;                                     // BUY orders in order of declaration
    
    modifier onlyAdmin {
        require(hasRole(ADMIN_ROLE, msg.sender), "HodlDex 403 admin");
        _;
    }
    
    modifier onlyOracle {
        require(hasRole(ORACLE_ROLE, msg.sender), "HodlDex 403 oracle");
        _;
    }
    
    modifier onlyMigration {
        require(hasRole(MIGRATION_ROLE, msg.sender), "HodlDex 403 migration");
        _;
    }
    
    modifier onlyReserve {
        require(hasRole(RESERVE_ROLE, msg.sender), "HodlDex 403 reserve.");
        _; 
    }
    
    modifier ifRunning {
        require(isRunning(), "HodleDex uninitialized.");
        _;
    }

    modifier accrueByTime {
        _;
        _accrueByTime();
    }

    event HodlTIssued(address indexed user, uint amountUsd, uint amountHodl);
    event HodlTRedeemed(address indexed user, uint amountUsd, uint amountHodl);
    event SellHodlCRequested(address indexed seller, uint quantityHodl, uint lowGas);
    event SellOrderFilled(address indexed buyer, bytes32 indexed orderId, address indexed seller, uint txnEth, uint txnHodl);
    event SellOrderRefunded(address indexed seller, bytes32 indexed orderId, uint refundedHodl);    
    event SellOrderOpened(bytes32 indexed orderId, address indexed seller, uint quantityHodl, uint askUsd);
    event BuyHodlCRequested(address indexed buyer, uint amountEth, uint lowGas);
    event BuyOrderFilled(address indexed seller, bytes32 indexed orderId, address indexed buyer, uint txnEth, uint txnHodl);
    event BuyOrderRefunded(address indexed seller, bytes32 indexed orderId, uint refundedEth);
    event BuyFromReserve(address indexed buyer, uint txnEth, uint txnHodl);
    event BuyOrderOpened(bytes32 indexed orderedId, address indexed buyer, uint amountEth);
    event SellOrderCancelled(address indexed userAddr, bytes32 indexed orderId);
    event BuyOrderCancelled(address indexed userAddr, bytes32 indexed orderId);
    event UserDepositEth(address indexed user, uint amountEth);
    event UserWithdrawEth(address indexed user, uint amountEth);
    event InitConfigure(address sender, IHTokenReserve tokenReserve, IHOracle oracle);
    event UserInitialized(address admin, address indexed user, uint hodlCR, uint ethCR);
    event UserUninitialized(address admin, address indexed user);
    event OracleSet(address admin, address oracle);
    event SetEthUsd(address setter, uint ethUsd18);
    event SetDailyAccrualRate(address admin, uint dailyAccrualRate);
    event EthUsdError(address sender, uint errorCount, uint ethUsd);
    event IncreaseGas(address sender, uint gasLeft, uint ordersFilled);
    event IncreasedByTransaction(address sender, uint transactionCount, uint newHodlUsd);
    event AccrueByTime(address sender, uint hodlUsdNow, uint dailyAccrualRateNow);
    event InternalTransfer(address sender, address from, address to, uint amount);
    event HodlDistributionAllocated(address sender, uint amount);

    /**************************************************************************************
     * @dev run init() before using this contract
     **************************************************************************************/ 

    function keyGen() private returns(bytes32 key) {
        entropy_counter++;
        return keccak256(abi.encodePacked(address(this), msg.sender, entropy_counter));
    }
    
    function oracleContract() external view returns(IHOracle _oracle) {
        return oracle;
    }
    
    function tokenReserveContract() external view returns(IHTokenReserve _reserve) {
        return tokenReserve;
    }

    /**************************************************************************************
     * An admin may change the oracle service
     **************************************************************************************/    
    
    function adminSetOracle(IHOracle _oracle) external onlyAdmin {
        oracle = _oracle;

        //_setupRole(ORACLE_ROLE, _oracle);
        emit OracleSet(msg.sender, address(_oracle));
    }

    /**************************************************************************************
     * An Oracle may inject a new Eth:Usd rate
     **************************************************************************************/ 
    
    function oracleSetEthUsd(uint ethUsd) external onlyOracle {
        ETH_USD = ethUsd;
        eth_usd_block = block.number;
        emit SetEthUsd(msg.sender, ethUsd);
    }    

    /**************************************************************************************
     * Anyone can nudge the time-based accrual and distribution accounting periods forward
     **************************************************************************************/ 

    function poke() public ifRunning {
        _accrueByTime();
        _setEthToUsd();
    }

    /**************************************************************************************
     * Convertability to HODLT USD TOKEN ERC20
     **************************************************************************************/    
    
    function hodlTIssue(uint amountUsd) external accrueByTime ifRunning {
        uint amountHodl = tokenReserve.issueHTEthUsd(msg.sender, amountUsd);
        emit HodlTIssued(msg.sender, amountUsd, amountHodl);
        balance.sub(HODL_ASSET, msg.sender, amountHodl, 0);
        balance.add(HODL_ASSET, address(tokenReserve), amountHodl, 0);
    }

    function hodlTRedeem(uint amountUsd) external accrueByTime ifRunning {
        uint amountHodl = tokenReserve.burnHTEthUsd(msg.sender, amountUsd);
        emit HodlTRedeemed(msg.sender, amountUsd, amountHodl);
        balance.add(HODL_ASSET, msg.sender, amountHodl, 0);
        balance.sub(HODL_ASSET, address(tokenReserve), amountHodl, 0);
    }

    function allocateDistribution(uint amountHodl) external override ifRunning onlyReserve {
        emit HodlDistributionAllocated(msg.sender, amountHodl);
        balance.sub(HODL_ASSET, address(tokenReserve), amountHodl, 0);
        balance.increaseDistribution(HODL_ASSET, amountHodl);
    }
    
    /**************************************************************************************
     * Claim distributions
     **************************************************************************************/      
    
    function claimEthDistribution() external virtual ifRunning returns(uint amountEth) {
        amountEth = balance.processNextUserDistribution(ETH_ASSET, msg.sender);
    }
    
    function claimHodlDistribution() external virtual ifRunning returns(uint amountHodl) {
        amountHodl = balance.processNextUserDistribution(HODL_ASSET, msg.sender);
    }

    /**************************************************************************************
     * Sell HodlC to buy orders, or if no buy orders open a sell order.
     * Selectable low gas protects against future EVM price changes.
     * Completes as much as possible (gas) and return unprocessed Hodl.
     **************************************************************************************/ 

    function sellHodlC(uint quantityHodl, uint lowGas) external accrueByTime ifRunning returns(bytes32 orderId) {
        emit SellHodlCRequested(msg.sender, quantityHodl, lowGas);
        uint orderUsd = convertHodlToUsd(quantityHodl); 
        uint orderLimit = orderLimit();
        require(orderUsd >= MIN_ORDER_USD, "HodlDex, < min USD");
        require(orderUsd <= orderLimit || orderLimit == 0, "HodlDex, > max USD");
        quantityHodl = _fillBuyOrders(quantityHodl, lowGas);
        orderId = _openSellOrder(quantityHodl);
    }

    function _fillBuyOrders(uint quantityHodl, uint lowGas) private returns(uint remainingHodl) {
        bytes32 orderId;
        address orderBuyer;
        uint orderHodl;
        uint orderEth;
        uint txnEth;
        uint txnHodl;
        uint ordersFilled;

        while(buyOrderIdFifo.count() > 0 && quantityHodl > 0) { 
            if(gasleft() < lowGas) {
                emit IncreaseGas(msg.sender, gasleft(), ordersFilled);
                return 0;
            }
            orderId = buyOrderIdFifo.first();
            BuyOrder storage o = buyOrder[orderId]; 
            orderBuyer = o.buyer;
            orderEth = o.bidEth;
            orderHodl = _convertEthToHodl(orderEth);
            
            if(orderHodl == 0) {
                // First order is now too small to fill. Refund eth and prune the order.
                if(orderEth > 0) {
                    balance.add(ETH_ASSET, orderBuyer, orderEth, 0);
                    emit BuyOrderRefunded(msg.sender, orderId, orderEth); 
                }
                delete buyOrder[orderId];
                buyOrderIdFifo.remove(orderId);
            } else {
                // Seller wants to sell hodl with Eth value
                txnEth  = _convertHodlToEth(quantityHodl);
                txnHodl = quantityHodl;
                // Fill some or all of the open order
                if(orderEth < txnEth) {
                    txnEth = orderEth;
                    txnHodl = orderHodl;
                }
                emit BuyOrderFilled(msg.sender, orderId, orderBuyer, txnEth, txnHodl);
                // Transfer hodl from seller to buyer 
                balance.sub(HODL_ASSET, msg.sender, txnHodl, 0);
                balance.add(HODL_ASSET, orderBuyer, txnHodl, 0);
                // Award Eth to seller 
                balance.add(ETH_ASSET, msg.sender, txnEth, 0);
                if(orderEth == txnEth) {
                    // delete filled order 
                    delete buyOrder[orderId];
                    buyOrderIdFifo.remove(orderId);
                // the the order is partially filled, then deduct Eth from the order
                } else {
                    // deduct eth from a partially filled order
                    o.bidEth = orderEth.sub(txnEth, "HodlDex 500");
                    quantityHodl = quantityHodl.sub(txnHodl, "HodlDex 501");  
                }
                ordersFilled++;
                _increaseTransactionCount(1);
            }          
        }
        remainingHodl = quantityHodl;
    }

    function _openSellOrder(uint quantityHodl) private returns(bytes32 orderId) {
        // Do not allow low gas to result in small sell orders or sell orders to exist while buy orders exist
        if(convertHodlToUsd(quantityHodl) > MIN_ORDER_USD && buyOrderIdFifo.count() == 0) { 
            orderId = keyGen();
            (uint askUsd, /* uint accrualRate */) = rates();
            SellOrder storage o = sellOrder[orderId];
            sellOrderIdFifo.append(orderId);
            emit SellOrderOpened(orderId, msg.sender, quantityHodl, askUsd);
            balance.add(HODL_ASSET, msg.sender, 0, quantityHodl);
            o.seller = msg.sender;
            o.volumeHodl = quantityHodl;
            o.askUsd = askUsd;
            balance.sub(HODL_ASSET, msg.sender, quantityHodl, 0);
        }
    }

    /**************************************************************************************
     * Buy HodlC from sell orders, or if no sell orders, from reserve. Lastly, open a 
     * buy order is the reserve is sold out.
     * Selectable low gas protects against future EVM price changes.
     * Completes as much as possible (gas) and returns unspent Eth.
     **************************************************************************************/ 

    function buyHodlC(uint amountEth, uint lowGas) external accrueByTime ifRunning returns(bytes32 orderId) {
        emit BuyHodlCRequested(msg.sender, amountEth, lowGas);
        uint orderLimit = orderLimit();         
        uint orderUsd = convertEthToUsd(amountEth);
        require(orderUsd >= MIN_ORDER_USD, "HodlDex, < min USD ");
        require(orderUsd <= orderLimit || orderLimit == 0, "HodlDex, > max USD");
        amountEth = _fillSellOrders(amountEth, lowGas);
        amountEth = _buyFromReserve(amountEth);
        orderId = _openBuyOrder(amountEth);
    }

    function _fillSellOrders(uint amountEth, uint lowGas) private returns(uint remainingEth) {
        bytes32 orderId;
        address orderSeller;        
        uint orderEth;
        uint orderHodl;
        uint orderAsk;
        uint txnEth;
        uint txnUsd;
        uint txnHodl; 
        uint ordersFilled;

        while(sellOrderIdFifo.count() > 0 && amountEth > 0) {
            if(gasleft() < lowGas) {
                emit IncreaseGas(msg.sender, gasleft(), ordersFilled);
                return 0;
            }
            orderId = sellOrderIdFifo.first();
            SellOrder storage o = sellOrder[orderId];
            orderSeller = o.seller;
            orderHodl = o.volumeHodl; 
            orderAsk = o.askUsd;
            orderEth = _convertUsdToEth((orderHodl.mul(orderAsk)).div(PRECISION));
            
            if(orderEth == 0) {
                // Order is now too small to fill. Refund hodl and prune.
                if(orderHodl > 0) {
                    emit SellOrderRefunded(msg.sender, orderId, orderHodl);
                    balance.add(HODL_ASSET, orderSeller, orderHodl, 0);
                    balance.sub(HODL_ASSET, orderSeller, 0, orderHodl);
                }
                delete sellOrder[orderId];
                sellOrderIdFifo.remove(orderId);
            } else {                        
                txnEth = amountEth;
                txnUsd = convertEthToUsd(txnEth);
                txnHodl = txnUsd.mul(PRECISION).div(orderAsk);
                if(orderEth < txnEth) {
                    txnEth = orderEth;
                    txnHodl = orderHodl;
                }
                emit SellOrderFilled(msg.sender, orderId, orderSeller, txnEth, txnHodl);
                balance.sub(ETH_ASSET, msg.sender, txnEth, 0);
                balance.add(ETH_ASSET, orderSeller, txnEth, 0);
                balance.add(HODL_ASSET, msg.sender, txnHodl, 0);
                balance.sub(HODL_ASSET, orderSeller, 0, txnHodl);
                amountEth = amountEth.sub(txnEth, "HodlDex 503"); 

                if(orderHodl == txnHodl) {
                    delete sellOrder[orderId];
                    sellOrderIdFifo.remove(orderId);
                } else {
                    o.volumeHodl = o.volumeHodl.sub(txnHodl, "HodlDex 504");
                }
                ordersFilled++;
                _increaseTransactionCount(1);
            }
        }
        remainingEth = amountEth;
    }

    function _buyFromReserve(uint amountEth) private returns(uint remainingEth) {
        uint txnHodl;
        uint txnEth;
        uint reserveHodlBalance;
        if(amountEth > 0) {
            uint amountHodl = _convertEthToHodl(amountEth);
            reserveHodlBalance = balance.balanceOf(HODL_ASSET, address(this));
            txnHodl = (amountHodl <= reserveHodlBalance) ? amountHodl : reserveHodlBalance;
            if(txnHodl > 0) {
                txnEth = _convertHodlToEth(txnHodl);
                emit BuyFromReserve(msg.sender, txnEth, txnHodl);
                balance.sub(HODL_ASSET, address(this), txnHodl, 0);
                balance.add(HODL_ASSET, msg.sender, txnHodl, 0);
                balance.sub(ETH_ASSET, msg.sender, txnEth, 0);
                balance.increaseDistribution(ETH_ASSET, txnEth);
                amountEth = amountEth.sub(txnEth, "HodlDex 505");
                _increaseTransactionCount(1);
            }
        }
        remainingEth = amountEth;
    }

    function _openBuyOrder(uint amountEth) private returns(bytes32 orderId) {
        // do not allow low gas to open a small buy order or buy orders to exist while sell orders exist
        if(convertEthToUsd(amountEth) > MIN_ORDER_USD && sellOrderIdFifo.count() == 0) {
            orderId = keyGen();
            emit BuyOrderOpened(orderId, msg.sender, amountEth);
            BuyOrder storage o = buyOrder[orderId];
            buyOrderIdFifo.append(orderId);
            balance.sub(ETH_ASSET, msg.sender, amountEth, 0);
            o.bidEth = amountEth;
            o.buyer = msg.sender;
        }
    }
    
    /**************************************************************************************
     * Cancel orders
     **************************************************************************************/ 

    function cancelSell(bytes32 orderId) external ifRunning {
        uint volHodl;
        address orderSeller;
        emit SellOrderCancelled(msg.sender, orderId);
        SellOrder storage o = sellOrder[orderId];
        orderSeller = o.seller;
        require(o.seller == msg.sender, "HodlDex, not seller.");
        volHodl = o.volumeHodl;
        balance.add(HODL_ASSET, msg.sender, volHodl, 0);
        sellOrderIdFifo.remove(orderId);
        balance.sub(HODL_ASSET, orderSeller, 0, volHodl);
        delete sellOrder[orderId];
    }
    function cancelBuy(bytes32 orderId) external ifRunning {
        BuyOrder storage o = buyOrder[orderId];
        emit BuyOrderCancelled(msg.sender, orderId);
        require(o.buyer == msg.sender, "HodlDex, not buyer.");
        balance.add(ETH_ASSET, msg.sender, o.bidEth, 0);
        buyOrderIdFifo.remove(orderId);
        delete buyOrder[orderId];
    }
    
    /**************************************************************************************
     * External quote
     **************************************************************************************/

    function _setEthToUsd() private returns(uint ethUsd18) {
        if(eth_usd_block == block.number) return ETH_USD;
        bool success;
        (ethUsd18, success) = getEthToUsd();
        ETH_USD = ethUsd18;
        eth_usd_block = block.number;
        if(!success) {
            error_count++;
            emit EthUsdError(msg.sender, error_count, ethUsd18);
        }
        emit SetEthUsd(msg.sender, ethUsd18);
        
        // minimize possible gaps in the distribution periods
        
        balance.poke(ETH_ASSET);
        balance.poke(HODL_ASSET);
    }

    function getEthToUsd() public view returns(uint ethUsd18, bool success) {
        try oracle.read() returns(uint response) {
            ethUsd18 = response;
            success = true;
        } catch {
            ethUsd18 = ETH_USD;
        }
    }

    /**************************************************************************************
     * Prices and quotes, persistent. UniSwap inspection once per block.
     **************************************************************************************/    
    
    function _convertEthToUsd(uint amtEth) private returns(uint inUsd) {
        return amtEth.mul(_setEthToUsd()).div(PRECISION);
    }
    
    function _convertUsdToEth(uint amtUsd) private returns(uint inEth) {
        return amtUsd.mul(PRECISION).div(_convertEthToUsd(PRECISION));
    }
    
    function _convertEthToHodl(uint amtEth) private returns(uint inHodl) {
        uint inUsd = _convertEthToUsd(amtEth);
        return convertUsdToHodl(inUsd);
    }
    
    function _convertHodlToEth(uint amtHodl) private returns(uint inEth) { 
        uint inUsd = convertHodlToUsd(amtHodl);
        return _convertUsdToEth(inUsd);
    }
    
    /**************************************************************************************
     * Prices and quotes, view only.
     **************************************************************************************/    
    
    function convertEthToUsd(uint amtEth) public view returns(uint inUsd) {
        return amtEth.mul(ETH_USD).div(PRECISION);
    }
   
    function convertUsdToEth(uint amtUsd) public view returns(uint inEth) {
        return amtUsd.mul(PRECISION).div(convertEthToUsd(PRECISION));
    }
    
    function convertHodlToUsd(uint amtHodl) public override view returns(uint inUsd) {
        (uint _hodlUsd, /* uint _accrualRate */) = rates();
        return amtHodl.mul(_hodlUsd).div(PRECISION);
    }
    
    function convertUsdToHodl(uint amtUsd) public override view returns(uint inHodl) {
         (uint _hodlUsd, /* uint _accrualRate */) = rates();
        return amtUsd.mul(PRECISION).div(_hodlUsd);
    }
    
    function convertEthToHodl(uint amtEth) public view returns(uint inHodl) {
        uint inUsd = convertEthToUsd(amtEth);
        return convertUsdToHodl(inUsd);
    }
    
    function convertHodlToEth(uint amtHodl) public view returns(uint inEth) { 
        uint inUsd = convertHodlToUsd(amtHodl);
        return convertUsdToEth(inUsd);
    }

    /**************************************************************************************
     * Fund Accounts
     **************************************************************************************/ 

    function depositEth() external ifRunning payable {
        require(msg.value > 0, "You must send Eth to this function");
        emit UserDepositEth(msg.sender, msg.value);
        balance.add(ETH_ASSET, msg.sender, msg.value, 0);
    }
    
    function withdrawEth(uint amount) external virtual ifRunning {
        emit UserWithdrawEth(msg.sender, amount);
        balance.sub(ETH_ASSET, msg.sender, amount, 0);
        (bool success, /* bytes memory data */) = msg.sender.call{value:amount}("");
        require(success, "rejected by receiver"); 
    }

    /**************************************************************************************
     * Daily accrual and rate decay over time
     **************************************************************************************/ 

    function rates() public view returns(uint hodlUsd, uint dailyAccrualRate) {
        hodlUsd = HODL_USD;
        dailyAccrualRate = DAILY_ACCRUAL_RATE;
        uint startTime = BIRTHDAY.add(SLEEP_TIME);
        if(now > startTime) {
            uint daysFromStart = (now.sub(startTime)) / 1 days;
            uint daysUnprocessed = daysFromStart.sub(accrualDaysProcessed);
            if(daysUnprocessed > 0) {
                hodlUsd = HODL_USD.mul(DAILY_ACCRUAL_RATE).div(PRECISION);
                dailyAccrualRate = DAILY_ACCRUAL_RATE.mul(DAILY_ACCRUAL_RATE_DECAY).div(PRECISION);
            }
        }
    }

    /**************************************************************************************
     * Stateful activity-based and time-based rate adjustments
     **************************************************************************************/

    function _increaseTransactionCount(uint transactionCount) private {
        if(transactionCount>0) {
            uint exBefore = HODL_USD;
            uint exAfter = exBefore.add(USD_TXN_ADJUSTMENT.mul(transactionCount));
            HODL_USD = exAfter;
            emit IncreasedByTransaction(msg.sender, transactionCount, exAfter);
        }
    }
    
    function increaseTransactionCount(uint transactionCount) external onlyOracle {
        _increaseTransactionCount(transactionCount);
    }
    
    function _accrueByTime() private returns(uint hodlUsdNow, uint dailyAccrualRateNow) {
        (hodlUsdNow, dailyAccrualRateNow) = rates();
        if(hodlUsdNow != HODL_USD || dailyAccrualRateNow != DAILY_ACCRUAL_RATE) { 
            HODL_USD = hodlUsdNow;
            DAILY_ACCRUAL_RATE = dailyAccrualRateNow; 
            accrualDaysProcessed = accrualDaysProcessed + 1; 
            emit AccrueByTime(msg.sender, hodlUsdNow, dailyAccrualRateNow);
        } 
    }
    
    /**************************************************************************************
     * View functions to enumerate the state
     **************************************************************************************/
    
    // Proportional Library reads this to compute userBal:supply ratio, always using hodl 
    function circulatingSupply() external view returns(uint circulating) {
        uint reserveBalance = balance.balanceOf(HODL_ASSET, address(this));
        return TOTAL_SUPPLY.sub(reserveBalance);
    }
    
    // Open orders, FIFO
    function sellOrderCount() public view returns(uint count) { 
        return sellOrderIdFifo.count(); 
    }
    function sellOrderFirst() public view returns(bytes32 orderId) { 
        return sellOrderIdFifo.first(); 
    }
    function sellOrderLast() public view returns(bytes32 orderId) { 
        return sellOrderIdFifo.last(); 
    }  
    function sellOrderIterate(bytes32 orderId) public view returns(bytes32 idBefore, bytes32 idAfter) { 
        return(sellOrderIdFifo.previous(orderId), sellOrderIdFifo.next(orderId)); 
    }
    function buyOrderCount() public view returns(uint count) { 
        return buyOrderIdFifo.count(); 
    }
    function buyOrderFirst() public view returns(bytes32 orderId) { 
        return buyOrderIdFifo.first(); 
    }
    function buyOrderLast() public view returns(bytes32 orderId) { 
        return buyOrderIdFifo.last(); 
    }    
    function buyOrderIterate(bytes32 orderId) public view returns(bytes32 idBefore, bytes32 idAfter) { 
        return(buyOrderIdFifo.previous(orderId), buyOrderIdFifo.next(orderId)); 
    }

    function user(address userAddr) public override view returns(uint balanceEth, uint balanceHodl, uint controlledHodl) {
        return(
            balance.balanceOf(ETH_ASSET, userAddr),
            balance.balanceOf(HODL_ASSET, userAddr),
            balance.additionalControlled(HODL_ASSET, userAddr));
    }
    function isAccruing() public view returns(bool accruing) {
        return now > BIRTHDAY.add(SLEEP_TIME);
    }
    function isConfigured() public view returns(bool initialized) {
        return address(oracle) != UNDEFINED;
    }
    function isRunning() public view returns(bool running) {
        return getRoleMemberCount(MIGRATION_ROLE) == 0;
    }
    function orderLimit() public view returns(uint limitUsd) {
        (uint askUsd, /* uint accrualRate */) = rates();
        return (askUsd > MAX_THRESHOLD_USD) ? 0 : MAX_ORDER_FACTOR * askUsd;
    }
    
    /**************************************************************************************
     * Explore the Proportional Distribution State and internal User Balance History
     **************************************************************************************/ 
    
    function period() external view returns(uint _period) {
        return balance.period();
    }

    // The next unclaimed distribution that will be processed when the user claims it.

    function nextUserDistributionDetails(address userAddr, bytes32 assetId) external view returns(
        uint amount,
        uint balanceIndex,
        uint distributionIndex,
        bool closed)
    {
        (amount, balanceIndex, distributionIndex, closed) = balance.nextUserDistributionDetails(assetId, userAddr);
    }

    function distributionCount(bytes32 assetId) external view returns(uint count) {
        count = balance.distributionCount(assetId);
    }

    function distributionAtIndex(bytes32 assetId, uint index) external view returns(uint denominator, uint amount, uint _period) {
        return balance.distributionAtIndex(assetId, index);
    }

    // User balance history

    function userBalanceCount(bytes32 assetId, address userAddr) external view returns(uint count) {
        return balance.userBalanceCount(assetId, userAddr);
    }

    function userBalanceAtIndex(bytes32 assetId, address userAddr, uint index) external view returns(uint userBalance, uint controlled, uint _period) {
        return balance.userBalanceAtIndex(assetId, userAddr, index);
    }

    /**************************************************************************************
     * Initialization functions that support data migration
     **************************************************************************************/  
     
    function init(IHTokenReserve _tokenReserve, IHOracle _oracle) external initializer() {
        
        accrualDaysProcessed = _accrualDaysProcessed;
        HODL_USD = _HODL_USD;
        DAILY_ACCRUAL_RATE = _DAILY_ACCRUAL_RATE;

        assetIds.push(HODL_ASSET);
        assetIds.push(ETH_ASSET);
        
        // initialize Proportional Assets
        balance.init(assetIds, HODL_ASSET, now, DISTRIBUTION_PERIOD, address(this));
        
        // assign the total hodlc supply to the hodlc reserve
        balance.add(HODL_ASSET, address(this), TOTAL_SUPPLY, 0);
        
        // contract instances
        oracle = _oracle;
        tokenReserve = _tokenReserve;       
        
        // configure access control
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _setupRole(ADMIN_ROLE, msg.sender);
        _setupRole(ORACLE_ROLE, msg.sender);
        _setupRole(MIGRATION_ROLE, msg.sender);
        _setupRole(RESERVE_ROLE, address(_tokenReserve));
        
        emit InitConfigure(msg.sender, _tokenReserve, _oracle); 
    }

    function initSetDailyAccrualRate(uint rateAsDecimal18) external onlyMigration {
        DAILY_ACCRUAL_RATE = rateAsDecimal18;
        emit SetDailyAccrualRate(msg.sender, rateAsDecimal18);
    }    

    function initUser(address userAddr, uint hodl) external onlyMigration payable {
        balance.add(ETH_ASSET, userAddr, msg.value, 0);
        balance.add(HODL_ASSET, userAddr, hodl, 0);
        balance.sub(HODL_ASSET, address(this), hodl, 0);
        emit UserInitialized(msg.sender, userAddr, hodl, msg.value);
    }
    
    function initResetUser(address userAddr) external virtual onlyMigration {
        emit UserUninitialized(msg.sender, userAddr);
        balance.add(HODL_ASSET, address(this), balance.balanceOf(HODL_ASSET, userAddr), 0);
        balance.sub(HODL_ASSET, userAddr, balance.balanceOf(HODL_ASSET, userAddr), 0);
        balance.sub(ETH_ASSET, userAddr, balance.balanceOf(ETH_ASSET, userAddr), 0);
        if(balance.balanceOf(ETH_ASSET, userAddr) > 0) {
            (bool success, /* bytes memory data */) = msg.sender.call{ value: balance.balanceOf(ETH_ASSET, userAddr) }("");
            require(success, "rejected by receiver");
        }
    }
    
    // Revoking the last Migration_Role member starts trading (isRunning). Ensure backup ETH_USD is set.
    function revokeRole(bytes32 role, address account) public override {
        require(ETH_USD > 0, "HodlDex, Set EthUsd");
        AccessControl.revokeRole(role, account);
    }
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"hodlUsdNow","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"dailyAccrualRateNow","type":"uint256"}],"name":"AccrueByTime","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"txnEth","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"txnHodl","type":"uint256"}],"name":"BuyFromReserve","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountEth","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lowGas","type":"uint256"}],"name":"BuyHodlCRequested","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"userAddr","type":"address"},{"indexed":true,"internalType":"bytes32","name":"orderId","type":"bytes32"}],"name":"BuyOrderCancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"seller","type":"address"},{"indexed":true,"internalType":"bytes32","name":"orderId","type":"bytes32"},{"indexed":true,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"txnEth","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"txnHodl","type":"uint256"}],"name":"BuyOrderFilled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"orderedId","type":"bytes32"},{"indexed":true,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountEth","type":"uint256"}],"name":"BuyOrderOpened","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"seller","type":"address"},{"indexed":true,"internalType":"bytes32","name":"orderId","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"refundedEth","type":"uint256"}],"name":"BuyOrderRefunded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"errorCount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethUsd","type":"uint256"}],"name":"EthUsdError","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"HodlDistributionAllocated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountUsd","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountHodl","type":"uint256"}],"name":"HodlTIssued","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountUsd","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountHodl","type":"uint256"}],"name":"HodlTRedeemed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"gasLeft","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ordersFilled","type":"uint256"}],"name":"IncreaseGas","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"transactionCount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newHodlUsd","type":"uint256"}],"name":"IncreasedByTransaction","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"contract IHTokenReserve","name":"tokenReserve","type":"address"},{"indexed":false,"internalType":"contract IHOracle","name":"oracle","type":"address"}],"name":"InitConfigure","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"InternalTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"admin","type":"address"},{"indexed":false,"internalType":"address","name":"oracle","type":"address"}],"name":"OracleSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"seller","type":"address"},{"indexed":false,"internalType":"uint256","name":"quantityHodl","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lowGas","type":"uint256"}],"name":"SellHodlCRequested","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"userAddr","type":"address"},{"indexed":true,"internalType":"bytes32","name":"orderId","type":"bytes32"}],"name":"SellOrderCancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"buyer","type":"address"},{"indexed":true,"internalType":"bytes32","name":"orderId","type":"bytes32"},{"indexed":true,"internalType":"address","name":"seller","type":"address"},{"indexed":false,"internalType":"uint256","name":"txnEth","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"txnHodl","type":"uint256"}],"name":"SellOrderFilled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"orderId","type":"bytes32"},{"indexed":true,"internalType":"address","name":"seller","type":"address"},{"indexed":false,"internalType":"uint256","name":"quantityHodl","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"askUsd","type":"uint256"}],"name":"SellOrderOpened","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"seller","type":"address"},{"indexed":true,"internalType":"bytes32","name":"orderId","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"refundedHodl","type":"uint256"}],"name":"SellOrderRefunded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"admin","type":"address"},{"indexed":false,"internalType":"uint256","name":"dailyAccrualRate","type":"uint256"}],"name":"SetDailyAccrualRate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"setter","type":"address"},{"indexed":false,"internalType":"uint256","name":"ethUsd18","type":"uint256"}],"name":"SetEthUsd","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountEth","type":"uint256"}],"name":"UserDepositEth","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"admin","type":"address"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"hodlCR","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethCR","type":"uint256"}],"name":"UserInitialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"admin","type":"address"},{"indexed":true,"internalType":"address","name":"user","type":"address"}],"name":"UserUninitialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountEth","type":"uint256"}],"name":"UserWithdrawEth","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ETH_ASSET","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ETH_USD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"HODL_ASSET","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIGRATION_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ORACLE_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESERVE_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"accrualDaysProcessed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IHOracle","name":"_oracle","type":"address"}],"name":"adminSetOracle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountHodl","type":"uint256"}],"name":"allocateDistribution","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountEth","type":"uint256"},{"internalType":"uint256","name":"lowGas","type":"uint256"}],"name":"buyHodlC","outputs":[{"internalType":"bytes32","name":"orderId","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"buyOrder","outputs":[{"internalType":"address","name":"buyer","type":"address"},{"internalType":"uint256","name":"bidEth","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyOrderCount","outputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyOrderFirst","outputs":[{"internalType":"bytes32","name":"orderId","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"orderId","type":"bytes32"}],"name":"buyOrderIterate","outputs":[{"internalType":"bytes32","name":"idBefore","type":"bytes32"},{"internalType":"bytes32","name":"idAfter","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyOrderLast","outputs":[{"internalType":"bytes32","name":"orderId","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"orderId","type":"bytes32"}],"name":"cancelBuy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"orderId","type":"bytes32"}],"name":"cancelSell","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"circulatingSupply","outputs":[{"internalType":"uint256","name":"circulating","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimEthDistribution","outputs":[{"internalType":"uint256","name":"amountEth","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimHodlDistribution","outputs":[{"internalType":"uint256","name":"amountHodl","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amtEth","type":"uint256"}],"name":"convertEthToHodl","outputs":[{"internalType":"uint256","name":"inHodl","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amtEth","type":"uint256"}],"name":"convertEthToUsd","outputs":[{"internalType":"uint256","name":"inUsd","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amtHodl","type":"uint256"}],"name":"convertHodlToEth","outputs":[{"internalType":"uint256","name":"inEth","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amtHodl","type":"uint256"}],"name":"convertHodlToUsd","outputs":[{"internalType":"uint256","name":"inUsd","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amtUsd","type":"uint256"}],"name":"convertUsdToEth","outputs":[{"internalType":"uint256","name":"inEth","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amtUsd","type":"uint256"}],"name":"convertUsdToHodl","outputs":[{"internalType":"uint256","name":"inHodl","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"depositEth","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"assetId","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"distributionAtIndex","outputs":[{"internalType":"uint256","name":"denominator","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"_period","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"assetId","type":"bytes32"}],"name":"distributionCount","outputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"entropy_counter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"error_count","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"eth_usd_block","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getEthToUsd","outputs":[{"internalType":"uint256","name":"ethUsd18","type":"uint256"},{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountUsd","type":"uint256"}],"name":"hodlTIssue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountUsd","type":"uint256"}],"name":"hodlTRedeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"transactionCount","type":"uint256"}],"name":"increaseTransactionCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IHTokenReserve","name":"_tokenReserve","type":"address"},{"internalType":"contract IHOracle","name":"_oracle","type":"address"}],"name":"init","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"userAddr","type":"address"}],"name":"initResetUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"rateAsDecimal18","type":"uint256"}],"name":"initSetDailyAccrualRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"userAddr","type":"address"},{"internalType":"uint256","name":"hodl","type":"uint256"}],"name":"initUser","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"isAccruing","outputs":[{"internalType":"bool","name":"accruing","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isConfigured","outputs":[{"internalType":"bool","name":"initialized","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRunning","outputs":[{"internalType":"bool","name":"running","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddr","type":"address"},{"internalType":"bytes32","name":"assetId","type":"bytes32"}],"name":"nextUserDistributionDetails","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"balanceIndex","type":"uint256"},{"internalType":"uint256","name":"distributionIndex","type":"uint256"},{"internalType":"bool","name":"closed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oracleContract","outputs":[{"internalType":"contract IHOracle","name":"_oracle","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"ethUsd","type":"uint256"}],"name":"oracleSetEthUsd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"orderLimit","outputs":[{"internalType":"uint256","name":"limitUsd","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"period","outputs":[{"internalType":"uint256","name":"_period","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poke","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rates","outputs":[{"internalType":"uint256","name":"hodlUsd","type":"uint256"},{"internalType":"uint256","name":"dailyAccrualRate","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantityHodl","type":"uint256"},{"internalType":"uint256","name":"lowGas","type":"uint256"}],"name":"sellHodlC","outputs":[{"internalType":"bytes32","name":"orderId","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"sellOrder","outputs":[{"internalType":"address","name":"seller","type":"address"},{"internalType":"uint256","name":"volumeHodl","type":"uint256"},{"internalType":"uint256","name":"askUsd","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellOrderCount","outputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellOrderFirst","outputs":[{"internalType":"bytes32","name":"orderId","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"orderId","type":"bytes32"}],"name":"sellOrderIterate","outputs":[{"internalType":"bytes32","name":"idBefore","type":"bytes32"},{"internalType":"bytes32","name":"idAfter","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellOrderLast","outputs":[{"internalType":"bytes32","name":"orderId","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenReserveContract","outputs":[{"internalType":"contract IHTokenReserve","name":"_reserve","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddr","type":"address"}],"name":"user","outputs":[{"internalType":"uint256","name":"balanceEth","type":"uint256"},{"internalType":"uint256","name":"balanceHodl","type":"uint256"},{"internalType":"uint256","name":"controlledHodl","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"assetId","type":"bytes32"},{"internalType":"address","name":"userAddr","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"userBalanceAtIndex","outputs":[{"internalType":"uint256","name":"userBalance","type":"uint256"},{"internalType":"uint256","name":"controlled","type":"uint256"},{"internalType":"uint256","name":"_period","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"assetId","type":"bytes32"},{"internalType":"address","name":"userAddr","type":"address"}],"name":"userBalanceCount","outputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawEth","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50615657806100206000396000f3fe6080604052600436106104055760003560e01c806375b238fc11610213578063bece753211610123578063e2ee29c3116100ab578063ef78d4fd1161007a578063ef78d4fd14610dd2578063f09a401614610de7578063f4f06eed14610e22578063f58c7acf14610e52578063f5f593a714610e6757610405565b8063e2ee29c314610d54578063e77349e714610d69578063e84abef114610d7e578063ece7ddbf14610da857610405565b8063d1e3175a116100f2578063d1e3175a14610cc7578063d26d1fe614610cdc578063d3a057c814610cf1578063d547741f14610d06578063e286bca514610d3f57610405565b8063bece753214610c34578063c086381e14610c49578063c311d04914610c73578063ca15c87314610c9d57610405565b806391d14854116101a6578063a217fddf11610175578063a217fddf14610b8a578063a3053e2a14610b9f578063b1eb816f14610bc9578063bc50040914610bf5578063bcffe5f414610c0a57610405565b806391d1485414610ae85780639358928b14610b21578063947b938314610b365780639e3202c914610b6057610405565b806384433221116101e25780638443322114610a10578063896e9ce014610a3a5780638eb6ac7a14610a4f5780639010d07c14610a9c57610405565b806375b238fc1461098957806375c303c91461099e5780637b4e610a146109b357806381e7e20e146109dd57610405565b80632b6fb51d11610319578063439370b1116102a15780634f8c4a45116102705780634f8c4a45146108ce578063519baf94146108e35780635f07cbc2146108f857806361d21875146109225780636260f55b1461097457610405565b8063439370b11461084457806343f48fbd1461084c57806346debf311461087a5780634d7de20c146108b957610405565b8063363ecbc0116102e8578063363ecbc01461079357806336568abe146107cc578063376fe05b1461080557806339c6d4cb1461081a5780633fb7a0ab1461082f57610405565b80632b6fb51d1461069c5780632cdf21f3146106fd5780632f2ff15d146107275780632f81b5df1461076057610405565b8063191fd57d1161039c5780632014e5d11161036b5780632014e5d1146105d7578063248a9ca314610600578063284fef4b1461062a5780632949f19e1461063f5780632b0eec971461067257610405565b8063191fd57d146105355780631b4d76771461054a5780631b7c7ea71461055f5780631d8f8f4b1461058957610405565b8063164cded6116103d8578063164cded6146104b157806316f30a7b146104db578063181783581461050b5780631911e5221461052057610405565b8063076299de1461040a57806307e2cea5146104365780630cc6e0191461045d5780630ef8e55014610487575b600080fd5b34801561041657600080fd5b506104346004803603602081101561042d57600080fd5b5035610e95565b005b34801561044257600080fd5b5061044b611012565b60408051918252519081900360200190f35b34801561046957600080fd5b506104346004803603602081101561048057600080fd5b5035611035565b34801561049357600080fd5b5061044b600480360360208110156104aa57600080fd5b5035611193565b3480156104bd57600080fd5b50610434600480360360208110156104d457600080fd5b50356111b3565b3480156104e757600080fd5b5061044b600480360360408110156104fe57600080fd5b5080359060200135611334565b34801561051757600080fd5b5061043461149f565b34801561052c57600080fd5b5061044b6114f8565b34801561054157600080fd5b5061044b61150a565b34801561055657600080fd5b5061044b61152e565b34801561056b57600080fd5b506104346004803603602081101561058257600080fd5b5035611534565b34801561059557600080fd5b506105b9600480360360408110156105ac57600080fd5b5080359060200135611670565b60408051938452602084019290925282820152519081900360600190f35b3480156105e357600080fd5b506105ec611693565b604080519115158252519081900360200190f35b34801561060c57600080fd5b5061044b6004803603602081101561062357600080fd5b50356116c8565b34801561063657600080fd5b5061044b6116dd565b34801561064b57600080fd5b506104346004803603602081101561066257600080fd5b50356001600160a01b03166116f8565b34801561067e57600080fd5b5061044b6004803603602081101561069557600080fd5b50356117c2565b3480156106a857600080fd5b506106d5600480360360408110156106bf57600080fd5b506001600160a01b0381351690602001356117db565b6040805194855260208501939093528383019190915215156060830152519081900360800190f35b34801561070957600080fd5b5061044b6004803603602081101561072057600080fd5b5035611802565b34801561073357600080fd5b506104346004803603604081101561074a57600080fd5b50803590602001356001600160a01b0316611819565b34801561076c57600080fd5b506104346004803603602081101561078357600080fd5b50356001600160a01b0316611885565b34801561079f57600080fd5b5061044b600480360360408110156107b657600080fd5b50803590602001356001600160a01b0316611b1b565b3480156107d857600080fd5b50610434600480360360408110156107ef57600080fd5b50803590602001356001600160a01b0316611b36565b34801561081157600080fd5b5061044b611b97565b34801561082657600080fd5b5061044b611c0c565b34801561083b57600080fd5b5061044b611c32565b610434611c38565b34801561085857600080fd5b50610861611d24565b6040805192835260208301919091528051918290030190f35b34801561088657600080fd5b506105b96004803603606081101561089d57600080fd5b508035906001600160a01b036020820135169060400135611df1565b3480156108c557600080fd5b5061044b611e18565b3480156108da57600080fd5b5061044b611e24565b3480156108ef57600080fd5b5061044b611e40565b34801561090457600080fd5b506104346004803603602081101561091b57600080fd5b5035611e4c565b34801561092e57600080fd5b5061094c6004803603602081101561094557600080fd5b5035611fbb565b604080516001600160a01b039094168452602084019290925282820152519081900360600190f35b34801561098057600080fd5b5061044b611fe6565b34801561099557600080fd5b5061044b611fec565b3480156109aa57600080fd5b5061044b61200e565b3480156109bf57600080fd5b50610434600480360360208110156109d657600080fd5b503561203e565b3480156109e957600080fd5b506105b960048036036020811015610a0057600080fd5b50356001600160a01b03166120f7565b348015610a1c57600080fd5b5061086160048036036020811015610a3357600080fd5b503561218e565b348015610a4657600080fd5b506105ec6121bc565b348015610a5b57600080fd5b50610a7960048036036020811015610a7257600080fd5b50356121dc565b604080516001600160a01b03909316835260208301919091528051918290030190f35b348015610aa857600080fd5b50610acc60048036036040811015610abf57600080fd5b5080359060200135612201565b604080516001600160a01b039092168252519081900360200190f35b348015610af457600080fd5b506105ec60048036036040811015610b0b57600080fd5b50803590602001356001600160a01b031661221f565b348015610b2d57600080fd5b5061044b61223d565b348015610b4257600080fd5b5061044b60048036036020811015610b5957600080fd5b503561228b565b348015610b6c57600080fd5b5061044b60048036036020811015610b8357600080fd5b50356122b5565b348015610b9657600080fd5b5061044b6122df565b348015610bab57600080fd5b5061044b60048036036020811015610bc257600080fd5b50356122e4565b61043460048036036040811015610bdf57600080fd5b506001600160a01b038135169060200135612312565b348015610c0157600080fd5b5061044b612463565b348015610c1657600080fd5b5061086160048036036020811015610c2d57600080fd5b503561246f565b348015610c4057600080fd5b50610acc612494565b348015610c5557600080fd5b5061044b60048036036020811015610c6c57600080fd5b50356124a3565b348015610c7f57600080fd5b5061043460048036036020811015610c9657600080fd5b50356124c6565b348015610ca957600080fd5b5061044b60048036036020811015610cc057600080fd5b50356125b3565b348015610cd357600080fd5b5061044b6125ca565b348015610ce857600080fd5b5061044b6125d6565b348015610cfd57600080fd5b506105ec6125dc565b348015610d1257600080fd5b5061043460048036036040811015610d2957600080fd5b50803590602001356001600160a01b03166125ed565b348015610d4b57600080fd5b50610acc612644565b348015610d6057600080fd5b5061044b612653565b348015610d7557600080fd5b5061044b6126c7565b348015610d8a57600080fd5b5061043460048036036020811015610da157600080fd5b50356126cd565b348015610db457600080fd5b5061043460048036036020811015610dcb57600080fd5b5035612746565b348015610dde57600080fd5b5061044b6127fd565b348015610df357600080fd5b5061043460048036036040811015610e0a57600080fd5b506001600160a01b0381358116916020013516612809565b348015610e2e57600080fd5b5061044b60048036036040811015610e4557600080fd5b5080359060200135612aca565b348015610e5e57600080fd5b5061044b612c2d565b348015610e7357600080fd5b50610e7c612c39565b6040805192835290151560208301528051918290030190f35b610e9d611693565b610edc576040805162461bcd60e51b81526020600482015260176024820152600080516020615508833981519152604482015290519081900360640190fd5b60035460408051631a59529f60e21b81523360048201526024810184905290516000926001600160a01b0316916369654a7c91604480830192602092919082900301818787803b158015610f2f57600080fd5b505af1158015610f43573d6000803e3d6000fd5b505050506040513d6020811015610f5957600080fd5b50516040805184815260208101839052815192935033927fbd267c282682c91617691bf34eae6225f9241bf30f0bcc0f7bcfb98ff03ce31d929181900390910190a260408051631213d11360e21b81529051908190036004019020610fca90600c903384600063ffffffff612cc816565b60408051631213d11360e21b8152905190819003600401902060035461100491600c916001600160a01b031684600063ffffffff612ed916565b5061100d61323e565b505050565b604080516a4f7261636c6520526f6c6560a81b8152905190819003600b01902081565b61103d611693565b61107c576040805162461bcd60e51b81526020600482015260176024820152600080516020615508833981519152604482015290519081900360640190fd5b604080516b5265736572766520526f6c6560a01b8152905190819003600c0190206110a7903361221f565b6110ef576040805162461bcd60e51b81526020600482015260146024820152732437b2362232bc101a1819903932b9b2b93b329760611b604482015290519081900360640190fd5b604080513381526020810183905281517f8b476ddf0ff11f47272c435b662b2534d5469ed9f10fb084c37f17b028cb459d929181900390910190a160408051631213d11360e21b8152905190819003600401902060035461116491600c916001600160a01b031684600063ffffffff612cc816565b60408051631213d11360e21b8152905190819003600401902061119090600c908363ffffffff6132bd16565b50565b60008061119f836124a3565b90506111aa8161228b565b9150505b919050565b6111bb611693565b6111fa576040805162461bcd60e51b81526020600482015260176024820152600080516020615508833981519152604482015290519081900360640190fd5b6040516000908190839033907fdcb012e920167d8bdd0acebd98c41971b08b206986f2c59f3458fbe83c8e1d14908490a350600082815260116020526040902080546001600160a01b031690338214611291576040805162461bcd60e51b81526020600482015260146024820152732437b2362232bc16103737ba1039b2b63632b91760611b604482015290519081900360640190fd5b600181015460408051631213d11360e21b815290519081900360040190209093506112c890600c903386600063ffffffff612ed916565b6112d960138563ffffffff6133af16565b60408051631213d11360e21b8152905190819003600401902061130890600c908460008763ffffffff612cc816565b505050600090815260116020526040812080546001600160a01b03191681556001810182905560020155565b600061133e611693565b61137d576040805162461bcd60e51b81526020600482015260176024820152600080516020615508833981519152604482015290519081900360640190fd5b6040805184815260208101849052815133927f9245568088742ccfdfc1dc58f9ad4f31812911170582b5cce5c4f48c86667711928290030190a260006113c2846122b5565b905060006113ce61200e565b90506802b5e3af16b1880000821015611423576040805162461bcd60e51b8152602060048201526012602482015271121bd91b11195e0b080f081b5a5b881554d160721b604482015290519081900360640190fd5b8082111580611430575080155b611476576040805162461bcd60e51b8152602060048201526012602482015271121bd91b11195e0b080f881b585e081554d160721b604482015290519081900360640190fd5b61148085856134dd565b945061148b85613814565b9250505061149761323e565b505092915050565b6114a7611693565b6114e6576040805162461bcd60e51b81526020600482015260176024820152600080516020615508833981519152604482015290519081900360640190fd5b6114ee61323e565b505061119061393d565b60006115046013613a4f565b90505b90565b604080516b5265736572766520526f6c6560a01b8152905190819003600c01902081565b600a5481565b61153c611693565b61157b576040805162461bcd60e51b81526020600482015260176024820152600080516020615508833981519152604482015290519081900360640190fd5b60008181526012602052604080822090519091839133917fbfd8eba8b6bbf7710760c1e5784271756899dfda53eccf56257e64e40c7f6fc191a380546001600160a01b03163314611609576040805162461bcd60e51b81526020600482015260136024820152722437b2362232bc16103737ba10313abcb2b91760691b604482015290519081900360640190fd5b604080516208ae8d60eb1b81529051908190036003019020600182015461163c91600c913390600063ffffffff612ed916565b61164d60188363ffffffff6133af16565b50600090815260126020526040812080546001600160a01b031916815560010155565b60008080611686600c868663ffffffff613a5616565b9250925092509250925092565b604080516d4d6967726174696f6e20526f6c6560901b8152905190819003600e0190206000906116c2906125b3565b15905090565b60009081526001602052604090206002015490565b604080516208ae8d60eb1b8152905190819003600301902081565b604080516941646d696e20526f6c6560b01b8152905190819003600a019020611721903361221f565b611766576040805162461bcd60e51b81526020600482015260116024820152702437b2362232bc101a18199030b236b4b760791b604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b03831690811790915560408051338152602081019290925280517fc1d3048301c0d23629a2532c8defa6d68f8e1a0e4157918769e9fb1b2eeb888e9281900390910190a150565b60006117d5600c8363ffffffff613adc16565b92915050565b60008080806117f2600c868863ffffffff613af116565b9299919850965090945092505050565b60008061180e836122b5565b90506111aa816122e4565b60008281526001602052604090206002015461183c90611837613c18565b61221f565b6118775760405162461bcd60e51b815260040180806020018281038252602f8152602001806154af602f913960400191505060405180910390fd5b6118818282613c1c565b5050565b604080516d4d6967726174696f6e20526f6c6560901b8152905190819003600e0190206118b2903361221f565b6118fb576040805162461bcd60e51b81526020600482015260156024820152742437b2362232bc101a18199036b4b3b930ba34b7b760591b604482015290519081900360640190fd5b6040805133815290516001600160a01b038316917f4255b5dbb103b3831869724bf926f5cc492b23b18ae956dacbe85ab455977a31919081900360200190a260408051631213d11360e21b8082528251918290036004908101832091835292519182900390920190206119909190309061197e90600c908663ffffffff613c8b16565b600c929190600063ffffffff612ed916565b60408051631213d11360e21b8082528251918290036004908101832091835292519182900390920190206119e6919083906119d490600c908363ffffffff613c8b16565b600c929190600063ffffffff612cc816565b604080516208ae8d60eb1b808252825191829003600390810183209183529251918290039092019020611a29919083906119d490600c908363ffffffff613c8b16565b604080516208ae8d60eb1b81529051908190036003019020600090611a5790600c908463ffffffff613c8b16565b111561119057604080516208ae8d60eb1b815290519081900360030190206000903390611a8d90600c908563ffffffff613c8b16565b604051600081818185875af1925050503d8060008114611ac9576040519150601f19603f3d011682016040523d82523d6000602084013e611ace565b606091505b5050905080611881576040805162461bcd60e51b81526020600482015260146024820152733932b532b1ba32b210313c903932b1b2b4bb32b960611b604482015290519081900360640190fd5b6000611b2f600c848463ffffffff613cff16565b9392505050565b611b3e613c18565b6001600160a01b0316816001600160a01b031614611b8d5760405162461bcd60e51b815260040180806020018281038252602f8152602001806155f3602f913960400191505060405180910390fd5b6118818282613d2e565b6000611ba1611693565b611be0576040805162461bcd60e51b81526020600482015260176024820152600080516020615508833981519152604482015290519081900360640190fd5b60408051631213d11360e21b8152905190819003600401902061150490600c903363ffffffff613d9d16565b604080516d4d6967726174696f6e20526f6c6560901b8152905190819003600e01902081565b60085481565b611c40611693565b611c7f576040805162461bcd60e51b81526020600482015260176024820152600080516020615508833981519152604482015290519081900360640190fd5b60003411611cbe5760405162461bcd60e51b81526004018080602001828103825260228152602001806155586022913960400191505060405180910390fd5b60408051348152905133917f67b91a3e1f20688667199fd4acb8590a39e93b3f50cb3253c74003c6d98de78b919081900360200190a2604080516208ae8d60eb1b81529051908190036003019020611d2290600c903334600063ffffffff612ed916565b565b6006546007546000611d43635f1f7dad62278d0063ffffffff613f3c16565b905080421115611dec57600062015180611d63428463ffffffff613f9616565b81611d6a57fe5b0490506000611d8460055483613f9690919063ffffffff16565b90508015611de957611dbb670de0b6b3a7640000611daf600754600654613fd890919063ffffffff16565b9063ffffffff61403116565b9450611de6670de0b6b3a7640000611daf670de0b68e11c8d5e0600754613fd890919063ffffffff16565b93505b50505b509091565b60008080611e08600c87878763ffffffff61407316565b9250925092505b93509350939050565b600061150460186140de565b60408051631213d11360e21b8152905190819003600401902081565b600061150460136140de565b611e54611693565b611e93576040805162461bcd60e51b81526020600482015260176024820152600080516020615508833981519152604482015290519081900360640190fd5b6003546040805163aa94810160e01b81523360048201526024810184905290516000926001600160a01b03169163aa94810191604480830192602092919082900301818787803b158015611ee657600080fd5b505af1158015611efa573d6000803e3d6000fd5b505050506040513d6020811015611f1057600080fd5b50516040805184815260208101839052815192935033927fc757c794593897ec78643a3b1ae1d2ab4eb6840e9a01b6fd2f64c7c500fe88c7929181900390910190a260408051631213d11360e21b81529051908190036004019020611f8190600c903384600063ffffffff612ed916565b60408051631213d11360e21b8152905190819003600401902060035461100491600c916001600160a01b031684600063ffffffff612cc816565b6011602052600090815260409020805460018201546002909201546001600160a01b03909116919083565b600b5481565b604080516941646d696e20526f6c6560b01b8152905190819003600a01902081565b600080612019611d24565b509050678ac7230489e800008111612035578061138802612038565b60005b91505090565b604080516d4d6967726174696f6e20526f6c6560901b8152905190819003600e01902061206b903361221f565b6120b4576040805162461bcd60e51b81526020600482015260156024820152742437b2362232bc101a18199036b4b3b930ba34b7b760591b604482015290519081900360640190fd5b6007819055604080513381526020810183905281517fd9c7ef198bbeb680fb4c70a0f01e1d6d1826dbc6cdc426fd1ab3aa1d059c71cd929181900390910190a150565b604080516208ae8d60eb1b815290519081900360030190206000908190819061212990600c908663ffffffff613c8b16565b60408051631213d11360e21b8152905190819003600401902061215590600c908763ffffffff613c8b16565b60408051631213d11360e21b8152905190819003600401902061218190600c908863ffffffff6140e216565b9250925092509193909250565b6000806121a260138463ffffffff61415716565b6121b360138563ffffffff6141c716565b91509150915091565b60006121d5635f1f7dad62278d0063ffffffff613f3c16565b4211905090565b601260205260009081526040902080546001909101546001600160a01b039091169082565b6000828152600160205260408120611b2f908363ffffffff61423416565b6000828152600160205260408120611b2f908363ffffffff61424016565b60408051631213d11360e21b81529051908190036004019020600090819061226e90600c903063ffffffff613c8b16565b90506120386a108b2a2c280290940000008263ffffffff613f9616565b600080612296611d24565b5090506111aa81611daf85670de0b6b3a764000063ffffffff613fd816565b6000806122c0611d24565b5090506111aa670de0b6b3a7640000611daf858463ffffffff613fd816565b600081565b60006117d56122fa670de0b6b3a76400006124a3565b611daf84670de0b6b3a764000063ffffffff613fd816565b604080516d4d6967726174696f6e20526f6c6560901b8152905190819003600e01902061233f903361221f565b612388576040805162461bcd60e51b81526020600482015260156024820152742437b2362232bc101a18199036b4b3b930ba34b7b760591b604482015290519081900360640190fd5b604080516208ae8d60eb1b815290519081900360030190206123b690600c908434600063ffffffff612ed916565b60408051631213d11360e21b815290519081900360040190206123e590600c908484600063ffffffff612ed916565b60408051631213d11360e21b8152905190819003600401902061241490600c903084600063ffffffff612cc816565b6040805133815260208101839052348183015290516001600160a01b038416917f3115c5c0a6de7cd7ce400fd4027f87c0d355dfef893e17cc1cc2db2782a0f9f7919081900360600190a25050565b60006115046018613a4f565b60008061248360188463ffffffff61415716565b6121b360188563ffffffff6141c716565b6002546001600160a01b031690565b60006117d5670de0b6b3a7640000611daf600b5485613fd890919063ffffffff16565b6124ce611693565b61250d576040805162461bcd60e51b81526020600482015260176024820152600080516020615508833981519152604482015290519081900360640190fd5b60408051828152905133917f654c7a7e59538b4e27a577ef2208b1f7cdcaf35938c4bb6288c945261702a56f919081900360200190a2604080516208ae8d60eb1b8152905190819003600301902061257190600c903384600063ffffffff612cc816565b604051600090339083908381818185875af1925050503d8060008114611ac9576040519150601f19603f3d011682016040523d82523d6000602084013e611ace565b60008181526001602052604081206117d590614255565b60006115046018614260565b60055481565b6002546001600160a01b0316151590565b6000600b541161263a576040805162461bcd60e51b8152602060048201526013602482015272121bd91b11195e0b0814d95d08115d1a155cd9606a1b604482015290519081900360640190fd5b611881828261426e565b6003546001600160a01b031690565b600061265d611693565b61269c576040805162461bcd60e51b81526020600482015260176024820152600080516020615508833981519152604482015290519081900360640190fd5b604080516208ae8d60eb1b8152905190819003600301902061150490600c903363ffffffff613d9d16565b60095481565b604080516a4f7261636c6520526f6c6560a81b8152905190819003600b0190206126f7903361221f565b61273d576040805162461bcd60e51b8152602060048201526012602482015271486f646c44657820343033206f7261636c6560701b604482015290519081900360640190fd5b611190816142c7565b604080516a4f7261636c6520526f6c6560a81b8152905190819003600b019020612770903361221f565b6127b6576040805162461bcd60e51b8152602060048201526012602482015271486f646c44657820343033206f7261636c6560701b604482015290519081900360640190fd5b600b81905543600955604080513381526020810183905281517f0a4debdfc51da746dcb19f892eac110ce7d5d1c86475813bc7940be5c100eab4929181900390910190a150565b6000611504600c614346565b600054610100900460ff16806128225750612822614390565b80612830575060005460ff16155b61286b5760405162461bcd60e51b815260040180806020018281038252602e81526020018061557a602e913960400191505060405180910390fd5b600054610100900460ff16158015612896576000805460ff1961ff0019909116610100171660011790555b6036600555671288ea08902abe9b600655670de76f8f81cd664a60075560408051631213d11360e21b8082528251918290036004908101832081546001818101845560008481527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b928301939093556208ae8d60eb1b86528651958690036003018620845491820185559284905201559082529151908190038201902061294b91600c914262278d003063ffffffff61439616565b60408051631213d11360e21b8152905190819003600401902061298590600c90306a108b2a2c28029094000000600063ffffffff612ed916565b600280546001600160a01b038085166001600160a01b03199283161790925560038054928616929091169190911790556129c0600033611877565b604080516941646d696e20526f6c6560b01b8152905190819003600a0190206129e99033611877565b604080516a4f7261636c6520526f6c6560a81b8152905190819003600b019020612a139033611877565b604080516d4d6967726174696f6e20526f6c6560901b8152905190819003600e019020612a409033611877565b604080516b5265736572766520526f6c6560a01b8152905190819003600c019020612a6b9084611877565b604080513381526001600160a01b03808616602083015284168183015290517fc437298f2d0663a10608d6add1ccfa44ae2a4bd3efcdc2fd427f7afb360d22e59181900360600190a1801561100d576000805461ff0019169055505050565b6000612ad4611693565b612b13576040805162461bcd60e51b81526020600482015260176024820152600080516020615508833981519152604482015290519081900360640190fd5b6040805184815260208101849052815133927fee9b02d9722b4950f646ec7e40d75e44f68d2f342d0257ca5c933476f81b5df8928290030190a26000612b5761200e565b90506000612b64856124a3565b90506802b5e3af16b1880000811015612bba576040805162461bcd60e51b815260206004820152601360248201527202437b2362232bc16101e1036b4b7102aa9a21606d1b604482015290519081900360640190fd5b8181111580612bc7575081155b612c0d576040805162461bcd60e51b8152602060048201526012602482015271121bd91b11195e0b080f881b585e081554d160721b604482015290519081900360640190fd5b612c178585614468565b9450612c2285614856565b945061148b85614a01565b60006115046013614260565b600080600260009054906101000a90046001600160a01b03166001600160a01b03166357de26a46040518163ffffffff1660e01b815260040160206040518083038186803b158015612c8a57600080fd5b505afa925050508015612caf57506040513d6020811015612caa57600080fd5b505160015b612cbd57600b549150612cc4565b9150600190505b9091565b600084815260048601602090815260408083206001600160a01b0387168452600181019092528220805491929091908080612d048b8b8b614adb565b9250925092506000612d158c614346565b9050612d4c8960405180604001604052806008815260200167283937b8102729a360c11b81525086614b6c9092919063ffffffff16565b9350612d838860405180604001604052806008815260200167283937b8103739b360c11b81525084614b6c9092919063ffffffff16565b9150612d8d61546b565b506040805160608082018352868252602080830186905282840185905283518581526001600160a01b038f16918101919091528084018d90529081018b9052915190918d9133917fd8a7c80caa92de15995fb550a02b0921d0ec2c173b71ff94eaac5111eec710db919081900360800190a3600086118015612e1c57508c600301548c141580612e1c57508184145b15612e705780876000016001880381548110612e3457fe5b90600052602060002090600302016000820151816000015560208201518160010155604082015181600201559050505050505050505050612ed2565b60008c815260048e01602052604090205460018801541415612e9457865460028801555b865460018181018955600098895260209889902083516003909302019182559782015197810197909755604001516002909601959095555050505050505b5050505050565b600084815260048601602090815260408083206001600160a01b038716845260018101909252822090918080612f108a8a8a614adb565b865492955090935091506000612f258c614346565b9050612f37858a63ffffffff613f3c16565b9450612f49838963ffffffff613f3c16565b9250612f5361546b565b506040805160608082018352878252602080830187905282840185905283518581526001600160a01b038f16918101919091528084018d90529081018b9052915190918d9133917f34b2d1e14dd08f15cd0495453a3181c6aaffd6d2dc171dbf7c52b3d18cf35b75919081900360800190a3600083118015612fe257508c600301548c141580612fe257508185145b15612ffa5780876000016001850381548110612e3457fe5b8215801561300b57508c600301548c145b1561318f5760016130378e60405180806208ae8d60eb1b81525060030190506040518091039020613adc565b038d600401600060405180806208ae8d60eb1b81525060030190506040518091039020815260200190815260200160002060010160008d6001600160a01b03166001600160a01b0316815260200190815260200160002060010181905550818d600401600060405180806208ae8d60eb1b8152506003019050604051809103902081526020019081526020016000206000018e600401600060405180806208ae8d60eb1b81525060030190506040518091039020815260200190815260200160002060010160008e6001600160a01b03166001600160a01b03168152602001908152602001600020600101548154811061312d57fe5b906000526020600020906003020160020154101561318f57604080516208ae8d60eb1b81528151908190036003019020600090815260048f0160209081528282206001600160a01b038f16835260019081019091529190208101805490910190555b82612e705760016131a08e8e613adc565b0360018801819055885483918a9181106131b657fe5b9060005260206000209060030201600201541015612e7057600187810180549091019081905560008d815260048f0160205260409020541415612e945786546002880155865460018181018955600098895260209889902083516003909302019182559782015197810197909755604001516002909601959095555050505050505050505050565b600080613249611d24565b60065491935091508214158061326157506007548114155b15612cc45760068290556007819055600580546001019055604080513381526020810184905280820183905290517fde6ecf3d8c720475e24f2d3ae66b2470fb69b76910e2ff22300ca03c14ca76f59181900360600190a19091565b600082815260048401602052604081208054909190829060001981019081106132e257fe5b906000526020600020906003020190506132fb85614346565b81600201541015613333576133108585614c03565b81548290600019810190811061332257fe5b906000526020600020906003020190505b8215612ed257600181015461334e908463ffffffff613f3c16565b6001820155837f96709d4288825181c14df06e5002029d4207c82a70441a8338901b54c05a83323361337f88614346565b604080516001600160a01b0390931683526020830191909152818101879052519081900360600190a25050505050565b6133b98282614cff565b613403576040805162461bcd60e51b815260206004820152601660248201527511925193d4d95d0e881ad95e481b9bdd08199bdd5b9960521b604482015290519081900360640190fd5b60008181526002830160205260408120600181015481549192909190613428866140de565b9050600061343587613a4f565b600085815260028901602052604080822086835291209192509061345889614260565b6001141561346f576000808a5560018a01556134a9565b8388141561348657600060018201558489556134a9565b8288141561349e5760008255600189018690556134a9565b848255600181018690555b6134bc60038a018963ffffffff614d1416565b50505060009485525050506002909201602052604081208181556001015550565b6000806000806000806000805b60006134f66018614260565b118015613503575060008a115b1561380657885a101561356c577f4aa267fa2287581bf918dc7983bf82ea76b2a4da4a0547d80d903808b56da9f7335a604080516001600160a01b0390931683526020830191909152818101849052519081900360600190a160009750505050505050506117d5565b61357660186140de565b6000818152601260205260409020805460018201549299506001600160a01b031697509094506135a585614e0f565b95508561364e57841561361857604080516208ae8d60eb1b815290519081900360030190206135e090600c908988600063ffffffff612ed916565b604080518681529051899133917ff82d0d34c08930bc9f8e987fd50bea3840aeaae5cd4b5291ad47e3a9c00f2cd19181900360200190a35b600088815260126020526040812080546001600160a01b03191681556001015561364960188963ffffffff6133af16565b613800565b6136578b614e1b565b93508a92508385101561366b578493508592505b604080518581526020810185905281516001600160a01b038a16928b9233927f776137802df19e3b87a42166c59a2f6adaa28d46b8e1f0cc370e78b49516d622929181900390910190a460408051631213d11360e21b815290519081900360040190206136e490600c903386600063ffffffff612cc816565b60408051631213d11360e21b8152905190819003600401902061371390600c908986600063ffffffff612ed916565b604080516208ae8d60eb1b8152905190819003600301902061374190600c903387600063ffffffff612ed916565b8385141561377f57600088815260126020526040812080546001600160a01b03191681556001015561377a60188963ffffffff6133af16565b6137f1565b60408051808201909152600b81526a0486f646c446578203530360ac1b60208201526137b4908690869063ffffffff614b6c16565b600182015560408051808201909152600b81526a486f646c4465782035303160a81b60208201526137ee908c90859063ffffffff614b6c16565b9a505b600191820191613800906142c7565b506134ea565b509798975050505050505050565b60006802b5e3af16b1880000613829836122b5565b11801561383d575061383b6018614260565b155b156111ae5761384a614e32565b90506000613856611d24565b50600083815260116020526040902090915061387960138463ffffffff614e7c16565b60408051858152602081018490528151339286927f859b9b1aca54f86cfca352a982e638c932e7fd450a59878afb01597257d13c9c929081900390910190a360408051631213d11360e21b815290519081900360040190206138e790600c903360008863ffffffff612ed916565b80546001600160a01b031916339081178255600182018590556002820183905560408051631213d11360e21b8152905190819003600401902061393691600c919087600063ffffffff612cc816565b5050919050565b60004360095414156139525750600b54611507565b600061395c612c39565b600b829055436009559092509050806139bb57600a805460010190819055604080513381526020810192909252818101849052517f1b6826f6886b75b3eaec36667372cfd16e72a81e148c098ededb06c10616e85d9181900360600190a15b604080513381526020810184905281517f0a4debdfc51da746dcb19f892eac110ce7d5d1c86475813bc7940be5c100eab4929181900390910190a1604080516208ae8d60eb1b81529051908190036003019020613a2090600c9063ffffffff614f7416565b60408051631213d11360e21b81529051908190036004019020613a4b90600c9063ffffffff614f7416565b5090565b6001015490565b60008281526004840160205260408120805482918291819086908110613a7857fe5b906000526020600020906003020160000154816000018681548110613a9957fe5b906000526020600020906003020160010154826000018781548110613aba57fe5b9060005260206000209060030201600201549350935093505093509350939050565b60009081526004909101602052604090205490565b60008281526004840160209081526040808320600387015484528184206001600160a01b0386168552600180830185528386208183019095529285206002850154858501548454919690958895949391929087011115613b5c575060009650869350613c0f92505050565b6000846000018781548110613b6d57fe5b600091825260209091206003909102018054835481151598509192509060018a011180613b98575086155b15613bad575060009850613c0f945050505050565b6000836000018a81548110613bbe57fe5b60009182526020822060039190910201600181810154825491870154929450019184670de0b6b3a7640000830281613bf257fe5b049050670de0b6b3a7640000838202049d50505050505050505050505b93509350935093565b3390565b6000828152600160205260409020613c3a908263ffffffff614f8016565b1561188157613c47613c18565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152600484016020526040812081613ca7868686613cff565b905080613cb957600092505050611b2f565b6001600160a01b0384166000908152600183016020526040812080546000198401908110613ce357fe5b6000918252602090912060039091020154979650505050505050565b600082815260048401602090815260408083206001600160a01b03851684526001019091529020549392505050565b6000828152600160205260409020613d4c908263ffffffff614f9516565b1561188157613d59613c18565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60008281526004840160209081526040808320600387015484528184206001600160a01b038616855260018083018552838620908201909452918420909290613de68888614f74565b6000806000613df68b8b8b613af1565b929a509094509250905080613e15576000975050505050505050611b2f565b6000876000018381548110613e2657fe5b906000526020600020906003020190508a8a6001600160a01b03167f703e744cb3ae9492e7b192242cd2a9916b267e8be750ff02a0961442d87ac60983600201548c88886040518085815260200184815260200183815260200182815260200194505050505060405180910390a3613ea28c8c8c8c6000612ed9565b6000613eae8686614faa565b90506000613ebc8e86614ff4565b9050613eca8e8e8e88615053565b895460018901541415613ef457505093546000190160029095019490945550611b2f945050505050565b808211613f2b57613f078e8e8e896150a2565b613f128e8e8e613af1565b50909750613f24915088905087614faa565b9150613ef4565b505050505050505050509392505050565b600082820183811015611b2f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000611b2f83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250614b6c565b600082613fe7575060006117d5565b82820282848281613ff457fe5b0414611b2f5760405162461bcd60e51b81526004018080602001828103825260218152602001806155a86021913960400191505060405180910390fd5b6000611b2f83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061510e565b600083815260048501602090815260408083206001600160a01b03861684526001810190925282208054839283929091839190879081106140b057fe5b6000918252602090912060039091020180546001820154600290920154909b919a5098509650505050505050565b5490565b60008281526004840160205260408120816140fe868686613cff565b90508061411057600092505050611b2f565b6001600160a01b038416600090815260018301602052604090208054600019830190811061413a57fe5b906000526020600020906003020160010154925050509392505050565b60006141638383614cff565b6141ad576040805162461bcd60e51b815260206004820152601660248201527511925193d4d95d0e881ad95e481b9bdd08199bdd5b9960521b604482015290519081900360640190fd5b506000908152600291909101602052604090206001015490565b60006141d38383614cff565b61421d576040805162461bcd60e51b815260206004820152601660248201527511925193d4d95d0e881ad95e481b9bdd08199bdd5b9960521b604482015290519081900360640190fd5b506000908152600291909101602052604090205490565b6000611b2f8383615173565b6000611b2f836001600160a01b0384166151d7565b60006117d5826140de565b60006117d582600301613a4f565b60008281526001602052604090206002015461428c90611837613c18565b611b8d5760405162461bcd60e51b81526004018080602001828103825260308152602001806155286030913960400191505060405180910390fd5b80156111905760065460006142f86142eb655af3107a40008563ffffffff613fd816565b839063ffffffff613f3c16565b6006819055604080513381526020810186905280820183905290519192507f9c333ae1cc367c5edbb5f945c128b377930f21862f1679bd163c93cef65e1a68919081900360600190a1505050565b8054604080518082019091526004815263281a981960e11b6020820152600091829161437991429163ffffffff614b6c16565b90508260010154818161438857fe5b049392505050565b303b1590565b61439e61546b565b506040805160608101825260008082526020820181905291810182905260038801869055848855600188018490556002880180546001600160a01b0319166001600160a01b038516179055905b865481101561445e57600088600401600089848154811061440857fe5b6000918252602080832090910154835282810193909352604091820181208054600181810183559183529184902087516003909302019182559286015181840155908501516002909101559190910190506143eb565b5050505050505050565b6000806000806000806000806000805b60006144846013614260565b118015614491575060008c115b15614846578a5a10156144fc577f4aa267fa2287581bf918dc7983bf82ea76b2a4da4a0547d80d903808b56da9f7335a604080516001600160a01b0390931683526020830191909152818101849052519081900360600190a1600099505050505050505050506117d5565b61450660136140de565b6000818152601160205260409020805460018201546002830154939c506001600160a01b039091169a509750909550614559614554670de0b6b3a7640000611daf8a8a63ffffffff613fd816565b6151ef565b9750876146385786156145fb576040805188815290518b9133917f766e265970a9d07808a7d69d71eed292addad9a58d5bd5739279d312ac6f1d469181900360200190a360408051631213d11360e21b815290519081900360040190206145cc90600c908b8a600063ffffffff612ed916565b60408051631213d11360e21b815290519081900360040190206145fb90600c908b60008b63ffffffff612cc816565b60008a815260116020526040812080546001600160a01b0319168155600181018290556002015561463360138b63ffffffff6133af16565b614840565b8c9450614644856124a3565b935061466286611daf86670de0b6b3a764000063ffffffff613fd816565b925084881015614673578794508692505b604080518681526020810185905281516001600160a01b038c16928d9233927f1bba592cf2bf9b4f8f3adc25fb5285b07027e631563a4ac6fc49ff651801f9f2929181900390910190a4604080516208ae8d60eb1b815290519081900360030190206146eb90600c903388600063ffffffff612cc816565b604080516208ae8d60eb1b8152905190819003600301902061471990600c908b88600063ffffffff612ed916565b60408051631213d11360e21b8152905190819003600401902061474890600c903386600063ffffffff612ed916565b60408051631213d11360e21b8152905190819003600401902061477790600c908b60008763ffffffff612cc816565b60408051808201909152600b81526a486f646c4465782035303360a81b60208201526147ac908e90879063ffffffff614b6c16565b9c50828714156147f35760008a815260116020526040812080546001600160a01b031916815560018101829055600201556147ee60138b63ffffffff6133af16565b614831565b60408051808201909152600b81526a121bd91b11195e080d4c0d60aa1b6020820152600182015461482b91859063ffffffff614b6c16565b60018201555b600191820191614840906142c7565b50614478565b50999a9950505050505050505050565b600080808084156149f857600061486c86614e0f565b60408051631213d11360e21b8152905190819003600401902090915061489b90600c903063ffffffff613c8b16565b9150818111156148ab57816148ad565b805b935083156149f6576148be84614e1b565b6040805182815260208101879052815192955033927fc7a2c2400cc73e0579846bf1a4a815fea06f2b8e66c83d8f3de8364d3d2ec289929181900390910190a260408051631213d11360e21b8152905190819003600401902061492d90600c903087600063ffffffff612cc816565b60408051631213d11360e21b8152905190819003600401902061495c90600c903387600063ffffffff612ed916565b604080516208ae8d60eb1b8152905190819003600301902061498a90600c903386600063ffffffff612cc816565b604080516208ae8d60eb1b815290519081900360030190206149b590600c908563ffffffff6132bd16565b60408051808201909152600b81526a486f646c4465782035303560a81b60208201526149ea908790859063ffffffff614b6c16565b95506149f660016142c7565b505b50929392505050565b60006802b5e3af16b1880000614a16836124a3565b118015614a2a5750614a286013614260565b155b156111ae57614a37614e32565b604080518481529051919250339183917fadae744503607b1ac6c8feb1a54fb687ecba33f5d4cc59fdde26dd19de99f0b5919081900360200190a36000818152601260205260409020614a9160188363ffffffff614e7c16565b604080516208ae8d60eb1b81529051908190036003019020614abf90600c903386600063ffffffff612cc816565b6001810183905580546001600160a01b03191633179055919050565b600082815260048401602052604081208190819081614afb888888613cff565b905080614b14575060009350839250829150611e0f9050565b6001600160a01b0386166000908152600183016020526040812080546000198401908110614b3e57fe5b6000918252602090912060039091020180546002820154600190920154909b919a5098509650505050505050565b60008184841115614bfb5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015614bc0578181015183820152602001614ba8565b50505050905090810190601f168015614bed5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008181526004830160205260408120805490919082906000198101908110614c2857fe5b906000526020600020906003020190506000614c4385614346565b9050614c4e85615205565b8255614c5861546b565b50604080516060808201835260008083526020808401828152848601878152895460018181018c558b865294849020875160039092020190815591518285015551600291820155918701548754928801548651338152928301919091528186019290925291820152608081018490529151909186917f0d4b8133b244cfec82d848130189d3c9787263ecbcf6d4432f2d167642547d909181900360a00190a2505050505050565b6000611b2f600384018363ffffffff61527e16565b614d1e828261527e565b614d595760405162461bcd60e51b815260040180806020018281038252602a8152602001806154de602a913960400191505060405180910390fd5b60006001614d6684613a4f565b6000848152602086905260409020549190039150808214614dd7576000846001018381548110614d9257fe5b90600052602060002001549050818560000160008381526020019081526020016000208190555080856001018381548110614dc957fe5b600091825260209091200155505b60008381526020859052604081205560018401805480614df357fe5b6001900381819060005260206000200160009055905550505050565b60008061119f836152c6565b600080614e27836122b5565b90506111aa816151ef565b60088054600101908190556040805130606090811b6020808401919091523390911b6034830152604880830194909452825180830390940184526068909101909152815191012090565b80614ece576040805162461bcd60e51b815260206004820152601b60248201527f4649464f5365743a206b65792063616e6e6f74206265207a65726f0000000000604482015290519081900360640190fd5b614ed88282614cff565b15614f23576040805162461bcd60e51b81526020600482015260166024820152754649464f5365743a206475706c6963617465206b657960501b604482015290519081900360640190fd5b60018201546000828152600284016020526040808220838352912082614f4b57838555614f4f565b8381555b60018201839055614f69600386018563ffffffff6152ec16565b505050600190910155565b611881828260006132bd565b6000611b2f836001600160a01b03841661535b565b6000611b2f836001600160a01b0384166153a5565b8154600090600183011015614fe457826000018260010181548110614fcb57fe5b90600052602060002090600302016002015490506117d5565b50670de0b6b3a764000092915050565b60038201546000908152600483016020526040812080546001840110156150405780600001836001018154811061502757fe5b906000526020600020906003020160020154915061504c565b670de0b6b3a763ffff91505b5092915050565b600083815260048501602052604090205481101561509c57600083815260048501602090815260408083206001600160a01b038616845260019081019092529091208183019101555b50505050565b6003840154600090815260048501602090815260408083206001600160a01b038616845260010190915290205481101561509c576000928352600493909301602090815260408084206001600160a01b0393909316845260019283019091529091209101600290910155565b6000818361515d5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315614bc0578181015183820152602001614ba8565b50600083858161516957fe5b0495945050505050565b815460009082106151b55760405162461bcd60e51b815260040180806020018281038252602281526020018061548d6022913960400191505060405180910390fd5b8260000182815481106151c457fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b60006117d56122fa670de0b6b3a76400006152c6565b600281015460408051639358928b60e01b815290516000926001600160a01b031691639358928b916004808301926020929190829003018186803b15801561524c57600080fd5b505afa158015615260573d6000803e3d6000fd5b505050506040513d602081101561527657600080fd5b505192915050565b6001820154600090615292575060006117d5565b60008281526020849052604090205460018401805484929081106152b257fe5b906000526020600020015414905092915050565b60006117d5670de0b6b3a7640000611daf6152df61393d565b859063ffffffff613fd816565b6152f6828261527e565b156153325760405162461bcd60e51b815260040180806020018281038252602a8152602001806155c9602a913960400191505060405180910390fd5b600180830180546000848152602095865260408120829055928101825590825292902090910155565b600061536783836151d7565b61539d575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556117d5565b5060006117d5565b6000818152600183016020526040812054801561546157835460001980830191908101906000908790839081106153d857fe5b90600052602060002001549050808760000184815481106153f557fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061542557fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506117d5565b60009150506117d5565b6040518060600160405280600081526020016000815260200160008152509056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e74427974657333325365743a206b657920646f6573206e6f7420657869737420696e20746865207365742e486f646c6544657820756e696e697469616c697a65642e000000000000000000416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65596f75206d7573742073656e642045746820746f20746869732066756e6374696f6e496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a6564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77427974657333325365743a206b657920616c72656164792065786973747320696e20746865207365742e416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a2646970667358221220897215040cb1ff2c6da5afae2f000b4233a82e9c16cf0340b2f4f468c834292b64736f6c63430006060033

Deployed Bytecode

0x6080604052600436106104055760003560e01c806375b238fc11610213578063bece753211610123578063e2ee29c3116100ab578063ef78d4fd1161007a578063ef78d4fd14610dd2578063f09a401614610de7578063f4f06eed14610e22578063f58c7acf14610e52578063f5f593a714610e6757610405565b8063e2ee29c314610d54578063e77349e714610d69578063e84abef114610d7e578063ece7ddbf14610da857610405565b8063d1e3175a116100f2578063d1e3175a14610cc7578063d26d1fe614610cdc578063d3a057c814610cf1578063d547741f14610d06578063e286bca514610d3f57610405565b8063bece753214610c34578063c086381e14610c49578063c311d04914610c73578063ca15c87314610c9d57610405565b806391d14854116101a6578063a217fddf11610175578063a217fddf14610b8a578063a3053e2a14610b9f578063b1eb816f14610bc9578063bc50040914610bf5578063bcffe5f414610c0a57610405565b806391d1485414610ae85780639358928b14610b21578063947b938314610b365780639e3202c914610b6057610405565b806384433221116101e25780638443322114610a10578063896e9ce014610a3a5780638eb6ac7a14610a4f5780639010d07c14610a9c57610405565b806375b238fc1461098957806375c303c91461099e5780637b4e610a146109b357806381e7e20e146109dd57610405565b80632b6fb51d11610319578063439370b1116102a15780634f8c4a45116102705780634f8c4a45146108ce578063519baf94146108e35780635f07cbc2146108f857806361d21875146109225780636260f55b1461097457610405565b8063439370b11461084457806343f48fbd1461084c57806346debf311461087a5780634d7de20c146108b957610405565b8063363ecbc0116102e8578063363ecbc01461079357806336568abe146107cc578063376fe05b1461080557806339c6d4cb1461081a5780633fb7a0ab1461082f57610405565b80632b6fb51d1461069c5780632cdf21f3146106fd5780632f2ff15d146107275780632f81b5df1461076057610405565b8063191fd57d1161039c5780632014e5d11161036b5780632014e5d1146105d7578063248a9ca314610600578063284fef4b1461062a5780632949f19e1461063f5780632b0eec971461067257610405565b8063191fd57d146105355780631b4d76771461054a5780631b7c7ea71461055f5780631d8f8f4b1461058957610405565b8063164cded6116103d8578063164cded6146104b157806316f30a7b146104db578063181783581461050b5780631911e5221461052057610405565b8063076299de1461040a57806307e2cea5146104365780630cc6e0191461045d5780630ef8e55014610487575b600080fd5b34801561041657600080fd5b506104346004803603602081101561042d57600080fd5b5035610e95565b005b34801561044257600080fd5b5061044b611012565b60408051918252519081900360200190f35b34801561046957600080fd5b506104346004803603602081101561048057600080fd5b5035611035565b34801561049357600080fd5b5061044b600480360360208110156104aa57600080fd5b5035611193565b3480156104bd57600080fd5b50610434600480360360208110156104d457600080fd5b50356111b3565b3480156104e757600080fd5b5061044b600480360360408110156104fe57600080fd5b5080359060200135611334565b34801561051757600080fd5b5061043461149f565b34801561052c57600080fd5b5061044b6114f8565b34801561054157600080fd5b5061044b61150a565b34801561055657600080fd5b5061044b61152e565b34801561056b57600080fd5b506104346004803603602081101561058257600080fd5b5035611534565b34801561059557600080fd5b506105b9600480360360408110156105ac57600080fd5b5080359060200135611670565b60408051938452602084019290925282820152519081900360600190f35b3480156105e357600080fd5b506105ec611693565b604080519115158252519081900360200190f35b34801561060c57600080fd5b5061044b6004803603602081101561062357600080fd5b50356116c8565b34801561063657600080fd5b5061044b6116dd565b34801561064b57600080fd5b506104346004803603602081101561066257600080fd5b50356001600160a01b03166116f8565b34801561067e57600080fd5b5061044b6004803603602081101561069557600080fd5b50356117c2565b3480156106a857600080fd5b506106d5600480360360408110156106bf57600080fd5b506001600160a01b0381351690602001356117db565b6040805194855260208501939093528383019190915215156060830152519081900360800190f35b34801561070957600080fd5b5061044b6004803603602081101561072057600080fd5b5035611802565b34801561073357600080fd5b506104346004803603604081101561074a57600080fd5b50803590602001356001600160a01b0316611819565b34801561076c57600080fd5b506104346004803603602081101561078357600080fd5b50356001600160a01b0316611885565b34801561079f57600080fd5b5061044b600480360360408110156107b657600080fd5b50803590602001356001600160a01b0316611b1b565b3480156107d857600080fd5b50610434600480360360408110156107ef57600080fd5b50803590602001356001600160a01b0316611b36565b34801561081157600080fd5b5061044b611b97565b34801561082657600080fd5b5061044b611c0c565b34801561083b57600080fd5b5061044b611c32565b610434611c38565b34801561085857600080fd5b50610861611d24565b6040805192835260208301919091528051918290030190f35b34801561088657600080fd5b506105b96004803603606081101561089d57600080fd5b508035906001600160a01b036020820135169060400135611df1565b3480156108c557600080fd5b5061044b611e18565b3480156108da57600080fd5b5061044b611e24565b3480156108ef57600080fd5b5061044b611e40565b34801561090457600080fd5b506104346004803603602081101561091b57600080fd5b5035611e4c565b34801561092e57600080fd5b5061094c6004803603602081101561094557600080fd5b5035611fbb565b604080516001600160a01b039094168452602084019290925282820152519081900360600190f35b34801561098057600080fd5b5061044b611fe6565b34801561099557600080fd5b5061044b611fec565b3480156109aa57600080fd5b5061044b61200e565b3480156109bf57600080fd5b50610434600480360360208110156109d657600080fd5b503561203e565b3480156109e957600080fd5b506105b960048036036020811015610a0057600080fd5b50356001600160a01b03166120f7565b348015610a1c57600080fd5b5061086160048036036020811015610a3357600080fd5b503561218e565b348015610a4657600080fd5b506105ec6121bc565b348015610a5b57600080fd5b50610a7960048036036020811015610a7257600080fd5b50356121dc565b604080516001600160a01b03909316835260208301919091528051918290030190f35b348015610aa857600080fd5b50610acc60048036036040811015610abf57600080fd5b5080359060200135612201565b604080516001600160a01b039092168252519081900360200190f35b348015610af457600080fd5b506105ec60048036036040811015610b0b57600080fd5b50803590602001356001600160a01b031661221f565b348015610b2d57600080fd5b5061044b61223d565b348015610b4257600080fd5b5061044b60048036036020811015610b5957600080fd5b503561228b565b348015610b6c57600080fd5b5061044b60048036036020811015610b8357600080fd5b50356122b5565b348015610b9657600080fd5b5061044b6122df565b348015610bab57600080fd5b5061044b60048036036020811015610bc257600080fd5b50356122e4565b61043460048036036040811015610bdf57600080fd5b506001600160a01b038135169060200135612312565b348015610c0157600080fd5b5061044b612463565b348015610c1657600080fd5b5061086160048036036020811015610c2d57600080fd5b503561246f565b348015610c4057600080fd5b50610acc612494565b348015610c5557600080fd5b5061044b60048036036020811015610c6c57600080fd5b50356124a3565b348015610c7f57600080fd5b5061043460048036036020811015610c9657600080fd5b50356124c6565b348015610ca957600080fd5b5061044b60048036036020811015610cc057600080fd5b50356125b3565b348015610cd357600080fd5b5061044b6125ca565b348015610ce857600080fd5b5061044b6125d6565b348015610cfd57600080fd5b506105ec6125dc565b348015610d1257600080fd5b5061043460048036036040811015610d2957600080fd5b50803590602001356001600160a01b03166125ed565b348015610d4b57600080fd5b50610acc612644565b348015610d6057600080fd5b5061044b612653565b348015610d7557600080fd5b5061044b6126c7565b348015610d8a57600080fd5b5061043460048036036020811015610da157600080fd5b50356126cd565b348015610db457600080fd5b5061043460048036036020811015610dcb57600080fd5b5035612746565b348015610dde57600080fd5b5061044b6127fd565b348015610df357600080fd5b5061043460048036036040811015610e0a57600080fd5b506001600160a01b0381358116916020013516612809565b348015610e2e57600080fd5b5061044b60048036036040811015610e4557600080fd5b5080359060200135612aca565b348015610e5e57600080fd5b5061044b612c2d565b348015610e7357600080fd5b50610e7c612c39565b6040805192835290151560208301528051918290030190f35b610e9d611693565b610edc576040805162461bcd60e51b81526020600482015260176024820152600080516020615508833981519152604482015290519081900360640190fd5b60035460408051631a59529f60e21b81523360048201526024810184905290516000926001600160a01b0316916369654a7c91604480830192602092919082900301818787803b158015610f2f57600080fd5b505af1158015610f43573d6000803e3d6000fd5b505050506040513d6020811015610f5957600080fd5b50516040805184815260208101839052815192935033927fbd267c282682c91617691bf34eae6225f9241bf30f0bcc0f7bcfb98ff03ce31d929181900390910190a260408051631213d11360e21b81529051908190036004019020610fca90600c903384600063ffffffff612cc816565b60408051631213d11360e21b8152905190819003600401902060035461100491600c916001600160a01b031684600063ffffffff612ed916565b5061100d61323e565b505050565b604080516a4f7261636c6520526f6c6560a81b8152905190819003600b01902081565b61103d611693565b61107c576040805162461bcd60e51b81526020600482015260176024820152600080516020615508833981519152604482015290519081900360640190fd5b604080516b5265736572766520526f6c6560a01b8152905190819003600c0190206110a7903361221f565b6110ef576040805162461bcd60e51b81526020600482015260146024820152732437b2362232bc101a1819903932b9b2b93b329760611b604482015290519081900360640190fd5b604080513381526020810183905281517f8b476ddf0ff11f47272c435b662b2534d5469ed9f10fb084c37f17b028cb459d929181900390910190a160408051631213d11360e21b8152905190819003600401902060035461116491600c916001600160a01b031684600063ffffffff612cc816565b60408051631213d11360e21b8152905190819003600401902061119090600c908363ffffffff6132bd16565b50565b60008061119f836124a3565b90506111aa8161228b565b9150505b919050565b6111bb611693565b6111fa576040805162461bcd60e51b81526020600482015260176024820152600080516020615508833981519152604482015290519081900360640190fd5b6040516000908190839033907fdcb012e920167d8bdd0acebd98c41971b08b206986f2c59f3458fbe83c8e1d14908490a350600082815260116020526040902080546001600160a01b031690338214611291576040805162461bcd60e51b81526020600482015260146024820152732437b2362232bc16103737ba1039b2b63632b91760611b604482015290519081900360640190fd5b600181015460408051631213d11360e21b815290519081900360040190209093506112c890600c903386600063ffffffff612ed916565b6112d960138563ffffffff6133af16565b60408051631213d11360e21b8152905190819003600401902061130890600c908460008763ffffffff612cc816565b505050600090815260116020526040812080546001600160a01b03191681556001810182905560020155565b600061133e611693565b61137d576040805162461bcd60e51b81526020600482015260176024820152600080516020615508833981519152604482015290519081900360640190fd5b6040805184815260208101849052815133927f9245568088742ccfdfc1dc58f9ad4f31812911170582b5cce5c4f48c86667711928290030190a260006113c2846122b5565b905060006113ce61200e565b90506802b5e3af16b1880000821015611423576040805162461bcd60e51b8152602060048201526012602482015271121bd91b11195e0b080f081b5a5b881554d160721b604482015290519081900360640190fd5b8082111580611430575080155b611476576040805162461bcd60e51b8152602060048201526012602482015271121bd91b11195e0b080f881b585e081554d160721b604482015290519081900360640190fd5b61148085856134dd565b945061148b85613814565b9250505061149761323e565b505092915050565b6114a7611693565b6114e6576040805162461bcd60e51b81526020600482015260176024820152600080516020615508833981519152604482015290519081900360640190fd5b6114ee61323e565b505061119061393d565b60006115046013613a4f565b90505b90565b604080516b5265736572766520526f6c6560a01b8152905190819003600c01902081565b600a5481565b61153c611693565b61157b576040805162461bcd60e51b81526020600482015260176024820152600080516020615508833981519152604482015290519081900360640190fd5b60008181526012602052604080822090519091839133917fbfd8eba8b6bbf7710760c1e5784271756899dfda53eccf56257e64e40c7f6fc191a380546001600160a01b03163314611609576040805162461bcd60e51b81526020600482015260136024820152722437b2362232bc16103737ba10313abcb2b91760691b604482015290519081900360640190fd5b604080516208ae8d60eb1b81529051908190036003019020600182015461163c91600c913390600063ffffffff612ed916565b61164d60188363ffffffff6133af16565b50600090815260126020526040812080546001600160a01b031916815560010155565b60008080611686600c868663ffffffff613a5616565b9250925092509250925092565b604080516d4d6967726174696f6e20526f6c6560901b8152905190819003600e0190206000906116c2906125b3565b15905090565b60009081526001602052604090206002015490565b604080516208ae8d60eb1b8152905190819003600301902081565b604080516941646d696e20526f6c6560b01b8152905190819003600a019020611721903361221f565b611766576040805162461bcd60e51b81526020600482015260116024820152702437b2362232bc101a18199030b236b4b760791b604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b03831690811790915560408051338152602081019290925280517fc1d3048301c0d23629a2532c8defa6d68f8e1a0e4157918769e9fb1b2eeb888e9281900390910190a150565b60006117d5600c8363ffffffff613adc16565b92915050565b60008080806117f2600c868863ffffffff613af116565b9299919850965090945092505050565b60008061180e836122b5565b90506111aa816122e4565b60008281526001602052604090206002015461183c90611837613c18565b61221f565b6118775760405162461bcd60e51b815260040180806020018281038252602f8152602001806154af602f913960400191505060405180910390fd5b6118818282613c1c565b5050565b604080516d4d6967726174696f6e20526f6c6560901b8152905190819003600e0190206118b2903361221f565b6118fb576040805162461bcd60e51b81526020600482015260156024820152742437b2362232bc101a18199036b4b3b930ba34b7b760591b604482015290519081900360640190fd5b6040805133815290516001600160a01b038316917f4255b5dbb103b3831869724bf926f5cc492b23b18ae956dacbe85ab455977a31919081900360200190a260408051631213d11360e21b8082528251918290036004908101832091835292519182900390920190206119909190309061197e90600c908663ffffffff613c8b16565b600c929190600063ffffffff612ed916565b60408051631213d11360e21b8082528251918290036004908101832091835292519182900390920190206119e6919083906119d490600c908363ffffffff613c8b16565b600c929190600063ffffffff612cc816565b604080516208ae8d60eb1b808252825191829003600390810183209183529251918290039092019020611a29919083906119d490600c908363ffffffff613c8b16565b604080516208ae8d60eb1b81529051908190036003019020600090611a5790600c908463ffffffff613c8b16565b111561119057604080516208ae8d60eb1b815290519081900360030190206000903390611a8d90600c908563ffffffff613c8b16565b604051600081818185875af1925050503d8060008114611ac9576040519150601f19603f3d011682016040523d82523d6000602084013e611ace565b606091505b5050905080611881576040805162461bcd60e51b81526020600482015260146024820152733932b532b1ba32b210313c903932b1b2b4bb32b960611b604482015290519081900360640190fd5b6000611b2f600c848463ffffffff613cff16565b9392505050565b611b3e613c18565b6001600160a01b0316816001600160a01b031614611b8d5760405162461bcd60e51b815260040180806020018281038252602f8152602001806155f3602f913960400191505060405180910390fd5b6118818282613d2e565b6000611ba1611693565b611be0576040805162461bcd60e51b81526020600482015260176024820152600080516020615508833981519152604482015290519081900360640190fd5b60408051631213d11360e21b8152905190819003600401902061150490600c903363ffffffff613d9d16565b604080516d4d6967726174696f6e20526f6c6560901b8152905190819003600e01902081565b60085481565b611c40611693565b611c7f576040805162461bcd60e51b81526020600482015260176024820152600080516020615508833981519152604482015290519081900360640190fd5b60003411611cbe5760405162461bcd60e51b81526004018080602001828103825260228152602001806155586022913960400191505060405180910390fd5b60408051348152905133917f67b91a3e1f20688667199fd4acb8590a39e93b3f50cb3253c74003c6d98de78b919081900360200190a2604080516208ae8d60eb1b81529051908190036003019020611d2290600c903334600063ffffffff612ed916565b565b6006546007546000611d43635f1f7dad62278d0063ffffffff613f3c16565b905080421115611dec57600062015180611d63428463ffffffff613f9616565b81611d6a57fe5b0490506000611d8460055483613f9690919063ffffffff16565b90508015611de957611dbb670de0b6b3a7640000611daf600754600654613fd890919063ffffffff16565b9063ffffffff61403116565b9450611de6670de0b6b3a7640000611daf670de0b68e11c8d5e0600754613fd890919063ffffffff16565b93505b50505b509091565b60008080611e08600c87878763ffffffff61407316565b9250925092505b93509350939050565b600061150460186140de565b60408051631213d11360e21b8152905190819003600401902081565b600061150460136140de565b611e54611693565b611e93576040805162461bcd60e51b81526020600482015260176024820152600080516020615508833981519152604482015290519081900360640190fd5b6003546040805163aa94810160e01b81523360048201526024810184905290516000926001600160a01b03169163aa94810191604480830192602092919082900301818787803b158015611ee657600080fd5b505af1158015611efa573d6000803e3d6000fd5b505050506040513d6020811015611f1057600080fd5b50516040805184815260208101839052815192935033927fc757c794593897ec78643a3b1ae1d2ab4eb6840e9a01b6fd2f64c7c500fe88c7929181900390910190a260408051631213d11360e21b81529051908190036004019020611f8190600c903384600063ffffffff612ed916565b60408051631213d11360e21b8152905190819003600401902060035461100491600c916001600160a01b031684600063ffffffff612cc816565b6011602052600090815260409020805460018201546002909201546001600160a01b03909116919083565b600b5481565b604080516941646d696e20526f6c6560b01b8152905190819003600a01902081565b600080612019611d24565b509050678ac7230489e800008111612035578061138802612038565b60005b91505090565b604080516d4d6967726174696f6e20526f6c6560901b8152905190819003600e01902061206b903361221f565b6120b4576040805162461bcd60e51b81526020600482015260156024820152742437b2362232bc101a18199036b4b3b930ba34b7b760591b604482015290519081900360640190fd5b6007819055604080513381526020810183905281517fd9c7ef198bbeb680fb4c70a0f01e1d6d1826dbc6cdc426fd1ab3aa1d059c71cd929181900390910190a150565b604080516208ae8d60eb1b815290519081900360030190206000908190819061212990600c908663ffffffff613c8b16565b60408051631213d11360e21b8152905190819003600401902061215590600c908763ffffffff613c8b16565b60408051631213d11360e21b8152905190819003600401902061218190600c908863ffffffff6140e216565b9250925092509193909250565b6000806121a260138463ffffffff61415716565b6121b360138563ffffffff6141c716565b91509150915091565b60006121d5635f1f7dad62278d0063ffffffff613f3c16565b4211905090565b601260205260009081526040902080546001909101546001600160a01b039091169082565b6000828152600160205260408120611b2f908363ffffffff61423416565b6000828152600160205260408120611b2f908363ffffffff61424016565b60408051631213d11360e21b81529051908190036004019020600090819061226e90600c903063ffffffff613c8b16565b90506120386a108b2a2c280290940000008263ffffffff613f9616565b600080612296611d24565b5090506111aa81611daf85670de0b6b3a764000063ffffffff613fd816565b6000806122c0611d24565b5090506111aa670de0b6b3a7640000611daf858463ffffffff613fd816565b600081565b60006117d56122fa670de0b6b3a76400006124a3565b611daf84670de0b6b3a764000063ffffffff613fd816565b604080516d4d6967726174696f6e20526f6c6560901b8152905190819003600e01902061233f903361221f565b612388576040805162461bcd60e51b81526020600482015260156024820152742437b2362232bc101a18199036b4b3b930ba34b7b760591b604482015290519081900360640190fd5b604080516208ae8d60eb1b815290519081900360030190206123b690600c908434600063ffffffff612ed916565b60408051631213d11360e21b815290519081900360040190206123e590600c908484600063ffffffff612ed916565b60408051631213d11360e21b8152905190819003600401902061241490600c903084600063ffffffff612cc816565b6040805133815260208101839052348183015290516001600160a01b038416917f3115c5c0a6de7cd7ce400fd4027f87c0d355dfef893e17cc1cc2db2782a0f9f7919081900360600190a25050565b60006115046018613a4f565b60008061248360188463ffffffff61415716565b6121b360188563ffffffff6141c716565b6002546001600160a01b031690565b60006117d5670de0b6b3a7640000611daf600b5485613fd890919063ffffffff16565b6124ce611693565b61250d576040805162461bcd60e51b81526020600482015260176024820152600080516020615508833981519152604482015290519081900360640190fd5b60408051828152905133917f654c7a7e59538b4e27a577ef2208b1f7cdcaf35938c4bb6288c945261702a56f919081900360200190a2604080516208ae8d60eb1b8152905190819003600301902061257190600c903384600063ffffffff612cc816565b604051600090339083908381818185875af1925050503d8060008114611ac9576040519150601f19603f3d011682016040523d82523d6000602084013e611ace565b60008181526001602052604081206117d590614255565b60006115046018614260565b60055481565b6002546001600160a01b0316151590565b6000600b541161263a576040805162461bcd60e51b8152602060048201526013602482015272121bd91b11195e0b0814d95d08115d1a155cd9606a1b604482015290519081900360640190fd5b611881828261426e565b6003546001600160a01b031690565b600061265d611693565b61269c576040805162461bcd60e51b81526020600482015260176024820152600080516020615508833981519152604482015290519081900360640190fd5b604080516208ae8d60eb1b8152905190819003600301902061150490600c903363ffffffff613d9d16565b60095481565b604080516a4f7261636c6520526f6c6560a81b8152905190819003600b0190206126f7903361221f565b61273d576040805162461bcd60e51b8152602060048201526012602482015271486f646c44657820343033206f7261636c6560701b604482015290519081900360640190fd5b611190816142c7565b604080516a4f7261636c6520526f6c6560a81b8152905190819003600b019020612770903361221f565b6127b6576040805162461bcd60e51b8152602060048201526012602482015271486f646c44657820343033206f7261636c6560701b604482015290519081900360640190fd5b600b81905543600955604080513381526020810183905281517f0a4debdfc51da746dcb19f892eac110ce7d5d1c86475813bc7940be5c100eab4929181900390910190a150565b6000611504600c614346565b600054610100900460ff16806128225750612822614390565b80612830575060005460ff16155b61286b5760405162461bcd60e51b815260040180806020018281038252602e81526020018061557a602e913960400191505060405180910390fd5b600054610100900460ff16158015612896576000805460ff1961ff0019909116610100171660011790555b6036600555671288ea08902abe9b600655670de76f8f81cd664a60075560408051631213d11360e21b8082528251918290036004908101832081546001818101845560008481527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b928301939093556208ae8d60eb1b86528651958690036003018620845491820185559284905201559082529151908190038201902061294b91600c914262278d003063ffffffff61439616565b60408051631213d11360e21b8152905190819003600401902061298590600c90306a108b2a2c28029094000000600063ffffffff612ed916565b600280546001600160a01b038085166001600160a01b03199283161790925560038054928616929091169190911790556129c0600033611877565b604080516941646d696e20526f6c6560b01b8152905190819003600a0190206129e99033611877565b604080516a4f7261636c6520526f6c6560a81b8152905190819003600b019020612a139033611877565b604080516d4d6967726174696f6e20526f6c6560901b8152905190819003600e019020612a409033611877565b604080516b5265736572766520526f6c6560a01b8152905190819003600c019020612a6b9084611877565b604080513381526001600160a01b03808616602083015284168183015290517fc437298f2d0663a10608d6add1ccfa44ae2a4bd3efcdc2fd427f7afb360d22e59181900360600190a1801561100d576000805461ff0019169055505050565b6000612ad4611693565b612b13576040805162461bcd60e51b81526020600482015260176024820152600080516020615508833981519152604482015290519081900360640190fd5b6040805184815260208101849052815133927fee9b02d9722b4950f646ec7e40d75e44f68d2f342d0257ca5c933476f81b5df8928290030190a26000612b5761200e565b90506000612b64856124a3565b90506802b5e3af16b1880000811015612bba576040805162461bcd60e51b815260206004820152601360248201527202437b2362232bc16101e1036b4b7102aa9a21606d1b604482015290519081900360640190fd5b8181111580612bc7575081155b612c0d576040805162461bcd60e51b8152602060048201526012602482015271121bd91b11195e0b080f881b585e081554d160721b604482015290519081900360640190fd5b612c178585614468565b9450612c2285614856565b945061148b85614a01565b60006115046013614260565b600080600260009054906101000a90046001600160a01b03166001600160a01b03166357de26a46040518163ffffffff1660e01b815260040160206040518083038186803b158015612c8a57600080fd5b505afa925050508015612caf57506040513d6020811015612caa57600080fd5b505160015b612cbd57600b549150612cc4565b9150600190505b9091565b600084815260048601602090815260408083206001600160a01b0387168452600181019092528220805491929091908080612d048b8b8b614adb565b9250925092506000612d158c614346565b9050612d4c8960405180604001604052806008815260200167283937b8102729a360c11b81525086614b6c9092919063ffffffff16565b9350612d838860405180604001604052806008815260200167283937b8103739b360c11b81525084614b6c9092919063ffffffff16565b9150612d8d61546b565b506040805160608082018352868252602080830186905282840185905283518581526001600160a01b038f16918101919091528084018d90529081018b9052915190918d9133917fd8a7c80caa92de15995fb550a02b0921d0ec2c173b71ff94eaac5111eec710db919081900360800190a3600086118015612e1c57508c600301548c141580612e1c57508184145b15612e705780876000016001880381548110612e3457fe5b90600052602060002090600302016000820151816000015560208201518160010155604082015181600201559050505050505050505050612ed2565b60008c815260048e01602052604090205460018801541415612e9457865460028801555b865460018181018955600098895260209889902083516003909302019182559782015197810197909755604001516002909601959095555050505050505b5050505050565b600084815260048601602090815260408083206001600160a01b038716845260018101909252822090918080612f108a8a8a614adb565b865492955090935091506000612f258c614346565b9050612f37858a63ffffffff613f3c16565b9450612f49838963ffffffff613f3c16565b9250612f5361546b565b506040805160608082018352878252602080830187905282840185905283518581526001600160a01b038f16918101919091528084018d90529081018b9052915190918d9133917f34b2d1e14dd08f15cd0495453a3181c6aaffd6d2dc171dbf7c52b3d18cf35b75919081900360800190a3600083118015612fe257508c600301548c141580612fe257508185145b15612ffa5780876000016001850381548110612e3457fe5b8215801561300b57508c600301548c145b1561318f5760016130378e60405180806208ae8d60eb1b81525060030190506040518091039020613adc565b038d600401600060405180806208ae8d60eb1b81525060030190506040518091039020815260200190815260200160002060010160008d6001600160a01b03166001600160a01b0316815260200190815260200160002060010181905550818d600401600060405180806208ae8d60eb1b8152506003019050604051809103902081526020019081526020016000206000018e600401600060405180806208ae8d60eb1b81525060030190506040518091039020815260200190815260200160002060010160008e6001600160a01b03166001600160a01b03168152602001908152602001600020600101548154811061312d57fe5b906000526020600020906003020160020154101561318f57604080516208ae8d60eb1b81528151908190036003019020600090815260048f0160209081528282206001600160a01b038f16835260019081019091529190208101805490910190555b82612e705760016131a08e8e613adc565b0360018801819055885483918a9181106131b657fe5b9060005260206000209060030201600201541015612e7057600187810180549091019081905560008d815260048f0160205260409020541415612e945786546002880155865460018181018955600098895260209889902083516003909302019182559782015197810197909755604001516002909601959095555050505050505050505050565b600080613249611d24565b60065491935091508214158061326157506007548114155b15612cc45760068290556007819055600580546001019055604080513381526020810184905280820183905290517fde6ecf3d8c720475e24f2d3ae66b2470fb69b76910e2ff22300ca03c14ca76f59181900360600190a19091565b600082815260048401602052604081208054909190829060001981019081106132e257fe5b906000526020600020906003020190506132fb85614346565b81600201541015613333576133108585614c03565b81548290600019810190811061332257fe5b906000526020600020906003020190505b8215612ed257600181015461334e908463ffffffff613f3c16565b6001820155837f96709d4288825181c14df06e5002029d4207c82a70441a8338901b54c05a83323361337f88614346565b604080516001600160a01b0390931683526020830191909152818101879052519081900360600190a25050505050565b6133b98282614cff565b613403576040805162461bcd60e51b815260206004820152601660248201527511925193d4d95d0e881ad95e481b9bdd08199bdd5b9960521b604482015290519081900360640190fd5b60008181526002830160205260408120600181015481549192909190613428866140de565b9050600061343587613a4f565b600085815260028901602052604080822086835291209192509061345889614260565b6001141561346f576000808a5560018a01556134a9565b8388141561348657600060018201558489556134a9565b8288141561349e5760008255600189018690556134a9565b848255600181018690555b6134bc60038a018963ffffffff614d1416565b50505060009485525050506002909201602052604081208181556001015550565b6000806000806000806000805b60006134f66018614260565b118015613503575060008a115b1561380657885a101561356c577f4aa267fa2287581bf918dc7983bf82ea76b2a4da4a0547d80d903808b56da9f7335a604080516001600160a01b0390931683526020830191909152818101849052519081900360600190a160009750505050505050506117d5565b61357660186140de565b6000818152601260205260409020805460018201549299506001600160a01b031697509094506135a585614e0f565b95508561364e57841561361857604080516208ae8d60eb1b815290519081900360030190206135e090600c908988600063ffffffff612ed916565b604080518681529051899133917ff82d0d34c08930bc9f8e987fd50bea3840aeaae5cd4b5291ad47e3a9c00f2cd19181900360200190a35b600088815260126020526040812080546001600160a01b03191681556001015561364960188963ffffffff6133af16565b613800565b6136578b614e1b565b93508a92508385101561366b578493508592505b604080518581526020810185905281516001600160a01b038a16928b9233927f776137802df19e3b87a42166c59a2f6adaa28d46b8e1f0cc370e78b49516d622929181900390910190a460408051631213d11360e21b815290519081900360040190206136e490600c903386600063ffffffff612cc816565b60408051631213d11360e21b8152905190819003600401902061371390600c908986600063ffffffff612ed916565b604080516208ae8d60eb1b8152905190819003600301902061374190600c903387600063ffffffff612ed916565b8385141561377f57600088815260126020526040812080546001600160a01b03191681556001015561377a60188963ffffffff6133af16565b6137f1565b60408051808201909152600b81526a0486f646c446578203530360ac1b60208201526137b4908690869063ffffffff614b6c16565b600182015560408051808201909152600b81526a486f646c4465782035303160a81b60208201526137ee908c90859063ffffffff614b6c16565b9a505b600191820191613800906142c7565b506134ea565b509798975050505050505050565b60006802b5e3af16b1880000613829836122b5565b11801561383d575061383b6018614260565b155b156111ae5761384a614e32565b90506000613856611d24565b50600083815260116020526040902090915061387960138463ffffffff614e7c16565b60408051858152602081018490528151339286927f859b9b1aca54f86cfca352a982e638c932e7fd450a59878afb01597257d13c9c929081900390910190a360408051631213d11360e21b815290519081900360040190206138e790600c903360008863ffffffff612ed916565b80546001600160a01b031916339081178255600182018590556002820183905560408051631213d11360e21b8152905190819003600401902061393691600c919087600063ffffffff612cc816565b5050919050565b60004360095414156139525750600b54611507565b600061395c612c39565b600b829055436009559092509050806139bb57600a805460010190819055604080513381526020810192909252818101849052517f1b6826f6886b75b3eaec36667372cfd16e72a81e148c098ededb06c10616e85d9181900360600190a15b604080513381526020810184905281517f0a4debdfc51da746dcb19f892eac110ce7d5d1c86475813bc7940be5c100eab4929181900390910190a1604080516208ae8d60eb1b81529051908190036003019020613a2090600c9063ffffffff614f7416565b60408051631213d11360e21b81529051908190036004019020613a4b90600c9063ffffffff614f7416565b5090565b6001015490565b60008281526004840160205260408120805482918291819086908110613a7857fe5b906000526020600020906003020160000154816000018681548110613a9957fe5b906000526020600020906003020160010154826000018781548110613aba57fe5b9060005260206000209060030201600201549350935093505093509350939050565b60009081526004909101602052604090205490565b60008281526004840160209081526040808320600387015484528184206001600160a01b0386168552600180830185528386208183019095529285206002850154858501548454919690958895949391929087011115613b5c575060009650869350613c0f92505050565b6000846000018781548110613b6d57fe5b600091825260209091206003909102018054835481151598509192509060018a011180613b98575086155b15613bad575060009850613c0f945050505050565b6000836000018a81548110613bbe57fe5b60009182526020822060039190910201600181810154825491870154929450019184670de0b6b3a7640000830281613bf257fe5b049050670de0b6b3a7640000838202049d50505050505050505050505b93509350935093565b3390565b6000828152600160205260409020613c3a908263ffffffff614f8016565b1561188157613c47613c18565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152600484016020526040812081613ca7868686613cff565b905080613cb957600092505050611b2f565b6001600160a01b0384166000908152600183016020526040812080546000198401908110613ce357fe5b6000918252602090912060039091020154979650505050505050565b600082815260048401602090815260408083206001600160a01b03851684526001019091529020549392505050565b6000828152600160205260409020613d4c908263ffffffff614f9516565b1561188157613d59613c18565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60008281526004840160209081526040808320600387015484528184206001600160a01b038616855260018083018552838620908201909452918420909290613de68888614f74565b6000806000613df68b8b8b613af1565b929a509094509250905080613e15576000975050505050505050611b2f565b6000876000018381548110613e2657fe5b906000526020600020906003020190508a8a6001600160a01b03167f703e744cb3ae9492e7b192242cd2a9916b267e8be750ff02a0961442d87ac60983600201548c88886040518085815260200184815260200183815260200182815260200194505050505060405180910390a3613ea28c8c8c8c6000612ed9565b6000613eae8686614faa565b90506000613ebc8e86614ff4565b9050613eca8e8e8e88615053565b895460018901541415613ef457505093546000190160029095019490945550611b2f945050505050565b808211613f2b57613f078e8e8e896150a2565b613f128e8e8e613af1565b50909750613f24915088905087614faa565b9150613ef4565b505050505050505050509392505050565b600082820183811015611b2f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000611b2f83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250614b6c565b600082613fe7575060006117d5565b82820282848281613ff457fe5b0414611b2f5760405162461bcd60e51b81526004018080602001828103825260218152602001806155a86021913960400191505060405180910390fd5b6000611b2f83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061510e565b600083815260048501602090815260408083206001600160a01b03861684526001810190925282208054839283929091839190879081106140b057fe5b6000918252602090912060039091020180546001820154600290920154909b919a5098509650505050505050565b5490565b60008281526004840160205260408120816140fe868686613cff565b90508061411057600092505050611b2f565b6001600160a01b038416600090815260018301602052604090208054600019830190811061413a57fe5b906000526020600020906003020160010154925050509392505050565b60006141638383614cff565b6141ad576040805162461bcd60e51b815260206004820152601660248201527511925193d4d95d0e881ad95e481b9bdd08199bdd5b9960521b604482015290519081900360640190fd5b506000908152600291909101602052604090206001015490565b60006141d38383614cff565b61421d576040805162461bcd60e51b815260206004820152601660248201527511925193d4d95d0e881ad95e481b9bdd08199bdd5b9960521b604482015290519081900360640190fd5b506000908152600291909101602052604090205490565b6000611b2f8383615173565b6000611b2f836001600160a01b0384166151d7565b60006117d5826140de565b60006117d582600301613a4f565b60008281526001602052604090206002015461428c90611837613c18565b611b8d5760405162461bcd60e51b81526004018080602001828103825260308152602001806155286030913960400191505060405180910390fd5b80156111905760065460006142f86142eb655af3107a40008563ffffffff613fd816565b839063ffffffff613f3c16565b6006819055604080513381526020810186905280820183905290519192507f9c333ae1cc367c5edbb5f945c128b377930f21862f1679bd163c93cef65e1a68919081900360600190a1505050565b8054604080518082019091526004815263281a981960e11b6020820152600091829161437991429163ffffffff614b6c16565b90508260010154818161438857fe5b049392505050565b303b1590565b61439e61546b565b506040805160608101825260008082526020820181905291810182905260038801869055848855600188018490556002880180546001600160a01b0319166001600160a01b038516179055905b865481101561445e57600088600401600089848154811061440857fe5b6000918252602080832090910154835282810193909352604091820181208054600181810183559183529184902087516003909302019182559286015181840155908501516002909101559190910190506143eb565b5050505050505050565b6000806000806000806000806000805b60006144846013614260565b118015614491575060008c115b15614846578a5a10156144fc577f4aa267fa2287581bf918dc7983bf82ea76b2a4da4a0547d80d903808b56da9f7335a604080516001600160a01b0390931683526020830191909152818101849052519081900360600190a1600099505050505050505050506117d5565b61450660136140de565b6000818152601160205260409020805460018201546002830154939c506001600160a01b039091169a509750909550614559614554670de0b6b3a7640000611daf8a8a63ffffffff613fd816565b6151ef565b9750876146385786156145fb576040805188815290518b9133917f766e265970a9d07808a7d69d71eed292addad9a58d5bd5739279d312ac6f1d469181900360200190a360408051631213d11360e21b815290519081900360040190206145cc90600c908b8a600063ffffffff612ed916565b60408051631213d11360e21b815290519081900360040190206145fb90600c908b60008b63ffffffff612cc816565b60008a815260116020526040812080546001600160a01b0319168155600181018290556002015561463360138b63ffffffff6133af16565b614840565b8c9450614644856124a3565b935061466286611daf86670de0b6b3a764000063ffffffff613fd816565b925084881015614673578794508692505b604080518681526020810185905281516001600160a01b038c16928d9233927f1bba592cf2bf9b4f8f3adc25fb5285b07027e631563a4ac6fc49ff651801f9f2929181900390910190a4604080516208ae8d60eb1b815290519081900360030190206146eb90600c903388600063ffffffff612cc816565b604080516208ae8d60eb1b8152905190819003600301902061471990600c908b88600063ffffffff612ed916565b60408051631213d11360e21b8152905190819003600401902061474890600c903386600063ffffffff612ed916565b60408051631213d11360e21b8152905190819003600401902061477790600c908b60008763ffffffff612cc816565b60408051808201909152600b81526a486f646c4465782035303360a81b60208201526147ac908e90879063ffffffff614b6c16565b9c50828714156147f35760008a815260116020526040812080546001600160a01b031916815560018101829055600201556147ee60138b63ffffffff6133af16565b614831565b60408051808201909152600b81526a121bd91b11195e080d4c0d60aa1b6020820152600182015461482b91859063ffffffff614b6c16565b60018201555b600191820191614840906142c7565b50614478565b50999a9950505050505050505050565b600080808084156149f857600061486c86614e0f565b60408051631213d11360e21b8152905190819003600401902090915061489b90600c903063ffffffff613c8b16565b9150818111156148ab57816148ad565b805b935083156149f6576148be84614e1b565b6040805182815260208101879052815192955033927fc7a2c2400cc73e0579846bf1a4a815fea06f2b8e66c83d8f3de8364d3d2ec289929181900390910190a260408051631213d11360e21b8152905190819003600401902061492d90600c903087600063ffffffff612cc816565b60408051631213d11360e21b8152905190819003600401902061495c90600c903387600063ffffffff612ed916565b604080516208ae8d60eb1b8152905190819003600301902061498a90600c903386600063ffffffff612cc816565b604080516208ae8d60eb1b815290519081900360030190206149b590600c908563ffffffff6132bd16565b60408051808201909152600b81526a486f646c4465782035303560a81b60208201526149ea908790859063ffffffff614b6c16565b95506149f660016142c7565b505b50929392505050565b60006802b5e3af16b1880000614a16836124a3565b118015614a2a5750614a286013614260565b155b156111ae57614a37614e32565b604080518481529051919250339183917fadae744503607b1ac6c8feb1a54fb687ecba33f5d4cc59fdde26dd19de99f0b5919081900360200190a36000818152601260205260409020614a9160188363ffffffff614e7c16565b604080516208ae8d60eb1b81529051908190036003019020614abf90600c903386600063ffffffff612cc816565b6001810183905580546001600160a01b03191633179055919050565b600082815260048401602052604081208190819081614afb888888613cff565b905080614b14575060009350839250829150611e0f9050565b6001600160a01b0386166000908152600183016020526040812080546000198401908110614b3e57fe5b6000918252602090912060039091020180546002820154600190920154909b919a5098509650505050505050565b60008184841115614bfb5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015614bc0578181015183820152602001614ba8565b50505050905090810190601f168015614bed5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008181526004830160205260408120805490919082906000198101908110614c2857fe5b906000526020600020906003020190506000614c4385614346565b9050614c4e85615205565b8255614c5861546b565b50604080516060808201835260008083526020808401828152848601878152895460018181018c558b865294849020875160039092020190815591518285015551600291820155918701548754928801548651338152928301919091528186019290925291820152608081018490529151909186917f0d4b8133b244cfec82d848130189d3c9787263ecbcf6d4432f2d167642547d909181900360a00190a2505050505050565b6000611b2f600384018363ffffffff61527e16565b614d1e828261527e565b614d595760405162461bcd60e51b815260040180806020018281038252602a8152602001806154de602a913960400191505060405180910390fd5b60006001614d6684613a4f565b6000848152602086905260409020549190039150808214614dd7576000846001018381548110614d9257fe5b90600052602060002001549050818560000160008381526020019081526020016000208190555080856001018381548110614dc957fe5b600091825260209091200155505b60008381526020859052604081205560018401805480614df357fe5b6001900381819060005260206000200160009055905550505050565b60008061119f836152c6565b600080614e27836122b5565b90506111aa816151ef565b60088054600101908190556040805130606090811b6020808401919091523390911b6034830152604880830194909452825180830390940184526068909101909152815191012090565b80614ece576040805162461bcd60e51b815260206004820152601b60248201527f4649464f5365743a206b65792063616e6e6f74206265207a65726f0000000000604482015290519081900360640190fd5b614ed88282614cff565b15614f23576040805162461bcd60e51b81526020600482015260166024820152754649464f5365743a206475706c6963617465206b657960501b604482015290519081900360640190fd5b60018201546000828152600284016020526040808220838352912082614f4b57838555614f4f565b8381555b60018201839055614f69600386018563ffffffff6152ec16565b505050600190910155565b611881828260006132bd565b6000611b2f836001600160a01b03841661535b565b6000611b2f836001600160a01b0384166153a5565b8154600090600183011015614fe457826000018260010181548110614fcb57fe5b90600052602060002090600302016002015490506117d5565b50670de0b6b3a764000092915050565b60038201546000908152600483016020526040812080546001840110156150405780600001836001018154811061502757fe5b906000526020600020906003020160020154915061504c565b670de0b6b3a763ffff91505b5092915050565b600083815260048501602052604090205481101561509c57600083815260048501602090815260408083206001600160a01b038616845260019081019092529091208183019101555b50505050565b6003840154600090815260048501602090815260408083206001600160a01b038616845260010190915290205481101561509c576000928352600493909301602090815260408084206001600160a01b0393909316845260019283019091529091209101600290910155565b6000818361515d5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315614bc0578181015183820152602001614ba8565b50600083858161516957fe5b0495945050505050565b815460009082106151b55760405162461bcd60e51b815260040180806020018281038252602281526020018061548d6022913960400191505060405180910390fd5b8260000182815481106151c457fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b60006117d56122fa670de0b6b3a76400006152c6565b600281015460408051639358928b60e01b815290516000926001600160a01b031691639358928b916004808301926020929190829003018186803b15801561524c57600080fd5b505afa158015615260573d6000803e3d6000fd5b505050506040513d602081101561527657600080fd5b505192915050565b6001820154600090615292575060006117d5565b60008281526020849052604090205460018401805484929081106152b257fe5b906000526020600020015414905092915050565b60006117d5670de0b6b3a7640000611daf6152df61393d565b859063ffffffff613fd816565b6152f6828261527e565b156153325760405162461bcd60e51b815260040180806020018281038252602a8152602001806155c9602a913960400191505060405180910390fd5b600180830180546000848152602095865260408120829055928101825590825292902090910155565b600061536783836151d7565b61539d575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556117d5565b5060006117d5565b6000818152600183016020526040812054801561546157835460001980830191908101906000908790839081106153d857fe5b90600052602060002001549050808760000184815481106153f557fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061542557fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506117d5565b60009150506117d5565b6040518060600160405280600081526020016000815260200160008152509056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e74427974657333325365743a206b657920646f6573206e6f7420657869737420696e20746865207365742e486f646c6544657820756e696e697469616c697a65642e000000000000000000416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65596f75206d7573742073656e642045746820746f20746869732066756e6374696f6e496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a6564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77427974657333325365743a206b657920616c72656164792065786973747320696e20746865207365742e416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a2646970667358221220897215040cb1ff2c6da5afae2f000b4233a82e9c16cf0340b2f4f468c834292b64736f6c63430006060033

Deployed Bytecode Sourcemap

82369:35225:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;9;2:12;91953:349:0;;5:9:-1;2:2;;;27:1;24;17:12;2:2;91953:349:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;91953:349:0;;:::i;:::-;;83133:62;;5:9:-1;2:2;;;27:1;24;17:12;2:2;83133:62:0;;;:::i;:::-;;;;;;;;;;;;;;;;92669:295;;5:9:-1;2:2;;;27:1;24;17:12;2:2;92669:295:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;92669:295:0;;:::i;107311:168::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;107311:168:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;107311:168:0;;:::i;103403:550::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;103403:550:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;103403:550:0;;:::i;93977:544::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;93977:544:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;93977:544:0;;;;;;;:::i;91608:92::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;91608:92:0;;;:::i;111392:112::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;111392:112:0;;;:::i;83062:64::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;83062:64:0;;;:::i;86001:23::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;86001:23:0;;;:::i;103959:364::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;103959:364:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;103959:364:0;;:::i;114116:194::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;114116:194:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;114116:194:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;112818:120;;5:9:-1;2:2;;;27:1;24;17:12;2:2;112818:120:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;71395:114;;5:9:-1;2:2;;;27:1;24;17:12;2:2;71395:114:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;71395:114:0;;:::i;83271:52::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;83271:52:0;;;:::i;90689:198::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;90689:198:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;90689:198:0;-1:-1:-1;;;;;90689:198:0;;:::i;113969:139::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;113969:139:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;113969:139:0;;:::i;113631:330::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;113631:330:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;113631:330:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;107491:170;;5:9:-1;2:2;;;27:1;24;17:12;2:2;107491:170:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;107491:170:0;;:::i;71771:227::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;71771:227:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;71771:227:0;;;;;;-1:-1:-1;;;;;71771:227:0;;:::i;116643:651::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;116643:651:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;116643:651:0;-1:-1:-1;;;;;116643:651:0;;:::i;114349:164::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;114349:164:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;114349:164:0;;;;;;-1:-1:-1;;;;;114349:164:0;;:::i;72980:209::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;72980:209:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;72980:209:0;;;;;;-1:-1:-1;;;;;72980:209:0;;:::i;93387:176::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;93387:176:0;;;:::i;82987:68::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;82987:68:0;;;:::i;85795:27::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;85795:27:0;;;:::i;107881:240::-;;;:::i;108692:626::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;108692:626:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;114521:224;;5:9:-1;2:2;;;27:1;24;17:12;2:2;114521:224:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;114521:224:0;;;-1:-1:-1;;;;;114521:224:0;;;;;;;;;;:::i;111822:112::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;111822:112:0;;;:::i;83330:54::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;83330:54:0;;;:::i;111272:114::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;111272:114:0;;;:::i;92310:351::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;92310:351:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;92310:351:0;;:::i;86516:46::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;86516:46:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;86516:46:0;;:::i;:::-;;;;-1:-1:-1;;;;;86516:46:0;;;;;;;;;;;;;;;;;;;;;;;;;86092:19;;5:9:-1;2:2;;;27:1;24;17:12;2:2;86092:19:0;;;:::i;83202:60::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;83202:60:0;;;:::i;112944:201::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;112944:201:0;;;:::i;116098:197::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;116098:197:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;116098:197:0;;:::i;112256:315::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;112256:315:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;112256:315:0;-1:-1:-1;;;;;112256:315:0;;:::i;111512:191::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;111512:191:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;111512:191:0;;:::i;112577:113::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;112577:113:0;;;:::i;86569:44::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;86569:44:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;86569:44:0;;:::i;:::-;;;;-1:-1:-1;;;;;86569:44:0;;;;;;;;;;;;;;;;;;;;;71068:138;;5:9:-1;2:2;;;27:1;24;17:12;2:2;71068:138:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;71068:138:0;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;71068:138:0;;;;;;;;;;;;;;70029:139;;5:9:-1;2:2;;;27:1;24;17:12;2:2;70029:139:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;70029:139:0;;;;;;-1:-1:-1;;;;;70029:139:0;;:::i;110915:204::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;110915:204:0;;;:::i;107095:::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;107095:204:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;107095:204:0;;:::i;106879:::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;106879:204:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;106879:204:0;;:::i;68774:49::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;68774:49:0;;;:::i;106718:149::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;106718:149:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;106718:149:0;;:::i;116307:324::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;116307:324:0;;;;;;;;:::i;111940:110::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;111940:110:0;;;:::i;112060:188::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;112060:188:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;112060:188:0;;:::i;90210:98::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;90210:98:0;;;:::i;106577:130::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;106577:130:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;106577:130:0;;:::i;108133:314::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;108133:314:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;108133:314:0;;:::i;70342:127::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;70342:127:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;70342:127:0;;:::i;111709:107::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;111709:107:0;;;:::i;85473:32::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;85473:32:0;;;:::i;112696:116::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;112696:116:0;;;:::i;117412:179::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;117412:179:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;117412:179:0;;;;;;-1:-1:-1;;;;;117412:179:0;;:::i;90320:117::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;90320:117:0;;;:::i;93203:172::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;93203:172:0;;;:::i;85891:25::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;85891:25:0;;;:::i;109947:139::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;109947:139:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;109947:139:0;;:::i;91137:177::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;91137:177:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;91137:177:0;;:::i;113437:96::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;113437:96:0;;;:::i;115010:1080::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;115010:1080:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;115010:1080:0;;;;;;;;;;:::i;98427:581::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;98427:581:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;98427:581:0;;;;;;;:::i;111157:109::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;111157:109:0;;;:::i;105142:258::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;105142:258:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;91953:349;87397:11:::1;:9;:11::i;:::-;87389:47;;;::::0;;-1:-1:-1;;;87389:47:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;;;;;;;;;87389:47:0;;;;;;;;;;;;;::::1;;92050:12:::2;::::0;:49:::2;::::0;;-1:-1:-1;;;92050:49:0;;92077:10:::2;92050:49;::::0;::::2;::::0;;;;;;;;;92032:15:::2;::::0;-1:-1:-1;;;;;92050:12:0::2;::::0;:26:::2;::::0;:49;;;;;::::2;::::0;;;;;;;;92032:15;92050:12;:49;::::2;;2:2:-1::0;::::2;;;27:1;24::::0;17:12:::2;2:2;92050:49:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::2;77:16;74:1;67:27;5:2;92050:49:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28::::0;21:12:::2;4:2;-1:-1:::0;92050:49:0;92115:46:::2;::::0;;;;;92050:49:::2;92115:46:::0;::::2;::::0;;;;;92050:49;;-1:-1:-1;92127:10:0::2;::::0;92115:46:::2;::::0;;;;;;;;;::::2;83367:17;::::0;;-1:-1:-1;;;83367:17:0;;;;;;;;::::2;::::0;;;92172:50:::2;::::0;:7:::2;::::0;92196:10:::2;92208::::0;92220:1:::2;92172:50;:11;:50;:::i;:::-;83367:17;::::0;;-1:-1:-1;;;83367:17:0;;;;;;;;::::2;::::0;;;92265:12:::2;::::0;92233:61:::2;::::0;:7:::2;::::0;-1:-1:-1;;;;;92265:12:0::2;92280:10:::0;92265:12:::2;92233:61;:11;:61;:::i;:::-;87447:1;87509:15:::0;:13;:15::i;:::-;;;91953:349;:::o;83133:62::-;83171:24;;;-1:-1:-1;;;83171:24:0;;;;;;;;;;;;83133:62;:::o;92669:295::-;87397:11;:9;:11::i;:::-;87389:47;;;;;-1:-1:-1;;;87389:47:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;87389:47:0;;;;;;;;;;;;;;;83101:25:::1;::::0;;-1:-1:-1;;;83101:25:0;;;;;;;;::::1;::::0;;;87268:33:::1;::::0;87290:10:::1;87268:7;:33::i;:::-;87260:66;;;::::0;;-1:-1:-1;;;87260:66:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;87260:66:0;;;;;;;;;;;;;::::1;;92772:49:::2;::::0;;92798:10:::2;92772:49:::0;;::::2;::::0;::::2;::::0;;;;;::::2;::::0;;;;;;;;;::::2;83367:17;::::0;;-1:-1:-1;;;83367:17:0;;;;;;;;::::2;::::0;;;92864:12:::2;::::0;92832:61:::2;::::0;:7:::2;::::0;-1:-1:-1;;;;;92864:12:0::2;92879:10:::0;92864:12:::2;92832:61;:11;:61;:::i;:::-;83367:17;::::0;;-1:-1:-1;;;83367:17:0;;;;;;;;::::2;::::0;;;92904:52:::2;::::0;:7:::2;::::0;92945:10;92904:52:::2;:28;:52;:::i;:::-;92669:295:::0;:::o;107311:168::-;107370:11;107394:10;107407:23;107423:6;107407:15;:23::i;:::-;107394:36;;107448:23;107465:5;107448:16;:23::i;:::-;107441:30;;;107311:168;;;;:::o;103403:550::-;87397:11;:9;:11::i;:::-;87389:47;;;;;-1:-1:-1;;;87389:47:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;87389:47:0;;;;;;;;;;;;;;;103528:39:::1;::::0;103470:12:::1;::::0;;;103559:7;;103547:10:::1;::::0;103528:39:::1;::::0;103470:12;;103528:39:::1;-1:-1:-1::0;103578:19:0::1;103600:18:::0;;;:9:::1;:18;::::0;;;;103643:8;;-1:-1:-1;;;;;103643:8:0::1;::::0;103682:10:::1;103670:22:::0;::::1;103662:55;;;::::0;;-1:-1:-1;;;103662:55:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;103662:55:0;;;;;;;;;;;;;::::1;;103738:12;::::0;::::1;::::0;83367:17:::1;::::0;;-1:-1:-1;;;83367:17:0;;;;;;;;::::1;::::0;;;103738:12;;-1:-1:-1;103761:47:0::1;::::0;:7:::1;::::0;103785:10:::1;103738:12:::0;103806:1:::1;103761:47;:11;:47;:::i;:::-;103819:31;:15;103842:7:::0;103819:31:::1;:22;:31;:::i;:::-;83367:17;::::0;;-1:-1:-1;;;83367:17:0;;;;;;;;::::1;::::0;;;103861:48:::1;::::0;:7:::1;::::0;103885:11;103898:1:::1;103901:7:::0;103861:48:::1;:11;:48;:::i;:::-;-1:-1:-1::0;;;103927:18:0::1;::::0;;;:9:::1;:18;::::0;;;;103920:25;;-1:-1:-1;;;;;;103920:25:0::1;::::0;;;;::::1;::::0;;;::::1;;::::0;103403:550::o;93977:544::-;94068:15;87397:11:::1;:9;:11::i;:::-;87389:47;;;::::0;;-1:-1:-1;;;87389:47:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;;;;;;;;;87389:47:0;;;;;;;;;;;;;::::1;;94101:52:::2;::::0;;;;;::::2;::::0;::::2;::::0;;;;;94120:10:::2;::::0;94101:52:::2;::::0;;;;;;::::2;94164:13;94180:30;94197:12;94180:16;:30::i;:::-;94164:46;;94222:15;94240:12;:10;:12::i;:::-;94222:30;;84386:13;94271:8;:25;;94263:56;;;::::0;;-1:-1:-1;;;94263:56:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;94263:56:0;;;;;;;;;;;;;::::2;;94350:10;94338:8;:22;;:41;;;-1:-1:-1::0;94364:15:0;;94338:41:::2;94330:72;;;::::0;;-1:-1:-1;;;94330:72:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;94330:72:0;;;;;;;;;;;;;::::2;;94428:36;94443:12;94457:6;94428:14;:36::i;:::-;94413:51;;94485:28;94500:12;94485:14;:28::i;:::-;94475:38;;87447:1;;87509:15:::0;:13;:15::i;:::-;;;93977:544;;;;:::o;91608:92::-;87397:11;:9;:11::i;:::-;87389:47;;;;;-1:-1:-1;;;87389:47:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;87389:47:0;;;;;;;;;;;;;;;91652:15:::1;:13;:15::i;:::-;;;91678:14;:12;:14::i;111392:112::-:0;111437:15;111473:22;:15;:20;:22::i;:::-;111466:29;;111392:112;;:::o;83062:64::-;83101:25;;;-1:-1:-1;;;83101:25:0;;;;;;;;;;;;83062:64;:::o;86001:23::-;;;;:::o;103959:364::-;87397:11;:9;:11::i;:::-;87389:47;;;;;-1:-1:-1;;;87389:47:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;87389:47:0;;;;;;;;;;;;;;;104025:18:::1;104046:17:::0;;;:8:::1;:17;::::0;;;;;104079:38;;104046:17;;104055:7;;104097:10:::1;::::0;104079:38:::1;::::0;::::1;104136:7:::0;;-1:-1:-1;;;;;104136:7:0::1;104147:10;104136:21;104128:53;;;::::0;;-1:-1:-1;;;104128:53:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;104128:53:0;;;;;;;;;;;;;::::1;;83307:16;::::0;;-1:-1:-1;;;83307:16:0;;;;;;;;::::1;::::0;;;104227:8:::1;::::0;::::1;::::0;104192:47:::1;::::0;:7:::1;::::0;104215:10:::1;::::0;104237:1:::1;104192:47;:11;:47;:::i;:::-;104250:30;:14;104272:7:::0;104250:30:::1;:21;:30;:::i;:::-;-1:-1:-1::0;104298:17:0::1;::::0;;;:8:::1;:17;::::0;;;;104291:24;;-1:-1:-1;;;;;;104291:24:0::1;::::0;;;::::1;::::0;103959:364::o;114116:194::-;114196:16;;;114259:43;:7;114287;114296:5;114259:43;:27;:43;:::i;:::-;114252:50;;;;;;114116:194;;;;;:::o;112818:120::-;83028:27;;;-1:-1:-1;;;83028:27:0;;;;;;;;;;;;112859:12;;112891:34;;:18;:34::i;:::-;:39;;-1:-1:-1;112818:120:0;:::o;71395:114::-;71452:7;71479:12;;;:6;:12;;;;;:22;;;;71395:114::o;83271:52::-;83307:16;;;-1:-1:-1;;;83307:16:0;;;;;;;;;;;;83271:52;:::o;90689:198::-;83239:23;;;-1:-1:-1;;;83239:23:0;;;;;;;;;;;;86882:31;;86902:10;86882:7;:31::i;:::-;86874:61;;;;;-1:-1:-1;;;86874:61:0;;;;;;;;;;;;-1:-1:-1;;;86874:61:0;;;;;;;;;;;;;;;90761:6:::1;:16:::0;;-1:-1:-1;;;;;;90761:16:0::1;-1:-1:-1::0;;;;;90761:16:0;::::1;::::0;;::::1;::::0;;;90840:39:::1;::::0;;90850:10:::1;90840:39:::0;;::::1;::::0;::::1;::::0;;;;;;::::1;::::0;;;;;;;;::::1;90689:198:::0;:::o;113969:139::-;114035:10;114066:34;:7;114092;114066:34;:25;:34;:::i;:::-;114058:42;113969:139;-1:-1:-1;;113969:139:0:o;113631:330::-;113735:11;;;;113899:54;:7;113935;113944:8;113899:54;:35;:54;:::i;:::-;113847:106;;;;-1:-1:-1;113847:106:0;-1:-1:-1;113847:106:0;;-1:-1:-1;113631:330:0;-1:-1:-1;;;113631:330:0:o;107491:170::-;107551:10;107575;107588:25;107605:7;107588:16;:25::i;:::-;107575:38;;107631:22;107647:5;107631:15;:22::i;71771:227::-;71863:12;;;;:6;:12;;;;;:22;;;71855:45;;71887:12;:10;:12::i;:::-;71855:7;:45::i;:::-;71847:105;;;;-1:-1:-1;;;71847:105:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71965:25;71976:4;71982:7;71965:10;:25::i;:::-;71771:227;;:::o;116643:651::-;83028:27;;;-1:-1:-1;;;83028:27:0;;;;;;;;;;;;87135:35;;87159:10;87135:7;:35::i;:::-;87127:69;;;;;-1:-1:-1;;;87127:69:0;;;;;;;;;;;;-1:-1:-1;;;87127:69:0;;;;;;;;;;;;;;;116731:39:::1;::::0;;116749:10:::1;116731:39:::0;;;;-1:-1:-1;;;;;116731:39:0;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;::::1;83367:17;::::0;;-1:-1:-1;;;83367:17:0;;;;;;;;;::::1;::::0;;;;;;;;;;;;;;;;;;;116781:82:::1;::::0;83367:17;116813:4:::1;::::0;116820:39:::1;::::0;:7:::1;::::0;116850:8;116820:39:::1;:17;:39;:::i;:::-;116781:7;::::0;:82;;116861:1:::1;116781:82;:11;:82;:::i;:::-;83367:17;::::0;;-1:-1:-1;;;83367:17:0;;;;;;;;;::::1;::::0;;;;;;;;;;;;;;;;;;;116874:77:::1;::::0;83367:17;116898:8;;116908:39:::1;::::0;:7:::1;::::0;116898:8;116908:39:::1;:17;:39;:::i;:::-;116874:7;::::0;:77;;116949:1:::1;116874:77;:11;:77;:::i;:::-;83307:16;::::0;;-1:-1:-1;;;83307:16:0;;;;;;;;;::::1;::::0;;;;;;;;;;;;;;;;;;;116962:75:::1;::::0;83307:16;116985:8;;116995:38:::1;::::0;:7:::1;::::0;116985:8;116995:38:::1;:17;:38;:::i;116962:75::-;83307:16;::::0;;-1:-1:-1;;;83307:16:0;;;;;;;;::::1;::::0;;;117092:1:::1;::::0;117051:38:::1;::::0;:7:::1;::::0;117080:8;117051:38:::1;:17;:38;:::i;:::-;:42;117048:239;;;83307:16;::::0;;-1:-1:-1;;;83307:16:0;;;;;;;;::::1;::::0;;;117111:12:::1;::::0;117152:10:::1;::::0;117176:38:::1;::::0;:7:::1;::::0;117205:8;117176:38:::1;:17;:38;:::i;:::-;117152:68;::::0;::::1;::::0;;;;;::::1;;;;;;;12:1:-1;19;14:27;;;;67:4;61:11;56:16;;134:4;130:9;123:4;105:16;101:27;97:43;94:1;90:51;84:4;77:65;157:16;154:1;147:27;211:16;208:1;201:4;198:1;194:12;179:49;5:228;;14:27;32:4;27:9;;5:228;;117110:110:0;;;117243:7;117235:40;;;::::0;;-1:-1:-1;;;117235:40:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;117235:40:0;;;;;;;;;;;;;::::1;114349:164:::0;114432:10;114462:43;:7;114487;114496:8;114462:43;:24;:43;:::i;:::-;114455:50;114349:164;-1:-1:-1;;;114349:164:0:o;72980:209::-;73078:12;:10;:12::i;:::-;-1:-1:-1;;;;;73067:23:0;:7;-1:-1:-1;;;;;73067:23:0;;73059:83;;;;-1:-1:-1;;;73059:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;73155:26;73167:4;73173:7;73155:11;:26::i;93387:176::-;93455:15;87397:11;:9;:11::i;:::-;87389:47;;;;;-1:-1:-1;;;87389:47:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;87389:47:0;;;;;;;;;;;;;;;83367:17:::1;::::0;;-1:-1:-1;;;83367:17:0;;;;;;;;::::1;::::0;;;93496:59:::1;::::0;:7:::1;::::0;93544:10:::1;93496:59;:35;:59;:::i;82987:68::-:0;83028:27;;;-1:-1:-1;;;83028:27:0;;;;;;;;;;;;82987:68;:::o;85795:27::-;;;;:::o;107881:240::-;87397:11;:9;:11::i;:::-;87389:47;;;;;-1:-1:-1;;;87389:47:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;87389:47:0;;;;;;;;;;;;;;;107961:1:::1;107949:9;:13;107941:60;;;;-1:-1:-1::0;;;107941:60:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;108017:37;::::0;;108044:9:::1;108017:37:::0;;;;108032:10:::1;::::0;108017:37:::1;::::0;;;;;::::1;::::0;;::::1;83307:16;::::0;;-1:-1:-1;;;83307:16:0;;;;;;;;::::1;::::0;;;108065:48:::1;::::0;:7:::1;::::0;108088:10:::1;108100:9;108111:1;108065:48;:11;:48;:::i;:::-;107881:240::o:0;108692:626::-;108787:8;;108825:18;;108729:12;108871:24;84269:10;83856:7;108871:24;:12;:24;:::i;:::-;108854:41;;108915:9;108909:3;:15;108906:405;;;108941:18;108985:6;108963:18;:3;108971:9;108963:18;:7;:18;:::i;:::-;108962:29;;;;;;108941:50;;109006:20;109029:39;109047:20;;109029:13;:17;;:39;;;;:::i;:::-;109006:62;-1:-1:-1;109086:19:0;;109083:217;;109136:47;83611:8;109136:32;109149:18;;109136:8;;:12;;:32;;;;:::i;:::-;:36;:47;:36;:47;:::i;:::-;109126:57;;109221:63;83611:8;109221:48;83990:18;109221;;:22;;:48;;;;:::i;:63::-;109202:82;;109083:217;108906:405;;;108692:626;;;:::o;114521:224::-;114618:16;;;114685:52;:7;114712;114721:8;114731:5;114685:52;:26;:52;:::i;:::-;114678:59;;;;;;114521:224;;;;;;;;:::o;111822:112::-;111867:15;111903:22;:14;:20;:22::i;83330:54::-;83367:17;;;-1:-1:-1;;;83367:17:0;;;;;;;;;;;;83330:54;:::o;111272:114::-;111318:15;111354:23;:15;:21;:23::i;92310:351::-;87397:11:::1;:9;:11::i;:::-;87389:47;;;::::0;;-1:-1:-1;;;87389:47:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;;;;;;;;;87389:47:0;;;;;;;;;;;;;::::1;;92408:12:::2;::::0;:48:::2;::::0;;-1:-1:-1;;;92408:48:0;;92434:10:::2;92408:48;::::0;::::2;::::0;;;;;;;;;92390:15:::2;::::0;-1:-1:-1;;;;;92408:12:0::2;::::0;:25:::2;::::0;:48;;;;;::::2;::::0;;;;;;;;92390:15;92408:12;:48;::::2;;2:2:-1::0;::::2;;;27:1;24::::0;17:12:::2;2:2;92408:48:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::2;77:16;74:1;67:27;5:2;92408:48:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28::::0;21:12:::2;4:2;-1:-1:::0;92408:48:0;92472::::2;::::0;;;;;92408::::2;92472::::0;::::2;::::0;;;;;92408;;-1:-1:-1;92486:10:0::2;::::0;92472:48:::2;::::0;;;;;;;;;::::2;83367:17;::::0;;-1:-1:-1;;;83367:17:0;;;;;;;;::::2;::::0;;;92531:50:::2;::::0;:7:::2;::::0;92555:10:::2;92567::::0;92579:1:::2;92531:50;:11;:50;:::i;:::-;83367:17;::::0;;-1:-1:-1;;;83367:17:0;;;;;;;;::::2;::::0;;;92624:12:::2;::::0;92592:61:::2;::::0;:7:::2;::::0;-1:-1:-1;;;;;92624:12:0::2;92639:10:::0;92624:12:::2;92592:61;:11;:61;:::i;86516:46::-:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;86516:46:0;;;;;;:::o;86092:19::-;;;;:::o;83202:60::-;83239:23;;;-1:-1:-1;;;83239:23:0;;;;;;;;;;;;83202:60;:::o;112944:201::-;112986:13;113013:11;113052:7;:5;:7::i;:::-;113012:47;;;84505:13;113078:6;:26;113077:60;;113131:6;84623:4;113112:25;113077:60;;;113108:1;113077:60;113070:67;;;112944:201;:::o;116098:197::-;83028:27;;;-1:-1:-1;;;83028:27:0;;;;;;;;;;;;87135:35;;87159:10;87135:7;:35::i;:::-;87127:69;;;;;-1:-1:-1;;;87127:69:0;;;;;;;;;;;;-1:-1:-1;;;87127:69:0;;;;;;;;;;;;;;;116187:18:::1;:36:::0;;;116239:48:::1;::::0;;116259:10:::1;116239:48:::0;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;;;;;;;;::::1;116098:197:::0;:::o;112256:315::-;83307:16;;;-1:-1:-1;;;83307:16:0;;;;;;;;;;;;112317:15;;;;;;112405:38;;:7;;112434:8;112405:38;:17;:38;:::i;:::-;83367:17;;;-1:-1:-1;;;83367:17:0;;;;;;;;;;;;112458:39;;:7;;112488:8;112458:39;:17;:39;:::i;:::-;83367:17;;;-1:-1:-1;;;83367:17:0;;;;;;;;;;;;112512:50;;:7;;112553:8;112512:50;:28;:50;:::i;:::-;112384:179;;;;;;112256:315;;;;;:::o;111512:191::-;111575:16;;111629:33;:15;111654:7;111629:33;:24;:33;:::i;:::-;111664:29;:15;111685:7;111664:29;:20;:29;:::i;:::-;111622:72;;;;111512:191;;;:::o;112577:113::-;112619:13;112658:24;84269:10;83856:7;112658:24;:12;:24;:::i;:::-;112652:3;:30;112645:37;;112577:113;:::o;86569:44::-;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;86569:44:0;;;;;:::o;71068:138::-;71141:7;71168:12;;;:6;:12;;;;;:30;;71192:5;71168:30;:23;:30;:::i;70029:139::-;70098:4;70122:12;;;:6;:12;;;;;:38;;70152:7;70122:38;:29;:38;:::i;110915:204::-;83367:17;;;-1:-1:-1;;;83367:17:0;;;;;;;;;;;;110966:16;;;;111017:44;;:7;;111055:4;111017:44;:17;:44;:::i;:::-;110995:66;-1:-1:-1;111079:32:0;83717:19;110995:66;111079:32;:16;:32;:::i;107095:204::-;107163:11;107189:13;107231:7;:5;:7::i;:::-;-1:-1:-1;107188:50:0;-1:-1:-1;107256:35:0;107188:50;107256:21;:6;83611:8;107256:21;:10;:21;:::i;106879:204::-;106948:10;106972:13;107014:7;:5;:7::i;:::-;-1:-1:-1;106971:50:0;-1:-1:-1;107039:36:0;83611:8;107039:21;:7;106971:50;107039:21;:11;:21;:::i;68774:49::-;68819:4;68774:49;:::o;106718:149::-;106776:10;106806:53;106832:26;83611:8;106832:15;:26::i;:::-;106806:21;:6;83611:8;106806:21;:10;:21;:::i;116307:324::-;83028:27;;;-1:-1:-1;;;83028:27:0;;;;;;;;;;;;87135:35;;87159:10;87135:7;:35::i;:::-;87127:69;;;;;-1:-1:-1;;;87127:69:0;;;;;;;;;;;;-1:-1:-1;;;87127:69:0;;;;;;;;;;;;;;;83307:16:::1;::::0;;-1:-1:-1;;;83307:16:0;;;;;;;;::::1;::::0;;;116396:46:::1;::::0;:7:::1;::::0;116419:8;116429:9:::1;116440:1;116396:46;:11;:46;:::i;:::-;83367:17;::::0;;-1:-1:-1;;;83367:17:0;;;;;;;;::::1;::::0;;;116453:42:::1;::::0;:7:::1;::::0;116477:8;116487:4;116493:1:::1;116453:42;:11;:42;:::i;:::-;83367:17;::::0;;-1:-1:-1;;;83367:17:0;;;;;;;;::::1;::::0;;;116506:47:::1;::::0;:7:::1;::::0;116538:4:::1;116545::::0;116551:1:::1;116506:47;:11;:47;:::i;:::-;116569:54;::::0;;116585:10:::1;116569:54:::0;;::::1;::::0;::::1;::::0;;;116613:9:::1;116569:54:::0;;;;;;-1:-1:-1;;;;;116569:54:0;::::1;::::0;::::1;::::0;;;;;;;;::::1;116307:324:::0;;:::o;111940:110::-;111984:15;112020:21;:14;:19;:21::i;112060:188::-;112122:16;;112176:32;:14;112200:7;112176:32;:23;:32;:::i;:::-;112210:28;:14;112230:7;112210:28;:19;:28;:::i;90210:98::-;90294:6;;-1:-1:-1;;;;;90294:6:0;90210:98;:::o;106577:130::-;106635:10;106665:34;83611:8;106665:19;106676:7;;106665:6;:10;;:19;;;;:::i;108133:314::-;87397:11;:9;:11::i;:::-;87389:47;;;;;-1:-1:-1;;;87389:47:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;87389:47:0;;;;;;;;;;;;;;;108210:35:::1;::::0;;;;;;;108226:10:::1;::::0;108210:35:::1;::::0;;;;;::::1;::::0;;::::1;83307:16;::::0;;-1:-1:-1;;;83307:16:0;;;;;;;;::::1;::::0;;;108256:45:::1;::::0;:7:::1;::::0;108279:10:::1;108291:6:::0;108299:1:::1;108256:45;:11;:45;:::i;:::-;108354:33;::::0;108313:12:::1;::::0;108354:10:::1;::::0;108376:6;;108313:12;108354:33;108313:12;108354:33;108376:6;108354:10;:33:::1;;;;;;;12:1:-1;19;14:27;;;;67:4;61:11;56:16;;134:4;130:9;123:4;105:16;101:27;97:43;94:1;90:51;84:4;77:65;157:16;154:1;147:27;211:16;208:1;201:4;198:1;194:12;179:49;5:228;;70342:127:0::0;70405:7;70432:12;;;:6;:12;;;;;:29;;:27;:29::i;111709:107::-;111754:10;111785:22;:14;:20;:22::i;85473:32::-;;;;:::o;112696:116::-;112784:6;;-1:-1:-1;;;;;112784:6:0;112776:28;;112696:116;:::o;117412:179::-;117508:1;117498:7;;:11;117490:43;;;;;-1:-1:-1;;;117490:43:0;;;;;;;;;;;;-1:-1:-1;;;117490:43:0;;;;;;;;;;;;;;;117544:39;117569:4;117575:7;117544:24;:39::i;90320:117::-;90417:12;;-1:-1:-1;;;;;90417:12:0;90320:117;:::o;93203:172::-;93270:14;87397:11;:9;:11::i;:::-;87389:47;;;;;-1:-1:-1;;;87389:47:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;87389:47:0;;;;;;;;;;;;;;;83307:16:::1;::::0;;-1:-1:-1;;;83307:16:0;;;;;;;;::::1;::::0;;;93309:58:::1;::::0;:7:::1;::::0;93356:10:::1;93309:58;:35;:58;:::i;85891:25::-:0;;;;:::o;109947:139::-;83171:24;;;-1:-1:-1;;;83171:24:0;;;;;;;;;;;;87006:32;;87027:10;87006:7;:32::i;:::-;86998:63;;;;;-1:-1:-1;;;86998:63:0;;;;;;;;;;;;-1:-1:-1;;;86998:63:0;;;;;;;;;;;;;;;110035:43:::1;110061:16;110035:25;:43::i;91137:177::-:0;83171:24;;;-1:-1:-1;;;83171:24:0;;;;;;;;;;;;87006:32;;87027:10;87006:7;:32::i;:::-;86998:63;;;;;-1:-1:-1;;;86998:63:0;;;;;;;;;;;;-1:-1:-1;;;86998:63:0;;;;;;;;;;;;;;;91206:7:::1;:16:::0;;;91249:12:::1;91233:13;:28:::0;91277:29:::1;::::0;;91287:10:::1;91277:29:::0;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;;;;;;;;::::1;91137:177:::0;:::o;113437:96::-;113477:12;113509:16;:7;:14;:16::i;115010:1080::-;76041:13;;;;;;;;:33;;;76058:16;:14;:16::i;:::-;76041:50;;;-1:-1:-1;76079:12:0;;;;76078:13;76041:50;76033:109;;;;-1:-1:-1;;;76033:109:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76155:19;76178:13;;;;;;76177:14;76202:101;;;;76237:13;:20;;-1:-1:-1;;;;76237:20:0;;;;;76272:19;76253:4;76272:19;;;76202:101;85149:2:::1;115116:20;:44:::0;85242:19:::1;115171:8;:20:::0;85361:19:::1;115202:18;:40:::0;83367:17:::1;::::0;;-1:-1:-1;;;83367:17:0;;;;;;;;;115255:8:::1;83367:17:::0;;;;;27:10:-1;;39:1:::1;23:18:::0;;::::1;45:23:::0;;-1:-1;115255:25:0;;;;;;::::1;::::0;;;;-1:-1:-1;;;83307:16:0;;;;;;;;-1:-1:-1;83307:16:0;;;27:10:-1;;23:18;;::::1;45:23:::0;;115291:24:0;;;;::::1;::::0;83367:17;;;;;;;;;;;;;115379:75:::1;::::0;:7:::1;::::0;115414:3:::1;84762:7;115448:4;115379:75;:12;:75;:::i;:::-;83367:17;::::0;;-1:-1:-1;;;83367:17:0;;;;;;;;::::1;::::0;;;115538:55:::1;::::0;:7:::1;::::0;115570:4:::1;83717:19;115591:1;115538:55;:11;:55;:::i;:::-;115645:6;:16:::0;;-1:-1:-1;;;;;115645:16:0;;::::1;-1:-1:-1::0;;;;;;115645:16:0;;::::1;;::::0;;;115672:12:::1;:28:::0;;;;::::1;::::0;;;::::1;::::0;;;::::1;::::0;;115765:42:::1;115645:6;115796:10;115765;:42::i;:::-;83239:23;::::0;;-1:-1:-1;;;83239:23:0;;;;;;;;::::1;::::0;;;115818:34:::1;::::0;115841:10:::1;115818;:34::i;:::-;83171:24;::::0;;-1:-1:-1;;;83171:24:0;;;;;;;;::::1;::::0;;;115863:35:::1;::::0;115887:10:::1;115863;:35::i;:::-;83028:27;::::0;;-1:-1:-1;;;83028:27:0;;;;;;;;::::1;::::0;;;115909:38:::1;::::0;115936:10:::1;115909;:38::i;:::-;83101:25;::::0;;-1:-1:-1;;;83101:25:0;;;;;;;;::::1;::::0;;;115958:48:::1;::::0;115991:13;115958:10:::1;:48::i;:::-;116032:49;::::0;;116046:10:::1;116032:49:::0;;-1:-1:-1;;;;;116032:49:0;;::::1;;::::0;::::1;::::0;;::::1;::::0;;;;;;::::1;::::0;;;;;;;::::1;76333:14:::0;76329:68;;;76380:5;76364:21;;-1:-1:-1;;76364:21:0;;;115010:1080;;;:::o;98427:581::-;98514:15;87397:11:::1;:9;:11::i;:::-;87389:47;;;::::0;;-1:-1:-1;;;87389:47:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;;;;;;;;;87389:47:0;;;;;;;;;;;;;::::1;;98547:48:::2;::::0;;;;;::::2;::::0;::::2;::::0;;;;;98565:10:::2;::::0;98547:48:::2;::::0;;;;;;::::2;98606:15;98624:12;:10;:12::i;:::-;98606:30;;98656:13;98672:26;98688:9;98672:15;:26::i;:::-;98656:42;;84386:13;98717:8;:25;;98709:57;;;::::0;;-1:-1:-1;;;98709:57:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;98709:57:0;;;;;;;;;;;;;::::2;;98797:10;98785:8;:22;;:41;;;-1:-1:-1::0;98811:15:0;;98785:41:::2;98777:72;;;::::0;;-1:-1:-1;;;98777:72:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;98777:72:0;;;;;;;;;;;;;::::2;;98872:34;98888:9;98899:6;98872:15;:34::i;:::-;98860:46;;98929:26;98945:9;98929:15;:26::i;:::-;98917:38;;98976:24;98990:9;98976:13;:24::i;111157:109::-:0;111203:10;111234:23;:15;:21;:23::i;105142:258::-;105185:13;105200:12;105229:6;;;;;;;;;-1:-1:-1;;;;;105229:6:0;-1:-1:-1;;;;;105229:11:0;;:13;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;105229:13:0;;;;;;;;;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;105229:13:0;;;105225:168;;105374:7;;105363:18;;105225:168;;;105292:8;-1:-1:-1;105325:4:0;;-1:-1:-1;105225:168:0;105142:258;;:::o;23221:1507::-;23345:15;23363:19;;;:10;;;:19;;;;;;;;-1:-1:-1;;;;;23410:13:0;;;;:7;;;:13;;;;;23454:21;;23363:19;;23410:13;;23454:21;23345:15;;23547:44;23363:4;23374:7;23418:4;23547:23;:44::i;:::-;23486:105;;;;;;23613:6;23622:12;23629:4;23622:6;:12::i;:::-;23613:21;;23662:43;23681:11;23662:43;;;;;;;;;;;;;-1:-1:-1;;;23662:43:0;;;:14;:18;;:43;;;;;:::i;:::-;23645:60;;23729:42;23744:14;23729:42;;;;;;;;;;;;;-1:-1:-1;;;23729:42:0;;;:10;:14;;:42;;;;;:::i;:::-;23716:55;;23782:20;;:::i;:::-;-1:-1:-1;23805:124:0;;;;;;;;;;;;;;;;;;;;;;;;;23955:77;;;;;-1:-1:-1;;;;;23955:77:0;;;;;;;;;;;;;;;;;;;;;;;23805:124;;23986:7;;23974:10;;23955:77;;;;;;;;;;24120:1;24105:12;:16;:70;;;;;24137:4;:15;;;24126:7;:26;;:48;;;;24173:1;24156:13;:18;24126:48;24102:160;;;24227:1;24192;:14;;24222:1;24207:12;:16;24192:32;;;;;;;;;;;;;;;;;;:36;;;;;;;;;;;;;;;;;;;;;;;;;;;24244:7;;;;;;;;;;24102:160;24439:19;;;;:10;;;:19;;;;;:40;24406:29;;;;:73;24403:153;;;24523:21;;24496:24;;;:48;24403:153;27:10:-1;;39:1;23:18;;;45:23;;24661:14:0;:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;23221:1507:0;;;;;;:::o;19971:3238::-;20091:15;20109:19;;;:10;;;:19;;;;;;;;-1:-1:-1;;;;;20156:13:0;;;;:7;;;:13;;;;;20109:19;;20091:15;;20241:44;20109:4;20120:7;20164:4;20241:23;:44::i;:::-;20316:21;;20180:105;;-1:-1:-1;20180:105:0;;-1:-1:-1;20180:105:0;-1:-1:-1;20296:17:0;20359:12;20366:4;20359:6;:12::i;:::-;20350:21;-1:-1:-1;20399:29:0;:14;20418:9;20399:29;:18;:29;:::i;:::-;20382:46;-1:-1:-1;20452:28:0;:10;20467:12;20452:28;:14;:28;:::i;:::-;20439:41;;20491:20;;:::i;:::-;-1:-1:-1;20514:125:0;;;;;;;;;;;;;;;;;;;;;;;;;20665:75;;;;;-1:-1:-1;;;;;20665:75:0;;;;;;;;;;;;;;;;;;;;;;;20514:125;;20698:7;;20686:10;;20665:75;;;;;;;;;;21023:1;21008:12;:16;:70;;;;;21040:4;:15;;;21029:7;:26;;:48;;;;21076:1;21059:13;:18;21029:48;21005:186;;;21130:1;21095;:14;;21125:1;21110:12;:16;21095:32;;;;;;;21005:186;21718:17;;:47;;;;;21750:4;:15;;;21739:7;:26;21718:47;21715:532;;;22008:1;21971:34;21989:4;18125:16;;;;-1:-1:-1;;;18125:16:0;;;;;;;;;;;;;;21971:17;:34::i;:::-;:38;21907:4;:10;;:21;18125:16;;;;-1:-1:-1;;;18125:16:0;;;;;;;;;;;;;;21907:21;;;;;;;;;;;:27;;:33;21935:4;-1:-1:-1;;;;;21907:33:0;-1:-1:-1;;;;;21907:33:0;;;;;;;;;;;;:61;;:102;;;;22135:1;22027:4;:10;;:21;18125:16;;;;-1:-1:-1;;;18125:16:0;;;;;;;;;;;;;;22027:21;;;;;;;;;;;:35;;22063:4;:10;;:21;18125:16;;;;-1:-1:-1;;;18125:16:0;;;;;;;;;;;;;;22063:21;;;;;;;;;;;:27;;:33;22091:4;-1:-1:-1;;;;;22063:33:0;-1:-1:-1;;;;;22063:33:0;;;;;;;;;;;;:61;;;22027:98;;;;;;;;;;;;;;;;;;:105;;;:109;22024:212;;;18125:16;;;-1:-1:-1;;;18125:16:0;;;;;;;;;;;;22157:21;;;;:10;;;:21;;;;;;;-1:-1:-1;;;;;22157:33:0;;;;:27;;;;:33;;;;;;:61;;:63;;;;;;;22024:212;22301:17;22298:260;;22402:1;22367:32;22385:4;22391:7;22367:17;:32::i;:::-;:36;22335:29;;;:68;;;22422:46;;22478:1;;22422;;:46;;;;;;;;;;;;;;;;:53;;;:57;22419:128;;;22500:29;;;;:31;;;;;;;;;-1:-1:-1;22908:19:0;;;:10;;;:19;;;;;:40;22875:73;22872:153;;;22992:21;;22965:24;;;:48;27:10:-1;;39:1;23:18;;;45:23;;23159:14:0;:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;19971:3238:0;;;;;:::o;110098:474::-;110139:15;110156:24;110229:7;:5;:7::i;:::-;110264:8;;110193:43;;-1:-1:-1;110193:43:0;-1:-1:-1;110250:22:0;;;;:67;;;110299:18;;110276:19;:41;;110250:67;110247:317;;;110335:8;:21;;;110371:18;:40;;;110450:20;;;110473:1;110450:24;110427:47;;110495:57;;;110508:10;110495:57;;;;;;;;;;;;;;;;;;;;;;;;;110098:474;;:::o;24919:550::-;25020:15;25038:19;;;:10;;;:19;;;;;25109:22;;25038:19;;25020:15;25038:19;;-1:-1:-1;;25109:26:0;;;25093:43;;;;;;;;;;;;;;;;25068:68;;25161:12;25168:4;25161:6;:12::i;:::-;25150:1;:8;;;:23;25147:150;;;25190:33;25209:4;25215:7;25190:18;:33::i;:::-;25258:22;;25242:1;;-1:-1:-1;;25258:26:0;;;25242:43;;;;;;;;;;;;;;;;25238:47;;25147:150;25310:9;;25307:155;;25347:8;;;;:20;;25360:6;25347:20;:12;:20;:::i;:::-;25336:8;;;:31;25420:7;25387:63;25408:10;25429:12;25436:4;25429:6;:12::i;:::-;25387:63;;;-1:-1:-1;;;;;25387:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;24919:550;;;;;:::o;15247:1044::-;15322:17;15329:4;15335:3;15322:6;:17::i;:::-;15314:52;;;;;-1:-1:-1;;;15314:52:0;;;;;;;;;;;;-1:-1:-1;;;15314:52:0;;;;;;;;;;;;;;;15377:19;15399:20;;;:15;;;:20;;;;;15450:13;;;;15493:9;;15399:20;;15450:13;;15493:9;15532:11;15399:4;15532:5;:11::i;:::-;15513:30;;15554:15;15572:10;15577:4;15572;:10::i;:::-;15593:19;15615:26;;;:15;;;:26;;;;;;15674:25;;;;;15554:28;;-1:-1:-1;15615:26:0;15723:11;15615:4;15723:5;:11::i;:::-;15738:1;15723:16;15720:492;;;13220:1;15756:20;;;15791:12;;;:19;15720:492;;;15853:8;15846:3;:15;15843:358;;;13220:1;15882:13;;;:20;15921:24;;;15843:358;;;15993:7;15986:3;:14;15983:218;;;13220:1;16021:16;;16056:12;;;:24;;;15983:218;;;16121:20;;;16160:13;;;:25;;;15983:218;16222:23;:11;;;16241:3;16222:23;:18;:23;:::i;:::-;-1:-1:-1;;;16263:20:0;;;;-1:-1:-1;;;16263:15:0;;;;:20;;;;;16256:27;;;;;;-1:-1:-1;15247:1044:0:o;94529:2601::-;94601:18;94632:15;94658:18;94687:14;94712:13;94736:11;94758:12;94781:17;94811:2273;94842:1;94817:22;:14;:20;:22::i;:::-;:26;:46;;;;;94862:1;94847:12;:16;94817:46;94811:2273;;;94896:6;94884:9;:18;94881:138;;;94928:48;94940:10;94952:9;94928:48;;;-1:-1:-1;;;;;94928:48:0;;;;;;;;;;;;;;;;;;;;;;;;;;;95002:1;94995:8;;;;;;;;;;;94881:138;95043:22;:14;:20;:22::i;:::-;95080:18;95101:17;;;:8;:17;;;;;95147:7;;;95180:8;;;95033:32;;-1:-1:-1;;;;;;95147:7:0;;-1:-1:-1;95180:8:0;;-1:-1:-1;95215:27:0;95180:8;95215:17;:27::i;:::-;95203:39;-1:-1:-1;95274:14:0;95271:1792;;95402:12;;95399:183;;83307:16;;;-1:-1:-1;;;83307:16:0;;;;;;;;;;;;95439:47;;:7;;95462:10;95474:8;95484:1;95439:47;:11;:47;:::i;:::-;95514;;;;;;;;95543:7;;95531:10;;95514:47;;;;;;;;;95399:183;95607:17;;;;:8;:17;;;;;95600:24;;-1:-1:-1;;;;;;95600:24:0;;;;;;95643:30;:14;95616:7;95643:30;:21;:30;:::i;:::-;95271:1792;;;95785:31;95803:12;95785:17;:31::i;:::-;95775:41;;95845:12;95835:22;;95945:6;95934:8;:17;95931:124;;;95985:8;95976:17;;96026:9;96016:19;;95931:124;96078:64;;;;;;;;;;;;;;-1:-1:-1;;;;;96078:64:0;;;96105:7;;96093:10;;96078:64;;;;;;;;;;;83367:17;;;-1:-1:-1;;;83367:17:0;;;;;;;;;;;;96217:47;;:7;;96241:10;96253:7;96262:1;96217:47;:11;:47;:::i;:::-;83367:17;;;-1:-1:-1;;;83367:17:0;;;;;;;;;;;;96283:47;;:7;;96307:10;96319:7;96328:1;96283:47;:11;:47;:::i;:::-;83307:16;;;-1:-1:-1;;;83307:16:0;;;;;;;;;;;;96390:45;;:7;;96413:10;96425:6;96433:1;96390:45;:11;:45;:::i;:::-;96469:6;96457:8;:18;96454:514;;;96552:17;;;;:8;:17;;;;;96545:24;;-1:-1:-1;;;;;;96545:24:0;;;;;;96592:30;:14;96561:7;96592:30;:21;:30;:::i;:::-;96454:514;;;96833:35;;;;;;;;;;;;-1:-1:-1;;;96833:35:0;;;;;;:8;;96846:6;;96833:35;:12;:35;:::i;:::-;96822:8;;;:46;96906:40;;;;;;;;;;;;-1:-1:-1;;;96906:40:0;;;;;;:12;;96923:7;;96906:40;:16;:40;:::i;:::-;96891:55;;96454:514;96986:14;;;;;97019:28;;:25;:28::i;:::-;94811:2273;;;;-1:-1:-1;97110:12:0;;94529:2601;-1:-1:-1;;;;;;;;94529:2601:0:o;97138:818::-;97197:15;84386:13;97339:30;97356:12;97339:16;:30::i;:::-;:46;:77;;;;;97389:22;:14;:20;:22::i;:::-;:27;97339:77;97336:613;;;97444:8;:6;:8::i;:::-;97434:18;;97468:11;97507:7;:5;:7::i;:::-;-1:-1:-1;97529:19:0;97551:18;;;:9;:18;;;;;97467:47;;-1:-1:-1;97584:31:0;:15;97561:7;97584:31;:22;:31;:::i;:::-;97635:58;;;;;;;;;;;;;;97660:10;;97651:7;;97635:58;;;;;;;;;;;83367:17;;;-1:-1:-1;;;83367:17:0;;;;;;;;;;;;97708:52;;:7;;97732:10;97744:1;97747:12;97708:52;:11;:52;:::i;:::-;97775:21;;-1:-1:-1;;;;;;97775:21:0;97786:10;97775:21;;;;;;97811:12;;:27;;;97853:8;;;:17;;;83367;;;-1:-1:-1;;;83367:17:0;;;;;;;;;;;;97885:52;;:7;;83367:17;97826:12;97775:8;97885:52;:11;:52;:::i;:::-;97336:613;;97138:818;;;:::o;104547:587::-;104587:13;104633:12;104616:13;;:29;104613:48;;;-1:-1:-1;104654:7:0;;104647:14;;104613:48;104672:12;104717:13;:11;:13::i;:::-;104741:7;:18;;;104786:12;104770:13;:28;104695:35;;-1:-1:-1;104695:35:0;-1:-1:-1;104695:35:0;104809:119;;104837:11;:13;;;;;;;;104870:46;;;104882:10;104870:46;;;;;;;;;;;;;;;;;;;;;;;;;104809:119;104943:31;;;104953:10;104943:31;;;;;;;;;;;;;;;;;;;;;83307:16;;;-1:-1:-1;;;83307:16:0;;;;;;;;;;;;105068:23;;:7;;:23;:12;:23;:::i;:::-;83367:17;;;-1:-1:-1;;;83367:17:0;;;;;;;;;;;;105102:24;;:7;;:24;:12;:24;:::i;:::-;104547:587;;:::o;13728:101::-;13809:12;;;;13728:101::o;37409:358::-;37510:16;37584:19;;;:10;;;:19;;;;;37636:22;;37510:16;;;;37584:19;;37652:5;;37636:22;;;;;;;;;;;;;;;;:34;;;37685:1;:15;;37701:5;37685:22;;;;;;;;;;;;;;;;;;:29;;;37729:1;:15;;37745:5;37729:22;;;;;;;;;;;;;;;;;;:29;;;37614:145;;;;;;;37409:358;;;;;;;:::o;37231:166::-;37318:10;37349:19;;;:10;;;;:19;;;;;:40;;37231:166::o;31393:2168::-;31547:11;31699:19;;;:10;;;:19;;;;;;;;31758:15;;;;31747:27;;;;;-1:-1:-1;;;;;31803:13:0;;;;:7;;;;:13;;;;;31845:7;;;:13;;;;;;31963:25;;;;32019:30;;;;32181:22;;31963:25;;32019:30;;31547:11;;31699:19;31747:27;31803:13;;32206:21;;;-1:-1:-1;32178:100:0;;;-1:-1:-1;32236:1:0;;-1:-1:-1;32236:1:0;;-1:-1:-1;32229:49:0;;-1:-1:-1;;;32229:49:0;32178:100;32395:22;32420:1;:15;;32436:17;32420:34;;;;;;;;;;;;;;;;;;;;;32588:13;;32785:22;;32621:11;;;;-1:-1:-1;32420:34:0;;-1:-1:-1;32588:13:0;32825:1;32810:16;;-1:-1:-1;32785:41:0;:52;;;32831:6;32830:7;32785:52;32782:107;;;-1:-1:-1;32846:1:0;;-1:-1:-1;32839:50:0;;-1:-1:-1;;;;;32839:50:0;32782:107;32988:22;33013:2;:15;;33029:12;33013:29;;;;;;;;;;;;;;;;;;;;;33225:13;;;;;33212:10;;33335:8;;;;33013:29;;-1:-1:-1;33212:26:0;;33399:6;16602:8;33374:21;;33399:6;33373:32;;;;;;-1:-1:-1;16602:8:0;33520:20;;;33519:34;33510:43;;31393:2168;;;;;;;;;;;;;;;;;;:::o;933:106::-;1021:10;933:106;:::o;74223:188::-;74297:12;;;;:6;:12;;;;;:33;;74322:7;74297:33;:24;:33;:::i;:::-;74293:111;;;74379:12;:10;:12::i;:::-;-1:-1:-1;;;;;74352:40:0;74370:7;-1:-1:-1;;;;;74352:40:0;74364:4;74352:40;;;;;;;;;;74223:188;;:::o;34619:366::-;34712:12;34755:19;;;:10;;;:19;;;;;34712:12;34800:37;34755:4;34766:7;34832:4;34800:16;:37::i;:::-;34785:52;-1:-1:-1;34851:12:0;34848:26;;34872:1;34865:9;;;;;;34848:26;-1:-1:-1;;;;;34910:13:0;;34885:22;34910:13;;;:7;;;:13;;;;;:39;;-1:-1:-1;;34937:11:0;;;34910:39;;;;;;;;;;;;;;;;;;;34967:10;;34619:366;-1:-1:-1;;;;;;;34619:366:0:o;35425:219::-;35525:10;35566:19;;;:10;;;:19;;;;;;;;-1:-1:-1;;;;;35603:13:0;;;;:7;;:13;;;;;:33;35425:219;;;;;:::o;74419:192::-;74494:12;;;;:6;:12;;;;;:36;;74522:7;74494:36;:27;:36;:::i;:::-;74490:114;;;74579:12;:10;:12::i;:::-;-1:-1:-1;;;;;74552:40:0;74570:7;-1:-1:-1;;;;;74552:40:0;74564:4;74552:40;;;;;;;;;;74419:192;;:::o;27817:2908::-;27923:11;27965:19;;;:10;;;:19;;;;;;;;28024:15;;;;28013:27;;;;;-1:-1:-1;;;;;28084:13:0;;;;:7;;;;:13;;;;;28126:7;;;:13;;;;;;27965:19;;28084:13;28589:19;27965:4;27976:7;28589:4;:19::i;:::-;28668:17;28696:22;28729:11;28803:48;28831:4;28837:7;28846:4;28803:27;:48::i;:::-;28751:100;;-1:-1:-1;28751:100:0;;-1:-1:-1;28751:100:0;-1:-1:-1;28751:100:0;-1:-1:-1;28751:100:0;28863:20;;28882:1;28875:8;;;;;;;;;;;28863:20;28904:22;28929:1;:15;;28945:17;28929:34;;;;;;;;;;;;;;;;;;28904:59;;29070:7;29064:4;-1:-1:-1;;;;;29047:82:0;;29079:1;:8;;;29089:6;29097:12;29111:17;29047:82;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29140:35;29144:4;29150:7;29159:4;29165:6;29173:1;29140:3;:35::i;:::-;29434:26;29463:43;29489:2;29493:12;29463:25;:43::i;:::-;29434:72;;29517:27;29547:51;29574:4;29580:17;29547:26;:51::i;:::-;29517:81;;29619:66;29646:4;29652:7;29661:4;29667:17;29619:26;:66::i;:::-;29894:22;;29860:30;;;;:56;29857:170;;;-1:-1:-1;;29961:22:0;;-1:-1:-1;;29961:26:0;29933:25;;;;:54;;;;-1:-1:-1;30002:13:0;;-1:-1:-1;;;;;30002:13:0;29857:170;30396:22;30371:21;:47;30365:353;;30435:56;30457:4;30463:7;30472:4;30478:12;30435:21;:56::i;:::-;30576:48;30604:4;30610:7;30619:4;30576:27;:48::i;:::-;-1:-1:-1;30506:118:0;;-1:-1:-1;30663:43:0;;-1:-1:-1;30689:2:0;;-1:-1:-1;30506:118:0;30663:25;:43::i;:::-;30639:67;;30365:353;;;27817:2908;;;;;;;;;;;;;;;:::o;4364:181::-;4422:7;4454:5;;;4478:6;;;;4470:46;;;;;-1:-1:-1;;;4470:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;4828:136;4886:7;4913:43;4917:1;4920;4913:43;;;;;;;;;;;;;;;;;:3;:43::i;5718:471::-;5776:7;6021:6;6017:47;;-1:-1:-1;6051:1:0;6044:8;;6017:47;6088:5;;;6092:1;6088;:5;:1;6112:5;;;;;:10;6104:56;;;;-1:-1:-1;;;6104:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6665:132;6723:7;6750:39;6754:1;6757;6750:39;;;;;;;;;;;;;;;;;:3;:39::i;35656:340::-;35770:12;35844:19;;;:10;;;:19;;;;;;;;-1:-1:-1;;;;;35899:13:0;;;;:7;;;:13;;;;;:33;;35770:12;;;;35844:19;;35770:12;;35899:13;35926:5;;35899:33;;;;;;;;;;;;;;;;;;;35951:10;;35963:13;;;;35978:9;;;;;35951:10;;35963:13;;-1:-1:-1;35978:9:0;-1:-1:-1;35656:340:0;-1:-1:-1;;;;;;;35656:340:0:o;13613:103::-;13695:13;;13613:103::o;34997:345::-;35101:15;35147:19;;;:10;;;:19;;;;;35101:15;35192:37;35147:4;35158:7;35224:4;35192:16;:37::i;:::-;35177:52;-1:-1:-1;35243:12:0;35240:26;;35264:1;35257:9;;;;;;35240:26;-1:-1:-1;;;;;35284:13:0;;;;;;:7;;;:13;;;;;:39;;-1:-1:-1;;35311:11:0;;;35284:39;;;;;;;;;;;;;;;;:50;;;35277:57;;;;34997:345;;;;;:::o;14243:202::-;14314:7;14342:17;14349:4;14355:3;14342:6;:17::i;:::-;14334:52;;;;;-1:-1:-1;;;14334:52:0;;;;;;;;;;;;-1:-1:-1;;;14334:52:0;;;;;;;;;;;;;;;-1:-1:-1;14405:20:0;;;;:15;;;;;:20;;;;;:32;;;;14243:202::o;14457:193::-;14524:7;14552:17;14559:4;14565:3;14552:6;:17::i;:::-;14544:52;;;;;-1:-1:-1;;;14544:52:0;;;;;;;;;;;;-1:-1:-1;;;14544:52:0;;;;;;;;;;;;;;;-1:-1:-1;14614:20:0;;;;:15;;;;;:20;;;;;:28;;14457:193::o;65404:149::-;65478:7;65521:22;65525:3;65537:5;65521:3;:22::i;64699:158::-;64779:4;64803:46;64813:3;-1:-1:-1;;;;;64833:14:0;;64803:9;:46::i;64943:117::-;65006:7;65033:19;65041:3;65033:7;:19::i;13495:106::-;13550:4;13574:19;:4;:11;;:17;:19::i;72243:230::-;72336:12;;;;:6;:12;;;;;:22;;;72328:45;;72360:12;:10;:12::i;72328:45::-;72320:106;;;;-1:-1:-1;;;72320:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;109579:356;109659:18;;109656:272;;109710:8;;109694:13;109748:54;109761:40;84137:6;109784:16;109761:40;:22;:40;:::i;:::-;109748:8;;:54;:12;:54;:::i;:::-;109817:8;:18;;;109855:61;;;109878:10;109855:61;;;;;;;;;;;;;;;;109733:69;;-1:-1:-1;109855:61:0;;;;;;;;;;109656:272;;109579:356;:::o;34235:186::-;34343:13;;34335:30;;;;;;;;;;;;-1:-1:-1;;;34335:30:0;;;;34294:17;;;;34335:30;;:3;;:30;:7;:30;:::i;:::-;34324:41;;34397:4;:16;;;34391:3;:22;;;;;;;34235:186;-1:-1:-1;;;34235:186:0:o;76497:604::-;76939:4;77050:17;77086:7;76497:604;:::o;19140:637::-;19293:21;;:::i;:::-;-1:-1:-1;19317:102:0;;;;;;;;-1:-1:-1;19317:102:0;;;;;;;;;;;;;;;19430:15;;;:30;;;19471:24;;;19506:16;;;:30;;;-1:-1:-1;19547:11:0;;:20;;-1:-1:-1;;;;;;19547:20:0;-1:-1:-1;;;;;19547:20:0;;;;;19317:102;19578:192;19594:14;;19592:16;;19578:192;;;19630:15;19648:4;:10;;:22;19659:7;19667:1;19659:10;;;;;;;;;;;;;;;;;;;;19648:22;;;;;;;;;;;;;;;27:10:-1;;39:1;23:18;;;45:23;;19685::0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19610:3;;;;;-1:-1:-1;19578:192:0;;;;19140:637;;;;;;;:::o;99016:2512::-;99086:17;99116:15;99142:19;99180:13;99204:14;99229:13;99253:11;99275;99297:12;99321:17;99351:2135;99383:1;99357:23;:15;:21;:23::i;:::-;:27;:44;;;;;99400:1;99388:9;:13;99357:44;99351:2135;;;99433:6;99421:9;:18;99418:138;;;99465:48;99477:10;99489:9;99465:48;;;-1:-1:-1;;;;;99465:48:0;;;;;;;;;;;;;;;;;;;;;;;;;;;99539:1;99532:8;;;;;;;;;;;;;99418:138;99580:23;:15;:21;:23::i;:::-;99618:19;99640:18;;;:9;:18;;;;;99687:8;;;99722:12;;;99761:8;;;;99570:33;;-1:-1:-1;;;;;;99687:8:0;;;;-1:-1:-1;99722:12:0;-1:-1:-1;99761:8:0;;-1:-1:-1;99795:58:0;99812:40;83611:8;99813:23;99722:12;99761:8;99813:23;:13;:23;:::i;99812:40::-;99795:16;:58::i;:::-;99784:69;-1:-1:-1;99885:13:0;99882:1593;;99997:13;;99994:261;;100040:49;;;;;;;;100070:7;;100058:10;;100040:49;;;;;;;;;83367:17;;;-1:-1:-1;;;83367:17:0;;;;;;;;;;;;100112:50;;:7;;100136:11;100149:9;100160:1;100112:50;:11;:50;:::i;:::-;83367:17;;;-1:-1:-1;;;83367:17:0;;;;;;;;;;;;100185:50;;:7;;100209:11;100222:1;100225:9;100185:50;:11;:50;:::i;:::-;100280:18;;;;:9;:18;;;;;100273:25;;-1:-1:-1;;;;;;100273:25:0;;;;;;;;;;;;100317:31;:15;100290:7;100317:31;:22;:31;:::i;:::-;99882:1593;;;100422:9;100413:18;;100459:23;100475:6;100459:15;:23::i;:::-;100450:32;-1:-1:-1;100511:35:0;100537:8;100511:21;100450:32;83611:8;100511:21;:10;:21;:::i;:35::-;100501:45;;100579:6;100568:8;:17;100565:124;;;100619:8;100610:17;;100660:9;100650:19;;100565:124;100712:66;;;;;;;;;;;;;;-1:-1:-1;;;;;100712:66:0;;;100740:7;;100728:10;;100712:66;;;;;;;;;;;83307:16;;;-1:-1:-1;;;83307:16:0;;;;;;;;;;;;100797:45;;:7;;100820:10;100832:6;100840:1;100797:45;:11;:45;:::i;:::-;83307:16;;;-1:-1:-1;;;83307:16:0;;;;;;;;;;;;100861:46;;:7;;100884:11;100897:6;100905:1;100861:46;:11;:46;:::i;:::-;83367:17;;;-1:-1:-1;;;83367:17:0;;;;;;;;;;;;100926:47;;:7;;100950:10;100962:7;100971:1;100926:47;:11;:47;:::i;:::-;83367:17;;;-1:-1:-1;;;83367:17:0;;;;;;;;;;;;100992:48;;:7;;101016:11;101029:1;101032:7;100992:48;:11;:48;:::i;:::-;101071:36;;;;;;;;;;;;-1:-1:-1;;;101071:36:0;;;;;;:9;;101085:6;;101071:36;:13;:36;:::i;:::-;101059:48;;101145:7;101132:9;:20;101129:251;;;101184:18;;;;:9;:18;;;;;101177:25;;-1:-1:-1;;;;;;101177:25:0;;;;;;;;;;;;101225:31;:15;101194:7;101225:31;:22;:31;:::i;:::-;101129:251;;;101320:40;;;;;;;;;;;;-1:-1:-1;;;101320:40:0;;;;:12;;;;:40;;101337:7;;101320:40;:16;:40;:::i;:::-;101305:12;;;:55;101129:251;101398:14;;;;;101431:28;;:25;:28::i;:::-;99351:2135;;;;-1:-1:-1;101511:9:0;;99016:2512;-1:-1:-1;;;;;;;;;;99016:2512:0:o;101536:1018::-;101593:17;;;;101705:13;;101702:810;;101735:15;101753:28;101771:9;101753:17;:28::i;:::-;83367:17;;;-1:-1:-1;;;83367:17:0;;;;;;;;;;;;101735:46;;-1:-1:-1;101817:44:0;;:7;;101855:4;101817:44;:17;:44;:::i;:::-;101796:65;;101901:18;101887:10;:32;;101886:68;;101936:18;101886:68;;;101923:10;101886:68;101876:78;-1:-1:-1;101972:11:0;;101969:532;;102013:26;102031:7;102013:17;:26::i;:::-;102063:43;;;;;;;;;;;;;;102004:35;;-1:-1:-1;102078:10:0;;102063:43;;;;;;;;;;;83367:17;;;-1:-1:-1;;;83367:17:0;;;;;;;;;;;;102125:50;;:7;;102157:4;102164:7;102173:1;102125:50;:11;:50;:::i;:::-;83367:17;;;-1:-1:-1;;;83367:17:0;;;;;;;;;;;;102194:47;;:7;;102218:10;102230:7;102239:1;102194:47;:11;:47;:::i;:::-;83307:16;;;-1:-1:-1;;;83307:16:0;;;;;;;;;;;;102260:45;;:7;;102283:10;102295:6;102303:1;102260:45;:11;:45;:::i;:::-;83307:16;;;-1:-1:-1;;;83307:16:0;;;;;;;;;;;;102324:47;;:7;;102364:6;102324:47;:28;:47;:::i;:::-;102402:36;;;;;;;;;;;;-1:-1:-1;;;102402:36:0;;;;;;:9;;102416:6;;102402:36;:13;:36;:::i;:::-;102390:48;;102457:28;102483:1;102457:25;:28::i;:::-;101702:810;;-1:-1:-1;102537:9:0;;101536:1018;-1:-1:-1;;;101536:1018:0:o;102562:617::-;102617:15;84386:13;102754:26;102770:9;102754:15;:26::i;:::-;:42;:74;;;;;102800:23;:15;:21;:23::i;:::-;:28;102754:74;102751:421;;;102855:8;:6;:8::i;:::-;102883:46;;;;;;;;102845:18;;-1:-1:-1;102907:10:0;;102845:18;;102883:46;;;;;;;;;;102944:18;102965:17;;;:8;:17;;;;;102997:30;:14;102974:7;102997:30;:21;:30;:::i;:::-;83307:16;;;-1:-1:-1;;;83307:16:0;;;;;;;;;;;;103042:48;;:7;;103065:10;103077:9;103088:1;103042:48;:11;:48;:::i;:::-;103105:8;;;:20;;;103140;;-1:-1:-1;;;;;;103140:20:0;103150:10;103140:20;;;102562:617;;;:::o;36008:487::-;36115:12;36189:19;;;:10;;;:19;;;;;36115:12;;;;;36234:37;36189:4;36200:7;36266:4;36234:16;:37::i;:::-;36219:52;-1:-1:-1;36285:12:0;36282:32;;-1:-1:-1;36306:1:0;;-1:-1:-1;36306:1:0;;-1:-1:-1;36306:1:0;;-1:-1:-1;36299:15:0;;-1:-1:-1;36299:15:0;36282:32;-1:-1:-1;;;;;36350:13:0;;36325:22;36350:13;;;:7;;;:13;;;;;:39;;-1:-1:-1;;36377:11:0;;;36350:39;;;;;;;;;;;;;;;;;;;36410:10;;36441:9;;;;36474:13;;;;;36410:10;;36441:9;;-1:-1:-1;36474:13:0;-1:-1:-1;36008:487:0;-1:-1:-1;;;;;;;36008:487:0:o;5267:192::-;5353:7;5389:12;5381:6;;;;5373:29;;;;-1:-1:-1;;;5373: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;5373:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5425:5:0;;;5267:192::o;25477:568::-;25562:15;25580:19;;;:10;;;:19;;;;;25651:22;;25580:19;;25562:15;25580:19;;-1:-1:-1;;25651:26:0;;;25635:43;;;;;;;;;;;;;;;;25610:68;;25689:6;25698:12;25705:4;25698:6;:12::i;:::-;25689:21;;25737:23;25755:4;25737:17;:23::i;:::-;25721:39;;25771:27;;:::i;:::-;-1:-1:-1;25801:102:0;;;;;;;;;-1:-1:-1;25801:102:0;;;;;;;;;;;;;;;;27:10:-1;;39:1;23:18;;;45:23;;25914:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26000:8;;;;26010:13;;26025:8;;;;25960:77;;25979:10;25960:77;;;;;;;;;;;;;;;;;;;;;;;;;;;;25801:102;;25991:7;;25960:77;;;;;;;;;25477:568;;;;;;:::o;13841:124::-;13910:4;13934:23;:11;;;13953:3;13934:23;:18;:23;:::i;11644:515::-;11719:17;11726:4;11732:3;11719:6;:17::i;:::-;11711:72;;;;-1:-1:-1;;;11711:72:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11794:9;11820:1;11806:11;11812:4;11806:5;:11::i;:::-;11832:17;11852:21;;;;;;;;;;;11806:15;;;;-1:-1:-1;11887:20:0;;;11884:200;;11924:17;11944:4;:12;;11957:4;11944:18;;;;;;;;;;;;;;;;11924:38;;12007:12;11977:4;:16;;:27;11994:9;11977:27;;;;;;;;;;;:42;;;;12063:9;12034:4;:12;;12047;12034:26;;;;;;;;;;;;;;;;;:38;-1:-1:-1;11884:200:0;12101:16;:21;;;;;;;;;;12094:28;12133:12;;;:18;;;;;;;;;;;;;;;;;;;;;;;;11644:515;;;;:::o;105984:166::-;106040:11;106064:10;106077:24;106094:6;106077:16;:24::i;106162:168::-;106219:10;106243;106256:25;106273:7;106256:16;:25::i;:::-;106243:38;;106299:23;106316:5;106299:16;:23::i;90026:172::-;90084:15;:17;;;;;;;;90129:60;;;90154:4;90129:60;;;;;;;;;;;;90161:10;90129:60;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;90129:60:0;;;;;;;90119:71;;;;;90026:172;:::o;14662:577::-;14737:11;14729:51;;;;;-1:-1:-1;;;14729:51:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;14800:17;14807:4;14813:3;14800:6;:17::i;:::-;14799:18;14791:53;;;;;-1:-1:-1;;;14791:53:0;;;;;;;;;;;;-1:-1:-1;;;14791:53:0;;;;;;;;;;;;;;;14874:12;;;;14856:15;14919:20;;;:15;;;:20;;;;;;14972:24;;;;;15010:13;15007:128;;15056:19;;;15007:128;;;15108:15;;;15007:128;15145:13;;;:23;;;15179;:11;;;15198:3;15179:23;:18;:23;:::i;:::-;-1:-1:-1;;;15213:12:0;;;;:18;14662:577::o;30939:119::-;31012:38;31033:4;31039:7;31048:1;31012:20;:38::i;64145:143::-;64215:4;64239:41;64244:3;-1:-1:-1;;;;;64264:14:0;;64239:4;:41::i;64464:149::-;64537:4;64561:44;64569:3;-1:-1:-1;;;;;64589:14:0;;64561:7;:44::i;26282:364::-;26422:24;;26376:11;;26418:1;26403:16;;:43;26400:239;;;26472:4;:17;;26490:12;26505:1;26490:16;26472:35;;;;;;;;;;;;;;;;;;:42;;;26463:51;;26400:239;;;-1:-1:-1;16602:8:0;26282:364;;;;:::o;26658:438::-;26813:15;;;;26760:11;26802:27;;;:10;;;:27;;;;;26867:22;;26863:1;26843:21;;:46;26840:249;;;26915:1;:15;;26931:17;26951:1;26931:21;26915:38;;;;;;;;;;;;;;;;;;:45;;;26906:54;;26840:249;;;27002:13;;-1:-1:-1;26840:249:0;26658:438;;;;;:::o;27522:287::-;27676:19;;;;:10;;;:19;;;;;:40;27656:60;;27653:148;;;27718:19;;;;:10;;;:19;;;;;;;;-1:-1:-1;;;;;27718:31:0;;;;27800:1;27718:25;;;:31;;;;;;27780:21;;;27718:59;;:83;27653:148;27522:287;;;;:::o;27229:281::-;27379:15;;;;27368:27;;;;:10;;;:27;;;;;;;;-1:-1:-1;;;;;27368:39:0;;;;:33;;:39;;;;;:59;27353:74;;27350:152;;;27429:19;;;;:10;;;;;:19;;;;;;;;-1:-1:-1;;;;;27429:31:0;;;;;;27501:1;27429:25;;;:31;;;;;;27486:16;;27429:54;;;;:73;27229:281::o;7293:278::-;7379:7;7414:12;7407:5;7399:28;;;;-1:-1:-1;;;7399:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;7399:28:0;;7438:9;7454:1;7450;:5;;;;;;;7293:278;-1:-1:-1;;;;;7293:278:0:o;63687:204::-;63782:18;;63754:7;;63782:26;-1:-1:-1;63774:73:0;;;;-1:-1:-1;;;63774:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63865:3;:11;;63877:5;63865:18;;;;;;;;;;;;;;;;63858:25;;63687:204;;;;:::o;63019:129::-;63092:4;63116:19;;;:12;;;;;:19;;;;;;:24;;;63019:129::o;105825:147::-;105880:10;105910:54;105936:27;83611:8;105936:16;:27::i;37023:196::-;37148:11;;;;37126:54;;;-1:-1:-1;;;37126:54:0;;;;37093:11;;-1:-1:-1;;;;;37148:11:0;;37126:52;;:54;;;;;;;;;;;;;;37148:11;37126:54;;;2:2:-1;;;;27:1;24;17:12;2:2;37126:54:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;37126:54:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;37126:54:0;;37023:196;-1:-1:-1;;37023:196:0:o;12597:195::-;12686:12;;;:19;12666:4;;12683:41;;-1:-1:-1;12719:5:0;12712:12;;12683:41;12755:16;:21;;;;;;;;;;;12742:12;;;:35;;12781:3;;12755:21;12742:35;;;;;;;;;;;;;;:42;12735:49;;12597:195;;;;:::o;105679:134::-;105734:10;105764:41;83611:8;105764:26;105775:14;:12;:14::i;:::-;105764:6;;:26;:10;:26;:::i;11231:235::-;11307:17;11314:4;11320:3;11307:6;:17::i;:::-;11306:18;11298:73;;;;-1:-1:-1;;;11298:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11406:12;;;;:19;;11382:16;:21;;;;;;;;;;:43;;;23:18:-1;;;45:23;;11436:22:0;;;;;;;;;;11231:235::o;60799:414::-;60862:4;60884:21;60894:3;60899:5;60884:9;:21::i;:::-;60879:327;;-1:-1:-1;27:10;;39:1;23:18;;;45:23;;60922:11:0;:23;;;;;;;;;;;;;61105:18;;61083:19;;;:12;;;:19;;;;;;:40;;;;61138:11;;60879:327;-1:-1:-1;61189:5:0;61182:12;;61389:1544;61455:4;61594:19;;;:12;;;:19;;;;;;61630:15;;61626:1300;;62065:18;;-1:-1:-1;;62016:14:0;;;;62065:22;;;;61992:21;;62065:3;;:22;;62352;;;;;;;;;;;;;;62332:42;;62498:9;62469:3;:11;;62481:13;62469:26;;;;;;;;;;;;;;;;;;;:38;;;;62575:23;;;62617:1;62575:12;;;:23;;;;;;62601:17;;;62575:43;;62727:17;;62575:3;;62727:17;;;;;;;;;;;;;;;;;;;;;;62822:3;:12;;:19;62835:5;62822:19;;;;;;;;;;;62815:26;;;62865:4;62858:11;;;;;;;;61626:1300;62909:5;62902:12;;;;;82369:35225;;;;;;;;;;;;;;;;;;;;;;;;:::o

Swarm Source

ipfs://897215040cb1ff2c6da5afae2f000b4233a82e9c16cf0340b2f4f468c834292b

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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