Contract 0x1650eA72590CFC00594dB5F75AE0773c4a7F5Dae

Contract Overview

Balance:
0 CRO

CRO Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xe5c58cc38c839019efe95fb557eaa3a9908d39dc6ede5da2a40badea77ceba820x6080604058039522022-11-30 18:28:3769 days 3 hrs ago0xfa4dedcde260d7c52c2880210c837a400a822ada IN  Create: StrategyTectonic0 CRO17.8870595446470
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
StrategyTectonic

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at cronoscan.com on 2022-11-30
*/

// Sources flattened with hardhat v2.11.0 https://hardhat.org

// File contracts/helpers/Context.sol

pragma solidity 0.6.12;

// https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Context.sol
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

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


// File contracts/libraries/SafeMath.sol

pragma solidity ^0.6.12;

// https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/SafeMath.sol
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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


// File contracts/interfaces/IERC20.sol

pragma solidity ^0.6.12;

// import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/IERC20.sol";
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 contracts/helpers/ERC20.sol

pragma solidity 0.6.12;
// https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol
contract ERC20 is Context, IERC20 {
    using SafeMath for uint256;

    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(sender, recipient, amount);

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

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

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

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

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

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

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

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

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

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

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


// File contracts/libraries/Address.sol

pragma solidity 0.6.12;

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

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

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

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

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

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

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) =
            target.call{value: value}(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data)
        internal
        view
        returns (bytes memory)
    {
        return
            functionStaticCall(
                target,
                data,
                "Address: low-level static call failed"
            );
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.3._
     */
    function functionDelegateCall(address target, bytes memory data)
        internal
        returns (bytes memory)
    {
        return
            functionDelegateCall(
                target,
                data,
                "Address: low-level delegate call failed"
            );
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.3._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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


// File contracts/libraries/SafeERC20.sol

pragma solidity 0.6.12;
// https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/SafeERC20.sol
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(
            token,
            abi.encodeWithSelector(token.transfer.selector, to, value)
        );
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(
            token,
            abi.encodeWithSelector(token.transferFrom.selector, from, to, value)
        );
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(
            token,
            abi.encodeWithSelector(token.approve.selector, spender, value)
        );
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance =
            token.allowance(address(this), spender).add(value);
        _callOptionalReturn(
            token,
            abi.encodeWithSelector(
                token.approve.selector,
                spender,
                newAllowance
            )
        );
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance =
            token.allowance(address(this), spender).sub(
                value,
                "SafeERC20: decreased allowance below zero"
            );
        _callOptionalReturn(
            token,
            abi.encodeWithSelector(
                token.approve.selector,
                spender,
                newAllowance
            )
        );
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata =
            address(token).functionCall(
                data,
                "SafeERC20: low-level call failed"
            );
        if (returndata.length > 0) {
            // Return data is optional
            // solhint-disable-next-line max-line-length
            require(
                abi.decode(returndata, (bool)),
                "SafeERC20: ERC20 operation did not succeed"
            );
        }
    }
}


// File contracts/helpers/Ownable.sol

pragma solidity 0.6.12;
// https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol
abstract contract Ownable is Context {
    address private _owner;

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

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

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

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

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

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


// File contracts/helpers/ReentrancyGuard.sol

pragma solidity 0.6.12;

// "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/ReentrancyGuard.sol";
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() internal {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}


// File contracts/interfaces/IPancakeRouter01.sol

pragma solidity 0.6.12;

interface IPancakeRouter01 {
    function factory() external pure returns (address);

    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint256 amountADesired,
        uint256 amountBDesired,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    )
        external
        returns (
            uint256 amountA,
            uint256 amountB,
            uint256 liquidity
        );

    function addLiquidityETH(
        address token,
        uint256 amountTokenDesired,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    )
        external
        payable
        returns (
            uint256 amountToken,
            uint256 amountETH,
            uint256 liquidity
        );

    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint256 liquidity,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountA, uint256 amountB);

    function removeLiquidityETH(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountToken, uint256 amountETH);

    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint256 liquidity,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountA, uint256 amountB);

    function removeLiquidityETHWithPermit(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountToken, uint256 amountETH);

    function swapExactTokensForTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapTokensForExactTokens(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapExactETHForTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

    function swapTokensForExactETH(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapExactTokensForETH(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapETHForExactTokens(
        uint256 amountOut,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

    function quote(
        uint256 amountA,
        uint256 reserveA,
        uint256 reserveB
    ) external pure returns (uint256 amountB);

    function getAmountOut(
        uint256 amountIn,
        uint256 reserveIn,
        uint256 reserveOut
    ) external pure returns (uint256 amountOut);

    function getAmountIn(
        uint256 amountOut,
        uint256 reserveIn,
        uint256 reserveOut
    ) external pure returns (uint256 amountIn);

    function getAmountsOut(uint256 amountIn, address[] calldata path)
        external
        view
        returns (uint256[] memory amounts);

    function getAmountsIn(uint256 amountOut, address[] calldata path)
        external
        view
        returns (uint256[] memory amounts);
}


// File contracts/interfaces/IPancakeRouter02.sol

pragma solidity 0.6.12;
interface IPancakeRouter02 is IPancakeRouter01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountETH);

    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;

    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable;

    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;
}


// File contracts/helpers/Pausable.sol

pragma solidity 0.6.12;
// "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Pausable.sol";
contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() internal {
        _paused = false;
    }

    /**
     * @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.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!_paused, "Pausable: paused");
        _;
    }

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

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}


// File contracts/lending/Strategy_TECTONIC.sol

// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

interface ITToken is IERC20 {

    function beforeOfUnderlying(address owner) external returns (uint256);

    function borrowBalanceStored(address owner) external returns (uint256);

    function mint(uint256 minAmount) external returns (uint);

    function exchangeRateStored() external view returns (uint);

    function borrow(uint256 borrowAmount) external returns (uint256);

    function repayBorrow(uint256 repayAmount) external returns (uint256);

    function redeem(uint256 redeemTokens) external returns (uint256);

    function redeemUnderlying(uint256 redeemAmount) external returns (uint256);

}

interface ITCRO {

    function mint() external payable;

    function borrowBalanceStored(address owner) external returns (uint256);

    function exchangeRateStored() external view returns (uint);

    function redeem(uint256 redeemTokens) external returns (uint256);

    function redeemUnderlying(uint256 redeemAmount) external returns (uint256);

    function repayBorrow() external payable;

}

interface IWCRO is IERC20{
    function deposit() external payable;
    
    function withdraw(uint256 wad) external;

}

interface ITectonicCore {
    function claimTonic(address holder) external returns (uint256);
}


contract StrategyTectonic is Ownable, ReentrancyGuard, Pausable {
    using SafeERC20 for IERC20;
    using Address for address;
    using SafeMath for uint256;

    uint256 public constant FOR_TEST = 0;
    /**
    Strategy define */
    bool public wantIsWCRO = false;
    bool public onlyGov = true;
    bool public isCGOComp = true;

    address public govAddress; // timelockController contract
    address public CGOFarmAddress;
    address public CGOAddress;
    address public wantAddress; // underlying Token (ex: USDC)

    address public wcroAddress = 0x5C7F8A570d578ED84E63fdFA7b1eE72dEae1AE23;
    address public uniRouterAddress;

    uint256 public sharesTotal = 0;
    uint256 public lastEarnBlock = 0;
    address public rewardsAddress;


    address[] public tonicToWantPath;
    address[] public earnedToCGOPath;
    

    // fee
    uint256 public controllerFee = 0;
    uint256 public constant controllerFeeMax = 10000; // 100 = 1%
    uint256 public constant controllerFeeUL = 350;

    uint256 public callFee = 50; //0.50%
    uint256 public constant callFeeMax = 10000; // 100 = 1%

    uint256 public withdrawFeeFactor = 10000; // 0.1% withdraw fee - goes to pool
    uint256 public constant withdrawFeeFactorMax = 10000;
    uint256 public constant withdrawFeeFactorLL = 9950; // 0.5% is the max entrance fee settable. LL = lowerlimit
    /**
    Lending marketplace define */

    address public tTokenAddress;
    address public tonicAddress = 0xDD73dEa10ABC2Bff99c60882EC5b2B81Bb1Dc5B2;
    address public tectonicCore = 0xb3831584acb95ED9cCb0C11f677B5AD01DeaeEc0;
    address public earnedAddress = tonicAddress;


    uint256 public constant BORROW_RATE_MAX = 595;
    uint256 public constant BORROW_RATE_MAX_HARD = 599;
    uint256 public constant BORROW_DEPTH_MAX = 6;

    uint256 public entranceFeeFactor = 9990; // < 0.1% entrance fee - goes to pool
    uint256 public constant entranceFeeFactorMax = 10000;
    uint256 public constant entranceFeeFactorLL = 9950; // 0.5% is the max entrance fee settable. LL = lowerlimit

    uint256 public deleverAmtFactorMax = 50; // 0.5% is the max amt to delever for deleverageOnce()
    uint256 public constant deleverAmtFactorMaxUL = 500;

    uint256 public deleverAmtFactorSafe = 20; // 0.2% is the safe amt to delever for deleverageOnce()
    uint256 public constant deleverAmtFactorSafeUL = 500;

    uint256 public slippageFactor = 950; // 5% default slippage tolerance
    uint256 public constant slippageFactorUL = 995;

    uint256 public borrowRate = 585;
    uint256 public borrowDepth = 3;

    uint256 public supplyBal = 0;
    uint256 public borrowBal = 0;
    uint256 public supplyBalTargeted = 0;
    uint256 public supplyBalMin = 0;

    event SetSettings(
        uint256 _entranceFeeFactor,
        uint256 _withdrawFeeFactor,
        uint256 _controllerFee,
        uint256 _slippageFactor
    );

    event SetGov(address _govAddress);
    event SetUniRouterAddress(address _uniRouterAddress);
    event SetRewardsAddress(address _rewardsAddress);
    event SetCallFee(uint256 _callFee);


    modifier onlyAllowGov() {
        require(msg.sender == govAddress, "!gov");
        _;
    }

    constructor(
        address[] memory _addresses,
        address[] memory _earnedToCGOPath,
        address[] memory _tonicToWantPath,
        uint256 _controllerFee,
        uint256 _entranceFeeFactor,
        uint256 _withdrawFeeFactor,
        bool _wantIsCRO
    ) public {
        govAddress = _addresses[0]; // TimelockController
        CGOFarmAddress = _addresses[1]; // Vault Farming
        CGOAddress = _addresses[2]; // Token

        tTokenAddress = _addresses[3]; // asset in tectonic lending marketplace
        wantAddress = _addresses[4]; // Staked LPs

        uniRouterAddress = _addresses[5]; // AMM Router (Ex: PCS)
        earnedToCGOPath = _earnedToCGOPath; 
        tonicToWantPath = _tonicToWantPath;
        
        controllerFee = _controllerFee;
        rewardsAddress = _addresses[6]; // TimelockController_RewardDistributor
        entranceFeeFactor = _entranceFeeFactor;
        withdrawFeeFactor = _withdrawFeeFactor;

        wantIsWCRO = _wantIsCRO;

        transferOwnership(CGOFarmAddress);

        _resetAllowances();
    }

    // HELPER FUNCTION

    function getUnderlyingTokenAmount() public view returns (uint256) {
        uint256 balanceAmount = ITToken(tTokenAddress).balanceOf(address(this));
        uint exchangeRate = ITToken(tTokenAddress).exchangeRateStored(); // decimals 18
        return balanceAmount.mul(exchangeRate).div(1e18);
    }

    /**
     * @dev Updates want locked in Venus after interest is accrued to this very block.
     * To be called before sensitive operations.
     */
    function updateBalance() public {
        // Check deposited underlying token of this address
        supplyBal = getUnderlyingTokenAmount();
        // Check current borrow balance
        borrowBal = ITToken(tTokenAddress).borrowBalanceStored(address(this));

        supplyBalTargeted = borrowBal.mul(1000).div(borrowRate);
        supplyBalMin = borrowBal.mul(1000).div(BORROW_RATE_MAX_HARD);
    }

    function wantLockedTotal() public view returns (uint256) {
        return wantLockedInHere().add(supplyBal).sub(borrowBal);
    }

    function wantLockedInHere() public view returns (uint256) {
        uint256 wantBalance = IERC20(wantAddress).balanceOf(address(this));
        if (!wantIsWCRO) {
            return wantBalance;
        }
        uint256 wcroBalance = address(this).balance;
        return wcroBalance.add(wantBalance); 
    }

    function _unwrapCRO() internal {
        // WCRO -> CRO
        uint256 wcroBal = IERC20(wcroAddress).balanceOf(address(this));
        if (wcroBal > 0) {
            IWCRO(wcroAddress).withdraw(wcroBal);
        }
    }

    function _wrapCRO() internal {
        // CRO -> WCRO
        uint256 croBal = address(this).balance;
        if (croBal > 0) {
            IWCRO(wcroAddress).deposit{value: croBal}(); // CRO -> WCRO
        }
    }


    // END HELPER FUNCTIOn
    // Main function
    function deposit(address _user, uint256 _wantAmount) public 
        onlyOwner
        nonReentrant
        whenNotPaused
        returns (uint256)
    {
        // Update balance
        updateBalance();

        uint256 sharesAdded = _wantAmount;
        if (wantLockedTotal() > 0 && sharesTotal > 0) {
            sharesAdded = _wantAmount
            .mul(sharesTotal)
            .div(wantLockedTotal())
            .mul(entranceFeeFactor)
            .div(entranceFeeFactorMax);
            
        }
        sharesTotal = sharesTotal.add(_wantAmount);

        IERC20(wantAddress).transferFrom(address(msg.sender), address(this), _wantAmount);

        // Deposit with leverage
        _farm(true);
        
        return sharesAdded;
        
    }

    function earn() external nonReentrant whenNotPaused {
        require(isCGOComp, "!isCGOComp");

        // Earn logic
        // Claim reward
        ITectonicCore(tectonicCore).claimTonic(address(this));

        uint256 earnedAmt = IERC20(earnedAddress).balanceOf(address(this));

        earnedAmt = distributeFees(earnedAmt);

        if (tonicAddress != wantAddress) {
            _safeSwap(
                uniRouterAddress,
                earnedAmt,
                slippageFactor,
                tonicToWantPath,
                address(this),
                block.timestamp.add(600)
            );
        }

        lastEarnBlock = block.number;

        _farm(false); // Supply wantToken without leverage, to cater for net -ve interest rates.
    }

    function withdraw(address _userAddress, uint256 _wantAmt)
        external
        onlyOwner
        nonReentrant
        returns (uint256)
    {
        uint256 sharesRemoved =
            _wantAmt.mul(sharesTotal).div(wantLockedTotal());
        if (sharesRemoved > sharesTotal) {
            sharesRemoved = sharesTotal;
        }
        sharesTotal = sharesTotal.sub(sharesRemoved);

        uint256 wantBal = IERC20(wantAddress).balanceOf(address(this));
        if (wantBal < _wantAmt) {
            _deleverage(_wantAmt.sub(wantBal));
            if (wantIsWCRO) {
                _wrapCRO(); // wrap CRO -> WCRO before sending it back to user
            }
            wantBal = IERC20(wantAddress).balanceOf(address(this));
        }

        if (wantBal < _wantAmt) {
            _wantAmt = wantBal;
        }

        if (withdrawFeeFactor < withdrawFeeFactorMax) {
            _wantAmt = _wantAmt.mul(withdrawFeeFactor).div(
                withdrawFeeFactorMax
            );
        }

        IERC20(wantAddress).safeTransfer(CGOFarmAddress, _wantAmt);

        _farm(false);

        return sharesRemoved;
    }

    function farm(bool _withLev) public nonReentrant {
        _farm(_withLev);
    }

    function _farm(bool _withLeverage) internal {
        if (wantIsWCRO) {
            _unwrapCRO(); // Unwrap WCRO -> CRO. Tectonic accepts CRO, not WCRO
        }

        _leverage(_withLeverage);

        // Update balance for??
        updateBalance();

        // Possible to still be over-velered after depositing
        

    }
    function distributeFees(uint256 _earnedAmt) internal virtual returns (uint256) {
        if (_earnedAmt > 0) {
            // Performance fee (anyone for compounding)
            if (callFee > 0) {
                uint256 fee = _earnedAmt.mul(callFee).div(callFeeMax);
                IERC20(earnedAddress).safeTransfer(msg.sender, fee);
                _earnedAmt = _earnedAmt.sub(fee);
            }
            // Controller fee
            if (controllerFee > 0) {
                uint256 fee =
                    _earnedAmt.mul(controllerFee).div(controllerFeeMax);
                IERC20(earnedAddress).safeTransfer(rewardsAddress, fee);
                _earnedAmt = _earnedAmt.sub(fee);
            }
        }

        return _earnedAmt;
    }

    function tectonicWantBalance() public view returns (uint256) {
        if (wantIsWCRO) {
            return address(this).balance;
        }
        return IERC20(address(wantAddress)).balanceOf(address(this));
    }

    function _safeSwap(
        address _uniRouterAddress,
        uint256 _amountIn,
        uint256 _slippageFactor,
        address[] memory _path,
        address _to,
        uint256 _deadline
    ) internal virtual {
        uint256[] memory amounts =
            IPancakeRouter02(_uniRouterAddress).getAmountsOut(_amountIn, _path);
        uint256 amountOut = amounts[amounts.length.sub(1)];

        IPancakeRouter02(_uniRouterAddress)
            .swapExactTokensForTokensSupportingFeeOnTransferTokens(
            _amountIn,
            amountOut.mul(_slippageFactor).div(1000),
            _path,
            _to,
            _deadline
        );
    }
    
    function setSettings(
        uint256 _entranceFeeFactor,
        uint256 _withdrawFeeFactor,
        uint256 _controllerFee,
        uint256 _slippageFactor
    ) public virtual onlyAllowGov {
        require(
            _entranceFeeFactor >= entranceFeeFactorLL,
            "_entranceFeeFactor too low"
        );
        require(
            _entranceFeeFactor <= entranceFeeFactorMax,
            "_entranceFeeFactor too high"
        );
        entranceFeeFactor = _entranceFeeFactor;

        require(
            _withdrawFeeFactor >= withdrawFeeFactorLL,
            "_withdrawFeeFactor too low"
        );
        require(
            _withdrawFeeFactor <= withdrawFeeFactorMax,
            "_withdrawFeeFactor too high"
        );
        withdrawFeeFactor = _withdrawFeeFactor;

        require(_controllerFee <= controllerFeeUL, "_controllerFee too high");
        controllerFee = _controllerFee;

        require(
            _slippageFactor <= slippageFactorUL,
            "_slippageFactor too high"
        );
        slippageFactor = _slippageFactor;

        emit SetSettings(
            _entranceFeeFactor,
            _withdrawFeeFactor,
            _controllerFee,
            _slippageFactor
        );
    }

    function setGov(address _govAddress) public virtual onlyAllowGov {
        govAddress = _govAddress;
        emit SetGov(_govAddress);
    }

    function setUniRouterAddress(address _uniRouterAddress)
        public
        virtual
        onlyAllowGov
    {
        uniRouterAddress = _uniRouterAddress;
        _resetAllowances();
        emit SetUniRouterAddress(_uniRouterAddress);
    }

    function setRewardsAddress(address _rewardsAddress)
        public
        virtual
        onlyAllowGov
    {
        rewardsAddress = _rewardsAddress;
        emit SetRewardsAddress(_rewardsAddress);
    }


    /**
    Lending Marketplace Function
     */
    /**
    Repeatedly supplies and borrows CRO following the configured {borrowRate} and {borrowDept}
     */

    
    function _leverage(bool _withLev) internal {
        if (!_withLev) {return;}
        
        for (uint256 i = 0; i < borrowDepth; i++) {
            uint256 amount = tectonicWantBalance();
            _supply(amount);
            amount = amount.mul(borrowRate).div(1000);
            _borrow(amount);
        }
        _supply(tectonicWantBalance()); // Supply remaining want that was last borrowed
    }

    function _supply(uint256 _amount) internal {
        
        if (wantIsWCRO) {
            ITCRO(tTokenAddress).mint{value: _amount}();
        }
        else {
            ITToken(tTokenAddress).mint(_amount);
        }
    }

    function _borrow(uint256 _amount) internal {
        ITToken(tTokenAddress).borrow(_amount);
    }

    function _removeSupply(uint256 _amount) internal {
        ITToken(tTokenAddress).redeemUnderlying(_amount);
    }

    function _repayBorrow(uint256 _amount) internal {
        if (wantIsWCRO) {
            ITCRO(tTokenAddress).repayBorrow{value: _amount}();
        } else {
            ITToken(tTokenAddress).repayBorrow(_amount);
        }
    }
    
    function deleverageUntilNotOverLevered() public {

        while (supplyBal > 0 && supplyBal <= supplyBalTargeted) {
            _deleverageOnce();
        }
    }

    function _deleverageOnce() internal {
        // Update balance
        updateBalance();

        if (supplyBal < 0) {return;}

        uint256 deleverAmt;
        uint256 deleverAmtMax = supplyBal.mul(deleverAmtFactorMax).div(10000); // 0.5%

         if (supplyBal <= supplyBalMin) {
            // If very over levered, delever 0.2% at a time
            deleverAmt = supplyBal.mul(deleverAmtFactorSafe).div(10000);
        } else if (supplyBal <= supplyBalTargeted) {
            deleverAmt = supplyBal.sub(supplyBalMin);
        } else {
            deleverAmt = supplyBal.sub(supplyBalTargeted);
        }

        if (deleverAmt > deleverAmtMax) {
            deleverAmt = deleverAmtMax;
        }

        _removeSupply(deleverAmt);

        if (wantIsWCRO) {
            _unwrapCRO(); // WCRO -> CRO
            _repayBorrow(address(this).balance);
        } else {
            _repayBorrow(wantLockedInHere());
        }

        updateBalance(); // Updates borrowBal & supplyBal & supplyBalTargeted & supplyBalMin
    }


    /**
     * @dev Incrementally alternates between paying part of the debt and withdrawing part of the supplied
     * collateral. Continues to do this untill all want tokens is withdrawn. For partial deleveraging,
     * this continues until at least _minAmt of want tokens is reached.
     */

    function _deleverage(uint256 _minAmt) internal {
        updateBalance(); // Updates borrowBal & supplyBal & supplyBalTargeted & supplyBalMin

        deleverageUntilNotOverLevered();

        if (wantIsWCRO) {
            _wrapCRO(); // CRO->WCRO
        }

        uint256 supplyRemovableMax = supplyBal.sub(supplyBalMin);
        if (_minAmt < supplyRemovableMax) {
            // If _minAmt to deleverage is less than supplyRemovableMax, just remove _minAmt
            supplyRemovableMax = _minAmt;
        }
        _removeSupply(supplyRemovableMax);

        uint256 wantBal = wantLockedInHere();

        // Recursively repay borrowed + remove more from supplied
        while (wantBal < borrowBal) {
            // If only partially deleveraging, when sufficiently deleveraged, do not repay anymore
            if (wantBal >= _minAmt) {
                return;
            }

            _repayBorrow(wantBal);

            updateBalance(); // Updates borrowBal & supplyBal & supplyBalTargeted & supplyBalMin

            supplyRemovableMax = supplyBal.sub(supplyBalMin);
            if (_minAmt < supplyRemovableMax) {
                // If _minAmt to deleverage is less than supplyRemovableMax, just remove _minAmt
                supplyRemovableMax = _minAmt;
            }
            _removeSupply(supplyRemovableMax);

            wantBal = wantLockedInHere();
        }

        // When sufficiently deleveraged, do not repay
        if (wantBal >= _minAmt) {
            return;
        }

        // Make a final repayment of borrowed
        _repayBorrow(borrowBal);

        // remove all supplied
        uint256 tTokenBal = IERC20(tTokenAddress).balanceOf(address(this));
        ITToken(tTokenAddress).redeem(tTokenBal);
    }

    /**
     * @dev Pauses the strat.
     */
    function pause() public onlyAllowGov {
        _pause();
    }

    /**
     * @dev Unpauses the strat.
     */
    function unpause() external onlyAllowGov {
        _unpause();
        _resetAllowances();
    }

    function _resetAllowances() internal {
        IERC20(tonicAddress).safeApprove(uniRouterAddress, uint256(0));
        IERC20(tonicAddress).safeIncreaseAllowance(
            uniRouterAddress,
            uint256(-1)
        );

        IERC20(wantAddress).safeApprove(uniRouterAddress, uint256(0));
        IERC20(wantAddress).safeIncreaseAllowance(
            uniRouterAddress,
            uint256(-1)
        );

        if (!wantIsWCRO) {
            IERC20(wantAddress).safeApprove(tTokenAddress, uint256(0));
            IERC20(wantAddress).safeIncreaseAllowance(
                tTokenAddress,
                uint256(-1)
            );
        }

    }

    function resetAllowances() public onlyAllowGov {
        _resetAllowances();
    }

    /**
     */
    // FOR TEST (TO BE DELETE)

    function leverage(bool _withLev) external {
        if (!_withLev) {return;}
        
        for (uint256 i = 0; i < borrowDepth; i++) {
            uint256 amount = tectonicWantBalance();
            _supply(amount);
            amount = amount.mul(borrowRate).div(1000);
            _borrow(amount);
        }
        _supply(tectonicWantBalance()); // Supply remaining want that was last borrowed
    }

    function supply(uint256 _amount) external {
        
        if (wantIsWCRO) {
            ITCRO(tTokenAddress).mint{value: _amount}();
        }
        else {
            ITToken(tTokenAddress).mint(_amount);
        }
    }

    function borrow(uint256 _amount) external {
        ITToken(tTokenAddress).borrow(_amount);
    }

    function removeSupply(uint256 _amount) external {
        ITToken(tTokenAddress).redeemUnderlying(_amount);
    }

    function repayBorrow(uint256 _amount) external {
        if (wantIsWCRO) {
            ITCRO(tTokenAddress).repayBorrow{value: _amount}();
        } else {
            ITToken(tTokenAddress).repayBorrow(_amount);
        }
    }

    function claimTonic() external {
        ITectonicCore(tectonicCore).claimTonic(address(this));
    }

    /**
     * @dev Incrementally alternates between paying part of the debt and withdrawing part of the supplied
     * collateral. Continues to do this untill all want tokens is withdrawn. For partial deleveraging,
     * this continues until at least _minAmt of want tokens is reached.
     */

    function deleverage(uint256 _minAmt) external {
        updateBalance(); // Updates borrowBal & supplyBal & supplyBalTargeted & supplyBalMin

        deleverageUntilNotOverLevered();

        if (wantIsWCRO) {
            _wrapCRO(); // CRO->WCRO
        }

        uint256 supplyRemovableMax = supplyBal.sub(supplyBalMin);
        if (_minAmt < supplyRemovableMax) {
            // If _minAmt to deleverage is less than supplyRemovableMax, just remove _minAmt
            supplyRemovableMax = _minAmt;
        }
        _removeSupply(supplyRemovableMax);

        uint256 wantBal = wantLockedInHere();

        // Recursively repay borrowed + remove more from supplied
        while (wantBal < borrowBal) {
            // If only partially deleveraging, when sufficiently deleveraged, do not repay anymore
            if (wantBal >= _minAmt) {
                return;
            }

            _repayBorrow(wantBal);

            updateBalance(); // Updates borrowBal & supplyBal & supplyBalTargeted & supplyBalMin

            supplyRemovableMax = supplyBal.sub(supplyBalMin);
            if (_minAmt < supplyRemovableMax) {
                // If _minAmt to deleverage is less than supplyRemovableMax, just remove _minAmt
                supplyRemovableMax = _minAmt;
            }
            _removeSupply(supplyRemovableMax);

            wantBal = wantLockedInHere();
        }

        // When sufficiently deleveraged, do not repay
        if (wantBal >= _minAmt) {
            return;
        }

        // Make a final repayment of borrowed
        _repayBorrow(borrowBal);

        // remove all supplied
        uint256 tTokenBal = IERC20(tTokenAddress).balanceOf(address(this));
        ITToken(tTokenAddress).redeem(tTokenBal);
    }

}

Contract ABI

[{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"},{"internalType":"address[]","name":"_earnedToCGOPath","type":"address[]"},{"internalType":"address[]","name":"_tonicToWantPath","type":"address[]"},{"internalType":"uint256","name":"_controllerFee","type":"uint256"},{"internalType":"uint256","name":"_entranceFeeFactor","type":"uint256"},{"internalType":"uint256","name":"_withdrawFeeFactor","type":"uint256"},{"internalType":"bool","name":"_wantIsCRO","type":"bool"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_callFee","type":"uint256"}],"name":"SetCallFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_govAddress","type":"address"}],"name":"SetGov","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_rewardsAddress","type":"address"}],"name":"SetRewardsAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_entranceFeeFactor","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_withdrawFeeFactor","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_controllerFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_slippageFactor","type":"uint256"}],"name":"SetSettings","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_uniRouterAddress","type":"address"}],"name":"SetUniRouterAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"BORROW_DEPTH_MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BORROW_RATE_MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BORROW_RATE_MAX_HARD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CGOAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CGOFarmAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FOR_TEST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"borrow","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"borrowBal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"borrowDepth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"borrowRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"callFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"callFeeMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimTonic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"controllerFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"controllerFeeMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"controllerFeeUL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deleverAmtFactorMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deleverAmtFactorMaxUL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deleverAmtFactorSafe","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deleverAmtFactorSafeUL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minAmt","type":"uint256"}],"name":"deleverage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deleverageUntilNotOverLevered","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_wantAmount","type":"uint256"}],"name":"deposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"earn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"earnedAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"earnedToCGOPath","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"entranceFeeFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"entranceFeeFactorLL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"entranceFeeFactorMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_withLev","type":"bool"}],"name":"farm","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getUnderlyingTokenAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"govAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isCGOComp","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastEarnBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_withLev","type":"bool"}],"name":"leverage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"onlyGov","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"removeSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"repayBorrow","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"resetAllowances","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardsAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_govAddress","type":"address"}],"name":"setGov","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardsAddress","type":"address"}],"name":"setRewardsAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_entranceFeeFactor","type":"uint256"},{"internalType":"uint256","name":"_withdrawFeeFactor","type":"uint256"},{"internalType":"uint256","name":"_controllerFee","type":"uint256"},{"internalType":"uint256","name":"_slippageFactor","type":"uint256"}],"name":"setSettings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_uniRouterAddress","type":"address"}],"name":"setUniRouterAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sharesTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"slippageFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"slippageFactorUL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"supply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"supplyBal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"supplyBalMin","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"supplyBalTargeted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tectonicCore","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tectonicWantBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tonicAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tonicToWantPath","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniRouterAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updateBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wantAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wantIsWCRO","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wantLockedInHere","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wantLockedTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wcroAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"},{"internalType":"uint256","name":"_wantAmt","type":"uint256"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFeeFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawFeeFactorLL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawFeeFactorMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60806040526002805463ff0000001962ffff00199091166201000017166301000000179055600680546001600160a01b0319908116735c7f8a570d578ed84e63fdfa7b1ee72deae1ae2317909155600060088190556009819055600d8190556032600e819055612710600f5560118054841673dd73dea10abc2bff99c60882ec5b2b81bb1dc5b2179081905560128054851673b3831584acb95ed9ccb0c11f677b5ad01deaeec0179055601380549094166001600160a01b03919091161790925561270660149081556015929092556016919091556103b66017556102496018556003601955601a819055601b819055601c819055601d553480156200010457600080fd5b506040516200402438038062004024833981810160405260e08110156200012a57600080fd5b81019080805160405193929190846401000000008211156200014b57600080fd5b9083019060208201858111156200016157600080fd5b82518660208202830111640100000000821117156200017f57600080fd5b82525081516020918201928201910280838360005b83811015620001ae57818101518382015260200162000194565b5050505090500160405260200180516040519392919084640100000000821115620001d857600080fd5b908301906020820185811115620001ee57600080fd5b82518660208202830111640100000000821117156200020c57600080fd5b82525081516020918201928201910280838360005b838110156200023b57818101518382015260200162000221565b50505050905001604052602001805160405193929190846401000000008211156200026557600080fd5b9083019060208201858111156200027b57600080fd5b82518660208202830111640100000000821117156200029957600080fd5b82525081516020918201928201910280838360005b83811015620002c8578181015183820152602001620002ae565b505050509190910160409081526020830151908301516060840151608090940151919550935090506000620002fc62000552565b600080546001600160a01b0319166001600160a01b03831690811782556040519293509160008051602062003fa4833981519152908290a350600180556002805460ff19169055865187906000906200035157fe5b6020026020010151600260046101000a8154816001600160a01b0302191690836001600160a01b03160217905550866001815181106200038d57fe5b6020026020010151600360006101000a8154816001600160a01b0302191690836001600160a01b0316021790555086600281518110620003c957fe5b6020026020010151600460006101000a8154816001600160a01b0302191690836001600160a01b03160217905550866003815181106200040557fe5b6020026020010151601060006101000a8154816001600160a01b0302191690836001600160a01b03160217905550866004815181106200044157fe5b6020026020010151600560006101000a8154816001600160a01b0302191690836001600160a01b03160217905550866005815181106200047d57fe5b602090810291909101810151600780546001600160a01b0319166001600160a01b039092169190911790558651620004bc91600c919089019062000ced565b508451620004d290600b90602088019062000ced565b5083600d8190555086600681518110620004e857fe5b6020908102919091010151600a80546001600160a01b0319166001600160a01b039283161790556014849055600f8390556002805461ff001916610100841515021790556003546200053b911662000556565b6200054562000654565b5050505050505062000d78565b3390565b6200056062000552565b6000546001600160a01b03908116911614620005c3576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166200060a5760405162461bcd60e51b815260040180806020018281038252602681526020018062003f586026913960400191505060405180910390fd5b600080546040516001600160a01b038085169392169160008051602062003fa483398151915291a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60075460115462000680916001600160a01b039182169116600062000771602090811b6200210417901c565b600754601154620006ad916001600160a01b03918216911660001962000895602090811b6200221717901c565b600754600554620006d9916001600160a01b039182169116600062000771602090811b6200210417901c565b60075460055462000706916001600160a01b03918216911660001962000895602090811b6200221717901c565b600254610100900460ff166200076f5760105460055462000742916001600160a01b039182169116600062000771602090811b6200210417901c565b6010546005546200076f916001600160a01b03918216911660001962000895602090811b6200221717901c565b565b801580620007fb575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015620007cb57600080fd5b505afa158015620007e0573d6000803e3d6000fd5b505050506040513d6020811015620007f757600080fd5b5051155b620008385760405162461bcd60e51b815260040180806020018281038252603681526020018062003fee6036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0390811663095ea7b360e01b17909152620008909185916200099e16565b505050565b60006200093c82856001600160a01b031663dd62ed3e30876040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b158015620008fb57600080fd5b505afa15801562000910573d6000803e3d6000fd5b505050506040513d60208110156200092757600080fd5b50519062000a5a602090811b6200230817901c565b604080516001600160a01b038616602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0390811663095ea7b360e01b1790915291925062000998918691906200099e16565b50505050565b6060620009fa826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031662000abc60201b6200236b179092919060201c565b805190915015620008905780806020019051602081101562000a1b57600080fd5b5051620008905760405162461bcd60e51b815260040180806020018281038252602a81526020018062003fc4602a913960400191505060405180910390fd5b60008282018381101562000ab5576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b606062000acd848460008562000ad5565b949350505050565b60608247101562000b185760405162461bcd60e51b815260040180806020018281038252602681526020018062003f7e6026913960400191505060405180910390fd5b62000b238562000c3d565b62000b75576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831062000bb65780518252601f19909201916020918201910162000b95565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811462000c1a576040519150601f19603f3d011682016040523d82523d6000602084013e62000c1f565b606091505b50909250905062000c3282828662000c43565b979650505050505050565b3b151590565b6060831562000c5457508162000ab5565b82511562000c655782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101562000cb157818101518382015260200162000c97565b50505050905090810190601f16801562000cdf5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b82805482825590600052602060002090810192821562000d45579160200282015b8281111562000d4557825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000d0e565b5062000d5392915062000d57565b5090565b5b8082111562000d535780546001600160a01b031916815560010162000d58565b6131d08062000d886000396000f3fe608060405234801561001057600080fd5b50600436106104335760003560e01c806390321e1a11610236578063c5ebeaec1161013b578063e7198474116100c3578063ee50dc3411610087578063ee50dc34146104d9578063f151dd70146107e2578063f2fde38b146107ea578063f3fef3a314610810578063ffbd3b1f1461083c57610433565b8063e719847414610790578063e7a0367914610798578063e7a35718146107a0578063ecf83b3d146107bd578063ed50b941146107da57610433565b8063cf9561bc1161010a578063cf9561bc14610733578063cfad57a214610752578063d389800f14610778578063d5e9ab8b14610780578063da49c7d91461078857610433565b8063c5ebeaec146106fe578063c8daa30a1461071b578063c914b43714610723578063cbdbe6001461072b57610433565b8063a755201b116101be578063b4896ecc1161018d578063b4896ecc146106de578063b74cd242146106e6578063c0973eed146106ee578063c16a61ec146106f6578063c302a4d0146105d857610433565b8063a755201b146106b1578063a9559dd7146106ce578063aced9a80146106d6578063b336e988146104d957610433565b806397a2decf1161020557806397a2decf1461064d5780639e6b2ded146106555780639fdabec21461065d578063a086f0911461067a578063a4302044146106a957610433565b806390321e1a14610616578063909153d61461061e578063937901131461063d578063976843171461064557610433565b806346008a071161033c578063715018a6116102c4578063866b201811610293578063866b2018146105d857806386b6d4f3146104ad5780638837097e146105e05780638906758d146105e85780638da5cb5b1461060e57610433565b8063715018a6146105b857806378bc8507146105c05780638456cb59146105c857806385f02dd6146105d057610433565b8063624e260f1161030b578063624e260f1461059857806367057b6c146104d957806368f54162146105a0578063693a090b146105a85780636a69e409146105b057610433565b806346008a071461053657806347e7ef241461053e5780635c975abb1461056a5780635da79d631461057257610433565b80632717eff3116103bf5780633f4ba83a1161038e5780633f4ba83a1461050e5780633f7bfb1e146105165780634215e5711461051e57806342da4eb31461052657806344a3955e1461052e57610433565b80632717eff3146104d95780632e813197146104e15780633505b09f146104e957806335403023146104f157610433565b80630fa4e01e116104065780630fa4e01e146104955780631334903f1461049d57806314b5f8d1146104a55780631a376620146104ad5780631e7e49ba146104b557610433565b8063061c7d48146104385780630790b57b146104525780630daef3211461045c5780630e75270214610478575b600080fd5b610440610844565b60408051918252519081900360200190f35b61045a61084a565b005b610464610874565b604080519115158252519081900360200190f35b61045a6004803603602081101561048e57600080fd5b5035610883565b61044061097f565b610440610985565b61044061098b565b610440610991565b6104bd610997565b604080516001600160a01b039092168252519081900360200190f35b6104406109a6565b6104bd6109ac565b61045a6109bb565b61045a6004803603602081101561050757600080fd5b5035610a12565b61045a610ac0565b6104bd610b17565b610440610b26565b610440610b2b565b610440610b53565b6104bd610b59565b6104406004803603604081101561055457600080fd5b506001600160a01b038135169060200135610b6f565b610464610d66565b61045a6004803603602081101561058857600080fd5b50356001600160a01b0316610d6f565b610440610e20565b610440610e26565b6104bd610e2c565b6104bd610e3b565b61045a610e4a565b610464610eec565b61045a610efa565b610440610f51565b610440610f57565b6104bd610f5d565b61045a600480360360208110156105fe57600080fd5b50356001600160a01b0316610f6c565b6104bd61100f565b61044061101e565b61045a6004803603602081101561063457600080fd5b50351515611024565b610440611090565b610440611137565b61046461113d565b61044061114d565b61045a6004803603602081101561067357600080fd5b5035611153565b61045a6004803603608081101561069057600080fd5b5080359060208101359060408101359060600135611328565b6104406115e2565b6104bd600480360360208110156106c757600080fd5b50356115e8565b61045a61160f565b6104406116ca565b6104406116d0565b6104406116d5565b6104bd6116db565b6104bd6116ea565b61045a6004803603602081101561071457600080fd5b50356116f9565b610440611747565b61044061174d565b610440611753565b61045a6004803603602081101561074957600080fd5b5035151561185e565b61045a6004803603602081101561076857600080fd5b50356001600160a01b03166118b9565b61045a611969565b610440611c01565b610440611c97565b6104bd611c9d565b6104bd611cac565b61045a600480360360208110156107b657600080fd5b5035611cbb565b6104bd600480360360208110156107d357600080fd5b5035611d09565b61045a611d16565b610440611d91565b61045a6004803603602081101561080057600080fd5b50356001600160a01b0316611d97565b6104406004803603604081101561082657600080fd5b506001600160a01b038135169060200135611e8f565b6104406120fe565b61015e81565b6000601a541180156108605750601c54601a5411155b156108725761086d612384565b61084a565b565b60025462010000900460ff1681565b600254610100900460ff161561090157601060009054906101000a90046001600160a01b03166001600160a01b0316634e4d9fea826040518263ffffffff1660e01b81526004016000604051808303818588803b1580156108e357600080fd5b505af11580156108f7573d6000803e3d6000fd5b505050505061097c565b6010546040805163073a938160e11b81526004810184905290516001600160a01b0390921691630e752702916024808201926020929091908290030181600087803b15801561094f57600080fd5b505af1158015610963573d6000803e3d6000fd5b505050506040513d602081101561097957600080fd5b50505b50565b60095481565b60145481565b601d5481565b6101f481565b6004546001600160a01b031681565b61271081565b6011546001600160a01b031681565b600254600160201b90046001600160a01b03163314610a0a576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b61087261245c565b600254610100900460ff1615610a7257601060009054906101000a90046001600160a01b03166001600160a01b0316631249c58b826040518263ffffffff1660e01b81526004016000604051808303818588803b1580156108e357600080fd5b6010546040805163140e25ad60e31b81526004810184905290516001600160a01b039092169163a0712d68916024808201926020929091908290030181600087803b15801561094f57600080fd5b600254600160201b90046001600160a01b03163314610b0f576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b610a0a612522565b6010546001600160a01b031681565b600081565b6000610b4d601b54610b47601a54610b41611090565b90612308565b906125c0565b90505b90565b60085481565b600254600160201b90046001600160a01b031681565b6000610b79612602565b6000546001600160a01b03908116911614610bc9576040805162461bcd60e51b8152602060048201819052602482015260008051602061311b833981519152604482015290519081900360640190fd5b60026001541415610c0f576040805162461bcd60e51b815260206004820152601f602482015260008051602061308e833981519152604482015290519081900360640190fd5b600260018190555460ff1615610c5f576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b610c6761160f565b816000610c72610b2b565b118015610c8157506000600854115b15610cba57610cb7612710610cab601454610cb1610c9d610b2b565b600854610cab908a90612606565b9061265f565b90612606565b90505b600854610cc79084612308565b600855600554604080516323b872dd60e01b81523360048201523060248201526044810186905290516001600160a01b03909216916323b872dd916064808201926020929091908290030181600087803b158015610d2457600080fd5b505af1158015610d38573d6000803e3d6000fd5b505050506040513d6020811015610d4e57600080fd5b50610d5b905060016126a1565b600180559392505050565b60025460ff1690565b600254600160201b90046001600160a01b03163314610dbe576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b600780546001600160a01b0319166001600160a01b038316179055610de161245c565b604080516001600160a01b038316815290517f384f1dcb79da4071839c471d7c81884a43fb946a527f3661fdee5904adc8f6579181900360200190a150565b61025381565b600f5481565b6007546001600160a01b031681565b6003546001600160a01b031681565b610e52612602565b6000546001600160a01b03908116911614610ea2576040805162461bcd60e51b8152602060048201819052602482015260008051602061311b833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b600254610100900460ff1681565b600254600160201b90046001600160a01b03163314610f49576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b6108726126ca565b600d5481565b6126de81565b6006546001600160a01b031681565b600254600160201b90046001600160a01b03163314610fbb576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b600a80546001600160a01b0383166001600160a01b0319909116811790915560408051918252517fa69f1931be99336e049905baa11d21ed44204d7686e46b4344404d80d47c29889181900360200190a150565b6000546001600160a01b031690565b600e5481565b8061102e5761097c565b60005b60195481101561107f576000611045611c01565b905061105081610a12565b61106b6103e8610cab6018548461260690919063ffffffff16565b9050611076816116f9565b50600101611031565b5061097c61108b611c01565b610a12565b600554604080516370a0823160e01b8152306004820152905160009283926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b1580156110e057600080fd5b505afa1580156110f4573d6000803e3d6000fd5b505050506040513d602081101561110a57600080fd5b5051600254909150610100900460ff16611125579050610b50565b476111308183612308565b9250505090565b60195481565b6002546301000000900460ff1681565b61025781565b61115b61160f565b61116361084a565b600254610100900460ff161561117b5761117b61274b565b6000611194601d54601a546125c090919063ffffffff16565b9050808210156111a15750805b6111aa81611cbb565b60006111b4611090565b90505b601b54811015611215578281106111cf57505061097c565b6111d881610883565b6111e061160f565b601d54601a546111ef916125c0565b9150818310156111fd578291505b61120682611cbb565b61120e611090565b90506111b7565b82811061122357505061097c565b61122e601b54610883565b601054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561127957600080fd5b505afa15801561128d573d6000803e3d6000fd5b505050506040513d60208110156112a357600080fd5b50516010546040805163db006a7560e01b81526004810184905290519293506001600160a01b039091169163db006a75916024808201926020929091908290030181600087803b1580156112f657600080fd5b505af115801561130a573d6000803e3d6000fd5b505050506040513d602081101561132057600080fd5b505050505050565b600254600160201b90046001600160a01b03163314611377576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b6126de8410156113ce576040805162461bcd60e51b815260206004820152601a60248201527f5f656e7472616e6365466565466163746f7220746f6f206c6f77000000000000604482015290519081900360640190fd5b612710841115611425576040805162461bcd60e51b815260206004820152601b60248201527f5f656e7472616e6365466565466163746f7220746f6f20686967680000000000604482015290519081900360640190fd5b60148490556126de831015611481576040805162461bcd60e51b815260206004820152601a60248201527f5f7769746864726177466565466163746f7220746f6f206c6f77000000000000604482015290519081900360640190fd5b6127108311156114d8576040805162461bcd60e51b815260206004820152601b60248201527f5f7769746864726177466565466163746f7220746f6f20686967680000000000604482015290519081900360640190fd5b600f83905561015e821115611534576040805162461bcd60e51b815260206004820152601760248201527f5f636f6e74726f6c6c657246656520746f6f2068696768000000000000000000604482015290519081900360640190fd5b600d8290556103e3811115611590576040805162461bcd60e51b815260206004820152601860248201527f5f736c697070616765466163746f7220746f6f20686967680000000000000000604482015290519081900360640190fd5b601781905560408051858152602081018590528082018490526060810183905290517fd9968429114ac80bd16723a205e45e46393aefba1f08fb7bdffbad9ef60946089181900360800190a150505050565b601c5481565b600c81815481106115f557fe5b6000918252602090912001546001600160a01b0316905081565b611617611753565b601a55601054604080516395dd919360e01b815230600482015290516001600160a01b03909216916395dd9193916024808201926020929091908290030181600087803b15801561166757600080fd5b505af115801561167b573d6000803e3d6000fd5b505050506040513d602081101561169157600080fd5b5051601b8190556018546116ab91610cab906103e8612606565b601c55601b546116c59061025790610cab906103e8612606565b601d55565b601b5481565b600681565b6103e381565b600a546001600160a01b031681565b6012546001600160a01b031681565b6010546040805163317afabb60e21b81526004810184905290516001600160a01b039092169163c5ebeaec916024808201926020929091908290030181600087803b15801561094f57600080fd5b60165481565b60185481565b601054604080516370a0823160e01b8152306004820152905160009283926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b1580156117a357600080fd5b505afa1580156117b7573d6000803e3d6000fd5b505050506040513d60208110156117cd57600080fd5b50516010546040805163182df0f560e01b815290519293506000926001600160a01b039092169163182df0f591600480820192602092909190829003018186803b15801561181a57600080fd5b505afa15801561182e573d6000803e3d6000fd5b505050506040513d602081101561184457600080fd5b50519050611130670de0b6b3a7640000610cab8484612606565b600260015414156118a4576040805162461bcd60e51b815260206004820152601f602482015260008051602061308e833981519152604482015290519081900360640190fd5b60026001556118b2816126a1565b5060018055565b600254600160201b90046001600160a01b03163314611908576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b600280546001600160a01b038316600160201b8102640100000000600160c01b03199092169190911790915560408051918252517f91a8c1cc2d4a3bb60738481947a00cbb9899c822916694cf8bb1d68172fdcd549181900360200190a150565b600260015414156119af576040805162461bcd60e51b815260206004820152601f602482015260008051602061308e833981519152604482015290519081900360640190fd5b600260018190555460ff16156119ff576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6002546301000000900460ff16611a4a576040805162461bcd60e51b815260206004820152600a602482015269021697343474f436f6d760b41b604482015290519081900360640190fd5b601254604080516363eb0a4d60e01b815230600482015290516001600160a01b03909216916363eb0a4d916024808201926020929091908290030181600087803b158015611a9757600080fd5b505af1158015611aab573d6000803e3d6000fd5b505050506040513d6020811015611ac157600080fd5b5050601354604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611b0e57600080fd5b505afa158015611b22573d6000803e3d6000fd5b505050506040513d6020811015611b3857600080fd5b50519050611b45816127b6565b6005546011549192506001600160a01b03918216911614611bf357611bf3600760009054906101000a90046001600160a01b031682601754600b805480602002602001604051908101604052809291908181526020018280548015611bd357602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611bb5575b505050505030611bee6102584261230890919063ffffffff16565b61285e565b436009556118b260006126a1565b600254600090610100900460ff1615611c1b575047610b50565b600554604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015611c6657600080fd5b505afa158015611c7a573d6000803e3d6000fd5b505050506040513d6020811015611c9057600080fd5b5051905090565b60155481565b6013546001600160a01b031681565b6005546001600160a01b031681565b6010546040805163852a12e360e01b81526004810184905290516001600160a01b039092169163852a12e3916024808201926020929091908290030181600087803b15801561094f57600080fd5b600b81815481106115f557fe5b601254604080516363eb0a4d60e01b815230600482015290516001600160a01b03909216916363eb0a4d916024808201926020929091908290030181600087803b158015611d6357600080fd5b505af1158015611d77573d6000803e3d6000fd5b505050506040513d6020811015611d8d57600080fd5b5050565b601a5481565b611d9f612602565b6000546001600160a01b03908116911614611def576040805162461bcd60e51b8152602060048201819052602482015260008051602061311b833981519152604482015290519081900360640190fd5b6001600160a01b038116611e345760405162461bcd60e51b81526004018080602001828103825260268152602001806130ae6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000611e99612602565b6000546001600160a01b03908116911614611ee9576040805162461bcd60e51b8152602060048201819052602482015260008051602061311b833981519152604482015290519081900360640190fd5b60026001541415611f2f576040805162461bcd60e51b815260206004820152601f602482015260008051602061308e833981519152604482015290519081900360640190fd5b60026001556000611f4f611f41610b2b565b600854610cab908690612606565b9050600854811115611f6057506008545b600854611f6d90826125c0565b600855600554604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611fbb57600080fd5b505afa158015611fcf573d6000803e3d6000fd5b505050506040513d6020811015611fe557600080fd5b505190508381101561209557612003611ffe85836125c0565b612ac6565b600254610100900460ff161561201b5761201b61274b565b600554604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561206657600080fd5b505afa15801561207a573d6000803e3d6000fd5b505050506040513d602081101561209057600080fd5b505190505b838110156120a1578093505b612710600f5410156120cb576120c8612710610cab600f548761260690919063ffffffff16565b93505b6003546005546120e8916001600160a01b03918216911686612b88565b6120f260006126a1565b50600180559392505050565b60175481565b80158061218a575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b15801561215c57600080fd5b505afa158015612170573d6000803e3d6000fd5b505050506040513d602081101561218657600080fd5b5051155b6121c55760405162461bcd60e51b81526004018080602001828103825260368152602001806131656036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610979908490612bd6565b60006122ad82856001600160a01b031663dd62ed3e30876040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b15801561227b57600080fd5b505afa15801561228f573d6000803e3d6000fd5b505050506040513d60208110156122a557600080fd5b505190612308565b604080516001600160a01b038616602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052909150612302908590612bd6565b50505050565b600082820183811015612362576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b606061237a8484600085612c87565b90505b9392505050565b61238c61160f565b6000806123ac612710610cab601554601a5461260690919063ffffffff16565b9050601d54601a54116123dd576123d6612710610cab601654601a5461260690919063ffffffff16565b9150612409565b601c54601a54116123f757601d54601a546123d6916125c0565b601c54601a54612406916125c0565b91505b80821115612415578091505b61241e82611cbb565b600254610100900460ff161561244457612436612de3565b61243f47610883565b612454565b61245461244f611090565b610883565b611d8d61160f565b60075460115461247a916001600160a01b0391821691166000612104565b600754601154612499916001600160a01b039182169116600019612217565b6007546005546124b7916001600160a01b0391821691166000612104565b6007546005546124d6916001600160a01b039182169116600019612217565b600254610100900460ff1661087257601054600554612503916001600160a01b0391821691166000612104565b601054600554610872916001600160a01b039182169116600019612217565b60025460ff16612570576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6002805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6125a3612602565b604080516001600160a01b039092168252519081900360200190a1565b600061236283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612eca565b3390565b60008261261557506000612365565b8282028284828161262257fe5b04146123625760405162461bcd60e51b81526004018080602001828103825260218152602001806130fa6021913960400191505060405180910390fd5b600061236283836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612f61565b600254610100900460ff16156126b9576126b9612de3565b6126c281612fc6565b61097c61160f565b60025460ff1615612715576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6002805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586125a3612602565b47801561097c57600660009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b1580156127a257600080fd5b505af1158015611320573d6000803e3d6000fd5b6000811561285a57600e541561280b5760006127e3612710610cab600e548661260690919063ffffffff16565b6013549091506127fd906001600160a01b03163383612b88565b61280783826125c0565b9250505b600d541561285a576000612830612710610cab600d548661260690919063ffffffff16565b600a54601354919250612850916001600160a01b03908116911683612b88565b61113083826125c0565b5090565b6040805163d06ca61f60e01b815260048101878152602482019283528551604483015285516060936001600160a01b038b169363d06ca61f938b938a939192606401906020808601910280838360005b838110156128c65781810151838201526020016128ae565b50505050905001935050505060006040518083038186803b1580156128ea57600080fd5b505afa1580156128fe573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561292757600080fd5b8101908080516040519392919084600160201b82111561294657600080fd5b90830190602082018581111561295b57600080fd5b82518660208202830111600160201b8211171561297757600080fd5b82525081516020918201928201910280838360005b838110156129a457818101518382015260200161298c565b5050505090500160405250505090506000816129cb600184516125c090919063ffffffff16565b815181106129d557fe5b60200260200101519050876001600160a01b0316635c11d79588612a086103e8610cab8b8761260690919063ffffffff16565b8888886040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019060200280838360005b83811015612a7b578181015183820152602001612a63565b505050509050019650505050505050600060405180830381600087803b158015612aa457600080fd5b505af1158015612ab8573d6000803e3d6000fd5b505050505050505050505050565b612ace61160f565b612ad661084a565b600254610100900460ff1615612aee57612aee61274b565b6000612b07601d54601a546125c090919063ffffffff16565b905080821015612b145750805b612b1d81611cbb565b6000612b27611090565b90505b601b5481101561121557828110612b4257505061097c565b612b4b81610883565b612b5361160f565b601d54601a54612b62916125c0565b915081831015612b70578291505b612b7982611cbb565b612b81611090565b9050612b2a565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526109799084905b6060612c2b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661236b9092919063ffffffff16565b80519091501561097957808060200190516020811015612c4a57600080fd5b50516109795760405162461bcd60e51b815260040180806020018281038252602a81526020018061313b602a913960400191505060405180910390fd5b606082471015612cc85760405162461bcd60e51b81526004018080602001828103825260268152602001806130d46026913960400191505060405180910390fd5b612cd185613021565b612d22576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310612d615780518252601f199092019160209182019101612d42565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612dc3576040519150601f19603f3d011682016040523d82523d6000602084013e612dc8565b606091505b5091509150612dd8828286613027565b979650505050505050565b600654604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015612e2e57600080fd5b505afa158015612e42573d6000803e3d6000fd5b505050506040513d6020811015612e5857600080fd5b50519050801561097c5760065460408051632e1a7d4d60e01b81526004810184905290516001600160a01b0390921691632e1a7d4d9160248082019260009290919082900301818387803b158015612eaf57600080fd5b505af1158015612ec3573d6000803e3d6000fd5b5050505050565b60008184841115612f595760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612f1e578181015183820152602001612f06565b50505050905090810190601f168015612f4b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183612fb05760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315612f1e578181015183820152602001612f06565b506000838581612fbc57fe5b0495945050505050565b80612fd05761097c565b60005b60195481101561107f576000612fe7611c01565b9050612ff281610a12565b61300d6103e8610cab6018548461260690919063ffffffff16565b9050613018816116f9565b50600101612fd3565b3b151590565b6060831561303657508161237d565b8251156130465782518084602001fd5b60405162461bcd60e51b8152602060048201818152845160248401528451859391928392604401919085019080838360008315612f1e578181015183820152602001612f0656fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c004f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a26469706673582212204a69b70ad9edc413586fba11ee01984f891fa31b03277d6f952008ecb98df7a864736f6c634300060c00334f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000260000000000000000000000000000000000000000000000000000000000000012c000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000027100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000700000000000000000000000046282adbb4d3487a93f8a03964f8ced016a1a3b0000000000000000000000000587e0321dfa8d24dcb0a48bc9a34c8807ce6ede500000000000000000000000008e4743c4dc95825f8cfc7a4fdeeaff9ed14befa000000000000000000000000b3bbf1be947b245aef26e3b6a9d777d7703f4c8e000000000000000000000000c21223249ca28397b4b6541dffaecc539bff0c59000000000000000000000000145863eb42cf62847a6ca784e6416c1682b1b2ae0000000000000000000000004b63b8f35f646f0494fb4229eb1f245ef8934f9600000000000000000000000000000000000000000000000000000000000000030000000000000000000000006f715158d4b1468528da002f5941c72fe41595200000000000000000000000005c7f8a570d578ed84e63fdfa7b1ee72deae1ae2300000000000000000000000008e4743c4dc95825f8cfc7a4fdeeaff9ed14befa0000000000000000000000000000000000000000000000000000000000000003000000000000000000000000dd73dea10abc2bff99c60882ec5b2b81bb1dc5b20000000000000000000000005c7f8a570d578ed84e63fdfa7b1ee72deae1ae23000000000000000000000000c21223249ca28397b4b6541dffaecc539bff0c59

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

00000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000260000000000000000000000000000000000000000000000000000000000000012c000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000027100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000700000000000000000000000046282adbb4d3487a93f8a03964f8ced016a1a3b0000000000000000000000000587e0321dfa8d24dcb0a48bc9a34c8807ce6ede500000000000000000000000008e4743c4dc95825f8cfc7a4fdeeaff9ed14befa000000000000000000000000b3bbf1be947b245aef26e3b6a9d777d7703f4c8e000000000000000000000000c21223249ca28397b4b6541dffaecc539bff0c59000000000000000000000000145863eb42cf62847a6ca784e6416c1682b1b2ae0000000000000000000000004b63b8f35f646f0494fb4229eb1f245ef8934f9600000000000000000000000000000000000000000000000000000000000000030000000000000000000000006f715158d4b1468528da002f5941c72fe41595200000000000000000000000005c7f8a570d578ed84e63fdfa7b1ee72deae1ae2300000000000000000000000008e4743c4dc95825f8cfc7a4fdeeaff9ed14befa0000000000000000000000000000000000000000000000000000000000000003000000000000000000000000dd73dea10abc2bff99c60882ec5b2b81bb1dc5b20000000000000000000000005c7f8a570d578ed84e63fdfa7b1ee72deae1ae23000000000000000000000000c21223249ca28397b4b6541dffaecc539bff0c59

-----Decoded View---------------
Arg [0] : _addresses (address[]): 0x46282adbb4d3487a93f8a03964f8ced016a1a3b0,0x587e0321dfa8d24dcb0a48bc9a34c8807ce6ede5,0x08e4743c4dc95825f8cfc7a4fdeeaff9ed14befa,0xb3bbf1be947b245aef26e3b6a9d777d7703f4c8e,0xc21223249ca28397b4b6541dffaecc539bff0c59,0x145863eb42cf62847a6ca784e6416c1682b1b2ae,0x4b63b8f35f646f0494fb4229eb1f245ef8934f96
Arg [1] : _earnedToCGOPath (address[]): 0x6f715158d4b1468528da002f5941c72fe4159520,0x5c7f8a570d578ed84e63fdfa7b1ee72deae1ae23,0x08e4743c4dc95825f8cfc7a4fdeeaff9ed14befa
Arg [2] : _tonicToWantPath (address[]): 0xdd73dea10abc2bff99c60882ec5b2b81bb1dc5b2,0x5c7f8a570d578ed84e63fdfa7b1ee72deae1ae23,0xc21223249ca28397b4b6541dffaecc539bff0c59
Arg [3] : _controllerFee (uint256): 300
Arg [4] : _entranceFeeFactor (uint256): 10000
Arg [5] : _withdrawFeeFactor (uint256): 10000
Arg [6] : _wantIsCRO (bool): False

-----Encoded View---------------
23 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000260
Arg [3] : 000000000000000000000000000000000000000000000000000000000000012c
Arg [4] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [5] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [8] : 00000000000000000000000046282adbb4d3487a93f8a03964f8ced016a1a3b0
Arg [9] : 000000000000000000000000587e0321dfa8d24dcb0a48bc9a34c8807ce6ede5
Arg [10] : 00000000000000000000000008e4743c4dc95825f8cfc7a4fdeeaff9ed14befa
Arg [11] : 000000000000000000000000b3bbf1be947b245aef26e3b6a9d777d7703f4c8e
Arg [12] : 000000000000000000000000c21223249ca28397b4b6541dffaecc539bff0c59
Arg [13] : 000000000000000000000000145863eb42cf62847a6ca784e6416c1682b1b2ae
Arg [14] : 0000000000000000000000004b63b8f35f646f0494fb4229eb1f245ef8934f96
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [16] : 0000000000000000000000006f715158d4b1468528da002f5941c72fe4159520
Arg [17] : 0000000000000000000000005c7f8a570d578ed84e63fdfa7b1ee72deae1ae23
Arg [18] : 00000000000000000000000008e4743c4dc95825f8cfc7a4fdeeaff9ed14befa
Arg [19] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [20] : 000000000000000000000000dd73dea10abc2bff99c60882ec5b2b81bb1dc5b2
Arg [21] : 0000000000000000000000005c7f8a570d578ed84e63fdfa7b1ee72deae1ae23
Arg [22] : 000000000000000000000000c21223249ca28397b4b6541dffaecc539bff0c59


Deployed ByteCode Sourcemap

44940:22244:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45929:45;;;:::i;:::-;;;;;;;;;;;;;;;;59356:168;;;:::i;:::-;;45224:26;;;:::i;:::-;;;;;;;;;;;;;;;;;;64724:234;;;;;;;;;;;;;;;;-1:-1:-1;64724:234:0;;:::i;45646:32::-;;;:::i;46800:39::-;;;:::i;47705:31::-;;;:::i;47324:52::-;;;:::i;45393:25::-;;;:::i;:::-;;;;-1:-1:-1;;;;;45393:25:0;;;;;;;;;;;;;;45862:48;;;:::i;46426:72::-;;;:::i;63684:84::-;;;:::i;64252:234::-;;;;;;;;;;;;;;;;-1:-1:-1;64252:234:0;;:::i;62887:99::-;;;:::i;46391:28::-;;;:::i;45111:36::-;;;:::i;50236:131::-;;;:::i;45609:30::-;;;:::i;45294:25::-;;;:::i;51214:785::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;51214:785:0;;;;;;;;:::i;42367:78::-;;;:::i;57550:254::-;;;;;;;;;;;;;;;;-1:-1:-1;57550:254:0;-1:-1:-1;;;;;57550:254:0;;:::i;46638:45::-;;;:::i;46088:40::-;;;:::i;45569:31::-;;;:::i;45357:29::-;;;:::i;33222:148::-;;;:::i;45187:30::-;;;:::i;62764:64::-;;;:::i;45823:32::-;;;:::i;46230:50::-;;;:::i;45491:71::-;;;:::i;57812:213::-;;;;;;;;;;;;;;;;-1:-1:-1;57812:213:0;-1:-1:-1;;;;;57812:213:0;;:::i;32580:79::-;;;:::i;45983:27::-;;;:::i;63828:416::-;;;;;;;;;;;;;;;;-1:-1:-1;63828:416:0;;;;:::i;50375:316::-;;;:::i;47553:30::-;;;:::i;45257:28::-;;;:::i;46690:50::-;;;:::i;65381:1798::-;;;;;;;;;;;;;;;;-1:-1:-1;65381:1798:0;;:::i;56117:1274::-;;;;;;;;;;;;;;;;-1:-1:-1;56117:1274:0;;;;;;;;;;;;;;;;;:::i;47662:36::-;;;:::i;45764:32::-;;;;;;;;;;;;;;;;-1:-1:-1;45764:32:0;;:::i;49818:410::-;;;:::i;47627:28::-;;;:::i;46747:44::-;;;:::i;47460:46::-;;;:::i;45685:29::-;;;:::i;46505:72::-;;;:::i;64494:99::-;;;;;;;;;;;;;;;;-1:-1:-1;64494:99:0;;:::i;47221:40::-;;;:::i;47515:31::-;;;:::i;49350:304::-;;;:::i;53976:83::-;;;;;;;;;;;;;;;;-1:-1:-1;53976:83:0;;;;:::i;57399:143::-;;;;;;;;;;;;;;;;-1:-1:-1;57399:143:0;-1:-1:-1;;;;;57399:143:0;;:::i;52007:788::-;;;:::i;55197:221::-;;;:::i;47060:39::-;;;:::i;46584:43::-;;;:::i;45425:26::-;;;:::i;64601:115::-;;;;;;;;;;;;;;;;-1:-1:-1;64601:115:0;;:::i;45725:32::-;;;;;;;;;;;;;;;;-1:-1:-1;45725:32:0;;:::i;64966:103::-;;;:::i;47592:28::-;;;:::i;33525:281::-;;;;;;;;;;;;;;;;-1:-1:-1;33525:281:0;-1:-1:-1;;;;;33525:281:0;;:::i;52803:1165::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;52803:1165:0;;;;;;;;:::i;47385:35::-;;;:::i;45929:45::-;45971:3;45929:45;:::o;59356:168::-;59436:1;59424:9;;:13;:47;;;;;59454:17;;59441:9;;:30;;59424:47;59417:100;;;59488:17;:15;:17::i;:::-;59417:100;;;59356:168::o;45224:26::-;;;;;;;;;:::o;64724:234::-;64786:10;;;;;;;64782:169;;;64819:13;;;;;;;;;-1:-1:-1;;;;;64819:13:0;-1:-1:-1;;;;;64813:32:0;;64853:7;64813:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64782:169;;;64904:13;;64896:43;;;-1:-1:-1;;;64896:43:0;;;;;;;;;;-1:-1:-1;;;;;64904:13:0;;;;64896:34;;:43;;;;;;;;;;;;;;;64904:13;;64896:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;64782:169:0;64724:234;:::o;45646:32::-;;;;:::o;46800:39::-;;;;:::o;47705:31::-;;;;:::o;47324:52::-;47373:3;47324:52;:::o;45393:25::-;;;-1:-1:-1;;;;;45393:25:0;;:::o;45862:48::-;45905:5;45862:48;:::o;46426:72::-;;;-1:-1:-1;;;;;46426:72:0;;:::o;63684:84::-;48175:10;;-1:-1:-1;;;48175:10:0;;-1:-1:-1;;;;;48175:10:0;48161;:24;48153:41;;;;;-1:-1:-1;;;48153:41:0;;;;;;;;;;;;;;;-1:-1:-1;;;48153:41:0;;;;;;;;;;;;;;;63742:18:::1;:16;:18::i;64252:234::-:0;64319:10;;;;;;;64315:164;;;64352:13;;;;;;;;;-1:-1:-1;;;;;64352:13:0;-1:-1:-1;;;;;64346:25:0;;64379:7;64346:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64315:164;64439:13;;64431:36;;;-1:-1:-1;;;64431:36:0;;;;;;;;;;-1:-1:-1;;;;;64439:13:0;;;;64431:27;;:36;;;;;;;;;;;;;;;64439:13;;64431:36;;;;;;;;;;62887:99;48175:10;;-1:-1:-1;;;48175:10:0;;-1:-1:-1;;;;;48175:10:0;48161;:24;48153:41;;;;;-1:-1:-1;;;48153:41:0;;;;;;;;;;;;;;;-1:-1:-1;;;48153:41:0;;;;;;;;;;;;;;;62939:10:::1;:8;:10::i;46391:28::-:0;;;-1:-1:-1;;;;;46391:28:0;;:::o;45111:36::-;45146:1;45111:36;:::o;50236:131::-;50284:7;50311:48;50349:9;;50311:33;50334:9;;50311:18;:16;:18::i;:::-;:22;;:33::i;:::-;:37;;:48::i;:::-;50304:55;;50236:131;;:::o;45609:30::-;;;;:::o;45294:25::-;;;-1:-1:-1;;;45294:25:0;;-1:-1:-1;;;;;45294:25:0;;:::o;51214:785::-;51357:7;32802:12;:10;:12::i;:::-;32792:6;;-1:-1:-1;;;;;32792:6:0;;;:22;;;32784:67;;;;;-1:-1:-1;;;32784:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;32784:67:0;;;;;;;;;;;;;;;34885:1:::1;35490:7;;:19;;35482:63;;;::::0;;-1:-1:-1;;;35482:63:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;;;;;;;;;35482:63:0;;;;;;;;;;;;;::::1;;34885:1;35623:7;:18:::0;;;42685:7;::::2;;42684:8;42676:37;;;::::0;;-1:-1:-1;;;42676:37:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;42676:37:0;;;;;;;;;;;;;::::2;;51409:15:::3;:13;:15::i;:::-;51459:11:::0;51437:19:::3;51485:17;:15;:17::i;:::-;:21;:40;;;;;51524:1;51510:11;;:15;51485:40;51481:257;;;51556:156;46931:5;51556:116;51654:17;;51556:79;51617:17;:15;:17::i;:::-;51586:11;::::0;51556:42:::3;::::0;:11;;:29:::3;:42::i;:::-;:60:::0;::::3;:79::i;:::-;:97:::0;::::3;:116::i;:156::-;51542:170;;51481:257;51762:11;::::0;:28:::3;::::0;51778:11;51762:15:::3;:28::i;:::-;51748:11;:42:::0;51810:11:::3;::::0;51803:81:::3;::::0;;-1:-1:-1;;;51803:81:0;;51844:10:::3;51803:81;::::0;::::3;::::0;51865:4:::3;51803:81:::0;;;;;;;;;;;;-1:-1:-1;;;;;51810:11:0;;::::3;::::0;51803:32:::3;::::0;:81;;;;;::::3;::::0;;;;;;;;;51810:11:::3;::::0;51803:81;::::3;;::::0;::::3;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;;;;;;;;::::0;::::3;;-1:-1:-1::0;51931:11:0::3;::::0;-1:-1:-1;51937:4:0::3;51931:5;:11::i;:::-;34841:1:::1;35802:22:::0;;51970:11;51214:785;-1:-1:-1;;;51214:785:0:o;42367:78::-;42430:7;;;;42367:78;:::o;57550:254::-;48175:10;;-1:-1:-1;;;48175:10:0;;-1:-1:-1;;;;;48175:10:0;48161;:24;48153:41;;;;;-1:-1:-1;;;48153:41:0;;;;;;;;;;;;;;;-1:-1:-1;;;48153:41:0;;;;;;;;;;;;;;;57677:16:::1;:36:::0;;-1:-1:-1;;;;;;57677:36:0::1;-1:-1:-1::0;;;;;57677:36:0;::::1;;::::0;;57724:18:::1;:16;:18::i;:::-;57758:38;::::0;;-1:-1:-1;;;;;57758:38:0;::::1;::::0;;;;::::1;::::0;;;;::::1;::::0;;::::1;57550:254:::0;:::o;46638:45::-;46680:3;46638:45;:::o;46088:40::-;;;;:::o;45569:31::-;;;-1:-1:-1;;;;;45569:31:0;;:::o;45357:29::-;;;-1:-1:-1;;;;;45357:29:0;;:::o;33222:148::-;32802:12;:10;:12::i;:::-;32792:6;;-1:-1:-1;;;;;32792:6:0;;;:22;;;32784:67;;;;;-1:-1:-1;;;32784:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;32784:67:0;;;;;;;;;;;;;;;33329:1:::1;33313:6:::0;;33292:40:::1;::::0;-1:-1:-1;;;;;33313:6:0;;::::1;::::0;33292:40:::1;::::0;33329:1;;33292:40:::1;33360:1;33343:19:::0;;-1:-1:-1;;;;;;33343:19:0::1;::::0;;33222:148::o;45187:30::-;;;;;;;;;:::o;62764:64::-;48175:10;;-1:-1:-1;;;48175:10:0;;-1:-1:-1;;;;;48175:10:0;48161;:24;48153:41;;;;;-1:-1:-1;;;48153:41:0;;;;;;;;;;;;;;;-1:-1:-1;;;48153:41:0;;;;;;;;;;;;;;;62812:8:::1;:6;:8::i;45823:32::-:0;;;;:::o;46230:50::-;46276:4;46230:50;:::o;45491:71::-;;;-1:-1:-1;;;;;45491:71:0;;:::o;57812:213::-;48175:10;;-1:-1:-1;;;48175:10:0;;-1:-1:-1;;;;;48175:10:0;48161;:24;48153:41;;;;;-1:-1:-1;;;48153:41:0;;;;;;;;;;;;;;;-1:-1:-1;;;48153:41:0;;;;;;;;;;;;;;;57935:14:::1;:32:::0;;-1:-1:-1;;;;;57935:32:0;::::1;-1:-1:-1::0;;;;;;57935:32:0;;::::1;::::0;::::1;::::0;;;57983:34:::1;::::0;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;57812:213:::0;:::o;32580:79::-;32618:7;32645:6;-1:-1:-1;;;;;32645:6:0;32580:79;:::o;45983:27::-;;;;:::o;63828:416::-;63886:8;63881:24;;63897:7;;63881:24;63930:9;63925:223;63949:11;;63945:1;:15;63925:223;;;63982:14;63999:21;:19;:21::i;:::-;63982:38;;64035:15;64043:6;64035:7;:15::i;:::-;64074:32;64101:4;64074:22;64085:10;;64074:6;:10;;:22;;;;:::i;:32::-;64065:41;;64121:15;64129:6;64121:7;:15::i;:::-;-1:-1:-1;63962:3:0;;63925:223;;;;64158:30;64166:21;:19;:21::i;:::-;64158:7;:30::i;50375:316::-;50473:11;;50466:44;;;-1:-1:-1;;;50466:44:0;;50504:4;50466:44;;;;;;50424:7;;;;-1:-1:-1;;;;;50473:11:0;;;;50466:29;;:44;;;;;;;;;;;;;;;50473:11;50466:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;50466:44:0;50526:10;;50466:44;;-1:-1:-1;50526:10:0;;;;;50521:62;;50560:11;-1:-1:-1;50553:18:0;;50521:62;50615:21;50654:28;50615:21;50670:11;50654:15;:28::i;:::-;50647:35;;;;50375:316;:::o;47553:30::-;;;;:::o;45257:28::-;;;;;;;;;:::o;46690:50::-;46737:3;46690:50;:::o;65381:1798::-;65438:15;:13;:15::i;:::-;65534:31;:29;:31::i;:::-;65582:10;;;;;;;65578:66;;;65609:10;:8;:10::i;:::-;65656:26;65685:27;65699:12;;65685:9;;:13;;:27;;;;:::i;:::-;65656:56;;65737:18;65727:7;:28;65723:183;;;-1:-1:-1;65887:7:0;65723:183;65916:33;65930:18;65916:13;:33::i;:::-;65962:15;65980:18;:16;:18::i;:::-;65962:36;;66078:724;66095:9;;66085:7;:19;66078:724;;;66236:7;66225;:18;66221:65;;66264:7;;;;66221:65;66302:21;66315:7;66302:12;:21::i;:::-;66340:15;:13;:15::i;:::-;66475:12;;66461:9;;:27;;:13;:27::i;:::-;66440:48;;66517:18;66507:7;:28;66503:195;;;66675:7;66654:28;;66503:195;66712:33;66726:18;66712:13;:33::i;:::-;66772:18;:16;:18::i;:::-;66762:28;;66078:724;;;66885:7;66874;:18;66870:57;;66909:7;;;;66870:57;66986:23;66999:9;;66986:12;:23::i;:::-;67081:13;;67074:46;;;-1:-1:-1;;;67074:46:0;;67114:4;67074:46;;;;;;67054:17;;-1:-1:-1;;;;;67081:13:0;;67074:31;;:46;;;;;;;;;;;;;;67081:13;67074:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;67074:46:0;67139:13;;67131:40;;;-1:-1:-1;;;67131:40:0;;;;;;;;;;67074:46;;-1:-1:-1;;;;;;67139:13:0;;;;67131:29;;:40;;;;;67074:46;;67131:40;;;;;;;;67139:13;;67131:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;65381:1798:0;:::o;56117:1274::-;48175:10;;-1:-1:-1;;;48175:10:0;;-1:-1:-1;;;;;48175:10:0;48161;:24;48153:41;;;;;-1:-1:-1;;;48153:41:0;;;;;;;;;;;;;;;-1:-1:-1;;;48153:41:0;;;;;;;;;;;;;;;46989:4:::1;56347:18;:41;;56325:117;;;::::0;;-1:-1:-1;;;56325:117:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;46931:5;56475:18;:42;;56453:119;;;::::0;;-1:-1:-1;;;56453:119:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;56583:17;:38:::0;;;46276:4:::1;56656:41:::0;::::1;;56634:117;;;::::0;;-1:-1:-1;;;56634:117:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;46218:5;56784:18;:42;;56762:119;;;::::0;;-1:-1:-1;;;56762:119:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;56892:17;:38:::0;;;45971:3:::1;56951:33:::0;::::1;;56943:69;;;::::0;;-1:-1:-1;;;56943:69:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;57023:13;:30:::0;;;47503:3:::1;57088:35:::0;::::1;;57066:109;;;::::0;;-1:-1:-1;;;57066:109:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;57186:14;:32:::0;;;57236:147:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;;;;;;;;;;;;;::::1;::::0;;;;;;;::::1;56117:1274:::0;;;;:::o;47662:36::-;;;;:::o;45764:32::-;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;45764:32:0;;-1:-1:-1;45764:32:0;:::o;49818:410::-;49934:26;:24;:26::i;:::-;49922:9;:38;50032:13;;50024:57;;;-1:-1:-1;;;50024:57:0;;50075:4;50024:57;;;;;;-1:-1:-1;;;;;50032:13:0;;;;50024:42;;:57;;;;;;;;;;;;;;;50032:13;;50024:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;50024:57:0;50012:9;:69;;;50138:10;;50114:35;;:19;;50128:4;50114:13;:19::i;:35::-;50094:17;:55;50175:9;;:45;;46737:3;;50175:19;;50189:4;50175:13;:19::i;:45::-;50160:12;:60;49818:410::o;47627:28::-;;;;:::o;46747:44::-;46790:1;46747:44;:::o;47460:46::-;47503:3;47460:46;:::o;45685:29::-;;;-1:-1:-1;;;;;45685:29:0;;:::o;46505:72::-;;;-1:-1:-1;;;;;46505:72:0;;:::o;64494:99::-;64555:13;;64547:38;;;-1:-1:-1;;;64547:38:0;;;;;;;;;;-1:-1:-1;;;;;64555:13:0;;;;64547:29;;:38;;;;;;;;;;;;;;;64555:13;;64547:38;;;;;;;;;;47221:40;;;;:::o;47515:31::-;;;;:::o;49350:304::-;49459:13;;49451:47;;;-1:-1:-1;;;49451:47:0;;49492:4;49451:47;;;;;;49407:7;;;;-1:-1:-1;;;;;49459:13:0;;;;49451:32;;:47;;;;;;;;;;;;;;;49459:13;49451:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;49451:47:0;49537:13;;49529:43;;;-1:-1:-1;;;49529:43:0;;;;49451:47;;-1:-1:-1;49509:17:0;;-1:-1:-1;;;;;49537:13:0;;;;49529:41;;:43;;;;;49451:47;;49529:43;;;;;;;;49537:13;49529:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;49529:43:0;;-1:-1:-1;49605:41:0;49641:4;49605:31;:13;49529:43;49605:17;:31::i;53976:83::-;34885:1;35490:7;;:19;;35482:63;;;;;-1:-1:-1;;;35482:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;35482:63:0;;;;;;;;;;;;;;;34885:1;35623:7;:18;54036:15:::1;54042:8:::0;54036:5:::1;:15::i;:::-;-1:-1:-1::0;34841:1:0;35802:22;;53976:83::o;57399:143::-;48175:10;;-1:-1:-1;;;48175:10:0;;-1:-1:-1;;;;;48175:10:0;48161;:24;48153:41;;;;;-1:-1:-1;;;48153:41:0;;;;;;;;;;;;;;;-1:-1:-1;;;48153:41:0;;;;;;;;;;;;;;;57475:10:::1;:24:::0;;-1:-1:-1;;;;;57475:24:0;::::1;-1:-1:-1::0;;;57475:24:0;::::1;-1:-1:-1::0;;;;;;57475:24:0;;::::1;::::0;;;::::1;::::0;;;57515:19:::1;::::0;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;57399:143:::0;:::o;52007:788::-;34885:1;35490:7;;:19;;35482:63;;;;;-1:-1:-1;;;35482:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;35482:63:0;;;;;;;;;;;;;;;34885:1;35623:7;:18;;;42685:7;::::1;;42684:8;42676:37;;;::::0;;-1:-1:-1;;;42676:37:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;42676:37:0;;;;;;;;;;;;;::::1;;52078:9:::2;::::0;;;::::2;;;52070:32;;;::::0;;-1:-1:-1;;;52070:32:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;52070:32:0;;;;;;;;;;;;;::::2;;52177:12;::::0;52163:53:::2;::::0;;-1:-1:-1;;;52163:53:0;;52210:4:::2;52163:53;::::0;::::2;::::0;;;-1:-1:-1;;;;;52177:12:0;;::::2;::::0;52163:38:::2;::::0;:53;;;;;::::2;::::0;;;;;;;;;52177:12:::2;::::0;52163:53;::::2;;::::0;::::2;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;::::0;::::2;;-1:-1:-1::0;;52256:13:0::2;::::0;52249:46:::2;::::0;;-1:-1:-1;;;52249:46:0;;52289:4:::2;52249:46;::::0;::::2;::::0;;;52229:17:::2;::::0;-1:-1:-1;;;;;52256:13:0::2;::::0;52249:31:::2;::::0;:46;;;;;52163:53:::2;::::0;52249:46;;;;;;;52256:13;52249:46;::::2;;::::0;::::2;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;::::0;::::2;;-1:-1:-1::0;52249:46:0;;-1:-1:-1;52320:25:0::2;52249:46:::0;52320:14:::2;:25::i;:::-;52378:11;::::0;52362:12:::2;::::0;52308:37;;-1:-1:-1;;;;;;52362:12:0;;::::2;52378:11:::0;::::2;52362:27;52358:289;;52406:229;52434:16;;;;;;;;;-1:-1:-1::0;;;;;52434:16:0::2;52469:9;52497:14;;52530:15;52406:229;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;;-1:-1:-1;;;;;52406:229:0::2;::::0;;;;;::::2;::::0;::::2;;::::0;;::::2;;;;;;;;;52572:4;52596:24;52616:3;52596:15;:19;;:24;;;;:::i;:::-;52406:9;:229::i;:::-;52675:12;52659:13;:28:::0;52700:12:::2;52706:5;52700;:12::i;55197:221::-:0;55273:10;;55249:7;;55273:10;;;;;55269:71;;;-1:-1:-1;55307:21:0;55300:28;;55269:71;55372:11;;55357:53;;;-1:-1:-1;;;55357:53:0;;55404:4;55357:53;;;;;;-1:-1:-1;;;;;55372:11:0;;;;55357:38;;:53;;;;;;;;;;;;;;;55372:11;55357:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;55357:53:0;;-1:-1:-1;55197:221:0;:::o;47060:39::-;;;;:::o;46584:43::-;;;-1:-1:-1;;;;;46584:43:0;;:::o;45425:26::-;;;-1:-1:-1;;;;;45425:26:0;;:::o;64601:115::-;64668:13;;64660:48;;;-1:-1:-1;;;64660:48:0;;;;;;;;;;-1:-1:-1;;;;;64668:13:0;;;;64660:39;;:48;;;;;;;;;;;;;;;64668:13;;64660:48;;;;;;;;;;45725:32;;;;;;;;;;64966:103;65022:12;;65008:53;;;-1:-1:-1;;;65008:53:0;;65055:4;65008:53;;;;;;-1:-1:-1;;;;;65022:12:0;;;;65008:38;;:53;;;;;;;;;;;;;;;65022:12;;65008:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;64966:103:0:o;47592:28::-;;;;:::o;33525:281::-;32802:12;:10;:12::i;:::-;32792:6;;-1:-1:-1;;;;;32792:6:0;;;:22;;;32784:67;;;;;-1:-1:-1;;;32784:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;32784:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;33628:22:0;::::1;33606:110;;;;-1:-1:-1::0;;;33606:110:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33753:6;::::0;;33732:38:::1;::::0;-1:-1:-1;;;;;33732:38:0;;::::1;::::0;33753:6;::::1;::::0;33732:38:::1;::::0;::::1;33781:6;:17:::0;;-1:-1:-1;;;;;;33781:17:0::1;-1:-1:-1::0;;;;;33781:17:0;;;::::1;::::0;;;::::1;::::0;;33525:281::o;52803:1165::-;52938:7;32802:12;:10;:12::i;:::-;32792:6;;-1:-1:-1;;;;;32792:6:0;;;:22;;;32784:67;;;;;-1:-1:-1;;;32784:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;32784:67:0;;;;;;;;;;;;;;;34885:1:::1;35490:7;;:19;;35482:63;;;::::0;;-1:-1:-1;;;35482:63:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;;;;;;;;;35482:63:0;;;;;;;;;;;;;::::1;;34885:1;35623:7;:18:::0;52963:21:::2;53000:48;53030:17;:15;:17::i;:::-;53013:11;::::0;53000:25:::2;::::0;:8;;:12:::2;:25::i;:48::-;52963:85;;53079:11;;53063:13;:27;53059:87;;;-1:-1:-1::0;53123:11:0::2;::::0;53059:87:::2;53170:11;::::0;:30:::2;::::0;53186:13;53170:15:::2;:30::i;:::-;53156:11;:44:::0;53238:11:::2;::::0;53231:44:::2;::::0;;-1:-1:-1;;;53231:44:0;;53269:4:::2;53231:44;::::0;::::2;::::0;;;53213:15:::2;::::0;-1:-1:-1;;;;;53238:11:0::2;::::0;53231:29:::2;::::0;:44;;;;;::::2;::::0;;;;;;;;53238:11;53231:44;::::2;;::::0;::::2;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;::::0;::::2;;-1:-1:-1::0;53231:44:0;;-1:-1:-1;53290:18:0;;::::2;53286:280;;;53325:34;53337:21;:8:::0;53350:7;53337:12:::2;:21::i;:::-;53325:11;:34::i;:::-;53378:10;::::0;::::2;::::0;::::2;;;53374:112;;;53409:10;:8;:10::i;:::-;53517:11;::::0;53510:44:::2;::::0;;-1:-1:-1;;;53510:44:0;;53548:4:::2;53510:44;::::0;::::2;::::0;;;-1:-1:-1;;;;;53517:11:0;;::::2;::::0;53510:29:::2;::::0;:44;;;;;::::2;::::0;;;;;;;;;53517:11;53510:44;::::2;;::::0;::::2;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;::::0;::::2;;-1:-1:-1::0;53510:44:0;;-1:-1:-1;53286:280:0::2;53592:8;53582:7;:18;53578:69;;;53628:7;53617:18;;53578:69;46218:5;53663:17;;:40;53659:173;;;53731:89;46218:5;53731:31;53744:17;;53731:8;:12;;:31;;;;:::i;:89::-;53720:100;;53659:173;53877:14;::::0;53851:11:::2;::::0;53844:58:::2;::::0;-1:-1:-1;;;;;53851:11:0;;::::2;::::0;53877:14:::2;53893:8:::0;53844:32:::2;:58::i;:::-;53915:12;53921:5;53915;:12::i;:::-;-1:-1:-1::0;34841:1:0::1;35802:22:::0;;53947:13;52803:1165;-1:-1:-1;;;52803:1165:0:o;47385:35::-;;;;:::o;28906:707::-;29324:10;;;29323:62;;-1:-1:-1;29340:39:0;;;-1:-1:-1;;;29340:39:0;;29364:4;29340:39;;;;-1:-1:-1;;;;;29340:39:0;;;;;;;;;:15;;;;;;:39;;;;;;;;;;;;;;;:15;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29340:39:0;:44;29323:62;29301:166;;;;-1:-1:-1;;;29301:166:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29532:62;;;-1:-1:-1;;;;;29532:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;29532:62:0;-1:-1:-1;;;29532:62:0;;;29478:127;;29512:5;;29478:19;:127::i;29621:436::-;29752:20;29788:50;29832:5;29788;-1:-1:-1;;;;;29788:15:0;;29812:4;29819:7;29788:39;;;;;;;;;;;;;-1:-1:-1;;;;;29788:39:0;;;;;;-1:-1:-1;;;;;29788:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29788:39:0;;:43;:50::i;:::-;29903:135;;;-1:-1:-1;;;;;29903:135:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;29903:135:0;-1:-1:-1;;;29903:135:0;;;29752:86;;-1:-1:-1;29849:200:0;;29883:5;;29849:19;:200::i;:::-;29621:436;;;;:::o;1055:181::-;1113:7;1145:5;;;1169:6;;;;1161:46;;;;;-1:-1:-1;;;1161:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;1227:1;-1:-1:-1;1055:181:0;;;;;:::o;22913:229::-;23050:12;23082:52;23104:6;23112:4;23118:1;23121:12;23082:21;:52::i;:::-;23075:59;;22913:229;;;;;;:::o;59532:1062::-;59606:15;:13;:15::i;:::-;59674:18;59703:21;59727:45;59766:5;59727:34;59741:19;;59727:9;;:13;;:34;;;;:::i;:45::-;59703:69;;59811:12;;59798:9;;:25;59794:365;;59914:46;59954:5;59914:35;59928:20;;59914:9;;:13;;:35;;;;:::i;:46::-;59901:59;;59794:365;;;59995:17;;59982:9;;:30;59978:181;;60056:12;;60042:9;;:27;;:13;:27::i;59978:181::-;60129:17;;60115:9;;:32;;:13;:32::i;:::-;60102:45;;59978:181;60188:13;60175:10;:26;60171:85;;;60231:13;60218:26;;60171:85;60268:25;60282:10;60268:13;:25::i;:::-;60310:10;;;;;;;60306:185;;;60337:12;:10;:12::i;:::-;60379:35;60392:21;60379:12;:35::i;:::-;60306:185;;;60447:32;60460:18;:16;:18::i;:::-;60447:12;:32::i;:::-;60503:15;:13;:15::i;62994:682::-;63075:16;;63049:12;;63042:62;;-1:-1:-1;;;;;63049:12:0;;;;63075:16;;63042:32;:62::i;:::-;63172:16;;63122:12;;63115:110;;-1:-1:-1;;;;;63122:12:0;;;;63172:16;-1:-1:-1;;63115:42:0;:110::i;:::-;63270:16;;63245:11;;63238:61;;-1:-1:-1;;;;;63245:11:0;;;;63270:16;;63238:31;:61::i;:::-;63366:16;;63317:11;;63310:109;;-1:-1:-1;;;;;63317:11:0;;;;63366:16;-1:-1:-1;;63310:41:0;:109::i;:::-;63437:10;;;;;;;63432:235;;63496:13;;63471:11;;63464:58;;-1:-1:-1;;;;;63471:11:0;;;;63496:13;;63464:31;:58::i;:::-;63597:13;;63544:11;;63537:118;;-1:-1:-1;;;;;63544:11:0;;;;63597:13;-1:-1:-1;;63537:41:0;:118::i;43416:120::-;42961:7;;;;42953:40;;;;;-1:-1:-1;;;42953:40:0;;;;;;;;;;;;-1:-1:-1;;;42953:40:0;;;;;;;;;;;;;;;43475:7:::1;:15:::0;;-1:-1:-1;;43475:15:0::1;::::0;;43506:22:::1;43515:12;:10;:12::i;:::-;43506:22;::::0;;-1:-1:-1;;;;;43506:22:0;;::::1;::::0;;;;;;;::::1;::::0;;::::1;43416:120::o:0;1519:136::-;1577:7;1604:43;1608:1;1611;1604:43;;;;;;;;;;;;;;;;;:3;:43::i;265:106::-;353:10;265:106;:::o;2443:471::-;2501:7;2746:6;2742:47;;-1:-1:-1;2776:1:0;2769:8;;2742:47;2813:5;;;2817:1;2813;:5;:1;2837:5;;;;;:10;2829:56;;;;-1:-1:-1;;;2829:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3390:132;3448:7;3475:39;3479:1;3482;3475:39;;;;;;;;;;;;;;;;;:3;:39::i;54067:346::-;54126:10;;;;;;;54122:109;;;54153:12;:10;:12::i;:::-;54243:24;54253:13;54243:9;:24::i;:::-;54313:15;:13;:15::i;43157:118::-;42685:7;;;;42684:8;42676:37;;;;;-1:-1:-1;;;42676:37:0;;;;;;;;;;;;-1:-1:-1;;;42676:37:0;;;;;;;;;;;;;;;43217:7:::1;:14:::0;;-1:-1:-1;;43217:14:0::1;43227:4;43217:14;::::0;;43247:20:::1;43254:12;:10;:12::i;50933:221::-:0;51014:21;51050:10;;51046:101;;51083:11;;;;;;;;;-1:-1:-1;;;;;51083:11:0;-1:-1:-1;;;;;51077:26:0;;51111:6;51077:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54419:770;54489:7;54513:14;;54509:643;;54605:7;;:11;54601:226;;54637:11;54651:39;46062:5;54651:23;54666:7;;54651:10;:14;;:23;;;;:::i;:39::-;54716:13;;54637:53;;-1:-1:-1;54709:51:0;;-1:-1:-1;;;;;54716:13:0;54744:10;54637:53;54709:34;:51::i;:::-;54792:19;:10;54807:3;54792:14;:19::i;:::-;54779:32;;54601:226;;54876:13;;:17;54872:269;;54914:11;54949:51;45905:5;54949:29;54964:13;;54949:10;:14;;:29;;;;:::i;:51::-;55054:14;;55026:13;;54914:86;;-1:-1:-1;55019:55:0;;-1:-1:-1;;;;;55026:13:0;;;;55054:14;54914:86;55019:34;:55::i;:::-;55106:19;:10;55121:3;55106:14;:19::i;54872:269::-;-1:-1:-1;55171:10:0;54419:770::o;55426:679::-;55701:67;;;-1:-1:-1;;;55701:67:0;;;;;;;;;;;;;;;;;;;;;;55661:24;;-1:-1:-1;;;;;55701:49:0;;;;;55751:9;;55762:5;;55701:67;;;;;;;;;;;;;;-1:-1:-1;55701:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;55701:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;55701:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;55701:67:0;;;;;;;;;;;;-1:-1:-1;55701:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55661:107;;55779:17;55799:7;55807:21;55826:1;55807:7;:14;:18;;:21;;;;:::i;:::-;55799:30;;;;;;;;;;;;;;55779:50;;55859:17;-1:-1:-1;;;;;55842:103:0;;55960:9;55984:40;56019:4;55984:30;55998:15;55984:9;:13;;:30;;;;:::i;:40::-;56039:5;56059:3;56077:9;55842:255;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;55842:255:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55426:679;;;;;;;;:::o;60908:1799::-;60966:15;:13;:15::i;:::-;61062:31;:29;:31::i;:::-;61110:10;;;;;;;61106:66;;;61137:10;:8;:10::i;:::-;61184:26;61213:27;61227:12;;61213:9;;:13;;:27;;;;:::i;:::-;61184:56;;61265:18;61255:7;:28;61251:183;;;-1:-1:-1;61415:7:0;61251:183;61444:33;61458:18;61444:13;:33::i;:::-;61490:15;61508:18;:16;:18::i;:::-;61490:36;;61606:724;61623:9;;61613:7;:19;61606:724;;;61764:7;61753;:18;61749:65;;61792:7;;;;61749:65;61830:21;61843:7;61830:12;:21::i;:::-;61868:15;:13;:15::i;:::-;62003:12;;61989:9;;:27;;:13;:27::i;:::-;61968:48;;62045:18;62035:7;:28;62031:195;;;62203:7;62182:28;;62031:195;62240:33;62254:18;62240:13;:33::i;:::-;62300:18;:16;:18::i;:::-;62290:28;;61606:724;;28096:248;28267:58;;;-1:-1:-1;;;;;28267:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;28267:58:0;-1:-1:-1;;;28267:58:0;;;28213:123;;28247:5;;30986:885;31410:23;31449:118;31495:4;31449:118;;;;;;;;;;;;;;;;;31457:5;-1:-1:-1;;;;;31449:27:0;;;:118;;;;;:::i;:::-;31582:17;;31410:157;;-1:-1:-1;31582:21:0;31578:286;;31755:10;31744:30;;;;;;;;;;;;;;;-1:-1:-1;31744:30:0;31718:134;;;;-1:-1:-1;;;31718:134:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24129:621;24299:12;24371:5;24346:21;:30;;24324:118;;;;-1:-1:-1;;;24324:118:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24461:18;24472:6;24461:10;:18::i;:::-;24453:60;;;;;-1:-1:-1;;;24453:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;24587:12;24601:23;24641:6;-1:-1:-1;;;;;24641:11:0;24660:5;24667:4;24641:31;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;24641:31:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24586:86;;;;24690:52;24708:7;24717:10;24729:12;24690:17;:52::i;:::-;24683:59;24129:621;-1:-1:-1;;;;;;;24129:621:0:o;50699:226::-;50790:11;;50783:44;;;-1:-1:-1;;;50783:44:0;;50821:4;50783:44;;;;;;50765:15;;-1:-1:-1;;;;;50790:11:0;;50783:29;;:44;;;;;;;;;;;;;;50790:11;50783:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;50783:44:0;;-1:-1:-1;50842:11:0;;50838:80;;50876:11;;50870:36;;;-1:-1:-1;;;50870:36:0;;;;;;;;;;-1:-1:-1;;;;;50876:11:0;;;;50870:27;;:36;;;;;50876:11;;50870:36;;;;;;;;50876:11;;50870:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50699:226;:::o;1958:::-;2078:7;2114:12;2106:6;;;;2098:29;;;;-1:-1:-1;;;2098:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2150:5:0;;;1958:226::o;4018:312::-;4138:7;4173:12;4166:5;4158:28;;;;-1:-1:-1;;;4158:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4197:9;4213:1;4209;:5;;;;;;;4018:312;-1:-1:-1;;;;;4018:312:0:o;58209:417::-;58268:8;58263:24;;58279:7;;58263:24;58312:9;58307:223;58331:11;;58327:1;:15;58307:223;;;58364:14;58381:21;:19;:21::i;:::-;58364:38;;58417:15;58425:6;58417:7;:15::i;:::-;58456:32;58483:4;58456:22;58467:10;;58456:6;:10;;:22;;;;:::i;:32::-;58447:41;;58503:15;58511:6;58503:7;:15::i;:::-;-1:-1:-1;58344:3:0;;58307:223;;19876:444;20256:20;20304:8;;;19876:444::o;27041:777::-;27191:12;27220:7;27216:595;;;-1:-1:-1;27251:10:0;27244:17;;27216:595;27365:17;;:21;27361:439;;27628:10;27622:17;27689:15;27676:10;27672:2;27668:19;27661:44;27576:148;27764:20;;-1:-1:-1;;;27764:20:0;;;;;;;;;;;;;;;;;27771:12;;27764:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

ipfs://4a69b70ad9edc413586fba11ee01984f891fa31b03277d6f952008ecb98df7a8
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.