ETH Price: $3,248.37 (+3.12%)
Gas: 2 Gwei

Contract

0x2934443c1749dCC0cDcabbD77098EEa31D2ea6c3
 

Overview

ETH Balance

11.03954694140127521 ETH

Eth Value

$35,860.50 (@ $3,248.37/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Approve171026242023-04-22 14:57:59460 days ago1682175479IN
0x2934443c...31D2ea6c3
0 ETH0.0008466334.77242049
Burn164311252023-01-18 3:53:23555 days ago1674014003IN
0x2934443c...31D2ea6c3
0 ETH0.0038522515
Transfer164309932023-01-18 3:26:59555 days ago1674012419IN
0x2934443c...31D2ea6c3
0 ETH0.0009333518
Withdraw Fees140171682022-01-16 14:46:51921 days ago1642344411IN
0x2934443c...31D2ea6c3
0 ETH0.0113925499.28141573
Burn111053402020-10-22 10:01:081373 days ago1603360868IN
0x2934443c...31D2ea6c3
0 ETH0.0184379370
Transfer110176842020-10-08 23:02:021386 days ago1602198122IN
0x2934443c...31D2ea6c3
0 ETH0.0015824943.56000176
Burn109587682020-09-29 17:45:011395 days ago1601401501IN
0x2934443c...31D2ea6c3
0 ETH0.0454335150
Burn109499652020-09-28 8:33:131397 days ago1601281993IN
0x2934443c...31D2ea6c3
0 ETH0.0247000880
Approve109277042020-09-24 21:20:001400 days ago1600982400IN
0x2934443c...31D2ea6c3
0 ETH0.00476492107
Burn107696372020-08-31 15:59:321424 days ago1598889572IN
0x2934443c...31D2ea6c3
0 ETH0.05981056320
Burn107568602020-08-29 16:57:421426 days ago1598720262IN
0x2934443c...31D2ea6c3
0 ETH0.02051722114.11584272
Burn107568602020-08-29 16:57:421426 days ago1598720262IN
0x2934443c...31D2ea6c3
0 ETH0.02303816114.11584272
Approve107567052020-08-29 16:21:151426 days ago1598718075IN
0x2934443c...31D2ea6c3
0 ETH0.00454226102
Burn107533322020-08-29 3:52:161427 days ago1598673136IN
0x2934443c...31D2ea6c3
0 ETH0.0169592684
Burn107312272020-08-25 18:30:321430 days ago1598380232IN
0x2934443c...31D2ea6c3
0 ETH0.03260351184
Burn107312252020-08-25 18:30:181430 days ago1598380218IN
0x2934443c...31D2ea6c3
0 ETH0.03666825184
Approve107284112020-08-25 8:11:061431 days ago1598343066IN
0x2934443c...31D2ea6c3
0 ETH0.0044531999.99999795
Burn107244482020-08-24 17:31:361431 days ago1598290296IN
0x2934443c...31D2ea6c3
0 ETH0.02630707132
Approve107242922020-08-24 16:51:501431 days ago1598287910IN
0x2934443c...31D2ea6c3
0 ETH0.00587822132
Burn107173362020-08-23 15:12:451432 days ago1598195565IN
0x2934443c...31D2ea6c3
0 ETH0.0135521268
Burn107157302020-08-23 9:24:161433 days ago1598174656IN
0x2934443c...31D2ea6c3
0 ETH0.0151455876
Burn107131872020-08-23 0:02:091433 days ago1598140929IN
0x2934443c...31D2ea6c3
0 ETH0.0141508671
Approve107124862020-08-22 21:26:051433 days ago1598131565IN
0x2934443c...31D2ea6c3
0 ETH0.0028945865
Burn106966112020-08-20 10:53:221436 days ago1597920802IN
0x2934443c...31D2ea6c3
0 ETH0.02152396108
Approve106956762020-08-20 7:23:591436 days ago1597908239IN
0x2934443c...31D2ea6c3
0 ETH0.00281185111
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
164311252023-01-18 3:53:23555 days ago1674014003
0x2934443c...31D2ea6c3
0.56641296 ETH
140171682022-01-16 14:46:51921 days ago1642344411
0x2934443c...31D2ea6c3
1.49723131 ETH
111053402020-10-22 10:01:081373 days ago1603360868
0x2934443c...31D2ea6c3
0.269482 ETH
109587682020-09-29 17:45:011395 days ago1601401501
0x2934443c...31D2ea6c3
4.45795639 ETH
109499652020-09-28 8:33:131397 days ago1601281993
0x2934443c...31D2ea6c3
1.85724891 ETH
107696372020-08-31 15:59:321424 days ago1598889572
0x2934443c...31D2ea6c3
3.29871641 ETH
107568602020-08-29 16:57:421426 days ago1598720262
0x2934443c...31D2ea6c3
0.83876774 ETH
107533322020-08-29 3:52:161427 days ago1598673136
0x2934443c...31D2ea6c3
2.99497994 ETH
107312252020-08-25 18:30:181430 days ago1598380218
0x2934443c...31D2ea6c3
0.9448634 ETH
107244482020-08-24 17:31:361431 days ago1598290296
0x2934443c...31D2ea6c3
0.92912919 ETH
107173362020-08-23 15:12:451432 days ago1598195565
0x2934443c...31D2ea6c3
0.09406842 ETH
107157302020-08-23 9:24:161433 days ago1598174656
0x2934443c...31D2ea6c3
6.34590503 ETH
107131872020-08-23 0:02:091433 days ago1598140929
0x2934443c...31D2ea6c3
125.89084267 ETH
106966112020-08-20 10:53:221436 days ago1597920802
0x2934443c...31D2ea6c3
11.92261074 ETH
106952292020-08-20 5:47:331436 days ago1597902453
0x2934443c...31D2ea6c3
18.40867871 ETH
106950842020-08-20 5:08:221436 days ago1597900102
0x2934443c...31D2ea6c3
1.01230373 ETH
106938042020-08-20 0:29:041436 days ago1597883344
0x2934443c...31D2ea6c3
5.12373148 ETH
106938042020-08-20 0:29:041436 days ago1597883344
0x2934443c...31D2ea6c3
130.48340018 ETH
106937902020-08-20 0:24:041436 days ago1597883044
0x2934443c...31D2ea6c3
15.02713957 ETH
106912372020-08-19 15:00:091436 days ago1597849209
0x2934443c...31D2ea6c3
0.5036653 ETH
106908572020-08-19 13:33:591436 days ago1597844039
0x2934443c...31D2ea6c3
4.72365171 ETH
106902402020-08-19 11:14:201437 days ago1597835660
0x2934443c...31D2ea6c3
8.3863616 ETH
106898432020-08-19 9:47:491437 days ago1597830469
0x2934443c...31D2ea6c3
0.95589846 ETH
106897712020-08-19 9:32:301437 days ago1597829550
0x2934443c...31D2ea6c3
0.89957845 ETH
106896952020-08-19 9:15:251437 days ago1597828525
0x2934443c...31D2ea6c3
5.62445318 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
xSNXCore

Compiler Version
v0.5.15+commit.6a57276f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

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

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

pragma solidity ^0.5.0;

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

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

pragma solidity ^0.5.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor () internal { }
    // solhint-disable-previous-line no-empty-blocks

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

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

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

pragma solidity ^0.5.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.5.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

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

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

pragma solidity ^0.5.0;




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

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.5.0;


/**
 * @dev Optional functions from the ERC20 standard.
 */
contract ERC20Detailed is IERC20 {
    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for `name`, `symbol`, and `decimals`. All three of
     * these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name, string memory symbol, uint8 decimals) public {
        _name = name;
        _symbol = symbol;
        _decimals = decimals;
    }

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

// File: synthetix/contracts/interfaces/IFeePool.sol

pragma solidity >=0.4.24;


interface IFeePool {
    // Views
    function getExchangeFeeRateForSynth(bytes32 synthKey) external view returns (uint);

    // solhint-disable-next-line func-name-mixedcase
    function FEE_ADDRESS() external view returns (address);

    function feesAvailable(address account) external view returns (uint, uint);

    function isFeesClaimable(address account) external view returns (bool);

    function totalFeesAvailable() external view returns (uint);

    function totalRewardsAvailable() external view returns (uint);

    // Mutative Functions
    function claimFees() external returns (bool);

    function claimOnBehalf(address claimingForAddress) external returns (bool);

    function closeCurrentFeePeriod() external;

    // Restricted: used internally to Synthetix
    function appendAccountIssuanceRecord(
        address account,
        uint lockedAmount,
        uint debtEntryIndex
    ) external;

    function recordFeePaid(uint sUSDAmount) external;

    function setRewardsToDistribute(uint amount) external;
}

// File: synthetix/contracts/interfaces/ISynth.sol

pragma solidity >=0.4.24;


interface ISynth {
    // Views
    function currencyKey() external view returns (bytes32);

    function transferableSynths(address account) external view returns (uint);

    // Mutative functions
    function transferAndSettle(address to, uint value) external returns (bool);

    function transferFromAndSettle(
        address from,
        address to,
        uint value
    ) external returns (bool);

    // Restricted: used internally to Synthetix
    function burn(address account, uint amount) external;

    function issue(address account, uint amount) external;
}

// File: synthetix/contracts/interfaces/ISynthetix.sol

pragma solidity >=0.4.24;



interface ISynthetix {
    // Views
    function anySynthOrSNXRateIsStale() external view returns (bool anyRateStale);

    function availableCurrencyKeys() external view returns (bytes32[] memory);

    function availableSynthCount() external view returns (uint);

    function availableSynths(uint index) external view returns (ISynth);

    function collateral(address account) external view returns (uint);

    function collateralisationRatio(address issuer) external view returns (uint);

    function debtBalanceOf(address issuer, bytes32 currencyKey) external view returns (uint);

    function isWaitingPeriod(bytes32 currencyKey) external view returns (bool);

    function maxIssuableSynths(address issuer) external view returns (uint maxIssuable);

    function remainingIssuableSynths(address issuer)
        external
        view
        returns (
            uint maxIssuable,
            uint alreadyIssued,
            uint totalSystemDebt
        );

    function synths(bytes32 currencyKey) external view returns (ISynth);

    function synthsByAddress(address synthAddress) external view returns (bytes32);

    function totalIssuedSynths(bytes32 currencyKey) external view returns (uint);

    function totalIssuedSynthsExcludeEtherCollateral(bytes32 currencyKey) external view returns (uint);

    function transferableSynthetix(address account) external view returns (uint transferable);

    // Mutative Functions
    function burnSynths(uint amount) external;

    function burnSynthsOnBehalf(address burnForAddress, uint amount) external;

    function burnSynthsToTarget() external;

    function burnSynthsToTargetOnBehalf(address burnForAddress) external;

    function exchange(
        bytes32 sourceCurrencyKey,
        uint sourceAmount,
        bytes32 destinationCurrencyKey
    ) external returns (uint amountReceived);

    function exchangeOnBehalf(
        address exchangeForAddress,
        bytes32 sourceCurrencyKey,
        uint sourceAmount,
        bytes32 destinationCurrencyKey
    ) external returns (uint amountReceived);

    function issueMaxSynths() external;

    function issueMaxSynthsOnBehalf(address issueForAddress) external;

    function issueSynths(uint amount) external;

    function issueSynthsOnBehalf(address issueForAddress, uint amount) external;

    function mint() external returns (bool);

    function settle(bytes32 currencyKey)
        external
        returns (
            uint reclaimed,
            uint refunded,
            uint numEntries
        );

    function liquidateDelinquentAccount(address account, uint susdAmount) external returns (bool);
}

// File: synthetix/contracts/interfaces/IRewardEscrow.sol

pragma solidity >=0.4.24;


interface IRewardEscrow {
    // Views
    function balanceOf(address account) external view returns (uint);

    function numVestingEntries(address account) external view returns (uint);

    function totalEscrowedAccountBalance(address account) external view returns (uint);

    function totalVestedAccountBalance(address account) external view returns (uint);

    // Mutative functions
    function appendVestingEntry(address account, uint quantity) external;

    function vest() external;
}

// File: synthetix/contracts/interfaces/IExchangeRates.sol

pragma solidity >=0.4.24;


// https://docs.synthetix.io/contracts/source/interfaces/IExchangeRates
interface IExchangeRates {
    // Views
    function aggregators(bytes32 currencyKey) external view returns (address);

    function anyRateIsStale(bytes32[] calldata currencyKeys) external view returns (bool);

    function currentRoundForRate(bytes32 currencyKey) external view returns (uint);

    function effectiveValue(
        bytes32 sourceCurrencyKey,
        uint sourceAmount,
        bytes32 destinationCurrencyKey
    ) external view returns (uint value);

    function effectiveValueAndRates(
        bytes32 sourceCurrencyKey,
        uint sourceAmount,
        bytes32 destinationCurrencyKey
    )
        external
        view
        returns (
            uint value,
            uint sourceRate,
            uint destinationRate
        );

    function effectiveValueAtRound(
        bytes32 sourceCurrencyKey,
        uint sourceAmount,
        bytes32 destinationCurrencyKey,
        uint roundIdForSrc,
        uint roundIdForDest
    ) external view returns (uint value);

    function getCurrentRoundId(bytes32 currencyKey) external view returns (uint);

    function getLastRoundIdBeforeElapsedSecs(
        bytes32 currencyKey,
        uint startingRoundId,
        uint startingTimestamp,
        uint timediff
    ) external view returns (uint);

    function inversePricing(bytes32 currencyKey)
        external
        view
        returns (
            uint entryPoint,
            uint upperLimit,
            uint lowerLimit,
            bool frozen
        );

    function lastRateUpdateTimes(bytes32 currencyKey) external view returns (uint256);

    function oracle() external view returns (address);

    function rateAndTimestampAtRound(bytes32 currencyKey, uint roundId) external view returns (uint rate, uint time);

    function rateAndUpdatedTime(bytes32 currencyKey) external view returns (uint rate, uint time);

    function rateForCurrency(bytes32 currencyKey) external view returns (uint);

    function rateIsFrozen(bytes32 currencyKey) external view returns (bool);

    function rateIsStale(bytes32 currencyKey) external view returns (bool);

    function rateStalePeriod() external view returns (uint);

    function ratesAndUpdatedTimeForCurrencyLastNRounds(bytes32 currencyKey, uint numRounds)
        external
        view
        returns (uint[] memory rates, uint[] memory times);

    function ratesAndStaleForCurrencies(bytes32[] calldata currencyKeys) external view returns (uint[] memory, bool);

    function ratesForCurrencies(bytes32[] calldata currencyKeys) external view returns (uint[] memory);
}

// File: synthetix/contracts/interfaces/ISynthetixState.sol

pragma solidity >=0.4.24;


interface ISynthetixState {
    // Views
    function debtLedger(uint index) external view returns (uint);

    function issuanceRatio() external view returns (uint);

    function issuanceData(address account) external view returns (uint initialDebtOwnership, uint debtEntryIndex);

    function debtLedgerLength() external view returns (uint);

    function hasIssued(address account) external view returns (bool);

    function lastDebtLedgerEntry() external view returns (uint);

    // Mutative functions
    function incrementTotalIssuerCount() external;

    function decrementTotalIssuerCount() external;

    function setCurrentIssuanceData(address account, uint initialDebtOwnership) external;

    function appendDebtLedgerValue(uint value) external;

    function clearIssuanceData(address account) external;
}

// File: synthetix/contracts/interfaces/IAddressResolver.sol

pragma solidity >=0.4.24;


interface IAddressResolver {
    function getAddress(bytes32 name) external view returns (address);

    function getSynth(bytes32 key) external view returns (address);

    function requireAndGetAddress(bytes32 name, string calldata reason) external view returns (address);
}

// File: contracts/interface/IxSNXCore.sol

pragma solidity 0.5.15;

contract IxSNXCore {
    function withdrawableEthFees() external view returns (uint256);
    function withdrawableSusdFees() external view returns (uint256);
}

// File: contracts/interface/ISystemSettings.sol

pragma solidity 0.5.15;

interface ISystemSettings {
    function issuanceRatio() external view returns(uint);
}

// File: contracts/interface/ICurveFi.sol

pragma solidity 0.5.15;

interface ICurveFi {
  function exchange(
    int128 i,
    int128 j,
    uint256 dx,
    uint256 min_dy
  ) external;
  function exchange_underlying(
    int128 i,
    int128 j,
    uint256 dx,
    uint256 min_dy
  ) external;
  function get_dx_underlying(
    int128 i,
    int128 j,
    uint256 dy
  ) external view returns (uint256);
  function get_dy_underlying(
    int128 i,
    int128 j,
    uint256 dx
  ) external view returns (uint256);
  function get_dx(
    int128 i,
    int128 j,
    uint256 dy
  ) external view returns (uint256);
  function get_dy(
    int128 i,
    int128 j,
    uint256 dx
  ) external view returns (uint256);
  function get_virtual_price() external view returns (uint256);
}

// File: contracts/interface/ISetToken.sol

pragma solidity 0.5.15;

interface ISetToken {
    function unitShares() external view returns(uint);
    function naturalUnit() external view returns(uint);
    function currentSet() external view returns(address);
    // function getUnits() external view returns (uint256[] memory);
}

// File: contracts/interface/IKyberNetworkProxy.sol

pragma solidity 0.5.15;


contract IKyberNetworkProxy {
    function getExpectedRate(ERC20 src, ERC20 dest, uint srcQty) external view returns (uint expectedRate, uint slippageRate);
    function swapEtherToToken(ERC20 token, uint minConversionRate) external payable returns(uint);
    function swapTokenToEther(ERC20 token, uint tokenQty, uint minRate) external payable returns(uint);
    function swapTokenToToken(ERC20 src, uint srcAmount, ERC20 dest, uint minConversionRate) public returns(uint);
}

// File: contracts/interface/ISetAssetBaseCollateral.sol

pragma solidity 0.5.15;

interface ISetAssetBaseCollateral {
    function getComponents() external view returns(address[] memory);
    function naturalUnit() external view returns(uint);
    function getUnits() external view returns (uint256[] memory);
}

// File: contracts/TradeAccounting.sol

pragma solidity 0.5.15;
















/*
	xSNX Target Allocation (assuming 800% C-RATIO)
	----------------------
	Allocation         |  NAV   | % NAV
	--------------------------------------
	800 SNX @ $1/token | $800   | 100%
	100 sUSD Debt	   | ($100)	| (12.5%)
	75 USD equiv Set   | $75    | 9.375%
	25 USD equiv ETH   | $25    | 3.125%
	--------------------------------------
	Total                $800   | 100%
 */

/*
	Conditions for `isRebalanceTowardsHedgeRequired` to return true
	Assuming 5% rebalance threshold

	Allocation         |  NAV   | % NAV
	--------------------------------------
	800 SNX @ $1/token | $800   | 100.63%
	105 sUSD Debt	   | ($105)	| (13.21%)
	75 USD equiv Set   | $75    | 9.43%
	25 USD equiv ETH   | $25    | 3.14%
	--------------------------------------
	Total                $795   | 100%

	Debt value		   | $105
	Hedge Assets	   | $100
	-------------------------
	Debt/hedge ratio   | 105%
  */

/*
	Conditions for `isRebalanceTowardsSnxRequired` to return true
	Assuming 5% rebalance threshold

	Allocation         |  NAV   | % NAV
	--------------------------------------
	800 SNX @ $1/token | $800   | 99.37%
	100 sUSD Debt	   | ($100)	| (12.42%)
	75 USD equiv Set   | $75    | 9.31%
	30 USD equiv ETH   | $30    | 3.72%
	--------------------------------------
	Total                $805   | 100%

	Hedge Assets	   | $105
	Debt value		   | $100
	-------------------------
	Hedge/debt ratio   | 105%
  */

contract TradeAccounting is Ownable {
    using SafeMath for uint256;

    uint256 private constant TEN = 10;
    uint256 private constant DEC_18 = 1e18;
    uint256 private constant PERCENT = 100;
    uint256 private constant ETH_TARGET = 4; // targets 1/4th of hedge portfolio
    uint256 private constant SLIPPAGE_RATE = 99;
    uint256 private constant MAX_UINT = 2**256 - 1;
    uint256 private constant RATE_STALE_TIME = 3600; // 1 hour
    uint256 private constant REBALANCE_THRESHOLD = 105; // 5%
    uint256 private constant INITIAL_SUPPLY_MULTIPLIER = 10;

    int128 usdcIndex;
    int128 susdIndex;

    ICurveFi private curveFi;
    ISynthetix private synthetix;
    ISynthetixState private synthetixState;
    IAddressResolver private addressResolver;
    IKyberNetworkProxy private kyberNetworkProxy;

    address private xSNXInstance;
    address private addressValidator;

    address private setAddress;
    address private susdAddress;
    address private usdcAddress;

    address private nextCurveAddress;

    bytes32 constant snx = "SNX";
    bytes32 constant susd = "sUSD";
    bytes32 constant seth = "sETH";

    bytes32[2] synthSymbols;

    address[2] setComponentAddresses;

    bool readSystemSettings;

    constructor(
        address _setAddress,
        address _kyberProxyAddress,
        address _addressResolver,
        address _susdAddress,
        address _usdcAddress,
        address _addressValidator,
        bytes32[2] memory _synthSymbols,
        address[2] memory _setComponentAddresses
    ) public {
        setAddress = _setAddress;
        kyberNetworkProxy = IKyberNetworkProxy(_kyberProxyAddress);
        addressResolver = IAddressResolver(_addressResolver);
        susdAddress = _susdAddress;
        usdcAddress = _usdcAddress;
        addressValidator = _addressValidator;
        synthSymbols = _synthSymbols;
        setComponentAddresses = _setComponentAddresses;
    }

    modifier onlyXSNX {
        require(msg.sender == xSNXInstance, "Only xSNX contract can call");
        _;
    }

    /* ========================================================================================= */
    /*                                         Kyber                                             */
    /* ========================================================================================= */

    function swapEtherToToken(address toToken, uint256 minConversionRate)
        public
        payable
        onlyXSNX
    {
        kyberNetworkProxy.swapEtherToToken.value(msg.value)(
            ERC20(toToken),
            minConversionRate
        );
        IERC20(toToken).transfer(
            xSNXInstance,
            IERC20(toToken).balanceOf(address(this))
        );
    }

    function swapTokenToToken(
        address fromToken,
        uint256 amount,
        address toToken,
        uint256 minKyberRate,
        uint256 minCurveReturn
    ) public onlyXSNX {
        if (fromToken == susdAddress) {
            _exchangeUnderlying(susdIndex, usdcIndex, amount, minCurveReturn);

            if (toToken != usdcAddress) {
                uint256 usdcBal = getUsdcBalance();
                _swapTokenToToken(usdcAddress, usdcBal, toToken, minKyberRate);
            }
        } else if (toToken == susdAddress) {
            if (fromToken != usdcAddress) {
                _swapTokenToToken(fromToken, amount, usdcAddress, minKyberRate);
            }

            uint256 usdcBal = getUsdcBalance();
            _exchangeUnderlying(usdcIndex, susdIndex, usdcBal, minCurveReturn);
        } else {
            _swapTokenToToken(fromToken, amount, toToken, minKyberRate);
        }

        IERC20(toToken).transfer(
            xSNXInstance,
            IERC20(toToken).balanceOf(address(this))
        );
    }

    function _swapTokenToToken(
        address _fromToken,
        uint256 _amount,
        address _toToken,
        uint256 _minKyberRate
    ) private {
        kyberNetworkProxy.swapTokenToToken(
            ERC20(_fromToken),
            _amount,
            ERC20(_toToken),
            _minKyberRate
        );
    }

    function swapTokenToEther(
        address fromToken,
        uint256 amount,
        uint256 minKyberRate,
        uint256 minCurveReturn
    ) public onlyXSNX {
        if (fromToken == susdAddress) {
            _exchangeUnderlying(susdIndex, usdcIndex, amount, minCurveReturn);

            uint256 usdcBal = getUsdcBalance();
            _swapTokenToEther(usdcAddress, usdcBal, minKyberRate);
        } else {
            _swapTokenToEther(fromToken, amount, minKyberRate);
        }

        uint256 ethBal = address(this).balance;
        (bool success, ) = msg.sender.call.value(ethBal)("");
        require(success, "Transfer failed");
    }

    function _swapTokenToEther(
        address _fromToken,
        uint256 _amount,
        uint256 _minKyberRate
    ) private {
        kyberNetworkProxy.swapTokenToEther(
            ERC20(_fromToken),
            _amount,
            _minKyberRate
        );
    }

    function _exchangeUnderlying(
        int128 _inputIndex,
        int128 _outputIndex,
        uint256 _amount,
        uint256 _minReturn
    ) private {
        curveFi.exchange_underlying(
            _inputIndex,
            _outputIndex,
            _amount,
            _minReturn
        );
    }

    function getUsdcBalance() internal view returns (uint256) {
        return IERC20(usdcAddress).balanceOf(address(this));
    }

    /* ========================================================================================= */
    /*                                          NAV                                              */
    /* ========================================================================================= */

    function getEthBalance() public view returns (uint256) {
        uint256 withdrawableFees = IxSNXCore(xSNXInstance)
            .withdrawableEthFees();
        return address(xSNXInstance).balance.sub(withdrawableFees);
    }

    // eth terms
    function calculateRedemptionValue(
        uint256 totalSupply,
        uint256 tokensToRedeem
    ) public view returns (uint256 valueToRedeem) {
        uint256 snxBalanceOwned = getSnxBalanceOwned();
        uint256 contractDebtValue = getContractDebtValue();

        uint256 pricePerToken = calculateRedeemTokenPrice(
            totalSupply,
            snxBalanceOwned,
            contractDebtValue
        );

        valueToRedeem = pricePerToken.mul(tokensToRedeem).div(DEC_18);
    }

    function getMintWithEthUtils(uint256 ethContribution, uint256 totalSupply)
        public
        view
        returns (bool allocateToEth, uint256 nonSnxAssetValue)
    {
        uint256 setHoldingsInWei = getSetHoldingsValueInWei();
        uint256 ethBalBefore = getEthBalance().sub(ethContribution);

        allocateToEth = shouldAllocateEthToEthReserve(
            setHoldingsInWei,
            ethBalBefore,
            totalSupply
        );
        nonSnxAssetValue = setHoldingsInWei.add(ethBalBefore);
    }

    function shouldAllocateEthToEthReserve(
        uint256 setHoldingsInWei,
        uint256 ethBalBefore,
        uint256 totalSupply
    ) public pure returns (bool allocateToEth) {
        if (totalSupply == 0) return false;

        if (ethBalBefore.mul(ETH_TARGET) < ethBalBefore.add(setHoldingsInWei)) {
            // ETH reserve is under target
            return true;
        }

        return false;
    }

    // eth terms
    function calculateNetAssetValueOnMint(
        uint256 weiPerOneSnx,
        uint256 snxBalanceBefore,
        uint256 nonSnxAssetValue
    ) internal view returns (uint256) {
        uint256 snxTokenValueInWei = snxBalanceBefore.mul(weiPerOneSnx).div(
            DEC_18
        );
        uint256 contractDebtValue = getContractDebtValue();
        uint256 contractDebtValueInWei = calculateDebtValueInWei(
            contractDebtValue
        );
        return
            snxTokenValueInWei.add(nonSnxAssetValue).sub(
                contractDebtValueInWei
            );
    }

    // eth terms
    function calculateNetAssetValueOnRedeem(
        uint256 weiPerOneSnx,
        uint256 snxBalanceOwned,
        uint256 contractDebtValueInWei
    ) internal view returns (uint256) {
        uint256 snxTokenValueInWei = snxBalanceOwned.mul(weiPerOneSnx).div(
            DEC_18
        );
        uint256 nonSnxAssetValue = calculateNonSnxAssetValue();
        return
            snxTokenValueInWei.add(nonSnxAssetValue).sub(
                contractDebtValueInWei
            );
    }

    // eth terms
    function calculateNonSnxAssetValue() internal view returns (uint256) {
        return getSetHoldingsValueInWei().add(getEthBalance());
    }

    function getWeiPerOneSnxOnRedeem()
        internal
        view
        returns (uint256 weiPerOneSnx)
    {
        uint256 snxUsdPrice = getSnxPrice();
        uint256 ethUsdPrice = getSynthPrice(seth);
        weiPerOneSnx = snxUsdPrice
            .mul(DEC_18)
            .div(ethUsdPrice)
            .mul(SLIPPAGE_RATE) // used to better represent liquidation price as volume scales
            .div(PERCENT);
    }

    function getActiveAssetSynthSymbol()
        internal
        view
        returns (bytes32 synthSymbol)
    {
        synthSymbol = getAssetCurrentlyActiveInSet() == setComponentAddresses[0]
            ? (synthSymbols[0])
            : (synthSymbols[1]);
    }

    function getWeiPerOneSnxOnMint() internal view returns (uint256) {
        uint256 snxUsd = getSynthPrice(snx);
        uint256 ethUsd = getSynthPrice(seth);
        return snxUsd.mul(DEC_18).div(ethUsd);
    }

    function getInitialSupply() internal view returns (uint256) {
        return
            IERC20(address(synthetix)).balanceOf(xSNXInstance).mul(
                INITIAL_SUPPLY_MULTIPLIER
            );
    }

    function calculateTokensToMintWithEth(
        uint256 snxBalanceBefore,
        uint256 ethContributed,
        uint256 nonSnxAssetValue,
        uint256 totalSupply
    ) public view returns (uint256) {
        if (totalSupply == 0) {
            return getInitialSupply();
        }

        uint256 weiPerOneSnx = getWeiPerOneSnxOnMint();
        uint256 pricePerToken = calculateIssueTokenPrice(
            weiPerOneSnx,
            snxBalanceBefore,
            nonSnxAssetValue,
            totalSupply
        );

        return ethContributed.mul(DEC_18).div(pricePerToken);
    }

    function calculateTokensToMintWithSnx(
        uint256 snxBalanceBefore,
        uint256 snxAddedToBalance,
        uint256 totalSupply
    ) public view returns (uint256) {
        if (totalSupply == 0) {
            return getInitialSupply();
        }

        uint256 weiPerOneSnx = getWeiPerOneSnxOnMint();
        // need to derive snx contribution in eth terms for NAV calc
        uint256 proxyEthContribution = weiPerOneSnx.mul(snxAddedToBalance).div(
            DEC_18
        );
        uint256 nonSnxAssetValue = calculateNonSnxAssetValue();
        uint256 pricePerToken = calculateIssueTokenPrice(
            weiPerOneSnx,
            snxBalanceBefore,
            nonSnxAssetValue,
            totalSupply
        );
        return proxyEthContribution.mul(DEC_18).div(pricePerToken);
    }

    function calculateIssueTokenPrice(
        uint256 weiPerOneSnx,
        uint256 snxBalanceBefore,
        uint256 nonSnxAssetValue,
        uint256 totalSupply
    ) public view returns (uint256 pricePerToken) {
        pricePerToken = calculateNetAssetValueOnMint(
            weiPerOneSnx,
            snxBalanceBefore,
            nonSnxAssetValue
        )
            .mul(DEC_18)
            .div(totalSupply);
    }

    function calculateRedeemTokenPrice(
        uint256 totalSupply,
        uint256 snxBalanceOwned,
        uint256 contractDebtValue
    ) public view returns (uint256 pricePerToken) {
        // SNX won't actually be sold (burns are only distributed in available ETH) but
        // this is a proxy for the return value of SNX that would be sold
        uint256 weiPerOneSnx = getWeiPerOneSnxOnRedeem();

        uint256 debtValueInWei = calculateDebtValueInWei(contractDebtValue);
        pricePerToken = calculateNetAssetValueOnRedeem(
            weiPerOneSnx,
            snxBalanceOwned,
            debtValueInWei
        )
            .mul(DEC_18)
            .div(totalSupply);
    }

    /* ========================================================================================= */
    /*                                          Set                                              */
    /* ========================================================================================= */

    function getActiveSetAssetBalance() public view returns (uint256) {
        return IERC20(getAssetCurrentlyActiveInSet()).balanceOf(xSNXInstance);
    }

    function calculateSetQuantity(uint256 componentQuantity) // 2.06e6
        public
        view
        returns (uint256 rebalancingSetQuantity)
    {
        uint256 baseSetNaturalUnit = getBaseSetNaturalUnit(); // 1000000000000
        uint256 baseSetComponentUnits = getBaseSetComponentUnits(); // 307
        uint256 baseSetIssuable = componentQuantity.mul(baseSetNaturalUnit).div(
            baseSetComponentUnits
        ); // 2.06e16 * 1000000000000 / 307 = 6.7e15

        uint256 rebalancingSetNaturalUnit = getSetNaturalUnit(); // 1000000
        uint256 unitShares = getSetUnitShares(); // 359702
        rebalancingSetQuantity = baseSetIssuable
            .mul(rebalancingSetNaturalUnit)
            .div(unitShares)
            .mul(99) // ensure sufficient balance in underlying asset
            .div(100)
            .div(rebalancingSetNaturalUnit)
            .mul(rebalancingSetNaturalUnit); // 6.7e15 * 1000000 / 359702 = 1.86e16
    }

    function calculateSetIssuanceQuantity()
        public
        view
        returns (uint256 rebalancingSetIssuable)
    {
        uint256 componentQuantity = getActiveSetAssetBalance();
        rebalancingSetIssuable = calculateSetQuantity(componentQuantity);
    }

    function calculateSetRedemptionQuantity(uint256 totalSusdToBurn) // 2e18
        public
        view
        returns (uint256 rebalancingSetRedeemable)
    {
        address currentSetAsset = getAssetCurrentlyActiveInSet();

        bytes32 activeAssetSynthSymbol = getActiveAssetSynthSymbol();
        uint256 synthUsd = getSynthPrice(activeAssetSynthSymbol); // 1e18

        // expectedSetAssetRate = amount of current set asset needed to redeem for 1 sUSD
        uint256 expectedSetAssetRate = DEC_18.mul(DEC_18).div(synthUsd); // 1e18 * 1e18 / 1e18 = 1e18

        uint256 setAssetCollateralToSell = expectedSetAssetRate
            .mul(totalSusdToBurn)
            .div(DEC_18)
            .mul(103) // err on the high side
            .div(PERCENT); // 1e18 * 2e18 / 1e18 * 103 / 100 = 2.06e18

        uint256 decimals = (TEN**ERC20Detailed(currentSetAsset).decimals()); // 1e6
        setAssetCollateralToSell = setAssetCollateralToSell.mul(decimals).div(
            DEC_18
        ); // 2.06e18 * 1e6 / 1e18 = 2.06e6

        rebalancingSetRedeemable = calculateSetQuantity(
            setAssetCollateralToSell
        );
    }

    function calculateEthValueOfOneSetUnit()
        internal
        view
        returns (uint256 ethValue)
    {
        uint256 unitShares = getSetUnitShares();
        uint256 rebalancingSetNaturalUnit = getSetNaturalUnit();
        uint256 baseSetRequired = DEC_18.mul(unitShares).div(
            rebalancingSetNaturalUnit
        );

        uint256 unitsOfUnderlying = getBaseSetComponentUnits();
        uint256 baseSetNaturalUnit = getBaseSetNaturalUnit();
        uint256 componentRequired = baseSetRequired.mul(unitsOfUnderlying).div(
            baseSetNaturalUnit
        );

        address currentSetAsset = getAssetCurrentlyActiveInSet();
        uint256 decimals = (TEN**ERC20Detailed(currentSetAsset).decimals());
        componentRequired = componentRequired.mul(DEC_18).div(decimals);

        bytes32 activeAssetSynthSymbol = getActiveAssetSynthSymbol();

        uint256 synthUsd = getSynthPrice(activeAssetSynthSymbol);
        uint256 ethUsd = getSynthPrice(seth);
        ethValue = componentRequired.mul(synthUsd).div(ethUsd);
    }

    function getSetHoldingsValueInWei()
        public
        view
        returns (uint256 setValInWei)
    {
        uint256 setCollateralTokens = getSetCollateralTokens();
        bytes32 synthSymbol = getActiveAssetSynthSymbol();
        address currentSetAsset = getAssetCurrentlyActiveInSet();

        uint256 synthUsd = getSynthPrice(synthSymbol);
        uint256 ethUsd = getSynthPrice(seth);

        uint256 decimals = (TEN**ERC20Detailed(currentSetAsset).decimals());
        setCollateralTokens = setCollateralTokens.mul(DEC_18).div(decimals);
        setValInWei = setCollateralTokens.mul(synthUsd).div(ethUsd);
    }

    function getBaseSetNaturalUnit() internal view returns (uint256) {
        return getCurrentCollateralSet().naturalUnit();
    }

    function getAssetCurrentlyActiveInSet() public view returns (address) {
        address[] memory currentAllocation = getCurrentCollateralSet()
            .getComponents();
        return currentAllocation[0];
    }

    function getCurrentCollateralSet()
        internal
        view
        returns (ISetAssetBaseCollateral)
    {
        return ISetAssetBaseCollateral(getCurrentSet());
    }

    function getCurrentSet() internal view returns (address) {
        return ISetToken(setAddress).currentSet();
    }

    // this returns the number of underlying tokens in the current Set asset
    // e.g., the contract's Set holdings are collateralized by 10.4 WETH
    function getSetCollateralTokens() internal view returns (uint256) {
        return
            getSetBalanceCollateral().mul(getBaseSetComponentUnits()).div(
                getBaseSetNaturalUnit()
            );
    }

    function getSetBalanceCollateral() internal view returns (uint256) {
        uint256 unitShares = getSetUnitShares();
        uint256 naturalUnit = getSetNaturalUnit();
        return getContractSetBalance().mul(unitShares).div(naturalUnit);
    }

    function getSetUnitShares() internal view returns (uint256) {
        return ISetToken(setAddress).unitShares();
    }

    function getSetNaturalUnit() internal view returns (uint256) {
        return ISetToken(setAddress).naturalUnit();
    }

    function getContractSetBalance() internal view returns (uint256) {
        return IERC20(setAddress).balanceOf(xSNXInstance);
    }

    function getBaseSetComponentUnits() internal view returns (uint256) {
        return ISetAssetBaseCollateral(getCurrentSet()).getUnits()[0];
    }

    /* ========================================================================================= */
    /*                                         Synthetix	                                     */
    /* ========================================================================================= */

    function getSusdBalance() public view returns (uint256) {
        uint256 susdBal = IERC20(susdAddress).balanceOf(xSNXInstance);
        uint256 susdFees = IxSNXCore(xSNXInstance).withdrawableSusdFees();
        return susdBal.sub(susdFees);
    }

    function getSnxBalance() public view returns (uint256) {
        return getSnxBalanceOwned().add(getSnxBalanceEscrowed());
    }

    function getSnxBalanceOwned() internal view returns (uint256) {
        return IERC20(address(synthetix)).balanceOf(xSNXInstance);
    }

    function getSnxBalanceEscrowed() internal view returns (uint256) {
        return
            IRewardEscrow(addressResolver.getAddress(rewardEscrowName))
                .balanceOf(xSNXInstance);
    }

    function getContractEscrowedSnxValue() internal view returns (uint256) {
        return getSnxBalanceEscrowed().mul(getSnxPrice()).div(DEC_18);
    }

    function getContractOwnedSnxValue() internal view returns (uint256) {
        return getSnxBalanceOwned().mul(getSnxPrice()).div(DEC_18);
    }

    function getSnxPrice() internal view returns (uint256) {
        (uint256 rate, uint256 time) = IExchangeRates(
            addressResolver.getAddress(exchangeRatesName)
        )
            .rateAndUpdatedTime(snx);
        require(time.add(RATE_STALE_TIME) > block.timestamp, "Rate stale");
        return rate;
    }

    function getSynthPrice(bytes32 synth) internal view returns (uint256) {
        (uint256 rate, uint256 time) = IExchangeRates(
            addressResolver.getAddress(exchangeRatesName)
        )
            .rateAndUpdatedTime(synth);
        if (synth != susd) {
            require(time.add(RATE_STALE_TIME) > block.timestamp, "Rate stale");
        }
        return rate;
    }

    function calculateDebtValueInWei(uint256 debtValue)
        internal
        view
        returns (uint256 debtBalanceInWei)
    {
        uint256 ethUsd = getSynthPrice(seth);
        debtBalanceInWei = debtValue.mul(DEC_18).div(ethUsd);
    }

    function getContractDebtValue() internal view returns (uint256) {
        return synthetix.debtBalanceOf(xSNXInstance, susd);
    }

    // returns inverse of target C-RATIO
    function getIssuanceRatio() internal view returns (uint256 issuanceRatio) {
        issuanceRatio = readSystemSettings
            ? ISystemSettings(addressResolver.getAddress(systemSettingsName))
                .issuanceRatio()
            : synthetixState.issuanceRatio();
    }

    // usd terms
    function getContractSnxValue() internal view returns (uint256) {
        return getSnxBalance().mul(getSnxPrice()).div(DEC_18);
    }

    /* ========================================================================================= */
    /*                                       Burning sUSD                                        */
    /* ========================================================================================= */

    function calculateSusdToBurnToFixRatio(
        uint256 snxValueHeld,
        uint256 contractDebtValue,
        uint256 issuanceRatio
    ) internal pure returns (uint256) {
        uint256 subtractor = issuanceRatio.mul(snxValueHeld).div(DEC_18);

        if (subtractor > contractDebtValue) return 0;
        return contractDebtValue.sub(subtractor);
    }

    function calculateSusdToBurnToFixRatioExternal()
        public
        view
        returns (uint256)
    {
        uint256 snxValueHeld = getContractSnxValue();
        uint256 debtValue = getContractDebtValue();
        uint256 issuanceRatio = getIssuanceRatio();
        return
            calculateSusdToBurnToFixRatio(
                snxValueHeld,
                debtValue,
                issuanceRatio
            );
    }

    function calculateSusdToBurnToEclipseEscrowed(uint256 issuanceRatio)
        public
        view
        returns (uint256)
    {
        uint256 escrowedSnxValue = getContractEscrowedSnxValue();
        if (escrowedSnxValue == 0) return 0;

        return escrowedSnxValue.mul(issuanceRatio).div(DEC_18);
    }

    function calculateSusdToBurnForRedemption(
        uint256 tokensToRedeem,
        uint256 totalSupply,
        uint256 contractDebtValue,
        uint256 issuanceRatio
    ) public view returns (uint256 susdToBurn) {
        uint256 nonEscrowedSnxValue = getContractOwnedSnxValue();
        uint256 lockedSnxValue = contractDebtValue.mul(DEC_18).div(
            issuanceRatio
        );
        uint256 valueOfSnxToSell = nonEscrowedSnxValue.mul(tokensToRedeem).div(
            totalSupply
        );
        susdToBurn = (
            lockedSnxValue.add(valueOfSnxToSell).sub(nonEscrowedSnxValue)
        )
            .mul(issuanceRatio)
            .div(DEC_18);
    }

    /* ========================================================================================= */
    /*                                        Rebalances                                         */
    /* ========================================================================================= */

    // usd terms
    function calculateAssetChangesForRebalanceToHedge()
        internal
        view
        returns (uint256 totalSusdToBurn, uint256 snxToSell)
    {
        uint256 snxValueHeld = getContractSnxValue();
        uint256 debtValueInUsd = getContractDebtValue();
        uint256 issuanceRatio = getIssuanceRatio();

        uint256 susdToBurnToFixRatio = calculateSusdToBurnToFixRatio(
            snxValueHeld,
            debtValueInUsd,
            issuanceRatio
        );


            uint256 susdToBurnToEclipseEscrowed
         = calculateSusdToBurnToEclipseEscrowed(issuanceRatio);

        uint256 hedgeAssetsValueInUsd = calculateHedgeAssetsValueInUsd();
        uint256 valueToUnlockInUsd = debtValueInUsd.sub(hedgeAssetsValueInUsd);

        uint256 susdToBurnToUnlockTransfer = valueToUnlockInUsd
            .mul(issuanceRatio)
            .div(DEC_18);

        totalSusdToBurn = (
            susdToBurnToFixRatio.add(susdToBurnToEclipseEscrowed).add(
                susdToBurnToUnlockTransfer
            )
        );
        snxToSell = valueToUnlockInUsd.mul(DEC_18).div(getSnxPrice());
    }

    function calculateAssetChangesForRebalanceToSnx()
        public
        view
        returns (uint256 setToSell)
    {
        (
            uint256 debtValueInWei,
            uint256 hedgeAssetsBalance
        ) = getRebalanceUtils();
        uint256 setValueToSell = hedgeAssetsBalance.sub(debtValueInWei);
        uint256 ethValueOfOneSet = calculateEthValueOfOneSetUnit();
        setToSell = setValueToSell.mul(DEC_18).div(ethValueOfOneSet);

        // Set quantity must be multiple of natural unit
        uint256 naturalUnit = getSetNaturalUnit();
        setToSell = setToSell.div(naturalUnit).mul(naturalUnit);
    }

    function getRebalanceTowardsSnxUtils()
        public
        view
        returns (uint256 setToSell, address activeAsset)
    {
        setToSell = calculateAssetChangesForRebalanceToSnx();
        activeAsset = getAssetCurrentlyActiveInSet();
    }

    // eth terms
    function getRebalanceUtils()
        public
        view
        returns (uint256 debtValueInWei, uint256 hedgeAssetsBalance)
    {
        uint256 setHoldingsInWei = getSetHoldingsValueInWei();
        uint256 ethBalance = getEthBalance();

        uint256 debtValue = getContractDebtValue();
        debtValueInWei = calculateDebtValueInWei(debtValue);
        hedgeAssetsBalance = setHoldingsInWei.add(ethBalance);
    }

    // usd terms
    function calculateHedgeAssetsValueInUsd()
        internal
        view
        returns (uint256 hedgeAssetsValueInUsd)
    {
        address currentSetAsset = getAssetCurrentlyActiveInSet();
        uint256 decimals = (TEN**ERC20Detailed(currentSetAsset).decimals());
        uint256 setCollateralTokens = getSetCollateralTokens();
        setCollateralTokens = setCollateralTokens.mul(DEC_18).div(decimals);

        bytes32 activeAssetSynthSymbol = getActiveAssetSynthSymbol();

        uint256 synthUsd = getSynthPrice(activeAssetSynthSymbol);
        uint256 setValueUsd = setCollateralTokens.mul(synthUsd).div(DEC_18);

        uint256 ethBalance = getEthBalance();
        uint256 ethUsd = getSynthPrice(seth);
        uint256 ethValueUsd = ethBalance.mul(ethUsd).div(DEC_18);

        hedgeAssetsValueInUsd = setValueUsd.add(ethValueUsd);
    }

    function isRebalanceTowardsSnxRequired() public view returns (bool) {
        (
            uint256 debtValueInWei,
            uint256 hedgeAssetsBalance
        ) = getRebalanceUtils();

        if (
            debtValueInWei.mul(REBALANCE_THRESHOLD).div(PERCENT) <
            hedgeAssetsBalance
        ) {
            return true;
        }

        return false;
    }

    function isRebalanceTowardsHedgeRequired() public view returns (bool) {
        (
            uint256 debtValueInWei,
            uint256 hedgeAssetsBalance
        ) = getRebalanceUtils();

        if (
            hedgeAssetsBalance.mul(REBALANCE_THRESHOLD).div(PERCENT) <
            debtValueInWei
        ) {
            return true;
        }

        return false;
    }

    // will fail if !isRebalanceTowardsHedgeRequired()
    function getRebalanceTowardsHedgeUtils()
        public
        view
        returns (
            uint256,
            uint256,
            address
        )
    {
        (
            uint256 totalSusdToBurn,
            uint256 snxToSell
        ) = calculateAssetChangesForRebalanceToHedge();
        address activeAsset = getAssetCurrentlyActiveInSet();
        return (totalSusdToBurn, snxToSell, activeAsset);
    }

    /*
     * @notice Helper for `hedge` function
     * @dev Determines share of sUSD to allocate to ETH
     * @dev Implicitly determines Set allocation as well
     * @param susdBal: sUSD balance post minting
     */
    function getEthAllocationOnHedge(uint256 susdBal)
        public
        view
        returns (uint256 ethAllocation)
    {
        uint256 ethUsd = getSynthPrice(seth);

        uint256 setHoldingsInUsd = getSetHoldingsValueInWei().mul(ethUsd).div(
            DEC_18
        );
        uint256 ethBalInUsd = getEthBalance().mul(ethUsd).div(DEC_18);
        uint256 hedgeAssets = setHoldingsInUsd.add(ethBalInUsd);

        if (ethBalInUsd.mul(ETH_TARGET) >= hedgeAssets.add(susdBal)) {
            // full bal directed toward Set
            // eth allocation is 0
        } else if ((ethBalInUsd.add(susdBal)).mul(ETH_TARGET) < hedgeAssets) {
            // full bal directed toward Eth
            ethAllocation = susdBal;
        } else {
            // fractionate allocation
            ethAllocation = ((hedgeAssets.add(susdBal)).div(ETH_TARGET)).sub(
                ethBalInUsd
            );
        }
    }

    // helper callable when eth bal is below eth target
    function calculateSetToSellForRebalanceSetToEth()
        public
        view
        returns (uint256 setQuantityToSell)
    {
        uint256 setHoldingsInWei = getSetHoldingsValueInWei();
        uint256 ethBal = getEthBalance();
        uint256 hedgeAssets = setHoldingsInWei.add(ethBal);
        require(
            ethBal.mul(ETH_TARGET) < hedgeAssets,
            "Rebalance not necessary"
        );

        // overcompensates slightly leading to more eth than target
        uint256 ethToAdd = ((hedgeAssets.div(ETH_TARGET)).sub(ethBal));
        setQuantityToSell = getContractSetBalance().mul(ethToAdd).div(
            setHoldingsInWei
        );

        uint256 naturalUnit = getSetNaturalUnit();
        setQuantityToSell = setQuantityToSell.div(naturalUnit).mul(naturalUnit);
    }

    /* ========================================================================================= */
    /*                                     Address Setters                                       */
    /* ========================================================================================= */

    bytes32 constant rewardEscrowName = "RewardEscrow";
    bytes32 constant synthetixStateName = "SynthetixState";
    bytes32 constant exchangeRatesName = "ExchangeRates";
    bytes32 constant synthetixName = "Synthetix";
    bytes32 constant systemSettingsName = "SystemSettings";

    function setSynthetixStateAddress() public {
        address synthetixStateAddress = addressResolver.getAddress(
            synthetixStateName
        );
        synthetixState = ISynthetixState(synthetixStateAddress);
    }

    function setSynthetixAddress() public {
        address synthetixAddress = addressResolver.getAddress(synthetixName);
        synthetix = ISynthetix(synthetixAddress);
    }

    function setInstanceAddress(address _xSNXInstance) public onlyOwner {
        if (xSNXInstance == address(0)) {
            xSNXInstance = _xSNXInstance;
        }
    }

    function setCurve(
        address curvePoolAddress,
        int128 _usdcIndex,
        int128 _susdIndex
    ) public onlyOwner {
        if (address(curveFi) == address(0)) {
            // if initial set on deployment, immediately activate Curve address
            curveFi = ICurveFi(curvePoolAddress);
        } else {
            // if updating Curve address (i.e., not initial setting of address on deployment),
            // store nextCurveAddress but don't activate until addressValidator has confirmed
            nextCurveAddress = curvePoolAddress;
        }
        usdcIndex = _usdcIndex;
        susdIndex = _susdIndex;
    }

    /* ========================================================================================= */
    /*                                   		 Utils           		                         */
    /* ========================================================================================= */

    // admin on deployment approve [snx, susd, setComponentA, setComponentB]
    function approveKyber(address tokenAddress) public onlyOwner {
        IERC20(tokenAddress).approve(address(kyberNetworkProxy), MAX_UINT);
    }

    // admin on deployment approve [susd, usdc]
    function approveCurve(address tokenAddress) public onlyOwner {
        IERC20(tokenAddress).approve(address(curveFi), MAX_UINT);
    }

    function confirmCurveAddress(address _nextCurveAddress) public {
        require(msg.sender == addressValidator, "Incorrect caller");
        require(nextCurveAddress == _nextCurveAddress, "Addresses don't match");
        curveFi = ICurveFi(nextCurveAddress);
    }

    function toggleSystemSettingsRead() public onlyOwner {
        readSystemSettings = !readSystemSettings;
    }

    function() external payable {}
}

// File: contracts/helpers/Pausable.sol

pragma solidity ^0.5.15;

/* Adapted from OpenZeppelin */
contract Pausable {
    /**
     * @dev Emitted when the pause is triggered by a pauser.
     */
    event Paused();

    /**
     * @dev Emitted when the pause is lifted by a pauser.
     */
    event Unpaused();

    bool private _paused;
    address public pauser;

    /**
     * @dev Initializes the contract in unpaused state. Assigns the Pauser role
     * to the deployer.
     */
    constructor () internal {
        _paused = false;
        pauser = msg.sender;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     */
    modifier whenNotPaused() {
        require(!_paused, "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     */
    modifier whenPaused() {
        require(_paused, "Pausable: not paused");
        _;
    }

    /**
     * @dev Called by a pauser to pause, triggers stopped state.
     */
    function pause() public onlyPauser whenNotPaused {
        _paused = true;
        emit Paused();
    }

    /**
     * @dev Called by a pauser to unpause, returns to normal state.
     */
    function unpause() public onlyPauser whenPaused {
        _paused = false;
        emit Unpaused();
    }

    modifier onlyPauser {
        require(msg.sender == pauser, "Don't have rights");
        _;
    }
}

// File: contracts/interface/IRebalancingSetIssuanceModule.sol

pragma solidity 0.5.15;

interface IRebalancingSetIssuanceModule {
    //  call if eth is active asset in eth20smaco
    function issueRebalancingSetWrappingEther(
        address _rebalancingSetAddress,
        uint256 _rebalancingSetQuantity,
        bool _keepChangeInVault
    ) external payable;

    //  call with usdc if usdc is active asset in eth20smaco
    function issueRebalancingSet(
        address _rebalancingSetAddress,
        uint256 _rebalancingSetQuantity,
        bool _keepChangeInVault
    ) external;

    function redeemRebalancingSet(
        address _rebalancingSetAddress,
        uint256 _rebalancingSetQuantity,
        bool _keepChangeInVault
    )
    external;
}

// File: contracts/xSNXCore.sol

pragma solidity 0.5.15;









contract xSNXCore is ERC20, ERC20Detailed, Pausable, Ownable {
    address
        private constant ETH_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;
    address private susdAddress;
    address private setAddress;
    address private snxAddress;
    address private setTransferProxy;

    address private manager;

    bytes32 constant susd = "sUSD";

    bytes32 constant feePoolName = "FeePool";
    bytes32 constant synthetixName = "Synthetix";
    bytes32 constant rewardEscrowName = "RewardEscrow";

    uint256 private constant MAX_UINT = 2**256 - 1;
    uint256 private constant LIQUIDATION_WAIT_PERIOD = 3 weeks;

    ISynthetix private synthetix;
    TradeAccounting private tradeAccounting;
    IAddressResolver private addressResolver;
    IRebalancingSetIssuanceModule private rebalancingModule;

    uint256 public withdrawableEthFees;
    uint256 public withdrawableSusdFees;

    uint256 public lastClaimedTimestamp;

    event Mint(
        address indexed user,
        uint256 timestamp,
        uint256 valueSent,
        uint256 mintAmount,
        bool mintWithEth
    );
    event Burn(
        address indexed user,
        uint256 timestamp,
        uint256 burnAmount,
        uint256 valueToSend
    );
    event RebalanceToSnx(uint256 timestamp, uint256 setSold);
    event RebalanceToHedge(uint256 timestamp, uint256 snxSold);
    event WithdrawFees(uint256 ethAmount, uint256 susdAmount);

    struct FeeDivisors {
        uint256 mintFee; // not charged on mintWithSnx
        uint256 burnFee;
        uint256 claimFee;
    }

    FeeDivisors public feeDivisors;

    constructor(
        address payable _tradeAccountingAddress,
        address _setAddress,
        address _snxAddress,
        address _susdAddress,
        address _setTransferProxy,
        address _addressResolver,
        address _rebalancingModule
    ) public ERC20Detailed("xSNX", "xSNXa", 18) {
        tradeAccounting = TradeAccounting(_tradeAccountingAddress);
        setAddress = _setAddress;
        snxAddress = _snxAddress;
        susdAddress = _susdAddress;
        setTransferProxy = _setTransferProxy;
        addressResolver = IAddressResolver(_addressResolver);
        rebalancingModule = IRebalancingSetIssuanceModule(_rebalancingModule);
    }

    /* ========================================================================================= */
    /*                                     Investor-facing                                       */
    /* ========================================================================================= */

    /*
     * @notice Mint new xSNX tokens from the contract by sending ETH
     * @dev Exchanges ETH for SNX
     * @dev Min rate ETH/SNX sourced from Kyber in JS
     * @dev: Calculates overall fund NAV in ETH terms, using ETH/SNX price (via SNX oracle)
     * @dev: Mints/distributes new xSNX tokens based on contribution to NAV
     * @param: minRate: kyberProxy.getExpectedRate eth=>snx
     */
    function mint(uint256 minRate) external payable whenNotPaused {
        require(msg.value > 0, "Must send ETH");

        uint256 fee = _administerFee(msg.value, feeDivisors.mintFee);
        uint256 ethContribution = msg.value.sub(fee);
        uint256 snxBalanceBefore = tradeAccounting.getSnxBalance();

        uint256 totalSupply = totalSupply();
        (bool allocateToEth, uint256 nonSnxAssetValue) = tradeAccounting
            .getMintWithEthUtils(ethContribution, totalSupply);

        if (!allocateToEth) {
            tradeAccounting.swapEtherToToken.value(ethContribution)(
                snxAddress,
                minRate
            );
        }

        uint256 mintAmount = tradeAccounting.calculateTokensToMintWithEth(
            snxBalanceBefore,
            ethContribution,
            nonSnxAssetValue,
            totalSupply
        );

        emit Mint(msg.sender, block.timestamp, msg.value, mintAmount, true);
        return super._mint(msg.sender, mintAmount);
    }

    /*
     * @notice Mint new xSNX tokens from the contract by sending SNX
     * @notice Won't run without ERC20 approval
     * @dev: Calculates overall fund NAV in ETH terms, using ETH/SNX price (via SNX oracle)
     * @dev: Mints/distributes new xSNX tokens based on contribution to NAV
     * @param: snxAmount: SNX to contribute
     */
    function mintWithSnx(uint256 snxAmount) external whenNotPaused {
        require(snxAmount > 0, "Must send SNX");
        uint256 snxBalanceBefore = tradeAccounting.getSnxBalance();
        IERC20(snxAddress).transferFrom(msg.sender, address(this), snxAmount);

        uint256 mintAmount = tradeAccounting.calculateTokensToMintWithSnx(
            snxBalanceBefore,
            snxAmount,
            totalSupply()
        );

        emit Mint(msg.sender, block.timestamp, snxAmount, mintAmount, false);
        return super._mint(msg.sender, mintAmount);
    }

    /*
     * @notice Redeems and burns xSNX tokens and sends ETH to user
     * @dev Checks if ETH reserve is sufficient to settle redeem obligation
     * @dev Will only redeem if ETH reserve is sufficient
     * @param tokensToRedeem
     */
    function burn(uint256 tokensToRedeem) external {
        require(tokensToRedeem > 0, "Must burn tokens");

        uint256 valueToRedeem = tradeAccounting.calculateRedemptionValue(
            totalSupply(),
            tokensToRedeem
        );

        require(
            tradeAccounting.getEthBalance() > valueToRedeem,
            "Redeem amount exceeds available liquidity"
        );

        uint256 valueToSend = valueToRedeem.sub(
            _administerFee(valueToRedeem, feeDivisors.burnFee)
        );
        super._burn(msg.sender, tokensToRedeem);
        emit Burn(msg.sender, block.timestamp, tokensToRedeem, valueToSend);

        (bool success, ) = msg.sender.call.value(valueToSend)("");
        require(success, "Burn transfer failed");
    }

    /* ========================================================================================= */
    /*                                   Fund Management                                         */
    /* ========================================================================================= */

    /*
     * @notice Hedge strategy management function callable by admin
     * @dev Issues synths on Synthetix
     * @dev Exchanges sUSD for Set and ETH in terms defined by tradeAccounting.ETH_TARGET
     * @param mintAmount: susd to mint
     * @param minKyberRates: kyber.getExpectedRate([usdc=>eth, usdc=>currentSetAsset])
     * @param minCurveReturns: curve.get_dy_underlying([(ethAllocation, susd=>usdc), ((mintAmount.sub(ethAllocation)), susd>usdc)])
     * @param ethAllocation: tradeAccounting.getEthAllocationOnHedge(mintAmount)
     */
    function hedge(
        uint256 mintAmount,
        uint256[] calldata minKyberRates,
        uint256[] calldata minCurveReturns,
        uint256 ethAllocation
    ) external onlyOwnerOrManager whenNotPaused {
        _stake(mintAmount);

        _allocateToEth(ethAllocation, minKyberRates[0], minCurveReturns[0]);

        address activeAsset = getAssetCurrentlyActiveInSet();
        _issueMaxSet(
            mintAmount.sub(ethAllocation),
            minKyberRates[1],
            activeAsset,
            minCurveReturns[1]
        );
    }

    function _allocateToEth(
        uint256 _susdValue,
        uint256 _minKyberRate,
        uint256 _minCurveReturn
    ) private {
        _swapTokenToEther(
            susdAddress,
            _susdValue,
            _minKyberRate,
            _minCurveReturn
        );
    }

    function _stake(uint256 mintAmount) private {
        synthetix.issueSynths(mintAmount);
    }

    /*
     * @notice Claims weekly sUSD and SNX rewards
     * @notice Fixes c-ratio if necessary
     * @param susdToBurnToFixCollat: tradeAccounting.calculateSusdToBurnToFixRatioExternal()
     * @param minKyberRates[]: kyber.getExpectedRate[setAsset => usdc, usdc => eth]
     * @param minCurveReturns: curve.get_dy_underlying([(setAssetBalance, usdc=>susd), (susdBalance susd=>usdc)])
     * @param feesClaimable: feePool.isFeesClaimable(address(this)) - on Synthetix contract
     */
    function claim(
        uint256 susdToBurnToFixCollat,
        uint256[] calldata minKyberRates,
        uint256[] calldata minCurveReturns,
        bool feesClaimable
    ) external onlyOwnerOrManager {
        lastClaimedTimestamp = block.timestamp;

        if (!feesClaimable) {
            _redeemSet(susdToBurnToFixCollat);
            _swapTokenToToken(
                getAssetCurrentlyActiveInSet(),
                getActiveSetAssetBalance(),
                susdAddress,
                minKyberRates[0],
                minCurveReturns[0]
            );
            _burnSynths(getSusdBalance());
        }

        IFeePool(addressResolver.getAddress(feePoolName)).claimFees();
        withdrawableSusdFees = withdrawableSusdFees.add(
            getSusdBalance().div(feeDivisors.claimFee)
        );
        _swapTokenToEther(
            susdAddress,
            getSusdBalance(),
            minKyberRates[1],
            minCurveReturns[1]
        );
    }

    function _burnSynths(uint256 _amount) private {
        synthetix.burnSynths(_amount);
    }

    function _swapTokenToEther(
        address _fromToken,
        uint256 _amount,
        uint256 _minKyberRate,
        uint256 _minCurveReturn
    ) private {
        if (_amount > 0) {
            IERC20(_fromToken).transfer(address(tradeAccounting), _amount);
            tradeAccounting.swapTokenToEther(
                _fromToken,
                _amount,
                _minKyberRate,
                _minCurveReturn
            );
        }
    }

    function _swapTokenToToken(
        address _fromToken,
        uint256 _amount,
        address _toToken,
        uint256 _minKyberRate,
        uint256 _minCurveReturn
    ) private {
        IERC20(_fromToken).transfer(address(tradeAccounting), _amount);
        tradeAccounting.swapTokenToToken(
            _fromToken,
            _amount,
            _toToken,
            _minKyberRate,
            _minCurveReturn
        );
    }

    /* ========================================================================================= */
    /*                                      Rebalances                                           */
    /* ========================================================================================= */

    /*
     * @notice Called when hedge assets value meaningfully exceeds debt liabilities
     * @dev Hedge assets (Set + ETH) > liabilities (debt) by more than rebalance threshold
     * @param: minRate: kyber.getExpectedRate(activeAsset=>snx)
     */
    function rebalanceTowardsSnx(uint256 minRate) external onlyOwnerOrManager {
        require(
            tradeAccounting.isRebalanceTowardsSnxRequired(),
            "Rebalance not necessary"
        );
        (uint256 setToSell, address activeAsset) = tradeAccounting
            .getRebalanceTowardsSnxUtils();

        _redeemRebalancingSet(setToSell);

        _swapTokenToToken(
            activeAsset,
            getActiveSetAssetBalance(),
            snxAddress,
            minRate,
            0
        );

        emit RebalanceToSnx(block.timestamp, setToSell);
    }

    /*
     * @notice Called when debt value meaningfully exceeds value of hedge assets
     * @notice Allocates fully to ETH reserve
     * @dev `Liabilities (debt) > assets (Set + ETH)` by more than rebalance threshold
     * @param: totalSusdToBurn: tradeAccounting.getRebalanceTowardsHedgeUtils()
     * @param: minKyberRates: kyber.getExpectedRate([activeSetAsset => usdc, snx => eth])
     * @param minCurveReturns: curve.get_dy_underlying([(expectedUsdcBalance, usdc=>susd), (0)])
     * @param: snxToSell: tradeAccounting.getRebalanceTowardsHedgeUtils()
     */
    function rebalanceTowardsHedge(
        uint256 totalSusdToBurn,
        uint256[] calldata minKyberRates,
        uint256[] calldata minCurveReturns,
        uint256 snxToSell
    ) external onlyOwnerOrManager {
        require(
            tradeAccounting.isRebalanceTowardsHedgeRequired(),
            "Rebalance unnecessary"
        );

        address activeAsset = getAssetCurrentlyActiveInSet();
        _unwindStakedPosition(
            totalSusdToBurn,
            activeAsset,
            minKyberRates,
            minCurveReturns,
            snxToSell
        );
        emit RebalanceToHedge(block.timestamp, snxToSell);
    }

    /*
     * @notice Callable whenever ETH bal is less than (hedgeAssets / ETH_TARGET)
     * @dev Rebalances Set holdings to ETH holdings
     * @param minRate: kyber.getExpectedRate(activeAsset => ETH)
     */
    function rebalanceSetToEth(uint256 minRate) external onlyOwnerOrManager {
        uint256 redemptionQuantity = tradeAccounting
            .calculateSetToSellForRebalanceSetToEth();
        _redeemRebalancingSet(redemptionQuantity);

        address activeAsset = getAssetCurrentlyActiveInSet();
        uint256 activeAssetBalance = getActiveSetAssetBalance();
        _swapTokenToEther(activeAsset, activeAssetBalance, minRate, 0);
    }

    function _unwindStakedPosition(
        uint256 _totalSusdToBurn,
        address _activeAsset,
        uint256[] memory _minKyberRates,
        uint256[] memory _minCurveReturns,
        uint256 _snxToSell
    ) private {
        if (_totalSusdToBurn > 0) {
            _redeemSet(_totalSusdToBurn);
            _swapTokenToToken(
                _activeAsset,
                getActiveSetAssetBalance(),
                susdAddress,
                _minKyberRates[0],
                _minCurveReturns[0]
            );
            _burnSynths(getSusdBalance());
        }

        _swapTokenToEther(snxAddress, _snxToSell, _minKyberRates[1], 0);
    }

    /*
     * @notice Exit valve to reduce staked position in favor of liquid ETH
     * @notice Unlikely to be called in the normal course of mgmt
     * @params: refer to `rebalanceToHedge` for descriptions, however params here are discretionary
     */
    function unwindStakedPosition(
        uint256 totalSusdToBurn, // 2e18
        uint256[] calldata minKyberRates,
        uint256[] calldata minCurveReturns,
        uint256 snxToSell // 1e16
    ) external onlyOwnerOrManager {
        address activeAsset = getAssetCurrentlyActiveInSet(); // USDC
        _unwindStakedPosition(
            totalSusdToBurn,
            activeAsset,
            minKyberRates,
            minCurveReturns,
            snxToSell
        );
    }

    /*
     * @notice Emergency exit valve to reduce staked position in favor of liquid ETH
     * in the event of operator failure/incapacitation
     * @dev: Params will depend on current C-RATIO, i.e., may not immediately be able
     * to liquidate all debt and SNX
     * @dev: May be callable multiple times as SNX escrow vests
     */
    function liquidationUnwind(
        uint256 totalSusdToBurn,
        uint256[] calldata minKyberRates,
        uint256[] calldata minCurveReturns,
        uint256 snxToSell
    ) external {
        require(
            lastClaimedTimestamp.add(LIQUIDATION_WAIT_PERIOD) < block.timestamp,
            "Liquidation not available"
        );

        address activeAsset = getAssetCurrentlyActiveInSet();
        _unwindStakedPosition(
            totalSusdToBurn,
            activeAsset,
            minKyberRates,
            minCurveReturns,
            snxToSell
        );

        uint256 susdBalRemaining = getSusdBalance();
        _swapTokenToEther(susdAddress, susdBalRemaining, 0, 0);
    }

    /*
     * @notice Unlock escrowed SNX rewards
     * @notice Won't be called until at least a year after deployment
     */
    function vest() public {
        IRewardEscrow rewardEscrow = IRewardEscrow(
            addressResolver.getAddress(rewardEscrowName)
        );
        rewardEscrow.vest();
    }

    /* ========================================================================================= */
    /*                                     Set Protocol                                          */
    /* ========================================================================================= */

    function _issueMaxSet(
        uint256 _susdAmount,
        uint256 _minRate,
        address _activeAsset,
        uint256 _minCurveReturn
    ) private {
        _swapTokenToToken(
            susdAddress,
            _susdAmount,
            _activeAsset,
            _minRate,
            _minCurveReturn
        );

        uint256 issuanceQuantity = tradeAccounting
            .calculateSetIssuanceQuantity();
        rebalancingModule.issueRebalancingSet(
            setAddress,
            issuanceQuantity,
            false
        );
    }

    function _redeemSet(uint256 _totalSusdToBurn) private {
        uint256 redemptionQuantity = tradeAccounting
            .calculateSetRedemptionQuantity(_totalSusdToBurn);
        _redeemRebalancingSet(redemptionQuantity);
    }

    function _redeemRebalancingSet(uint256 _redemptionQuantity) private {
        rebalancingModule.redeemRebalancingSet(
            setAddress,
            _redemptionQuantity,
            false
        );
    }

    /* ========================================================================================= */
    /*                                        Utils                                              */
    /* ========================================================================================= */

    function getAssetCurrentlyActiveInSet() internal view returns (address) {
        return tradeAccounting.getAssetCurrentlyActiveInSet();
    }

    function getActiveSetAssetBalance() internal view returns (uint256) {
        return tradeAccounting.getActiveSetAssetBalance();
    }

    function getSusdBalance() internal view returns (uint256) {
        return tradeAccounting.getSusdBalance();
    }

    function _administerFee(uint256 _value, uint256 _feeDivisor)
        private
        returns (uint256 fee)
    {
        if (_feeDivisor > 0) {
            fee = _value.div(_feeDivisor);
            withdrawableEthFees = withdrawableEthFees.add(fee);
        }
    }

    function setSynthetixAddress() public {
        address synthetixAddress = addressResolver.getAddress(synthetixName);
        synthetix = ISynthetix(synthetixAddress);
    }

    function setManagerAddress(address _manager) public onlyOwner {
        manager = _manager;
    }

    modifier onlyOwnerOrManager {
        require(isOwner() || msg.sender == manager, "Non-admin caller");
        _;
    }

    /*
     * @notice Inverse of fee i.e., a fee divisor of 100 == 1%
     * @notice Three fee types
     * @notice Mint fee never charged on mintWithSnx
     * @dev Mint fee 0 or <= 2%
     * @dev Burn fee 0 or <= 1%
     * @dev Claim fee 0 <= 4%
     */
    function setFeeDivisors(
        uint256 mintFeeDivisor,
        uint256 burnFeeDivisor,
        uint256 claimFeeDivisor
    ) public onlyOwner {
        require(mintFeeDivisor == 0 || mintFeeDivisor >= 50, "Invalid fee");
        require(burnFeeDivisor == 0 || burnFeeDivisor >= 100, "Invalid fee");
        require(claimFeeDivisor >= 25, "Invalid fee");
        feeDivisors.mintFee = mintFeeDivisor;
        feeDivisors.burnFee = burnFeeDivisor;
        feeDivisors.claimFee = claimFeeDivisor;
    }

    function withdrawFees() public onlyOwner {
        require(
            withdrawableEthFees > 0 || withdrawableSusdFees > 0,
            "No fees to withdraw"
        );

        uint256 ethFeesToWithdraw = withdrawableEthFees;
        uint256 susdFeesToWithdraw = withdrawableSusdFees;
        withdrawableEthFees = 0;
        withdrawableSusdFees = 0;

        (bool success, ) = msg.sender.call.value(ethFeesToWithdraw)("");
        require(success, "Transfer failed");

        IERC20(susdAddress).transfer(msg.sender, susdFeesToWithdraw);

        emit WithdrawFees(ethFeesToWithdraw, susdFeesToWithdraw);
    }

    // approve [setComponentA, setComponentB] on deployment
    function approveSetTransferProxy(address tokenAddress) public onlyOwner {
        IERC20(tokenAddress).approve(setTransferProxy, MAX_UINT);
    }

    function() external payable {
        require(msg.sender == address(tradeAccounting), "Incorrect sender");
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address payable","name":"_tradeAccountingAddress","type":"address"},{"internalType":"address","name":"_setAddress","type":"address"},{"internalType":"address","name":"_snxAddress","type":"address"},{"internalType":"address","name":"_susdAddress","type":"address"},{"internalType":"address","name":"_setTransferProxy","type":"address"},{"internalType":"address","name":"_addressResolver","type":"address"},{"internalType":"address","name":"_rebalancingModule","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"burnAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"valueToSend","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"valueSent","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"mintAmount","type":"uint256"},{"indexed":false,"internalType":"bool","name":"mintWithEth","type":"bool"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"snxSold","type":"uint256"}],"name":"RebalanceToHedge","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"setSold","type":"uint256"}],"name":"RebalanceToSnx","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"ethAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"susdAmount","type":"uint256"}],"name":"WithdrawFees","type":"event"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"approveSetTransferProxy","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"tokensToRedeem","type":"uint256"}],"name":"burn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"susdToBurnToFixCollat","type":"uint256"},{"internalType":"uint256[]","name":"minKyberRates","type":"uint256[]"},{"internalType":"uint256[]","name":"minCurveReturns","type":"uint256[]"},{"internalType":"bool","name":"feesClaimable","type":"bool"}],"name":"claim","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"feeDivisors","outputs":[{"internalType":"uint256","name":"mintFee","type":"uint256"},{"internalType":"uint256","name":"burnFee","type":"uint256"},{"internalType":"uint256","name":"claimFee","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"mintAmount","type":"uint256"},{"internalType":"uint256[]","name":"minKyberRates","type":"uint256[]"},{"internalType":"uint256[]","name":"minCurveReturns","type":"uint256[]"},{"internalType":"uint256","name":"ethAllocation","type":"uint256"}],"name":"hedge","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lastClaimedTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"totalSusdToBurn","type":"uint256"},{"internalType":"uint256[]","name":"minKyberRates","type":"uint256[]"},{"internalType":"uint256[]","name":"minCurveReturns","type":"uint256[]"},{"internalType":"uint256","name":"snxToSell","type":"uint256"}],"name":"liquidationUnwind","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"minRate","type":"uint256"}],"name":"mint","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"snxAmount","type":"uint256"}],"name":"mintWithSnx","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"pause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"pauser","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"minRate","type":"uint256"}],"name":"rebalanceSetToEth","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"totalSusdToBurn","type":"uint256"},{"internalType":"uint256[]","name":"minKyberRates","type":"uint256[]"},{"internalType":"uint256[]","name":"minCurveReturns","type":"uint256[]"},{"internalType":"uint256","name":"snxToSell","type":"uint256"}],"name":"rebalanceTowardsHedge","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"minRate","type":"uint256"}],"name":"rebalanceTowardsSnx","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"mintFeeDivisor","type":"uint256"},{"internalType":"uint256","name":"burnFeeDivisor","type":"uint256"},{"internalType":"uint256","name":"claimFeeDivisor","type":"uint256"}],"name":"setFeeDivisors","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_manager","type":"address"}],"name":"setManagerAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"setSynthetixAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"unpause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"totalSusdToBurn","type":"uint256"},{"internalType":"uint256[]","name":"minKyberRates","type":"uint256[]"},{"internalType":"uint256[]","name":"minCurveReturns","type":"uint256[]"},{"internalType":"uint256","name":"snxToSell","type":"uint256"}],"name":"unwindStakedPosition","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"vest","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"withdrawFees","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"withdrawableEthFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"withdrawableSusdFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b5060405162005fd638038062005fd6833981810160405260e08110156200003757600080fd5b81019080805190602001909291908051906020019092919080519060200190929190805190602001909291908051906020019092919080519060200190929190805190602001909291905050506040518060400160405280600481526020017f78534e58000000000000000000000000000000000000000000000000000000008152506040518060400160405280600581526020017f78534e5861000000000000000000000000000000000000000000000000000000815250601282600390805190602001906200010a9291906200042b565b508160049080519060200190620001239291906200042b565b5080600560006101000a81548160ff021916908360ff1602179055505050506000600560016101000a81548160ff02191690831515021790555033600560026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000620001b06200042360201b60201c565b905080600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35086600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555085600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050505050620004da565b600033905090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200046e57805160ff19168380011785556200049f565b828001600101855582156200049f579182015b828111156200049e57825182559160200191906001019062000481565b5b509050620004ae9190620004b2565b5090565b620004d791905b80821115620004d3576000816000905550600101620004b9565b5090565b90565b615aec80620004ea6000396000f3fe6080604052600436106102305760003560e01c806370a082311161012e578063a0712d68116100ab578063dd62ed3e1161006f578063dd62ed3e14610ec4578063e7654b3c14610f49578063f007033314610f98578063f2fde38b14610fd3578063f6b77ad61461102457610230565b8063a0712d6814610c96578063a457c2d714610cc4578063a9059cbb14610d37578063b71d5eb214610daa578063d3a3716514610e9957610230565b80638da5cb5b116100f25780638da5cb5b14610afe5780638f32d59b14610b5557806395d89b4114610b845780639f6e9c2814610c145780639fd0506d14610c3f57610230565b806370a082311461093f578063715018a6146109a45780638456cb59146109bb5780638a0d41c1146109d25780638aa09d6914610a0d57610230565b80633efd19f3116101bc578063476343ee11610180578063476343ee146107805780634b5abeff146107975780634c72b3f4146108865780635c975abb146108d7578063629c577e1461090657610230565b80633efd19f3146105d75780633f4ba83a146106c657806341431908146106dd57806342966c681461072e578063458efde31461076957610230565b8063204bb13611610203578063204bb1361461044e57806323b872dd14610489578063313ce5671461051c578063395093511461054d5780633c662fc0146105c057610230565b806306fdde03146102f5578063095ea7b31461038557806318160ddd146103f85780631838d85c14610423575b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146102f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f496e636f72726563742073656e6465720000000000000000000000000000000081525060200191505060405180910390fd5b005b34801561030157600080fd5b5061030a611113565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561034a57808201518184015260208101905061032f565b50505050905090810190601f1680156103775780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561039157600080fd5b506103de600480360360408110156103a857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506111b5565b604051808215151515815260200191505060405180910390f35b34801561040457600080fd5b5061040d6111d3565b6040518082815260200191505060405180910390f35b34801561042f57600080fd5b506104386111dd565b6040518082815260200191505060405180910390f35b34801561045a57600080fd5b506104876004803603602081101561047157600080fd5b81019080803590602001909291905050506111e3565b005b34801561049557600080fd5b50610502600480360360608110156104ac57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611390565b604051808215151515815260200191505060405180910390f35b34801561052857600080fd5b50610531611469565b604051808260ff1660ff16815260200191505060405180910390f35b34801561055957600080fd5b506105a66004803603604081101561057057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611480565b604051808215151515815260200191505060405180910390f35b3480156105cc57600080fd5b506105d5611533565b005b3480156105e357600080fd5b506106c4600480360360808110156105fa57600080fd5b81019080803590602001909291908035906020019064010000000081111561062157600080fd5b82018360208201111561063357600080fd5b8035906020019184602083028401116401000000008311171561065557600080fd5b90919293919293908035906020019064010000000081111561067657600080fd5b82018360208201111561068857600080fd5b803590602001918460208302840111640100000000831117156106aa57600080fd5b909192939192939080359060200190929190505050611649565b005b3480156106d257600080fd5b506106db6117b5565b005b3480156106e957600080fd5b5061072c6004803603602081101561070057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611943565b005b34801561073a57600080fd5b506107676004803603602081101561075157600080fd5b8101908080359060200190929190505050611a01565b005b34801561077557600080fd5b5061077e611da1565b005b34801561078c57600080fd5b50610795611ed6565b005b3480156107a357600080fd5b50610884600480360360808110156107ba57600080fd5b8101908080359060200190929190803590602001906401000000008111156107e157600080fd5b8201836020820111156107f357600080fd5b8035906020019184602083028401116401000000008311171561081557600080fd5b90919293919293908035906020019064010000000081111561083657600080fd5b82018360208201111561084857600080fd5b8035906020019184602083028401116401000000008311171561086a57600080fd5b9091929391929390803590602001909291905050506121f8565b005b34801561089257600080fd5b506108d5600480360360208110156108a957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506124c2565b005b3480156108e357600080fd5b506108ec612644565b604051808215151515815260200191505060405180910390f35b34801561091257600080fd5b5061091b61265b565b60405180848152602001838152602001828152602001935050505060405180910390f35b34801561094b57600080fd5b5061098e6004803603602081101561096257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612673565b6040518082815260200191505060405180910390f35b3480156109b057600080fd5b506109b96126bb565b005b3480156109c757600080fd5b506109d06127f6565b005b3480156109de57600080fd5b50610a0b600480360360208110156109f557600080fd5b8101908080359060200190929190505050612985565b005b348015610a1957600080fd5b50610afc60048036036080811015610a3057600080fd5b810190808035906020019092919080359060200190640100000000811115610a5757600080fd5b820183602082011115610a6957600080fd5b80359060200191846020830284011164010000000083111715610a8b57600080fd5b909192939192939080359060200190640100000000811115610aac57600080fd5b820183602082011115610abe57600080fd5b80359060200191846020830284011164010000000083111715610ae057600080fd5b9091929391929390803515159060200190929190505050612ca3565b005b348015610b0a57600080fd5b50610b13612feb565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610b6157600080fd5b50610b6a613015565b604051808215151515815260200191505060405180910390f35b348015610b9057600080fd5b50610b99613074565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610bd9578082015181840152602081019050610bbe565b50505050905090810190601f168015610c065780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610c2057600080fd5b50610c29613116565b6040518082815260200191505060405180910390f35b348015610c4b57600080fd5b50610c5461311c565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610cc260048036036020811015610cac57600080fd5b8101908080359060200190929190505050613142565b005b348015610cd057600080fd5b50610d1d60048036036040811015610ce757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050613611565b604051808215151515815260200191505060405180910390f35b348015610d4357600080fd5b50610d9060048036036040811015610d5a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506136de565b604051808215151515815260200191505060405180910390f35b348015610db657600080fd5b50610e9760048036036080811015610dcd57600080fd5b810190808035906020019092919080359060200190640100000000811115610df457600080fd5b820183602082011115610e0657600080fd5b80359060200191846020830284011164010000000083111715610e2857600080fd5b909192939192939080359060200190640100000000811115610e4957600080fd5b820183602082011115610e5b57600080fd5b80359060200191846020830284011164010000000083111715610e7d57600080fd5b9091929391929390803590602001909291905050506136fc565b005b348015610ea557600080fd5b50610eae613872565b6040518082815260200191505060405180910390f35b348015610ed057600080fd5b50610f3360048036036040811015610ee757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613878565b6040518082815260200191505060405180910390f35b348015610f5557600080fd5b50610f9660048036036060811015610f6c57600080fd5b810190808035906020019092919080359060200190929190803590602001909291905050506138ff565b005b348015610fa457600080fd5b50610fd160048036036020811015610fbb57600080fd5b8101908080359060200190929190505050613b17565b005b348015610fdf57600080fd5b5061102260048036036020811015610ff657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613f13565b005b34801561103057600080fd5b506111116004803603608081101561104757600080fd5b81019080803590602001909291908035906020019064010000000081111561106e57600080fd5b82018360208201111561108057600080fd5b803590602001918460208302840111640100000000831117156110a257600080fd5b9091929391929390803590602001906401000000008111156110c357600080fd5b8201836020820111156110d557600080fd5b803590602001918460208302840111640100000000831117156110f757600080fd5b909192939192939080359060200190929190505050613f99565b005b606060038054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156111ab5780601f10611180576101008083540402835291602001916111ab565b820191906000526020600020905b81548152906001019060200180831161118e57829003601f168201915b5050505050905090565b60006111c96111c2614181565b8484614189565b6001905092915050565b6000600254905090565b60105481565b6111eb613015565b806112435750600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6112b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f4e6f6e2d61646d696e2063616c6c65720000000000000000000000000000000081525060200191505060405180910390fd5b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633b12321b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561131f57600080fd5b505afa158015611333573d6000803e3d6000fd5b505050506040513d602081101561134957600080fd5b8101908080519060200190929190505050905061136581614380565b600061136f614473565b9050600061137b61451d565b905061138a82828660006145c7565b50505050565b600061139d84848461478d565b61145e846113a9614181565b611459856040518060600160405280602881526020016159d860289139600160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600061140f614181565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054614a439092919063ffffffff16565b614189565b600190509392505050565b6000600560009054906101000a900460ff16905090565b600061152961148d614181565b84611524856001600061149e614181565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054614b0390919063ffffffff16565b614189565b6001905092915050565b6000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166321f8a7217f53796e74686574697800000000000000000000000000000000000000000000006040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b1580156115c857600080fd5b505afa1580156115dc573d6000803e3d6000fd5b505050506040513d60208110156115f257600080fd5b8101908080519060200190929190505050905080600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b42611662621baf80601254614b0390919063ffffffff16565b106116d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f4c69717569646174696f6e206e6f7420617661696c61626c650000000000000081525060200191505060405180910390fd5b60006116df614473565b90506117708782888880806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050878780806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505086614b8b565b600061177a614c56565b90506117ab600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16826000806145c7565b5050505050505050565b600560029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611878576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f446f6e277420686176652072696768747300000000000000000000000000000081525060200191505060405180910390fd5b600560019054906101000a900460ff166118fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f5061757361626c653a206e6f742070617573656400000000000000000000000081525060200191505060405180910390fd5b6000600560016101000a81548160ff0219169083151502179055507fa45f47fdea8a1efdd9029a5691c7f759c32b7c698632b563573e155625d1693360405160405180910390a1565b61194b613015565b6119bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008111611a77576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f4d757374206275726e20746f6b656e730000000000000000000000000000000081525060200191505060405180910390fd5b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318d814ba611abf6111d3565b846040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b158015611afb57600080fd5b505afa158015611b0f573d6000803e3d6000fd5b505050506040513d6020811015611b2557600080fd5b8101908080519060200190929190505050905080600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370ed0ada6040518163ffffffff1660e01b815260040160206040518083038186803b158015611ba157600080fd5b505afa158015611bb5573d6000803e3d6000fd5b505050506040513d6020811015611bcb57600080fd5b810190808051906020019092919050505011611c32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526029815260200180615a6a6029913960400191505060405180910390fd5b6000611c55611c4683601360010154614d00565b83614d4190919063ffffffff16565b9050611c613384614d8b565b3373ffffffffffffffffffffffffffffffffffffffff167f743033787f4738ff4d6a7225ce2bd0977ee5f86b91a902a58f5e4d0b297b464442858460405180848152602001838152602001828152602001935050505060405180910390a260003373ffffffffffffffffffffffffffffffffffffffff168260405180600001905060006040518083038185875af1925050503d8060008114611d1f576040519150601f19603f3d011682016040523d82523d6000602084013e611d24565b606091505b5050905080611d9b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f4275726e207472616e73666572206661696c656400000000000000000000000081525060200191505060405180910390fd5b50505050565b6000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166321f8a7217f526577617264457363726f7700000000000000000000000000000000000000006040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015611e3657600080fd5b505afa158015611e4a573d6000803e3d6000fd5b505050506040513d6020811015611e6057600080fd5b810190808051906020019092919050505090508073ffffffffffffffffffffffffffffffffffffffff1663458efde36040518163ffffffff1660e01b8152600401600060405180830381600087803b158015611ebb57600080fd5b505af1158015611ecf573d6000803e3d6000fd5b5050505050565b611ede613015565b611f50576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60006010541180611f6357506000601154115b611fd5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f4e6f206665657320746f2077697468647261770000000000000000000000000081525060200191505060405180910390fd5b60006010549050600060115490506000601081905550600060118190555060003373ffffffffffffffffffffffffffffffffffffffff168360405180600001905060006040518083038185875af1925050503d8060008114612053576040519150601f19603f3d011682016040523d82523d6000602084013e612058565b606091505b50509050806120cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f5472616e73666572206661696c6564000000000000000000000000000000000081525060200191505060405180910390fd5b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561217857600080fd5b505af115801561218c573d6000803e3d6000fd5b505050506040513d60208110156121a257600080fd5b8101908080519060200190929190505050507f8bed4dd97479421d7ae42fa96d6157fd86e027f7099ceec95d865deb574e0cb38383604051808381526020018281526020019250505060405180910390a1505050565b612200613015565b806122585750600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6122ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f4e6f6e2d61646d696e2063616c6c65720000000000000000000000000000000081525060200191505060405180910390fd5b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638f964e456040518163ffffffff1660e01b815260040160206040518083038186803b15801561233257600080fd5b505afa158015612346573d6000803e3d6000fd5b505050506040513d602081101561235c57600080fd5b81019080805190602001909291905050506123df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f526562616c616e636520756e6e6563657373617279000000000000000000000081525060200191505060405180910390fd5b60006123e9614473565b905061247a8782888880806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050878780806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505086614b8b565b7f07cca6f1eb24d888e8978e5217dd16f5fc2eec25cedf426baaf577c08e5442714283604051808381526020018281526020019250505060405180910390a150505050505050565b6124ca613015565b61253c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561260557600080fd5b505af1158015612619573d6000803e3d6000fd5b505050506040513d602081101561262f57600080fd5b81019080805190602001909291905050505050565b6000600560019054906101000a900460ff16905090565b60138060000154908060010154908060020154905083565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6126c3613015565b612735576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600560029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146128b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f446f6e277420686176652072696768747300000000000000000000000000000081525060200191505060405180910390fd5b600560019054906101000a900460ff161561293c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f5061757361626c653a207061757365640000000000000000000000000000000081525060200191505060405180910390fd5b6001600560016101000a81548160ff0219169083151502179055507f9e87fac88ff661f02d44f95383c817fece4bce600a3dab7a54406878b965e75260405160405180910390a1565b61298d613015565b806129e55750600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b612a57576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f4e6f6e2d61646d696e2063616c6c65720000000000000000000000000000000081525060200191505060405180910390fd5b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bbd351146040518163ffffffff1660e01b815260040160206040518083038186803b158015612abf57600080fd5b505afa158015612ad3573d6000803e3d6000fd5b505050506040513d6020811015612ae957600080fd5b8101908080519060200190929190505050612b6c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f526562616c616e6365206e6f74206e656365737361727900000000000000000081525060200191505060405180910390fd5b600080600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663cd6ba3c66040518163ffffffff1660e01b8152600401604080518083038186803b158015612bd657600080fd5b505afa158015612bea573d6000803e3d6000fd5b505050506040513d6040811015612c0057600080fd5b81019080805190602001909291908051906020019092919050505091509150612c2882614380565b612c5f81612c3461451d565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16866000614f43565b7f026852d291e1e36fc6cfc491c923705172b37ea45fae5a5056bdd93a8bd89f364283604051808381526020018281526020019250505060405180910390a1505050565b612cab613015565b80612d035750600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b612d75576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f4e6f6e2d61646d696e2063616c6c65720000000000000000000000000000000081525060200191505060405180910390fd5b4260128190555080612dfe57612d8a86615134565b612ded612d95614473565b612d9d61451d565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1688886000818110612dcd57fe5b9050602002013587876000818110612de157fe5b90506020020135614f43565b612dfd612df8614c56565b6151f3565b5b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166321f8a7217f466565506f6f6c000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015612e9157600080fd5b505afa158015612ea5573d6000803e3d6000fd5b505050506040513d6020811015612ebb57600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff1663d294f0936040518163ffffffff1660e01b8152600401602060405180830381600087803b158015612f1357600080fd5b505af1158015612f27573d6000803e3d6000fd5b505050506040513d6020811015612f3d57600080fd5b810190808051906020019092919050505050612f82612f71601360020154612f63614c56565b61528390919063ffffffff16565b601154614b0390919063ffffffff16565b601181905550612fe3600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612fb6614c56565b87876001818110612fc357fe5b9050602002013586866001818110612fd757fe5b905060200201356145c7565b505050505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16613058614181565b73ffffffffffffffffffffffffffffffffffffffff1614905090565b606060048054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561310c5780601f106130e15761010080835404028352916020019161310c565b820191906000526020600020905b8154815290600101906020018083116130ef57829003601f168201915b5050505050905090565b60115481565b600560029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600560019054906101000a900460ff16156131c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f5061757361626c653a207061757365640000000000000000000000000000000081525060200191505060405180910390fd5b6000341161323b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600d8152602001807f4d7573742073656e64204554480000000000000000000000000000000000000081525060200191505060405180910390fd5b600061324c34601360000154614d00565b905060006132638234614d4190919063ffffffff16565b90506000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166389afb5b76040518163ffffffff1660e01b815260040160206040518083038186803b1580156132cf57600080fd5b505afa1580156132e3573d6000803e3d6000fd5b505050506040513d60208110156132f957600080fd5b8101908080519060200190929190505050905060006133166111d3565b9050600080600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b1253d7a86856040518363ffffffff1660e01b81526004018083815260200182815260200192505050604080518083038186803b15801561339557600080fd5b505afa1580156133a9573d6000803e3d6000fd5b505050506040513d60408110156133bf57600080fd5b81019080805190602001909291908051906020019092919050505091509150816134c857600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637a2a045686600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168a6040518463ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001925050506000604051808303818588803b1580156134ae57600080fd5b505af11580156134c2573d6000803e3d6000fd5b50505050505b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663748416d0868885886040518563ffffffff1660e01b81526004018085815260200184815260200183815260200182815260200194505050505060206040518083038186803b15801561355557600080fd5b505afa158015613569573d6000803e3d6000fd5b505050506040513d602081101561357f57600080fd5b810190808051906020019092919050505090503373ffffffffffffffffffffffffffffffffffffffff167f5b5de75983fe8891c65234472ee1805018163815d4c146f10bf176b736093c094234846001604051808581526020018481526020018381526020018215151515815260200194505050505060405180910390a261360733826152cd565b5050505050505050565b60006136d461361e614181565b846136cf85604051806060016040528060258152602001615a936025913960016000613648614181565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054614a439092919063ffffffff16565b614189565b6001905092915050565b60006136f26136eb614181565b848461478d565b6001905092915050565b613704613015565b8061375c5750600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6137ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f4e6f6e2d61646d696e2063616c6c65720000000000000000000000000000000081525060200191505060405180910390fd5b60006137d8614473565b90506138698782888880806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050878780806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505086614b8b565b50505050505050565b60125481565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b613907613015565b613979576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6000831480613989575060328310155b6139fb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600b8152602001807f496e76616c69642066656500000000000000000000000000000000000000000081525060200191505060405180910390fd5b6000821480613a0b575060648210155b613a7d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600b8152602001807f496e76616c69642066656500000000000000000000000000000000000000000081525060200191505060405180910390fd5b6019811015613af4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600b8152602001807f496e76616c69642066656500000000000000000000000000000000000000000081525060200191505060405180910390fd5b826013600001819055508160136001018190555080601360020181905550505050565b600560019054906101000a900460ff1615613b9a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f5061757361626c653a207061757365640000000000000000000000000000000081525060200191505060405180910390fd5b60008111613c10576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600d8152602001807f4d7573742073656e6420534e580000000000000000000000000000000000000081525060200191505060405180910390fd5b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166389afb5b76040518163ffffffff1660e01b815260040160206040518083038186803b158015613c7a57600080fd5b505afa158015613c8e573d6000803e3d6000fd5b505050506040513d6020811015613ca457600080fd5b81019080805190602001909291905050509050600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b158015613d9457600080fd5b505af1158015613da8573d6000803e3d6000fd5b505050506040513d6020811015613dbe57600080fd5b8101908080519060200190929190505050506000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632bdbe2198385613e1a6111d3565b6040518463ffffffff1660e01b815260040180848152602001838152602001828152602001935050505060206040518083038186803b158015613e5c57600080fd5b505afa158015613e70573d6000803e3d6000fd5b505050506040513d6020811015613e8657600080fd5b810190808051906020019092919050505090503373ffffffffffffffffffffffffffffffffffffffff167f5b5de75983fe8891c65234472ee1805018163815d4c146f10bf176b736093c094285846000604051808581526020018481526020018381526020018215151515815260200194505050505060405180910390a2613f0e33826152cd565b505050565b613f1b613015565b613f8d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b613f9681615488565b50565b613fa1613015565b80613ff95750600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b61406b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f4e6f6e2d61646d696e2063616c6c65720000000000000000000000000000000081525060200191505060405180910390fd5b600560019054906101000a900460ff16156140ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f5061757361626c653a207061757365640000000000000000000000000000000081525060200191505060405180910390fd5b6140f7866155ce565b614128818686600081811061410857fe5b905060200201358585600081811061411c57fe5b9050602002013561565e565b6000614132614473565b905061417861414a8389614d4190919063ffffffff16565b8787600181811061415757fe5b90506020020135838787600181811061416c57fe5b90506020020135615691565b50505050505050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561420f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180615a466024913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415614295576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806159906022913960400191505060405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040518082815260200191505060405180910390a3505050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663da89a7b1600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168360006040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001821515151581526020019350505050600060405180830381600087803b15801561445857600080fd5b505af115801561446c573d6000803e3d6000fd5b5050505050565b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b5fe7dc16040518163ffffffff1660e01b815260040160206040518083038186803b1580156144dd57600080fd5b505afa1580156144f1573d6000803e3d6000fd5b505050506040513d602081101561450757600080fd5b8101908080519060200190929190505050905090565b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dc71b8146040518163ffffffff1660e01b815260040160206040518083038186803b15801561458757600080fd5b505afa15801561459b573d6000803e3d6000fd5b505050506040513d60208110156145b157600080fd5b8101908080519060200190929190505050905090565b6000831115614787578373ffffffffffffffffffffffffffffffffffffffff1663a9059cbb600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16856040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561467957600080fd5b505af115801561468d573d6000803e3d6000fd5b505050506040513d60208110156146a357600080fd5b810190808051906020019092919050505050600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634d647179858585856040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001848152602001838152602001828152602001945050505050600060405180830381600087803b15801561476e57600080fd5b505af1158015614782573d6000803e3d6000fd5b505050505b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415614813576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180615a216025913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415614899576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806159256023913960400191505060405180910390fd5b614904816040518060600160405280602681526020016159b2602691396000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054614a439092919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550614997816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054614b0390919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3505050565b6000838311158290614af0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015614ab5578082015181840152602081019050614a9a565b50505050905090810190601f168015614ae25780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b600080828401905083811015614b81576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6000851115614c0c57614b9d85615134565b614bfb84614ba961451d565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1686600081518110614bd957fe5b602002602001015186600081518110614bee57fe5b6020026020010151614f43565b614c0b614c06614c56565b6151f3565b5b614c4f600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168285600181518110614c4057fe5b602002602001015160006145c7565b5050505050565b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ff15b2c86040518163ffffffff1660e01b815260040160206040518083038186803b158015614cc057600080fd5b505afa158015614cd4573d6000803e3d6000fd5b505050506040513d6020811015614cea57600080fd5b8101908080519060200190929190505050905090565b600080821115614d3b57614d1d828461528390919063ffffffff16565b9050614d3481601054614b0390919063ffffffff16565b6010819055505b92915050565b6000614d8383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250614a43565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415614e11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180615a006021913960400191505060405180910390fd5b614e7c81604051806060016040528060228152602001615948602291396000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054614a439092919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550614ed381600254614d4190919063ffffffff16565b600281905550600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b8473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16866040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015614fec57600080fd5b505af1158015615000573d6000803e3d6000fd5b505050506040513d602081101561501657600080fd5b810190808051906020019092919050505050600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630952153086868686866040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018581526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200182815260200195505050505050600060405180830381600087803b15801561511557600080fd5b505af1158015615129573d6000803e3d6000fd5b505050505050505050565b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166387af1b6e836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b1580156151a957600080fd5b505afa1580156151bd573d6000803e3d6000fd5b505050506040513d60208110156151d357600080fd5b810190808051906020019092919050505090506151ef81614380565b5050565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663295da87d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561526857600080fd5b505af115801561527c573d6000803e3d6000fd5b5050505050565b60006152c583836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061585e565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415615370576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f45524332303a206d696e7420746f20746865207a65726f20616464726573730081525060200191505060405180910390fd5b61538581600254614b0390919063ffffffff16565b6002819055506153dc816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054614b0390919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561550e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602681526020018061596a6026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638a290014826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561564357600080fd5b505af1158015615657573d6000803e3d6000fd5b5050505050565b61568c600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168484846145c7565b505050565b6156c0600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1685848685614f43565b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632a54770b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561572a57600080fd5b505afa15801561573e573d6000803e3d6000fd5b505050506040513d602081101561575457600080fd5b81019080805190602001909291905050509050600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631cc0bd61600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168360006040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001821515151581526020019350505050600060405180830381600087803b15801561583f57600080fd5b505af1158015615853573d6000803e3d6000fd5b505050505050505050565b6000808311829061590a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156158cf5780820151818401526020810190506158b4565b50505050905090810190601f1680156158fc5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161591657fe5b04905080915050939250505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737352656465656d20616d6f756e74206578636565647320617661696c61626c65206c697175696469747945524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa265627a7a72315820883a0c72f783780914cb9e2cef94076d990f4ad77a5f530815276d7a10ad990f64736f6c634300050f00320000000000000000000000009a84333f3521207589b180e343a700ba48f5568c00000000000000000000000093e01899c10532d76c0e864537a1d26433dbbddb000000000000000000000000c011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f00000000000000000000000057ab1ec28d129707052df4df418d58a2d46d5f51000000000000000000000000882d80d3a191859d64477eb78cca46599307ec1c0000000000000000000000004e3b31eb0e5cb73641ee1e65e7dcefe520ba3ef2000000000000000000000000ceda8318522d348f1d1aca48b24629b8fbf09020

Deployed Bytecode

0x6080604052600436106102305760003560e01c806370a082311161012e578063a0712d68116100ab578063dd62ed3e1161006f578063dd62ed3e14610ec4578063e7654b3c14610f49578063f007033314610f98578063f2fde38b14610fd3578063f6b77ad61461102457610230565b8063a0712d6814610c96578063a457c2d714610cc4578063a9059cbb14610d37578063b71d5eb214610daa578063d3a3716514610e9957610230565b80638da5cb5b116100f25780638da5cb5b14610afe5780638f32d59b14610b5557806395d89b4114610b845780639f6e9c2814610c145780639fd0506d14610c3f57610230565b806370a082311461093f578063715018a6146109a45780638456cb59146109bb5780638a0d41c1146109d25780638aa09d6914610a0d57610230565b80633efd19f3116101bc578063476343ee11610180578063476343ee146107805780634b5abeff146107975780634c72b3f4146108865780635c975abb146108d7578063629c577e1461090657610230565b80633efd19f3146105d75780633f4ba83a146106c657806341431908146106dd57806342966c681461072e578063458efde31461076957610230565b8063204bb13611610203578063204bb1361461044e57806323b872dd14610489578063313ce5671461051c578063395093511461054d5780633c662fc0146105c057610230565b806306fdde03146102f5578063095ea7b31461038557806318160ddd146103f85780631838d85c14610423575b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146102f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f496e636f72726563742073656e6465720000000000000000000000000000000081525060200191505060405180910390fd5b005b34801561030157600080fd5b5061030a611113565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561034a57808201518184015260208101905061032f565b50505050905090810190601f1680156103775780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561039157600080fd5b506103de600480360360408110156103a857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506111b5565b604051808215151515815260200191505060405180910390f35b34801561040457600080fd5b5061040d6111d3565b6040518082815260200191505060405180910390f35b34801561042f57600080fd5b506104386111dd565b6040518082815260200191505060405180910390f35b34801561045a57600080fd5b506104876004803603602081101561047157600080fd5b81019080803590602001909291905050506111e3565b005b34801561049557600080fd5b50610502600480360360608110156104ac57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611390565b604051808215151515815260200191505060405180910390f35b34801561052857600080fd5b50610531611469565b604051808260ff1660ff16815260200191505060405180910390f35b34801561055957600080fd5b506105a66004803603604081101561057057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611480565b604051808215151515815260200191505060405180910390f35b3480156105cc57600080fd5b506105d5611533565b005b3480156105e357600080fd5b506106c4600480360360808110156105fa57600080fd5b81019080803590602001909291908035906020019064010000000081111561062157600080fd5b82018360208201111561063357600080fd5b8035906020019184602083028401116401000000008311171561065557600080fd5b90919293919293908035906020019064010000000081111561067657600080fd5b82018360208201111561068857600080fd5b803590602001918460208302840111640100000000831117156106aa57600080fd5b909192939192939080359060200190929190505050611649565b005b3480156106d257600080fd5b506106db6117b5565b005b3480156106e957600080fd5b5061072c6004803603602081101561070057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611943565b005b34801561073a57600080fd5b506107676004803603602081101561075157600080fd5b8101908080359060200190929190505050611a01565b005b34801561077557600080fd5b5061077e611da1565b005b34801561078c57600080fd5b50610795611ed6565b005b3480156107a357600080fd5b50610884600480360360808110156107ba57600080fd5b8101908080359060200190929190803590602001906401000000008111156107e157600080fd5b8201836020820111156107f357600080fd5b8035906020019184602083028401116401000000008311171561081557600080fd5b90919293919293908035906020019064010000000081111561083657600080fd5b82018360208201111561084857600080fd5b8035906020019184602083028401116401000000008311171561086a57600080fd5b9091929391929390803590602001909291905050506121f8565b005b34801561089257600080fd5b506108d5600480360360208110156108a957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506124c2565b005b3480156108e357600080fd5b506108ec612644565b604051808215151515815260200191505060405180910390f35b34801561091257600080fd5b5061091b61265b565b60405180848152602001838152602001828152602001935050505060405180910390f35b34801561094b57600080fd5b5061098e6004803603602081101561096257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612673565b6040518082815260200191505060405180910390f35b3480156109b057600080fd5b506109b96126bb565b005b3480156109c757600080fd5b506109d06127f6565b005b3480156109de57600080fd5b50610a0b600480360360208110156109f557600080fd5b8101908080359060200190929190505050612985565b005b348015610a1957600080fd5b50610afc60048036036080811015610a3057600080fd5b810190808035906020019092919080359060200190640100000000811115610a5757600080fd5b820183602082011115610a6957600080fd5b80359060200191846020830284011164010000000083111715610a8b57600080fd5b909192939192939080359060200190640100000000811115610aac57600080fd5b820183602082011115610abe57600080fd5b80359060200191846020830284011164010000000083111715610ae057600080fd5b9091929391929390803515159060200190929190505050612ca3565b005b348015610b0a57600080fd5b50610b13612feb565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610b6157600080fd5b50610b6a613015565b604051808215151515815260200191505060405180910390f35b348015610b9057600080fd5b50610b99613074565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610bd9578082015181840152602081019050610bbe565b50505050905090810190601f168015610c065780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610c2057600080fd5b50610c29613116565b6040518082815260200191505060405180910390f35b348015610c4b57600080fd5b50610c5461311c565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610cc260048036036020811015610cac57600080fd5b8101908080359060200190929190505050613142565b005b348015610cd057600080fd5b50610d1d60048036036040811015610ce757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050613611565b604051808215151515815260200191505060405180910390f35b348015610d4357600080fd5b50610d9060048036036040811015610d5a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506136de565b604051808215151515815260200191505060405180910390f35b348015610db657600080fd5b50610e9760048036036080811015610dcd57600080fd5b810190808035906020019092919080359060200190640100000000811115610df457600080fd5b820183602082011115610e0657600080fd5b80359060200191846020830284011164010000000083111715610e2857600080fd5b909192939192939080359060200190640100000000811115610e4957600080fd5b820183602082011115610e5b57600080fd5b80359060200191846020830284011164010000000083111715610e7d57600080fd5b9091929391929390803590602001909291905050506136fc565b005b348015610ea557600080fd5b50610eae613872565b6040518082815260200191505060405180910390f35b348015610ed057600080fd5b50610f3360048036036040811015610ee757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613878565b6040518082815260200191505060405180910390f35b348015610f5557600080fd5b50610f9660048036036060811015610f6c57600080fd5b810190808035906020019092919080359060200190929190803590602001909291905050506138ff565b005b348015610fa457600080fd5b50610fd160048036036020811015610fbb57600080fd5b8101908080359060200190929190505050613b17565b005b348015610fdf57600080fd5b5061102260048036036020811015610ff657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613f13565b005b34801561103057600080fd5b506111116004803603608081101561104757600080fd5b81019080803590602001909291908035906020019064010000000081111561106e57600080fd5b82018360208201111561108057600080fd5b803590602001918460208302840111640100000000831117156110a257600080fd5b9091929391929390803590602001906401000000008111156110c357600080fd5b8201836020820111156110d557600080fd5b803590602001918460208302840111640100000000831117156110f757600080fd5b909192939192939080359060200190929190505050613f99565b005b606060038054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156111ab5780601f10611180576101008083540402835291602001916111ab565b820191906000526020600020905b81548152906001019060200180831161118e57829003601f168201915b5050505050905090565b60006111c96111c2614181565b8484614189565b6001905092915050565b6000600254905090565b60105481565b6111eb613015565b806112435750600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6112b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f4e6f6e2d61646d696e2063616c6c65720000000000000000000000000000000081525060200191505060405180910390fd5b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633b12321b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561131f57600080fd5b505afa158015611333573d6000803e3d6000fd5b505050506040513d602081101561134957600080fd5b8101908080519060200190929190505050905061136581614380565b600061136f614473565b9050600061137b61451d565b905061138a82828660006145c7565b50505050565b600061139d84848461478d565b61145e846113a9614181565b611459856040518060600160405280602881526020016159d860289139600160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600061140f614181565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054614a439092919063ffffffff16565b614189565b600190509392505050565b6000600560009054906101000a900460ff16905090565b600061152961148d614181565b84611524856001600061149e614181565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054614b0390919063ffffffff16565b614189565b6001905092915050565b6000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166321f8a7217f53796e74686574697800000000000000000000000000000000000000000000006040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b1580156115c857600080fd5b505afa1580156115dc573d6000803e3d6000fd5b505050506040513d60208110156115f257600080fd5b8101908080519060200190929190505050905080600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b42611662621baf80601254614b0390919063ffffffff16565b106116d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f4c69717569646174696f6e206e6f7420617661696c61626c650000000000000081525060200191505060405180910390fd5b60006116df614473565b90506117708782888880806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050878780806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505086614b8b565b600061177a614c56565b90506117ab600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16826000806145c7565b5050505050505050565b600560029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611878576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f446f6e277420686176652072696768747300000000000000000000000000000081525060200191505060405180910390fd5b600560019054906101000a900460ff166118fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f5061757361626c653a206e6f742070617573656400000000000000000000000081525060200191505060405180910390fd5b6000600560016101000a81548160ff0219169083151502179055507fa45f47fdea8a1efdd9029a5691c7f759c32b7c698632b563573e155625d1693360405160405180910390a1565b61194b613015565b6119bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008111611a77576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f4d757374206275726e20746f6b656e730000000000000000000000000000000081525060200191505060405180910390fd5b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318d814ba611abf6111d3565b846040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b158015611afb57600080fd5b505afa158015611b0f573d6000803e3d6000fd5b505050506040513d6020811015611b2557600080fd5b8101908080519060200190929190505050905080600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370ed0ada6040518163ffffffff1660e01b815260040160206040518083038186803b158015611ba157600080fd5b505afa158015611bb5573d6000803e3d6000fd5b505050506040513d6020811015611bcb57600080fd5b810190808051906020019092919050505011611c32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526029815260200180615a6a6029913960400191505060405180910390fd5b6000611c55611c4683601360010154614d00565b83614d4190919063ffffffff16565b9050611c613384614d8b565b3373ffffffffffffffffffffffffffffffffffffffff167f743033787f4738ff4d6a7225ce2bd0977ee5f86b91a902a58f5e4d0b297b464442858460405180848152602001838152602001828152602001935050505060405180910390a260003373ffffffffffffffffffffffffffffffffffffffff168260405180600001905060006040518083038185875af1925050503d8060008114611d1f576040519150601f19603f3d011682016040523d82523d6000602084013e611d24565b606091505b5050905080611d9b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f4275726e207472616e73666572206661696c656400000000000000000000000081525060200191505060405180910390fd5b50505050565b6000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166321f8a7217f526577617264457363726f7700000000000000000000000000000000000000006040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015611e3657600080fd5b505afa158015611e4a573d6000803e3d6000fd5b505050506040513d6020811015611e6057600080fd5b810190808051906020019092919050505090508073ffffffffffffffffffffffffffffffffffffffff1663458efde36040518163ffffffff1660e01b8152600401600060405180830381600087803b158015611ebb57600080fd5b505af1158015611ecf573d6000803e3d6000fd5b5050505050565b611ede613015565b611f50576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60006010541180611f6357506000601154115b611fd5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f4e6f206665657320746f2077697468647261770000000000000000000000000081525060200191505060405180910390fd5b60006010549050600060115490506000601081905550600060118190555060003373ffffffffffffffffffffffffffffffffffffffff168360405180600001905060006040518083038185875af1925050503d8060008114612053576040519150601f19603f3d011682016040523d82523d6000602084013e612058565b606091505b50509050806120cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f5472616e73666572206661696c6564000000000000000000000000000000000081525060200191505060405180910390fd5b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561217857600080fd5b505af115801561218c573d6000803e3d6000fd5b505050506040513d60208110156121a257600080fd5b8101908080519060200190929190505050507f8bed4dd97479421d7ae42fa96d6157fd86e027f7099ceec95d865deb574e0cb38383604051808381526020018281526020019250505060405180910390a1505050565b612200613015565b806122585750600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6122ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f4e6f6e2d61646d696e2063616c6c65720000000000000000000000000000000081525060200191505060405180910390fd5b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638f964e456040518163ffffffff1660e01b815260040160206040518083038186803b15801561233257600080fd5b505afa158015612346573d6000803e3d6000fd5b505050506040513d602081101561235c57600080fd5b81019080805190602001909291905050506123df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f526562616c616e636520756e6e6563657373617279000000000000000000000081525060200191505060405180910390fd5b60006123e9614473565b905061247a8782888880806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050878780806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505086614b8b565b7f07cca6f1eb24d888e8978e5217dd16f5fc2eec25cedf426baaf577c08e5442714283604051808381526020018281526020019250505060405180910390a150505050505050565b6124ca613015565b61253c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561260557600080fd5b505af1158015612619573d6000803e3d6000fd5b505050506040513d602081101561262f57600080fd5b81019080805190602001909291905050505050565b6000600560019054906101000a900460ff16905090565b60138060000154908060010154908060020154905083565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6126c3613015565b612735576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600560029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146128b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f446f6e277420686176652072696768747300000000000000000000000000000081525060200191505060405180910390fd5b600560019054906101000a900460ff161561293c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f5061757361626c653a207061757365640000000000000000000000000000000081525060200191505060405180910390fd5b6001600560016101000a81548160ff0219169083151502179055507f9e87fac88ff661f02d44f95383c817fece4bce600a3dab7a54406878b965e75260405160405180910390a1565b61298d613015565b806129e55750600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b612a57576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f4e6f6e2d61646d696e2063616c6c65720000000000000000000000000000000081525060200191505060405180910390fd5b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bbd351146040518163ffffffff1660e01b815260040160206040518083038186803b158015612abf57600080fd5b505afa158015612ad3573d6000803e3d6000fd5b505050506040513d6020811015612ae957600080fd5b8101908080519060200190929190505050612b6c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f526562616c616e6365206e6f74206e656365737361727900000000000000000081525060200191505060405180910390fd5b600080600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663cd6ba3c66040518163ffffffff1660e01b8152600401604080518083038186803b158015612bd657600080fd5b505afa158015612bea573d6000803e3d6000fd5b505050506040513d6040811015612c0057600080fd5b81019080805190602001909291908051906020019092919050505091509150612c2882614380565b612c5f81612c3461451d565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16866000614f43565b7f026852d291e1e36fc6cfc491c923705172b37ea45fae5a5056bdd93a8bd89f364283604051808381526020018281526020019250505060405180910390a1505050565b612cab613015565b80612d035750600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b612d75576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f4e6f6e2d61646d696e2063616c6c65720000000000000000000000000000000081525060200191505060405180910390fd5b4260128190555080612dfe57612d8a86615134565b612ded612d95614473565b612d9d61451d565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1688886000818110612dcd57fe5b9050602002013587876000818110612de157fe5b90506020020135614f43565b612dfd612df8614c56565b6151f3565b5b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166321f8a7217f466565506f6f6c000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015612e9157600080fd5b505afa158015612ea5573d6000803e3d6000fd5b505050506040513d6020811015612ebb57600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff1663d294f0936040518163ffffffff1660e01b8152600401602060405180830381600087803b158015612f1357600080fd5b505af1158015612f27573d6000803e3d6000fd5b505050506040513d6020811015612f3d57600080fd5b810190808051906020019092919050505050612f82612f71601360020154612f63614c56565b61528390919063ffffffff16565b601154614b0390919063ffffffff16565b601181905550612fe3600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612fb6614c56565b87876001818110612fc357fe5b9050602002013586866001818110612fd757fe5b905060200201356145c7565b505050505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16613058614181565b73ffffffffffffffffffffffffffffffffffffffff1614905090565b606060048054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561310c5780601f106130e15761010080835404028352916020019161310c565b820191906000526020600020905b8154815290600101906020018083116130ef57829003601f168201915b5050505050905090565b60115481565b600560029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600560019054906101000a900460ff16156131c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f5061757361626c653a207061757365640000000000000000000000000000000081525060200191505060405180910390fd5b6000341161323b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600d8152602001807f4d7573742073656e64204554480000000000000000000000000000000000000081525060200191505060405180910390fd5b600061324c34601360000154614d00565b905060006132638234614d4190919063ffffffff16565b90506000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166389afb5b76040518163ffffffff1660e01b815260040160206040518083038186803b1580156132cf57600080fd5b505afa1580156132e3573d6000803e3d6000fd5b505050506040513d60208110156132f957600080fd5b8101908080519060200190929190505050905060006133166111d3565b9050600080600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b1253d7a86856040518363ffffffff1660e01b81526004018083815260200182815260200192505050604080518083038186803b15801561339557600080fd5b505afa1580156133a9573d6000803e3d6000fd5b505050506040513d60408110156133bf57600080fd5b81019080805190602001909291908051906020019092919050505091509150816134c857600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637a2a045686600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168a6040518463ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001925050506000604051808303818588803b1580156134ae57600080fd5b505af11580156134c2573d6000803e3d6000fd5b50505050505b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663748416d0868885886040518563ffffffff1660e01b81526004018085815260200184815260200183815260200182815260200194505050505060206040518083038186803b15801561355557600080fd5b505afa158015613569573d6000803e3d6000fd5b505050506040513d602081101561357f57600080fd5b810190808051906020019092919050505090503373ffffffffffffffffffffffffffffffffffffffff167f5b5de75983fe8891c65234472ee1805018163815d4c146f10bf176b736093c094234846001604051808581526020018481526020018381526020018215151515815260200194505050505060405180910390a261360733826152cd565b5050505050505050565b60006136d461361e614181565b846136cf85604051806060016040528060258152602001615a936025913960016000613648614181565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054614a439092919063ffffffff16565b614189565b6001905092915050565b60006136f26136eb614181565b848461478d565b6001905092915050565b613704613015565b8061375c5750600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6137ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f4e6f6e2d61646d696e2063616c6c65720000000000000000000000000000000081525060200191505060405180910390fd5b60006137d8614473565b90506138698782888880806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050878780806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505086614b8b565b50505050505050565b60125481565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b613907613015565b613979576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6000831480613989575060328310155b6139fb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600b8152602001807f496e76616c69642066656500000000000000000000000000000000000000000081525060200191505060405180910390fd5b6000821480613a0b575060648210155b613a7d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600b8152602001807f496e76616c69642066656500000000000000000000000000000000000000000081525060200191505060405180910390fd5b6019811015613af4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600b8152602001807f496e76616c69642066656500000000000000000000000000000000000000000081525060200191505060405180910390fd5b826013600001819055508160136001018190555080601360020181905550505050565b600560019054906101000a900460ff1615613b9a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f5061757361626c653a207061757365640000000000000000000000000000000081525060200191505060405180910390fd5b60008111613c10576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600d8152602001807f4d7573742073656e6420534e580000000000000000000000000000000000000081525060200191505060405180910390fd5b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166389afb5b76040518163ffffffff1660e01b815260040160206040518083038186803b158015613c7a57600080fd5b505afa158015613c8e573d6000803e3d6000fd5b505050506040513d6020811015613ca457600080fd5b81019080805190602001909291905050509050600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b158015613d9457600080fd5b505af1158015613da8573d6000803e3d6000fd5b505050506040513d6020811015613dbe57600080fd5b8101908080519060200190929190505050506000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632bdbe2198385613e1a6111d3565b6040518463ffffffff1660e01b815260040180848152602001838152602001828152602001935050505060206040518083038186803b158015613e5c57600080fd5b505afa158015613e70573d6000803e3d6000fd5b505050506040513d6020811015613e8657600080fd5b810190808051906020019092919050505090503373ffffffffffffffffffffffffffffffffffffffff167f5b5de75983fe8891c65234472ee1805018163815d4c146f10bf176b736093c094285846000604051808581526020018481526020018381526020018215151515815260200194505050505060405180910390a2613f0e33826152cd565b505050565b613f1b613015565b613f8d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b613f9681615488565b50565b613fa1613015565b80613ff95750600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b61406b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f4e6f6e2d61646d696e2063616c6c65720000000000000000000000000000000081525060200191505060405180910390fd5b600560019054906101000a900460ff16156140ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f5061757361626c653a207061757365640000000000000000000000000000000081525060200191505060405180910390fd5b6140f7866155ce565b614128818686600081811061410857fe5b905060200201358585600081811061411c57fe5b9050602002013561565e565b6000614132614473565b905061417861414a8389614d4190919063ffffffff16565b8787600181811061415757fe5b90506020020135838787600181811061416c57fe5b90506020020135615691565b50505050505050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561420f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180615a466024913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415614295576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806159906022913960400191505060405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040518082815260200191505060405180910390a3505050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663da89a7b1600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168360006040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001821515151581526020019350505050600060405180830381600087803b15801561445857600080fd5b505af115801561446c573d6000803e3d6000fd5b5050505050565b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b5fe7dc16040518163ffffffff1660e01b815260040160206040518083038186803b1580156144dd57600080fd5b505afa1580156144f1573d6000803e3d6000fd5b505050506040513d602081101561450757600080fd5b8101908080519060200190929190505050905090565b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dc71b8146040518163ffffffff1660e01b815260040160206040518083038186803b15801561458757600080fd5b505afa15801561459b573d6000803e3d6000fd5b505050506040513d60208110156145b157600080fd5b8101908080519060200190929190505050905090565b6000831115614787578373ffffffffffffffffffffffffffffffffffffffff1663a9059cbb600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16856040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561467957600080fd5b505af115801561468d573d6000803e3d6000fd5b505050506040513d60208110156146a357600080fd5b810190808051906020019092919050505050600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634d647179858585856040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001848152602001838152602001828152602001945050505050600060405180830381600087803b15801561476e57600080fd5b505af1158015614782573d6000803e3d6000fd5b505050505b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415614813576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180615a216025913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415614899576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806159256023913960400191505060405180910390fd5b614904816040518060600160405280602681526020016159b2602691396000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054614a439092919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550614997816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054614b0390919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3505050565b6000838311158290614af0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015614ab5578082015181840152602081019050614a9a565b50505050905090810190601f168015614ae25780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b600080828401905083811015614b81576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6000851115614c0c57614b9d85615134565b614bfb84614ba961451d565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1686600081518110614bd957fe5b602002602001015186600081518110614bee57fe5b6020026020010151614f43565b614c0b614c06614c56565b6151f3565b5b614c4f600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168285600181518110614c4057fe5b602002602001015160006145c7565b5050505050565b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ff15b2c86040518163ffffffff1660e01b815260040160206040518083038186803b158015614cc057600080fd5b505afa158015614cd4573d6000803e3d6000fd5b505050506040513d6020811015614cea57600080fd5b8101908080519060200190929190505050905090565b600080821115614d3b57614d1d828461528390919063ffffffff16565b9050614d3481601054614b0390919063ffffffff16565b6010819055505b92915050565b6000614d8383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250614a43565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415614e11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180615a006021913960400191505060405180910390fd5b614e7c81604051806060016040528060228152602001615948602291396000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054614a439092919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550614ed381600254614d4190919063ffffffff16565b600281905550600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b8473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16866040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015614fec57600080fd5b505af1158015615000573d6000803e3d6000fd5b505050506040513d602081101561501657600080fd5b810190808051906020019092919050505050600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630952153086868686866040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018581526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200182815260200195505050505050600060405180830381600087803b15801561511557600080fd5b505af1158015615129573d6000803e3d6000fd5b505050505050505050565b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166387af1b6e836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b1580156151a957600080fd5b505afa1580156151bd573d6000803e3d6000fd5b505050506040513d60208110156151d357600080fd5b810190808051906020019092919050505090506151ef81614380565b5050565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663295da87d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561526857600080fd5b505af115801561527c573d6000803e3d6000fd5b5050505050565b60006152c583836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061585e565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415615370576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f45524332303a206d696e7420746f20746865207a65726f20616464726573730081525060200191505060405180910390fd5b61538581600254614b0390919063ffffffff16565b6002819055506153dc816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054614b0390919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561550e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602681526020018061596a6026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638a290014826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561564357600080fd5b505af1158015615657573d6000803e3d6000fd5b5050505050565b61568c600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168484846145c7565b505050565b6156c0600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1685848685614f43565b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632a54770b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561572a57600080fd5b505afa15801561573e573d6000803e3d6000fd5b505050506040513d602081101561575457600080fd5b81019080805190602001909291905050509050600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631cc0bd61600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168360006040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001821515151581526020019350505050600060405180830381600087803b15801561583f57600080fd5b505af1158015615853573d6000803e3d6000fd5b505050505050505050565b6000808311829061590a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156158cf5780820151818401526020810190506158b4565b50505050905090810190601f1680156158fc5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161591657fe5b04905080915050939250505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737352656465656d20616d6f756e74206578636565647320617661696c61626c65206c697175696469747945524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa265627a7a72315820883a0c72f783780914cb9e2cef94076d990f4ad77a5f530815276d7a10ad990f64736f6c634300050f0032

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

0000000000000000000000009a84333f3521207589b180e343a700ba48f5568c00000000000000000000000093e01899c10532d76c0e864537a1d26433dbbddb000000000000000000000000c011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f00000000000000000000000057ab1ec28d129707052df4df418d58a2d46d5f51000000000000000000000000882d80d3a191859d64477eb78cca46599307ec1c0000000000000000000000004e3b31eb0e5cb73641ee1e65e7dcefe520ba3ef2000000000000000000000000ceda8318522d348f1d1aca48b24629b8fbf09020

-----Decoded View---------------
Arg [0] : _tradeAccountingAddress (address): 0x9A84333f3521207589B180E343a700BA48f5568C
Arg [1] : _setAddress (address): 0x93E01899c10532d76C0E864537a1D26433dBbDdB
Arg [2] : _snxAddress (address): 0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F
Arg [3] : _susdAddress (address): 0x57Ab1ec28D129707052df4dF418D58a2D46d5f51
Arg [4] : _setTransferProxy (address): 0x882d80D3a191859d64477eb78Cca46599307ec1C
Arg [5] : _addressResolver (address): 0x4E3b31eB0E5CB73641EE1E65E7dCEFe520bA3ef2
Arg [6] : _rebalancingModule (address): 0xcEDA8318522D348f1d1aca48B24629b8FbF09020

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000009a84333f3521207589b180e343a700ba48f5568c
Arg [1] : 00000000000000000000000093e01899c10532d76c0e864537a1d26433dbbddb
Arg [2] : 000000000000000000000000c011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f
Arg [3] : 00000000000000000000000057ab1ec28d129707052df4df418d58a2d46d5f51
Arg [4] : 000000000000000000000000882d80d3a191859d64477eb78cca46599307ec1c
Arg [5] : 0000000000000000000000004e3b31eb0e5cb73641ee1e65e7dcefe520ba3ef2
Arg [6] : 000000000000000000000000ceda8318522d348f1d1aca48b24629b8fbf09020


Deployed Bytecode Sourcemap

72663:20942:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;93557:15;;;;;;;;;;;93535:38;;:10;:38;;;93527:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;72663:20942;21105:83;;8:9:-1;5:2;;;30:1;27;20:12;5:2;21105:83:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;21105:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14649:152;;8:9:-1;5:2;;;30:1;27;20:12;5:2;14649:152:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;14649:152:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;13670:91;;8:9:-1;5:2;;;30:1;27;20:12;5:2;13670:91:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;73509:34;;8:9:-1;5:2;;;30:1;27;20:12;5:2;73509:34:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;85773:446;;8:9:-1;5:2;;;30:1;27;20:12;5:2;85773:446:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;85773:446:0;;;;;;;;;;;;;;;;;:::i;:::-;;15273:304;;8:9:-1;5:2;;;30:1;27;20:12;5:2;15273:304:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;15273:304:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;21957:83;;8:9:-1;5:2;;;30:1;27;20:12;5:2;21957:83:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;15986:210;;8:9:-1;5:2;;;30:1;27;20:12;5:2;15986:210:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;15986:210:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;91426:176;;8:9:-1;5:2;;;30:1;27;20:12;5:2;91426:176:0;;;:::i;:::-;;88017:721;;8:9:-1;5:2;;;30:1;27;20:12;5:2;88017:721:0;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;88017:721:0;;;;;;;;;;;;;;;;;;;21:11:-1;8;5:28;2:2;;;46:1;43;36:12;2:2;88017:721:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;88017:721:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;88017:721:0;;;;;;;;;;;;;;21:11:-1;8;5:28;2:2;;;46:1;43;36:12;2:2;88017:721:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;88017:721:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;88017:721:0;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;71572:108;;8:9:-1;5:2;;;30:1;27;20:12;5:2;71572:108:0;;;:::i;:::-;;91610:99;;8:9:-1;5:2;;;30:1;27;20:12;5:2;91610:99:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;91610:99:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;77951:786;;8:9:-1;5:2;;;30:1;27;20:12;5:2;77951:786:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;77951:786:0;;;;;;;;;;;;;;;;;:::i;:::-;;88878:184;;8:9:-1;5:2;;;30:1;27;20:12;5:2;88878:184:0;;;:::i;:::-;;92631:633;;8:9:-1;5:2;;;30:1;27;20:12;5:2;92631:633:0;;;:::i;:::-;;84886:661;;8:9:-1;5:2;;;30:1;27;20:12;5:2;84886:661:0;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;84886:661:0;;;;;;;;;;;;;;;;;;;21:11:-1;8;5:28;2:2;;;46:1;43;36:12;2:2;84886:661:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;84886:661:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;84886:661:0;;;;;;;;;;;;;;21:11:-1;8;5:28;2:2;;;46:1;43;36:12;2:2;84886:661:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;84886:661:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;84886:661:0;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;93333:147;;8:9:-1;5:2;;;30:1;27;20:12;5:2;93333:147:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;93333:147:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;70791:78;;8:9:-1;5:2;;;30:1;27;20:12;5:2;70791:78:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;74285:30;;8:9:-1;5:2;;;30:1;27;20:12;5:2;74285:30:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13824:110;;8:9:-1;5:2;;;30:1;27;20:12;5:2;13824:110:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;13824:110:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;8473:140;;8:9:-1;5:2;;;30:1;27;20:12;5:2;8473:140:0;;;:::i;:::-;;71371:106;;8:9:-1;5:2;;;30:1;27;20:12;5:2;71371:106:0;;;:::i;:::-;;83697:602;;8:9:-1;5:2;;;30:1;27;20:12;5:2;83697:602:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;83697:602:0;;;;;;;;;;;;;;;;;:::i;:::-;;81081:1003;;8:9:-1;5:2;;;30:1;27;20:12;5:2;81081:1003:0;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;81081:1003:0;;;;;;;;;;;;;;;;;;;21:11:-1;8;5:28;2:2;;;46:1;43;36:12;2:2;81081:1003:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;81081:1003:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;81081:1003:0;;;;;;;;;;;;;;21:11:-1;8;5:28;2:2;;;46:1;43;36:12;2:2;81081:1003:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;81081:1003:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;81081:1003:0;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;7662:79;;8:9:-1;5:2;;;30:1;27;20:12;5:2;7662:79:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;8028:94;;8:9:-1;5:2;;;30:1;27;20:12;5:2;8028:94:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;21307:87;;8:9:-1;5:2;;;30:1;27;20:12;5:2;21307:87:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;21307:87:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;73550:35;;8:9:-1;5:2;;;30:1;27;20:12;5:2;73550:35:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;70449:21;;8:9:-1;5:2;;;30:1;27;20:12;5:2;70449:21:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;75729:1028;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;75729:1028:0;;;;;;;;;;;;;;;;;:::i;:::-;;16699:261;;8:9:-1;5:2;;;30:1;27;20:12;5:2;16699:261:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;16699:261:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;14147:158;;8:9:-1;5:2;;;30:1;27;20:12;5:2;14147:158:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;14147:158:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;87169:491;;8:9:-1;5:2;;;30:1;27;20:12;5:2;87169:491:0;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;87169:491:0;;;;;;;;;;;;;;;;;;;21:11:-1;8;5:28;2:2;;;46:1;43;36:12;2:2;87169:491:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;87169:491:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;87169:491:0;;;;;;;;;;;;;;21:11:-1;8;5:28;2:2;;;46:1;43;36:12;2:2;87169:491:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;87169:491:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;87169:491:0;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;73594:35;;8:9:-1;5:2;;;30:1;27;20:12;5:2;73594:35:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;14368:134;;8:9:-1;5:2;;;30:1;27;20:12;5:2;14368:134:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;14368:134:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;92111:512;;8:9:-1;5:2;;;30:1;27;20:12;5:2;92111:512:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;92111:512:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;77116:576;;8:9:-1;5:2;;;30:1;27;20:12;5:2;77116:576:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;77116:576:0;;;;;;;;;;;;;;;;;:::i;:::-;;8768:109;;8:9:-1;5:2;;;30:1;27;20:12;5:2;8768:109:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;8768:109:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;79610:563;;8:9:-1;5:2;;;30:1;27;20:12;5:2;79610:563:0;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;79610:563:0;;;;;;;;;;;;;;;;;;;21:11:-1;8;5:28;2:2;;;46:1;43;36:12;2:2;79610:563:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;79610:563:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;79610:563:0;;;;;;;;;;;;;;21:11:-1;8;5:28;2:2;;;46:1;43;36:12;2:2;79610:563:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;79610:563:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;79610:563:0;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;21105:83;21142:13;21175:5;21168:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21105:83;:::o;14649:152::-;14715:4;14732:39;14741:12;:10;:12::i;:::-;14755:7;14764:6;14732:8;:39::i;:::-;14789:4;14782:11;;14649:152;;;;:::o;13670:91::-;13714:7;13741:12;;13734:19;;13670:91;:::o;73509:34::-;;;;:::o;85773:446::-;91764:9;:7;:9::i;:::-;:34;;;;91791:7;;;;;;;;;;;91777:21;;:10;:21;;;91764:34;91756:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;85856:26;85885:15;;;;;;;;;;;:68;;;:70;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;85885:70:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;85885:70:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;85885:70:0;;;;;;;;;;;;;;;;85856:99;;85966:41;85988:18;85966:21;:41::i;:::-;86020:19;86042:30;:28;:30::i;:::-;86020:52;;86083:26;86112;:24;:26::i;:::-;86083:55;;86149:62;86167:11;86180:18;86200:7;86209:1;86149:17;:62::i;:::-;91830:1;;;85773:446;:::o;15273:304::-;15362:4;15379:36;15389:6;15397:9;15408:6;15379:9;:36::i;:::-;15426:121;15435:6;15443:12;:10;:12::i;:::-;15457:89;15495:6;15457:89;;;;;;;;;;;;;;;;;:11;:19;15469:6;15457:19;;;;;;;;;;;;;;;:33;15477:12;:10;:12::i;:::-;15457:33;;;;;;;;;;;;;;;;:37;;:89;;;;;:::i;:::-;15426:8;:121::i;:::-;15565:4;15558:11;;15273:304;;;;;:::o;21957:83::-;21998:5;22023:9;;;;;;;;;;;22016:16;;21957:83;:::o;15986:210::-;16066:4;16083:83;16092:12;:10;:12::i;:::-;16106:7;16115:50;16154:10;16115:11;:25;16127:12;:10;:12::i;:::-;16115:25;;;;;;;;;;;;;;;:34;16141:7;16115:34;;;;;;;;;;;;;;;;:38;;:50;;;;:::i;:::-;16083:8;:83::i;:::-;16184:4;16177:11;;15986:210;;;;:::o;91426:176::-;91475:24;91502:15;;;;;;;;;;;:26;;;91529:13;91502:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;91502:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;91502:41:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;91502:41:0;;;;;;;;;;;;;;;;91475:68;;91577:16;91554:9;;:40;;;;;;;;;;;;;;;;;;91426:176;:::o;88017:721::-;88295:15;88243:49;73301:7;88243:20;;:24;;:49;;;;:::i;:::-;:67;88221:142;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;88376:19;88398:30;:28;:30::i;:::-;88376:52;;88439:170;88475:15;88505:11;88531:13;;88439:170;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;88439:170:0;;;;;;88559:15;;88439:170;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;88439:170:0;;;;;;88589:9;88439:21;:170::i;:::-;88622:24;88649:16;:14;:16::i;:::-;88622:43;;88676:54;88694:11;;;;;;;;;;;88707:16;88725:1;88728;88676:17;:54::i;:::-;88017:721;;;;;;;;:::o;71572:108::-;71741:6;;;;;;;;;;;71727:20;;:10;:20;;;71719:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71227:7;;;;;;;;;;;71219:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71641:5;71631:7;;:15;;;;;;;;;;;;;;;;;;71662:10;;;;;;;;;;71572:108::o;91610:99::-;7874:9;:7;:9::i;:::-;7866:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;91693:8;91683:7;;:18;;;;;;;;;;;;;;;;;;91610:99;:::o;77951:786::-;78034:1;78017:14;:18;78009:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;78069:21;78093:15;;;;;;;;;;;:40;;;78148:13;:11;:13::i;:::-;78176:14;78093:108;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;78093:108:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;78093:108:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;78093:108:0;;;;;;;;;;;;;;;;78069:132;;78270:13;78236:15;;;;;;;;;;;:29;;;:31;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;78236:31:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;78236:31:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;78236:31:0;;;;;;;;;;;;;;;;:47;78214:138;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;78365:19;78387:93;78419:50;78434:13;78449:11;:19;;;78419:14;:50::i;:::-;78387:13;:17;;:93;;;;:::i;:::-;78365:115;;78491:39;78503:10;78515:14;78491:11;:39::i;:::-;78551:10;78546:62;;;78563:15;78580:14;78596:11;78546:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;78622:12;78640:10;:15;;78662:11;78640:38;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;78621:57:0;;;78697:7;78689:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;77951:786;;;;:::o;88878:184::-;88912:26;88969:15;;;;;;;;;;;:26;;;88996:16;88969:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;88969:44:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;88969:44:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;88969:44:0;;;;;;;;;;;;;;;;88912:112;;89035:12;:17;;;:19;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;89035:19:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;89035:19:0;;;;88878:184;:::o;92631:633::-;7874:9;:7;:9::i;:::-;7866:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;92727:1;92705:19;;:23;:51;;;;92755:1;92732:20;;:24;92705:51;92683:120;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;92816:25;92844:19;;92816:47;;92874:26;92903:20;;92874:49;;92956:1;92934:19;:23;;;;92991:1;92968:20;:24;;;;93006:12;93024:10;:15;;93046:17;93024:44;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;93005:63:0;;;93087:7;93079:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;93134:11;;;;;;;;;;;93127:28;;;93156:10;93168:18;93127:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;93127:60:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;93127:60:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;93127:60:0;;;;;;;;;;;;;;;;;93205:51;93218:17;93237:18;93205:51;;;;;;;;;;;;;;;;;;;;;;;;7931:1;;;92631:633::o;84886:661::-;91764:9;:7;:9::i;:::-;:34;;;;91791:7;;;;;;;;;;;91777:21;;:10;:21;;;91764:34;91756:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;85135:15;;;;;;;;;;;:47;;;:49;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;85135:49:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;85135:49:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;85135:49:0;;;;;;;;;;;;;;;;85113:120;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;85246:19;85268:30;:28;:30::i;:::-;85246:52;;85309:170;85345:15;85375:11;85401:13;;85309:170;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;85309:170:0;;;;;;85429:15;;85309:170;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;85309:170:0;;;;;;85459:9;85309:21;:170::i;:::-;85495:44;85512:15;85529:9;85495:44;;;;;;;;;;;;;;;;;;;;;;;;91830:1;84886:661;;;;;;:::o;93333:147::-;7874:9;:7;:9::i;:::-;7866:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;93423:12;93416:28;;;93445:16;;;;;;;;;;;73233:10;93416:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;93416:56:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;93416:56:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;93416:56:0;;;;;;;;;;;;;;;;;93333:147;:::o;70791:78::-;70830:4;70854:7;;;;;;;;;;;70847:14;;70791:78;:::o;74285:30::-;;;;;;;;;;;;;;;;;;;:::o;13824:110::-;13881:7;13908:9;:18;13918:7;13908:18;;;;;;;;;;;;;;;;13901:25;;13824:110;;;:::o;8473:140::-;7874:9;:7;:9::i;:::-;7866:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8572:1;8535:40;;8556:6;;;;;;;;;;;8535:40;;;;;;;;;;;;8603:1;8586:6;;:19;;;;;;;;;;;;;;;;;;8473:140::o;71371:106::-;71741:6;;;;;;;;;;;71727:20;;:10;:20;;;71719:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71028:7;;;;;;;;;;;71027:8;71019:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71441:4;71431:7;;:14;;;;;;;;;;;;;;;;;;71461:8;;;;;;;;;;71371:106::o;83697:602::-;91764:9;:7;:9::i;:::-;:34;;;;91791:7;;;;;;;;;;;91777:21;;:10;:21;;;91764:34;91756:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;83804:15;;;;;;;;;;;:45;;;:47;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;83804:47:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;83804:47:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;83804:47:0;;;;;;;;;;;;;;;;83782:120;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;83914:17;83933:19;83956:15;;;;;;;;;;;:57;;;:59;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;83956:59:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;83956:59:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;83956:59:0;;;;;;;;;;;;;;;;;;;;;;;;;83913:102;;;;84028:32;84050:9;84028:21;:32::i;:::-;84073:158;84105:11;84131:26;:24;:26::i;:::-;84172:10;;;;;;;;;;;84197:7;84219:1;84073:17;:158::i;:::-;84249:42;84264:15;84281:9;84249:42;;;;;;;;;;;;;;;;;;;;;;;;91830:1;;83697:602;:::o;81081:1003::-;91764:9;:7;:9::i;:::-;:34;;;;91791:7;;;;;;;;;;;91777:21;;:10;:21;;;91764:34;91756:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;81322:15;81299:20;:38;;;;81355:13;81350:367;;81385:33;81396:21;81385:10;:33::i;:::-;81433:228;81469:30;:28;:30::i;:::-;81518:26;:24;:26::i;:::-;81563:11;;;;;;;;;;;81593:13;;81607:1;81593:16;;;;;;;;;;;;;81628:15;;81644:1;81628:18;;;;;;;;;;;;;81433:17;:228::i;:::-;81676:29;81688:16;:14;:16::i;:::-;81676:11;:29::i;:::-;81350:367;81738:15;;;;;;;;;;;:26;;;81765:11;81738:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;81738:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;81738:39:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;81738:39:0;;;;;;;;;;;;;;;;81729:59;;;:61;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;81729:61:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;81729:61:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;81729:61:0;;;;;;;;;;;;;;;;;81824:92;81863:42;81884:11;:20;;;81863:16;:14;:16::i;:::-;:20;;:42;;;;:::i;:::-;81824:20;;:24;;:92;;;;:::i;:::-;81801:20;:115;;;;81927:149;81959:11;;;;;;;;;;;81985:16;:14;:16::i;:::-;82016:13;;82030:1;82016:16;;;;;;;;;;;;;82047:15;;82063:1;82047:18;;;;;;;;;;;;;81927:17;:149::i;:::-;81081:1003;;;;;;:::o;7662:79::-;7700:7;7727:6;;;;;;;;;;;7720:13;;7662:79;:::o;8028:94::-;8068:4;8108:6;;;;;;;;;;;8092:22;;:12;:10;:12::i;:::-;:22;;;8085:29;;8028:94;:::o;21307:87::-;21346:13;21379:7;21372:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21307:87;:::o;73550:35::-;;;;:::o;70449:21::-;;;;;;;;;;;;;:::o;75729:1028::-;71028:7;;;;;;;;;;;71027:8;71019:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75822:1;75810:9;:13;75802:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75854:11;75868:46;75883:9;75894:11;:19;;;75868:14;:46::i;:::-;75854:60;;75925:23;75951:18;75965:3;75951:9;:13;;:18;;;;:::i;:::-;75925:44;;75980:24;76007:15;;;;;;;;;;;:29;;;:31;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;76007:31:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;76007:31:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;76007:31:0;;;;;;;;;;;;;;;;75980:58;;76051:19;76073:13;:11;:13::i;:::-;76051:35;;76098:18;76118:24;76146:15;;;;;;;;;;;:49;;;76196:15;76213:11;76146:79;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;76146:79:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;76146:79:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;76146:79:0;;;;;;;;;;;;;;;;;;;;;;;;;76097:128;;;;76243:13;76238:172;;76273:15;;;;;;;;;;;:32;;;76312:15;76347:10;;;;;;;;;;;76376:7;76273:125;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;76273:125:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;76273:125:0;;;;;76238:172;76422:18;76443:15;;;;;;;;;;;:44;;;76502:16;76533:15;76563:16;76594:11;76443:173;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;76443:173:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;76443:173:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;76443:173:0;;;;;;;;;;;;;;;;76422:194;;76639:10;76634:62;;;76651:15;76668:9;76679:10;76691:4;76634:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76714:35;76726:10;76738;76714:11;:35::i;:::-;76707:42;;;;;;;75729:1028;:::o;16699:261::-;16784:4;16801:129;16810:12;:10;:12::i;:::-;16824:7;16833:96;16872:15;16833:96;;;;;;;;;;;;;;;;;:11;:25;16845:12;:10;:12::i;:::-;16833:25;;;;;;;;;;;;;;;:34;16859:7;16833:34;;;;;;;;;;;;;;;;:38;;:96;;;;;:::i;:::-;16801:8;:129::i;:::-;16948:4;16941:11;;16699:261;;;;:::o;14147:158::-;14216:4;14233:42;14243:12;:10;:12::i;:::-;14257:9;14268:6;14233:9;:42::i;:::-;14293:4;14286:11;;14147:158;;;;:::o;87169:491::-;91764:9;:7;:9::i;:::-;:34;;;;91791:7;;;;;;;;;;;91777:21;;:10;:21;;;91764:34;91756:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;87411:19;87433:30;:28;:30::i;:::-;87411:52;;87482:170;87518:15;87548:11;87574:13;;87482:170;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;87482:170:0;;;;;;87602:15;;87482:170;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;87482:170:0;;;;;;87632:9;87482:21;:170::i;:::-;91830:1;87169:491;;;;;;:::o;73594:35::-;;;;:::o;14368:134::-;14440:7;14467:11;:18;14479:5;14467:18;;;;;;;;;;;;;;;:27;14486:7;14467:27;;;;;;;;;;;;;;;;14460:34;;14368:134;;;;:::o;92111:512::-;7874:9;:7;:9::i;:::-;7866:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;92296:1;92278:14;:19;:43;;;;92319:2;92301:14;:20;;92278:43;92270:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;92374:1;92356:14;:19;:44;;;;92397:3;92379:14;:21;;92356:44;92348:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;92454:2;92435:15;:21;;92427:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;92505:14;92483:11;:19;;:36;;;;92552:14;92530:11;:19;;:36;;;;92600:15;92577:11;:20;;:38;;;;92111:512;;;:::o;77116:576::-;71028:7;;;;;;;;;;;71027:8;71019:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;77210:1;77198:9;:13;77190:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;77240:24;77267:15;;;;;;;;;;;:29;;;:31;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;77267:31:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;77267:31:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;77267:31:0;;;;;;;;;;;;;;;;77240:58;;77316:10;;;;;;;;;;;77309:31;;;77341:10;77361:4;77368:9;77309:69;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;77309:69:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;77309:69:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;77309:69:0;;;;;;;;;;;;;;;;;77391:18;77412:15;;;;;;;;;;;:44;;;77471:16;77502:9;77526:13;:11;:13::i;:::-;77412:138;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;77412:138:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;77412:138:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;77412:138:0;;;;;;;;;;;;;;;;77391:159;;77573:10;77568:63;;;77585:15;77602:9;77613:10;77625:5;77568:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;77649:35;77661:10;77673;77649:11;:35::i;:::-;77642:42;;77116:576;:::o;8768:109::-;7874:9;:7;:9::i;:::-;7866:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8841:28;8860:8;8841:18;:28::i;:::-;8768:109;:::o;79610:563::-;91764:9;:7;:9::i;:::-;:34;;;;91791:7;;;;;;;;;;;91777:21;;:10;:21;;;91764:34;91756:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71028:7;;;;;;;;;;;71027:8;71019:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79834:18;79841:10;79834:6;:18::i;:::-;79865:67;79880:13;79895;;79909:1;79895:16;;;;;;;;;;;;;79913:15;;79929:1;79913:18;;;;;;;;;;;;;79865:14;:67::i;:::-;79945:19;79967:30;:28;:30::i;:::-;79945:52;;80008:157;80035:29;80050:13;80035:10;:14;;:29;;;;:::i;:::-;80079:13;;80093:1;80079:16;;;;;;;;;;;;;80110:11;80136:15;;80152:1;80136:18;;;;;;;;;;;;;80008:12;:157::i;:::-;71067:1;79610:563;;;;;;:::o;6368:98::-;6413:15;6448:10;6441:17;;6368:98;:::o;19630:338::-;19741:1;19724:19;;:5;:19;;;;19716:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19822:1;19803:21;;:7;:21;;;;19795:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19906:6;19876:11;:18;19888:5;19876:18;;;;;;;;;;;;;;;:27;19895:7;19876:27;;;;;;;;;;;;;;;:36;;;;19944:7;19928:32;;19937:5;19928:32;;;19953:6;19928:32;;;;;;;;;;;;;;;;;;19630:338;;;:::o;90196:215::-;90275:17;;;;;;;;;;;:38;;;90328:10;;;;;;;;;;;90353:19;90387:5;90275:128;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;90275:128:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;90275:128:0;;;;90196:215;:::o;90724:144::-;90787:7;90814:15;;;;;;;;;;;:44;;;:46;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;90814:46:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;90814:46:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;90814:46:0;;;;;;;;;;;;;;;;90807:53;;90724:144;:::o;90876:136::-;90935:7;90962:15;;;;;;;;;;;:40;;;:42;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;90962:42:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;90962:42:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;90962:42:0;;;;;;;;;;;;;;;;90955:49;;90876:136;:::o;82194:470::-;82382:1;82372:7;:11;82368:289;;;82407:10;82400:27;;;82436:15;;;;;;;;;;;82454:7;82400:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;82400:62:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;82400:62:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;82400:62:0;;;;;;;;;;;;;;;;;82477:15;;;;;;;;;;;:32;;;82528:10;82557:7;82583:13;82615:15;82477:168;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;82477:168:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;82477:168:0;;;;82368:289;82194:470;;;;:::o;17450:471::-;17566:1;17548:20;;:6;:20;;;;17540:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17650:1;17629:23;;:9;:23;;;;17621:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17725;17747:6;17725:71;;;;;;;;;;;;;;;;;:9;:17;17735:6;17725:17;;;;;;;;;;;;;;;;:21;;:71;;;;;:::i;:::-;17705:9;:17;17715:6;17705:17;;;;;;;;;;;;;;;:91;;;;17830:32;17855:6;17830:9;:20;17840:9;17830:20;;;;;;;;;;;;;;;;:24;;:32;;;;:::i;:::-;17807:9;:20;17817:9;17807:20;;;;;;;;;;;;;;;:55;;;;17895:9;17878:35;;17887:6;17878:35;;;17906:6;17878:35;;;;;;;;;;;;;;;;;;17450:471;;;:::o;1842:192::-;1928:7;1961:1;1956;:6;;1964:12;1948:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;1948:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1988:9;2004:1;2000;:5;1988:17;;2025:1;2018:8;;;1842:192;;;;;:::o;913:181::-;971:7;991:9;1007:1;1003;:5;991:17;;1032:1;1027;:6;;1019:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1085:1;1078:8;;;913:181;;;;:::o;86227:673::-;86488:1;86469:16;:20;86465:352;;;86506:28;86517:16;86506:10;:28::i;:::-;86549:212;86585:12;86616:26;:24;:26::i;:::-;86661:11;;;;;;;;;;;86691:14;86706:1;86691:17;;;;;;;;;;;;;;86727:16;86744:1;86727:19;;;;;;;;;;;;;;86549:17;:212::i;:::-;86776:29;86788:16;:14;:16::i;:::-;86776:11;:29::i;:::-;86465:352;86829:63;86847:10;;;;;;;;;;;86859;86871:14;86886:1;86871:17;;;;;;;;;;;;;;86890:1;86829:17;:63::i;:::-;86227:673;;;;;:::o;91020:116::-;91069:7;91096:15;;;;;;;;;;;:30;;;:32;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;91096:32:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;91096:32:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;91096:32:0;;;;;;;;;;;;;;;;91089:39;;91020:116;:::o;91144:274::-;91240:11;91287:1;91273:11;:15;91269:142;;;91311:23;91322:11;91311:6;:10;;:23;;;;:::i;:::-;91305:29;;91371:28;91395:3;91371:19;;:23;;:28;;;;:::i;:::-;91349:19;:50;;;;91269:142;91144:274;;;;:::o;1369:136::-;1427:7;1454:43;1458:1;1461;1454:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;1447:50;;1369:136;;;;:::o;18842:348::-;18937:1;18918:21;;:7;:21;;;;18910:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19011:68;19034:6;19011:68;;;;;;;;;;;;;;;;;:9;:18;19021:7;19011:18;;;;;;;;;;;;;;;;:22;;:68;;;;;:::i;:::-;18990:9;:18;19000:7;18990:18;;;;;;;;;;;;;;;:89;;;;19105:24;19122:6;19105:12;;:16;;:24;;;;:::i;:::-;19090:12;:39;;;;19171:1;19145:37;;19154:7;19145:37;;;19175:6;19145:37;;;;;;;;;;;;;;;;;;18842:348;;:::o;82672:453::-;82880:10;82873:27;;;82909:15;;;;;;;;;;;82927:7;82873:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;82873:62:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;82873:62:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;82873:62:0;;;;;;;;;;;;;;;;;82946:15;;;;;;;;;;;:32;;;82993:10;83018:7;83040:8;83063:13;83091:15;82946:171;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;82946:171:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;82946:171:0;;;;82672:453;;;;;:::o;89956:232::-;90021:26;90050:15;;;;;;;;;;;:60;;;90111:16;90050:78;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;90050:78:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;90050:78:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;90050:78:0;;;;;;;;;;;;;;;;90021:107;;90139:41;90161:18;90139:21;:41::i;:::-;89956:232;;:::o;82092:94::-;82149:9;;;;;;;;;;;:20;;;82170:7;82149:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;82149:29:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;82149:29:0;;;;82092:94;:::o;3224:132::-;3282:7;3309:39;3313:1;3316;3309:39;;;;;;;;;;;;;;;;;:3;:39::i;:::-;3302:46;;3224:132;;;;:::o;18202:308::-;18297:1;18278:21;;:7;:21;;;;18270:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18363:24;18380:6;18363:12;;:16;;:24;;;;:::i;:::-;18348:12;:39;;;;18419:30;18442:6;18419:9;:18;18429:7;18419:18;;;;;;;;;;;;;;;;:22;;:30;;;;:::i;:::-;18398:9;:18;18408:7;18398:18;;;;;;;;;;;;;;;:51;;;;18486:7;18465:37;;18482:1;18465:37;;;18495:6;18465:37;;;;;;;;;;;;;;;;;;18202:308;;:::o;8983:229::-;9077:1;9057:22;;:8;:22;;;;9049:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9167:8;9138:38;;9159:6;;;;;;;;;;;9138:38;;;;;;;;;;;;9196:8;9187:6;;:17;;;;;;;;;;;;;;;;;;8983:229;:::o;80479:96::-;80534:9;;;;;;;;;;;:21;;;80556:10;80534:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;80534:33:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;80534:33:0;;;;80479:96;:::o;80181:290::-;80326:137;80358:11;;;;;;;;;;;80384:10;80409:13;80437:15;80326:17;:137::i;:::-;80181:290;;;:::o;89375:573::-;89545:160;89577:11;;;;;;;;;;;89603;89629:12;89656:8;89679:15;89545:17;:160::i;:::-;89718:24;89745:15;;;;;;;;;;;:58;;;:60;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;89745:60:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;89745:60:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;89745:60:0;;;;;;;;;;;;;;;;89718:87;;89816:17;;;;;;;;;;;:37;;;89868:10;;;;;;;;;;;89893:16;89924:5;89816:124;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;89816:124:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;89816:124:0;;;;89375:573;;;;;:::o;3886:345::-;3972:7;4071:1;4067;:5;4074:12;4059:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;4059:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4098:9;4114:1;4110;:5;;;;;;4098:17;;4222:1;4215:8;;;3886:345;;;;;:::o

Swarm Source

bzzr://883a0c72f783780914cb9e2cef94076d990f4ad77a5f530815276d7a10ad990f

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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