Contract 0x12b98c621e8754ae70d0fdbbc73d6208bc3e3ca6

 
idleUSDCYield Token contract has migrated to a new address.
Ad
Crypto.com
Txn Hash Method
Block
From
To
Value
0x2ae4c1cf0ac1430d9fddb6d60539649e983138336999ce5bede370669b653ec9Approve115256562020-12-25 23:07:31178 days 20 hrs agoENS Name watermate.eth IN  Idle.finance: Old idleUSDCYield Token0 Ether0.00213249648
0x560228e50d442912c711120ad726c7e0ffea2bd2704905e8f09d15ac36585f2fApprove114213922020-12-09 22:25:07194 days 21 hrs ago0x1f08863f246fe456f94579d1a2009108b574f509 IN  Idle.finance: Old idleUSDCYield Token0 Ether0.001399450531.5
0x14e555790f4bc2b879c307944008b685051872e4ff1e63fe3ca652fbccd25257Approve113074362020-11-22 10:24:12212 days 9 hrs ago0xc6af895832bf156c59c8c0b59fc31179d5f7019f IN  Idle.finance: Old idleUSDCYield Token0 Ether0.00106624824
0x27f58b1545146430f1fac44492d99f59e6eb13356edf73ea24505f4a56d3e6a4Redeem Idle Toke...111379722020-10-27 10:13:02238 days 9 hrs ago0x5b9bd46649f64d84bb6bc7ce2828c88e34456647 IN  Idle.finance: Old idleUSDCYield Token0 Ether0.009711483218.4
0xdd59eaec1928aeff7552cc1fe45de5d85738b1a7cd56aebc25ccb9f865b6abc8Approve111310682020-10-26 8:50:55239 days 10 hrs ago0x168abe87b7e96e825dfbb0b3860837d295840e67 IN  Idle.finance: Old idleUSDCYield Token0 Ether0.00128838329
0x9c80d364d5bd88fc34aa147acf43efe296357f92bed7d636228033cde2fa4298Redeem Idle Toke...111017112020-10-21 20:39:22243 days 23 hrs ago0x741c0655707cd7276a6664bbc3c07bac152df84e IN  Idle.finance: Old idleUSDCYield Token0 Ether0.02744549652
0xf9ebfa6981789a734a5cbaf5b0b0cc19ce047a76724527b20ba683c5dbc573b1Approve110600952020-10-15 11:33:28250 days 8 hrs ago0x1082725e9d32eccec4a12014afd127f172d9cdeb IN  Idle.finance: Old idleUSDCYield Token0 Ether0.00279890163
0x72e2b77f0c8cf25407eaedee3290c7a8d790f281059825f8eb391fd7b884b611Approve110385052020-10-12 4:08:12253 days 15 hrs ago0xb3f8268cd6a428c0b0ac037ef01f340a7ec611b7 IN  Idle.finance: Old idleUSDCYield Token0 Ether0.00151051834
0xbb993a957a0bab2e542bc32020ebd63cf760d7c9c8d5eb9271465551842f9badApprove110348682020-10-11 14:54:58254 days 4 hrs ago0x44e4e859e646af0642e1cfa3aa618b3519ff086f IN  Idle.finance: Old idleUSDCYield Token0 Ether0.00195478844
0x161bdaf76c499350ac85131171533773608ddfddd41c0513ec4cd5f0402a311cApprove110273482020-10-10 11:02:51255 days 8 hrs agoENS Name matteopandolfi.eth IN  Idle.finance: Old idleUSDCYield Token0 Ether0.00199921545
0x12de0a41e6b45a142051cec113304847f4c8d4da79e8c71bc266234c0ce20f9fApprove109934732020-10-05 3:59:16260 days 15 hrs ago0x6e52a3f199b9e2da6f9bce4a395cb015a0c737d9 IN  Idle.finance: Old idleUSDCYield Token0 Ether0.00164379937
0x62f6c8aca3e25907fbeee8e1f14eaa70e96e91da286a30bcaec52a083c01d916Redeem Idle Toke...108990172020-09-20 11:47:12275 days 7 hrs ago0xc56197bcf7ba173f009d971c8b087f4f9f6e4203 IN  Idle.finance: Old idleUSDCYield Token0 Ether0.05268320652696.800000233
0x16391dd988f941e53bf89d5131afcfe389e293ee7385dadb01cdb5f96d5b79d7Redeem Idle Toke...108909412020-09-19 6:08:58276 days 13 hrs ago0x142e67cd752722e020bacdcc9c0f317da24fb83b IN  Idle.finance: Old idleUSDCYield Token0 Ether0.04843807289
0x309e17764ea45967af78d2799e37c33353a5f15f6dfeaddac41907873d973487Approve108490042020-09-12 19:20:45283 days 21 mins ago0x8cb9e1a96934d85b2aa49cc8230e60226793acaa IN  Idle.finance: Old idleUSDCYield Token0 Ether0.00417613894
0xfd60fc123a6e37e00c81f4d41d126188b7f4dcc7839a5439aca9e2acde6d1c1fTransfer108489052020-09-12 18:56:47283 days 45 mins ago0x05214c95931d56f318fd1ebfd05d697e03f97dd4 IN  Idle.finance: Old idleUSDCYield Token0 Ether0.00412838694
0x7acdee7e95574c27573936d130b770b48edde328af8d11e1f8d12db82548439dApprove108103522020-09-06 21:03:18288 days 22 hrs agoENS Name anomanderrake.eth IN  Idle.finance: Old idleUSDCYield Token0 Ether0.00382072286
0x8470c1f8246a4536250e89e54b25fe1bdfb76b66ea58984ba46bd1c659877216Approve108042322020-09-05 22:48:31289 days 20 hrs ago0xc0ba9fd6fd13b87f71cf6d665d7f1ebec592c7c0 IN  Idle.finance: Old idleUSDCYield Token0 Ether0.00488697110
0xb8f3ec5527ee3bc131ae8dcc817dbfce22b80e483eb2862e28a60a9e9933e2a8Approve107994632020-09-05 5:22:45290 days 14 hrs ago0x3ef60ae2ace351dc6058b5b21fb566089d118137 IN  Idle.finance: Old idleUSDCYield Token0 Ether0.007286028164
0x1cf36c3679a79ee1cf1a3f2c22f57d548ab6e5ee437874dd05be9e8c6c1a1e0dApprove107984472020-09-05 1:31:27290 days 18 hrs ago0x7136fbddd4dffa2369a9283b6e90a040318011ca IN  Idle.finance: Old idleUSDCYield Token0 Ether0.005286813119
0x25d0016b5aa2ef1f0cd909b5b4b5ccc10fecf13c65c15ffc1e3f94fe54a6854bTransfer107984462020-09-05 1:30:50290 days 18 hrs ago0x7136fbddd4dffa2369a9283b6e90a040318011ca IN  Idle.finance: Old idleUSDCYield Token0 Ether0.00315150
0x131a59095cb61b142abd809cce355fc83ba333f45c640819dc47b62c6bb6bec0Approve107976062020-09-04 22:33:20290 days 21 hrs ago0xcc05bc903361c425c163d2830ced134e63c90c0d IN  Idle.finance: Old idleUSDCYield Token0 Ether0.004842543109
0xcf4201f86302728f694ffa94be95df8e3be671fca245104c5fb42d90186dc51fApprove107968092020-09-04 19:38:53291 days 3 mins ago0x310d4fb2845c3e0c3c57165198d65a5327a373ea IN  Idle.finance: Old idleUSDCYield Token0 Ether0.005464521123
0xe8f9faacfe47b9dd596daf74214afd431e7b19ec3d49e68de95959a198e7a7b5Approve107963062020-09-04 17:47:00291 days 1 hr ago0x37c911910cd06cfeb749d32ee4bd73e0b4eb9647 IN  Idle.finance: Old idleUSDCYield Token0 Ether0.004709262106
0xe10202690240a19fd944a86942d23fd9ef4e1dc7342efcd97ed3f542453073bbApprove107958152020-09-04 15:56:59291 days 3 hrs ago0xb5c0f0ff448c4891e04fd88ff77e634e8c9d6e7b IN  Idle.finance: Old idleUSDCYield Token0 Ether0.013727943309
0xf0d642d243d6a67c8c3893cb7c3add1d6fd38bd949cfba206a0a69dd881fe4d5Approve107956812020-09-04 15:26:06291 days 4 hrs ago0xa0f33e31e6bfe93ecb0ddfd647ab151026fe97eb IN  Idle.finance: Old idleUSDCYield Token0 Ether0.01243956280
[ Download CSV Export 

OVERVIEW

idleUSDCYield Token contract has migrated to 0x5274891bec421b39d23760c04a6755ecb444797c

View more zero value Internal Transactions in Advanced View mode
Loading

Contract Source Code Verified (Similar Match)
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x1846bdfdb6a0f5c473dec610144513bd071999fb

Contract Name:
IdleTokenV3

Compiler Version
v0.5.16+commit.9c3226ce

Optimization Enabled:
Yes with 45000 runs

Other Settings:
default evmVersion, Apache-2.0 license

Contract Source Code (Solidity)

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

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

pragma solidity ^0.5.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.5.0;

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

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

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

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

pragma solidity ^0.5.0;

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

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

pragma solidity ^0.5.0;




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

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.5.0;


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

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

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

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

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

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

pragma solidity ^0.5.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 */
contract ReentrancyGuard {
    // counter to allow mutex lock with only one SSTORE operation
    uint256 private _guardCounter;

    constructor () internal {
        // The counter starts at one to prevent changing it from zero to a non-zero
        // value, which is a more expensive operation.
        _guardCounter = 1;
    }

    /**
     * @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() {
        _guardCounter += 1;
        uint256 localCounter = _guardCounter;
        _;
        require(localCounter == _guardCounter, "ReentrancyGuard: reentrant call");
    }
}

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

pragma solidity ^0.5.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.5.0;

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

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

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

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

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

pragma solidity ^0.5.0;



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

    event PauserAdded(address indexed account);
    event PauserRemoved(address indexed account);

    Roles.Role private _pausers;

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

    modifier onlyPauser() {
        require(isPauser(_msgSender()), "PauserRole: caller does not have the Pauser role");
        _;
    }

    function isPauser(address account) public view returns (bool) {
        return _pausers.has(account);
    }

    function addPauser(address account) public onlyPauser {
        _addPauser(account);
    }

    function renouncePauser() public {
        _removePauser(_msgSender());
    }

    function _addPauser(address account) internal {
        _pausers.add(account);
        emit PauserAdded(account);
    }

    function _removePauser(address account) internal {
        _pausers.remove(account);
        emit PauserRemoved(account);
    }
}

// File: @openzeppelin/contracts/lifecycle/Pausable.sol

pragma solidity ^0.5.0;



/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
contract Pausable is Context, PauserRole {
    /**
     * @dev Emitted when the pause is triggered by a pauser (`account`).
     */
    event Paused(address account);

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

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state. Assigns the Pauser role
     * to the deployer.
     */
    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.
     */
    modifier whenNotPaused() {
        require(!_paused, "Pausable: paused");
        _;
    }

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

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

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

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

pragma solidity ^0.5.5;

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

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

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

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

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

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

pragma solidity ^0.5.0;




/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
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));
    }

    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.

        // A Solidity high level call has three parts:
        //  1. The target address is checked to verify it contains contract code
        //  2. The call itself is made, and success asserted
        //  3. The return value is decoded, which in turn checks the size of the returned data.
        // solhint-disable-next-line max-line-length
        require(address(token).isContract(), "SafeERC20: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = address(token).call(data);
        require(success, "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/interfaces/iERC20Fulcrum.sol

pragma solidity 0.5.16;

interface iERC20Fulcrum {
  function mint(
    address receiver,
    uint256 depositAmount)
    external
    returns (uint256 mintAmount);

  function burn(
    address receiver,
    uint256 burnAmount)
    external
    returns (uint256 loanAmountPaid);

  function tokenPrice()
    external
    view
    returns (uint256 price);

  function supplyInterestRate()
    external
    view
    returns (uint256);

  function rateMultiplier()
    external
    view
    returns (uint256);
  function baseRate()
    external
    view
    returns (uint256);

  function borrowInterestRate()
    external
    view
    returns (uint256);

  function avgBorrowInterestRate()
    external
    view
    returns (uint256);

  function protocolInterestRate()
    external
    view
    returns (uint256);

  function spreadMultiplier()
    external
    view
    returns (uint256);

  function totalAssetBorrow()
    external
    view
    returns (uint256);

  function totalAssetSupply()
    external
    view
    returns (uint256);

  function nextSupplyInterestRate(uint256)
    external
    view
    returns (uint256);

  function nextBorrowInterestRate(uint256)
    external
    view
    returns (uint256);
  function nextLoanInterestRate(uint256)
    external
    view
    returns (uint256);
  function totalSupplyInterestRate(uint256)
    external
    view
    returns (uint256);

  function claimLoanToken()
    external
    returns (uint256 claimedAmount);

  function dsr()
    external
    view
    returns (uint256);

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

// File: contracts/interfaces/ILendingProtocol.sol

pragma solidity 0.5.16;

interface ILendingProtocol {
  function mint() external returns (uint256);
  function redeem(address account) external returns (uint256);
  function nextSupplyRate(uint256 amount) external view returns (uint256);
  function nextSupplyRateWithParams(uint256[] calldata params) external view returns (uint256);
  function getAPR() external view returns (uint256);
  function getPriceInToken() external view returns (uint256);
  function token() external view returns (address);
  function underlying() external view returns (address);
  function availableLiquidity() external view returns (uint256);
}

// File: contracts/interfaces/IIdleTokenV3.sol

/**
 * @title: Idle Token interface
 * @author: Idle Labs Inc., idle.finance
 */
pragma solidity 0.5.16;

interface IIdleTokenV3 {
  // view
  /**
   * IdleToken price calculation, in underlying
   *
   * @return : price in underlying token
   */
  function tokenPrice() external view returns (uint256 price);

  /**
   * underlying token decimals
   *
   * @return : decimals of underlying token
   */
  function tokenDecimals() external view returns (uint256 decimals);

  /**
   * Get APR of every ILendingProtocol
   *
   * @return addresses: array of token addresses
   * @return aprs: array of aprs (ordered in respect to the `addresses` array)
   */
  function getAPRs() external view returns (address[] memory addresses, uint256[] memory aprs);

  // external
  // We should save the amount one has deposited to calc interests

  /**
   * Used to mint IdleTokens, given an underlying amount (eg. DAI).
   * This method triggers a rebalance of the pools if needed
   * NOTE: User should 'approve' _amount of tokens before calling mintIdleToken
   * NOTE 2: this method can be paused
   *
   * @param _amount : amount of underlying token to be lended
   * @param : pass []
   * @return mintedTokens : amount of IdleTokens minted
   */
  function mintIdleToken(uint256 _amount, uint256[] calldata) external returns (uint256 mintedTokens);

  /**
   * Here we calc the pool share one can withdraw given the amount of IdleToken they want to burn
   * This method triggers a rebalance of the pools if needed
   * NOTE: If the contract is paused or iToken price has decreased one can still redeem but no rebalance happens.
   * NOTE 2: If iToken price has decresed one should not redeem (but can do it) otherwise he would capitalize the loss.
   *         Ideally one should wait until the black swan event is terminated
   *
   * @param _amount : amount of IdleTokens to be burned
   * @param : pass []
   * @return redeemedTokens : amount of underlying tokens redeemed
   */
  function redeemIdleToken(uint256 _amount, bool _skipRebalance, uint256[] calldata)
    external returns (uint256 redeemedTokens);

  /**
   * Here we calc the pool share one can withdraw given the amount of IdleToken they want to burn
   * and send interest-bearing tokens (eg. cDAI/iDAI) directly to the user.
   * Underlying (eg. DAI) is not redeemed here.
   *
   * @param _amount : amount of IdleTokens to be burned
   */
  function redeemInterestBearingTokens(uint256 _amount) external;

  /**
   * @param _newAmount : amount of underlying tokens that needs to be minted with this rebalance
   * @param : pass []
   * @return : whether has rebalanced or not
   */
  function rebalance(uint256 _newAmount, uint256[] calldata) external returns (bool);

  /**
   * @return : whether has rebalanced or not
   */
  function rebalance() external returns (bool);
}

// File: contracts/interfaces/IIdleRebalancerV3.sol

/**
 * @title: Idle Rebalancer interface
 * @author: Idle Labs Inc., idle.finance
 */
pragma solidity 0.5.16;

interface IIdleRebalancerV3 {
  function getAllocations() external view returns (uint256[] memory _allocations);
}

// File: contracts/IdleRebalancerV3.sol

/**
 * @title: Idle Rebalancer contract
 * @summary: Used for calculating amounts to lend on each implemented protocol.
 *           This implementation works with Compound and Fulcrum only,
 *           when a new protocol will be added this should be replaced
 * @author: Idle Labs Inc., idle.finance
 */
pragma solidity 0.5.16;




contract IdleRebalancerV3 is IIdleRebalancerV3, Ownable {
  using SafeMath for uint256;
  uint256[] public lastAmounts;
  address[] public lastAmountsAddresses;
  address public rebalancerManager;
  address public idleToken;

  /**
   * @param _cToken : cToken address
   * @param _iToken : iToken address
   * @param _aToken : aToken address
   * @param _yxToken : yxToken address
   * @param _rebalancerManager : rebalancerManager address
   */
  constructor(address _cToken, address _iToken, address _aToken, address _yxToken, address _rebalancerManager) public {
    require(_cToken != address(0) && _iToken != address(0) && _aToken != address(0) && _yxToken != address(0) && _rebalancerManager != address(0), 'some addr is 0');
    rebalancerManager = _rebalancerManager;

    // Initially 100% on first lending protocol
    lastAmounts = [100000, 0, 0, 0];
    lastAmountsAddresses = [_cToken, _iToken, _aToken, _yxToken];
  }

  /**
   * Throws if called by any account other than rebalancerManager.
   */
  modifier onlyRebalancerAndIdle() {
    require(msg.sender == rebalancerManager || msg.sender == idleToken, "Only rebalacer and IdleToken");
    _;
  }

  /**
   * It allows owner to set the allowed rebalancer address
   *
   * @param _rebalancerManager : rebalance manager address
   */
  function setRebalancerManager(address _rebalancerManager)
    external onlyOwner {
      require(_rebalancerManager != address(0), "_rebalancerManager addr is 0");

      rebalancerManager = _rebalancerManager;
  }

  function setIdleToken(address _idleToken)
    external onlyOwner {
      require(idleToken == address(0), "idleToken addr already set");
      require(_idleToken != address(0), "_idleToken addr is 0");
      idleToken = _idleToken;
  }

  /**
   * It adds a new token address to lastAmountsAddresses list
   *
   * @param _newToken : new interest bearing token address
   */
  function setNewToken(address _newToken)
    external onlyOwner {
      require(_newToken != address(0), "New token should be != 0");
      for (uint256 i = 0; i < lastAmountsAddresses.length; i++) {
        if (lastAmountsAddresses[i] == _newToken) {
          return;
        }
      }

      lastAmountsAddresses.push(_newToken);
      lastAmounts.push(0);
  }
  // end onlyOwner

  /**
   * Used by Rebalance manager to set the new allocations
   *
   * @param _allocations : array with allocations in percentages (100% => 100000)
   * @param _addresses : array with addresses of tokens used, should be equal to lastAmountsAddresses
   */
  function setAllocations(uint256[] calldata _allocations, address[] calldata _addresses)
    external onlyRebalancerAndIdle
  {
    require(_allocations.length == lastAmounts.length, "Alloc lengths are different, allocations");
    require(_allocations.length == _addresses.length, "Alloc lengths are different, addresses");

    uint256 total;
    for (uint256 i = 0; i < _allocations.length; i++) {
      require(_addresses[i] == lastAmountsAddresses[i], "Addresses do not match");
      total = total.add(_allocations[i]);
      lastAmounts[i] = _allocations[i];
    }
    require(total == 100000, "Not allocating 100%");
  }

  function getAllocations()
    external view returns (uint256[] memory _allocations) {
    return lastAmounts;
  }

  function getAllocationsLength()
    external view returns (uint256) {
    return lastAmounts.length;
  }
}

// File: contracts/interfaces/IIdleToken.sol

/**
 * @title: Idle Token interface
 * @author: Idle Labs Inc., idle.finance
 */
pragma solidity 0.5.16;

interface IIdleToken {
  // view
  /**
   * IdleToken price calculation, in underlying
   *
   * @return : price in underlying token
   */
  function tokenPrice() external view returns (uint256 price);

  /**
   * underlying token decimals
   *
   * @return : decimals of underlying token
   */
  function tokenDecimals() external view returns (uint256 decimals);

  /**
   * Get APR of every ILendingProtocol
   *
   * @return addresses: array of token addresses
   * @return aprs: array of aprs (ordered in respect to the `addresses` array)
   */
  function getAPRs() external view returns (address[] memory addresses, uint256[] memory aprs);

  // external
  // We should save the amount one has deposited to calc interests

  /**
   * Used to mint IdleTokens, given an underlying amount (eg. DAI).
   * This method triggers a rebalance of the pools if needed
   * NOTE: User should 'approve' _amount of tokens before calling mintIdleToken
   * NOTE 2: this method can be paused
   *
   * @param _amount : amount of underlying token to be lended
   * @param _clientProtocolAmounts : client side calculated amounts to put on each lending protocol
   * @return mintedTokens : amount of IdleTokens minted
   */
  function mintIdleToken(uint256 _amount, uint256[] calldata _clientProtocolAmounts) external returns (uint256 mintedTokens);

  /**
   * @param _amount : amount of underlying token to be lended
   * @return : address[] array with all token addresses used,
   *                          eg [cTokenAddress, iTokenAddress]
   * @return : uint256[] array with all amounts for each protocol in order,
   *                   eg [amountCompound, amountFulcrum]
   */
  function getParamsForMintIdleToken(uint256 _amount) external returns (address[] memory, uint256[] memory);

  /**
   * Here we calc the pool share one can withdraw given the amount of IdleToken they want to burn
   * This method triggers a rebalance of the pools if needed
   * NOTE: If the contract is paused or iToken price has decreased one can still redeem but no rebalance happens.
   * NOTE 2: If iToken price has decresed one should not redeem (but can do it) otherwise he would capitalize the loss.
   *         Ideally one should wait until the black swan event is terminated
   *
   * @param _amount : amount of IdleTokens to be burned
   * @param _clientProtocolAmounts : client side calculated amounts to put on each lending protocol
   * @return redeemedTokens : amount of underlying tokens redeemed
   */
  function redeemIdleToken(uint256 _amount, bool _skipRebalance, uint256[] calldata _clientProtocolAmounts)
    external returns (uint256 redeemedTokens);

  /**
   * @param _amount : amount of IdleTokens to be burned
   * @param _skipRebalance : whether to skip the rebalance process or not
   * @return : address[] array with all token addresses used,
   *                          eg [cTokenAddress, iTokenAddress]
   * @return : uint256[] array with all amounts for each protocol in order,
   *                   eg [amountCompound, amountFulcrum]
   */
  function getParamsForRedeemIdleToken(uint256 _amount, bool _skipRebalance)
    external returns (address[] memory, uint256[] memory);

  /**
   * Here we calc the pool share one can withdraw given the amount of IdleToken they want to burn
   * and send interest-bearing tokens (eg. cDAI/iDAI) directly to the user.
   * Underlying (eg. DAI) is not redeemed here.
   *
   * @param _amount : amount of IdleTokens to be burned
   */
  function redeemInterestBearingTokens(uint256 _amount) external;

  /**
   * @param _clientProtocolAmounts : client side calculated amounts to put on each lending protocol
   * @return claimedTokens : amount of underlying tokens claimed
   */
  function claimITokens(uint256[] calldata _clientProtocolAmounts) external returns (uint256 claimedTokens);

  /**
   * @param _newAmount : amount of underlying tokens that needs to be minted with this rebalance
   * @param _clientProtocolAmounts : client side calculated amounts to put on each lending protocol
   * @return : whether has rebalanced or not
   */
  function rebalance(uint256 _newAmount, uint256[] calldata _clientProtocolAmounts) external returns (bool);

  /**
   * @param _newAmount : amount of underlying tokens that needs to be minted with this rebalance
   * @return : address[] array with all token addresses used,
   *                          eg [cTokenAddress, iTokenAddress]
   * @return : uint256[] array with all amounts for each protocol in order,
   *                   eg [amountCompound, amountFulcrum]
   */
  function getParamsForRebalance(uint256 _newAmount) external returns (address[] memory, uint256[] memory);
}

// File: contracts/IdlePriceCalculator.sol

/**
 * @title: Idle Price Calculator contract
 * @summary: Used for calculating the current IdleToken price in underlying (eg. DAI)
 *          price is: Net Asset Value / totalSupply
 * @author: Idle Labs Inc., idle.finance
 */
pragma solidity 0.5.16;






contract IdlePriceCalculator {
  using SafeMath for uint256;
  /**
   * IdleToken price calculation, in underlying (eg. DAI)
   *
   * @return : price in underlying token
   */
  function tokenPrice(
    uint256 totalSupply,
    address idleToken,
    address[] calldata currentTokensUsed,
    address[] calldata protocolWrappersAddresses
  )
    external view
    returns (uint256 price) {
      require(currentTokensUsed.length == protocolWrappersAddresses.length, "Different Length");

      if (totalSupply == 0) {
        return 10**(IIdleToken(idleToken).tokenDecimals());
      }

      uint256 currPrice;
      uint256 currNav;
      uint256 totNav;

      for (uint256 i = 0; i < currentTokensUsed.length; i++) {
        currPrice = ILendingProtocol(protocolWrappersAddresses[i]).getPriceInToken();
        // NAV = price * poolSupply
        currNav = currPrice.mul(IERC20(currentTokensUsed[i]).balanceOf(idleToken));
        totNav = totNav.add(currNav);
      }

      price = totNav.div(totalSupply); // idleToken price in token wei
  }
}

// File: contracts/interfaces/GasToken.sol

pragma solidity 0.5.16;

interface GasToken {
  function freeUpTo(uint256 value) external returns (uint256 freed);
  function freeFromUpTo(address from, uint256 value) external returns (uint256 freed);
  function balanceOf(address from) external returns (uint256 balance);
}

// File: contracts/GST2Consumer.sol

pragma solidity 0.5.16;


contract GST2Consumer {
  GasToken public constant gst2 = GasToken(0x0000000000b3F879cb30FE243b4Dfee438691c04);
  uint256[] internal gasAmounts = [14154, 41130, 27710, 7020];

  modifier gasDiscountFrom(address from) {
    uint256 initialGasLeft = gasleft();
    _;
    _makeGasDiscount(initialGasLeft - gasleft(), from);
  }

  function _makeGasDiscount(uint256 gasSpent, address from) internal {
    // For more info https://gastoken.io/
    // 14154 -> FREE_BASE -> base cost of freeing
    // 41130 -> 2 * REIMBURSE - FREE_TOKEN -> 2 * 24000 - 6870
    uint256 tokens = (gasSpent + gasAmounts[0]) / gasAmounts[1];
    uint256 safeNumTokens;
    uint256 gas = gasleft();

    // For more info https://github.com/projectchicago/gastoken/blob/master/contract/gst2_free_example.sol
    if (gas >= gasAmounts[2]) {
      safeNumTokens = (gas - gasAmounts[2]) / gasAmounts[3];
    }

    if (tokens > safeNumTokens) {
      tokens = safeNumTokens;
    }

    if (tokens > 0) {
      if (from == address(this)) {
        gst2.freeUpTo(tokens);
      } else {
        gst2.freeFromUpTo(from, tokens);
      }
    }
  }
}

// File: contracts/IdleTokenV3.sol

/**
 * @title: Idle Token (V3) main contract
 * @summary: ERC20 that holds pooled user funds together
 *           Each token rapresent a share of the underlying pools
 *           and with each token user have the right to redeem a portion of these pools
 * @author: Idle Labs Inc., idle.finance
 */
pragma solidity 0.5.16;















contract IdleTokenV3 is ERC20, ERC20Detailed, ReentrancyGuard, Ownable, Pausable, IIdleTokenV3, GST2Consumer {
  using SafeERC20 for IERC20;
  using SafeMath for uint256;

  // eg. cTokenAddress => IdleCompoundAddress
  mapping(address => address) public protocolWrappers;
  // eg. DAI address
  address public token;
  // eg. iDAI address
  address public iToken; // used for claimITokens and userClaimITokens
  // Idle rebalancer current implementation address
  address public rebalancer;
  // Idle price calculator current implementation address
  address public priceCalculator;
  // Address collecting underlying fees
  address public feeAddress;
  // Last iToken price, used to pause contract in case of a black swan event
  uint256 public lastITokenPrice;
  // eg. 18 for DAI
  uint256 public tokenDecimals;
  // Max possible fee on interest gained
  uint256 constant MAX_FEE = 10000; // 100000 == 100% -> 10000 == 10%
  // Min delay for adding a new protocol
  uint256 constant NEW_PROTOCOL_DELAY = 60 * 60 * 24 * 3; // 3 days in seconds
  // Current fee on interest gained
  uint256 public fee;
  // Manual trigger for unpausing contract in case of a black swan event that caused the iToken price to not
  // return to the normal level
  bool public manualPlay;
  // Flag for disabling openRebalance for the risk adjusted variant
  bool public isRiskAdjusted;
  // Flag for disabling instant new protocols additions
  bool public isNewProtocolDelayed;
  // eg. [cTokenAddress, iTokenAddress, ...]
  address[] public allAvailableTokens;
  // last fully applied allocations (ie when all liquidity has been correctly placed)
  // eg. [5000, 0, 5000, 0] for 50% in compound, 0% fulcrum, 50% aave, 0 dydx. same order of allAvailableTokens
  uint256[] public lastAllocations;
  // Map that saves avg idleToken price paid for each user
  mapping(address => uint256) public userAvgPrices;
  // Map that saves amount with no fee for each user
  mapping(address => uint256) private userNoFeeQty;
  // timestamp when new protocol wrapper has been queued for change
  // protocol_wrapper_address -> timestamp
  mapping(address => uint256) public releaseTimes;

  /**
   * @dev constructor, initialize some variables, mainly addresses of other contracts
   *
   * @param _name : IdleToken name
   * @param _symbol : IdleToken symbol
   * @param _decimals : IdleToken decimals
   * @param _token : underlying token address
   * @param _cToken : cToken address
   * @param _iToken : iToken address
   * @param _rebalancer : Idle Rebalancer address
   * @param _idleCompound : Idle Compound address
   * @param _idleFulcrum : Idle Fulcrum address
   */
  constructor(
    string memory _name, // eg. IdleDAI
    string memory _symbol, // eg. IDLEDAI
    uint8 _decimals, // eg. 18
    address _token,
    address _cToken,
    address _iToken,
    address _rebalancer,
    address _priceCalculator,
    address _idleCompound,
    address _idleFulcrum)
    public
    ERC20Detailed(_name, _symbol, _decimals) {
      token = _token;
      tokenDecimals = ERC20Detailed(_token).decimals();
      iToken = _iToken;
      rebalancer = _rebalancer;
      priceCalculator = _priceCalculator;
      protocolWrappers[_cToken] = _idleCompound;
      protocolWrappers[_iToken] = _idleFulcrum;
      allAvailableTokens = [_cToken, _iToken];
  }

  // During a black swan event is possible that iToken price decreases instead of increasing,
  // with the consequence of lowering the IdleToken price. To mitigate this we implemented a
  // check on the iToken price that prevents users from minting cheap IdleTokens or rebalancing
  // the pool in this specific case. The redeemIdleToken won't be paused but the rebalance process
  // won't be triggered in this case.
  modifier whenITokenPriceHasNotDecreased() {
    uint256 iTokenPrice = iERC20Fulcrum(iToken).tokenPrice();
    require(
      iTokenPrice >= lastITokenPrice || manualPlay,
      "Paused: iToken price decreased"
    );

    _;

    if (iTokenPrice > lastITokenPrice) {
      lastITokenPrice = iTokenPrice;
    }
  }

  // onlyOwner
  /**
   * It allows owner to set the IdleRebalancerV3 address
   *
   * @param _rebalancer : new IdleRebalancerV3 address
   */
  function setRebalancer(address _rebalancer)
    external onlyOwner {
      require(_rebalancer != address(0), 'Addr is 0');
      rebalancer = _rebalancer;
  }
  /**
   * It allows owner to set the IdlePriceCalculator address
   *
   * @param _priceCalculator : new IdlePriceCalculator address
   */
  function setPriceCalculator(address _priceCalculator)
    external onlyOwner {
      require(_priceCalculator != address(0), 'Addr is 0');
      if (!isNewProtocolDelayed || (releaseTimes[_priceCalculator] != 0 && now - releaseTimes[_priceCalculator] > NEW_PROTOCOL_DELAY)) {
        priceCalculator = _priceCalculator;
        releaseTimes[_priceCalculator] = 0;
        return;
      }
      releaseTimes[_priceCalculator] = now;
  }

  /**
   * It allows owner to set a protocol wrapper address
   *
   * @param _token : underlying token address (eg. DAI)
   * @param _wrapper : Idle protocol wrapper address
   */
  function setProtocolWrapper(address _token, address _wrapper)
    external onlyOwner {
      require(_token != address(0) && _wrapper != address(0), 'some addr is 0');

      if (!isNewProtocolDelayed || (releaseTimes[_wrapper] != 0 && now - releaseTimes[_wrapper] > NEW_PROTOCOL_DELAY)) {
        // update allAvailableTokens if needed
        if (protocolWrappers[_token] == address(0)) {
          allAvailableTokens.push(_token);
        }
        protocolWrappers[_token] = _wrapper;
        releaseTimes[_wrapper] = 0;
        return;
      }

      releaseTimes[_wrapper] = now;
  }

  /**
   * It allows owner to unpause the contract when iToken price decreased and didn't return to the expected level
   *
   * @param _manualPlay : flag
   */
  function setManualPlay(bool _manualPlay)
    external onlyOwner {
      manualPlay = _manualPlay;
  }

  /**
   * It allows owner to disable openRebalance
   *
   * @param _isRiskAdjusted : flag
   */
  function setIsRiskAdjusted(bool _isRiskAdjusted)
    external onlyOwner {
      isRiskAdjusted = _isRiskAdjusted;
  }

  /**
   * It permanently disable instant new protocols additions
   */
  function delayNewProtocols()
    external onlyOwner {
      isNewProtocolDelayed = true;
  }

  /**
   * It allows owner to set the fee (1000 == 10% of gained interest)
   *
   * @param _fee : fee amount where 100000 is 100%, max settable is MAX_FEE constant
   */
  function setFee(uint256 _fee)
    external onlyOwner {
      require(_fee <= MAX_FEE, "Fee too high");
      fee = _fee;
  }

  /**
   * It allows owner to set the fee address
   *
   * @param _feeAddress : fee address
   */
  function setFeeAddress(address _feeAddress)
    external onlyOwner {
      require(_feeAddress != address(0), 'Addr is 0');
      feeAddress = _feeAddress;
  }

  /**
   * It allows owner to set gas parameters
   *
   * @param _amounts : fee amount where 100000 is 100%, max settable is MAX_FEE constant
   */
  function setGasParams(uint256[] calldata _amounts)
    external onlyOwner {
      gasAmounts = _amounts;
  }
  // view
  /**
   * IdleToken price calculation, in underlying
   *
   * @return : price in underlying token
   */
  function tokenPrice()
    public view
    returns (uint256 price) {
      address[] memory protocolWrappersAddresses = new address[](allAvailableTokens.length);
      for (uint256 i = 0; i < allAvailableTokens.length; i++) {
        protocolWrappersAddresses[i] = protocolWrappers[allAvailableTokens[i]];
      }
      price = IdlePriceCalculator(priceCalculator).tokenPrice(
        totalSupply(), address(this), allAvailableTokens, protocolWrappersAddresses
      );
  }

  /**
   * Get APR of every ILendingProtocol
   *
   * @return addresses: array of token addresses
   * @return aprs: array of aprs (ordered in respect to the `addresses` array)
   */
  function getAPRs()
    external view
    returns (address[] memory addresses, uint256[] memory aprs) {
      address currToken;
      addresses = new address[](allAvailableTokens.length);
      aprs = new uint256[](allAvailableTokens.length);
      for (uint256 i = 0; i < allAvailableTokens.length; i++) {
        currToken = allAvailableTokens[i];
        addresses[i] = currToken;
        aprs[i] = ILendingProtocol(protocolWrappers[currToken]).getAPR();
      }
  }

  /**
   * Get current avg APR of this IdleToken
   *
   * @return avgApr: current weighted avg apr
   */
  function getAvgAPR()
    public view
    returns (uint256 avgApr) {
      (, uint256[] memory amounts, uint256 total) = _getCurrentAllocations();
      uint256 currApr;
      uint256 weight;
      for (uint256 i = 0; i < allAvailableTokens.length; i++) {
        if (amounts[i] == 0) {
          continue;
        }
        currApr = ILendingProtocol(protocolWrappers[allAvailableTokens[i]]).getAPR();
        weight = amounts[i].mul(10**18).div(total);
        avgApr = avgApr.add(currApr.mul(weight).div(10**18));
      }
  }

  // ##### ERC20 modified transfer and transferFrom that also update the avgPrice paid for the recipient
  function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) {
    _transfer(sender, recipient, amount);
    _approve(sender, msg.sender, allowance(sender, msg.sender).sub(amount, "ERC20: transfer amount exceeds allowance"));
    _updateAvgPrice(recipient, amount, userAvgPrices[sender]);
    return true;
  }
  function transfer(address recipient, uint256 amount) public returns (bool) {
    _transfer(msg.sender, recipient, amount);
    _updateAvgPrice(recipient, amount, userAvgPrices[msg.sender]);
    return true;
  }
  // #####

  // external
  /**
   * Used to mint IdleTokens, given an underlying amount (eg. DAI).
   * This method triggers a rebalance of the pools if needed and if _skipWholeRebalance is false
   * NOTE: User should 'approve' _amount of tokens before calling mintIdleToken
   * NOTE 2: this method can be paused
   * This method use GasTokens of this contract (if present) to get a gas discount
   *
   * @param _amount : amount of underlying token to be lended
   * @param _skipWholeRebalance : flag to choose whter to do a full rebalance or not
   * @return mintedTokens : amount of IdleTokens minted
   */
  function mintIdleToken(uint256 _amount, bool _skipWholeRebalance)
    external nonReentrant gasDiscountFrom(address(this))
    returns (uint256 mintedTokens) {
    return _mintIdleToken(_amount, new uint256[](0), _skipWholeRebalance);
  }

  /**
   * DEPRECATED: Used to mint IdleTokens, given an underlying amount (eg. DAI).
   * Keep for backward compatibility with IdleV2
   *
   * @param _amount : amount of underlying token to be lended
   * @param : not used, pass empty array
   * @return mintedTokens : amount of IdleTokens minted
   */
  function mintIdleToken(uint256 _amount, uint256[] calldata)
    external nonReentrant gasDiscountFrom(address(this))
    returns (uint256 mintedTokens) {
    return _mintIdleToken(_amount, new uint256[](0), false);
  }

  /**
   * Here we calc the pool share one can withdraw given the amount of IdleToken they want to burn
   * This method triggers a rebalance of the pools if needed
   * NOTE: If the contract is paused or iToken price has decreased one can still redeem but no rebalance happens.
   * NOTE 2: If iToken price has decresed one should not redeem (but can do it) otherwise he would capitalize the loss.
   *         Ideally one should wait until the black swan event is terminated
   *
   * @param _amount : amount of IdleTokens to be burned
   * @param _skipRebalance : whether to skip the rebalance process or not
   * @param : not used
   * @return redeemedTokens : amount of underlying tokens redeemed
   */
  function redeemIdleToken(uint256 _amount, bool _skipRebalance, uint256[] calldata)
    external nonReentrant
    returns (uint256 redeemedTokens) {
      uint256 balance;
      for (uint256 i = 0; i < allAvailableTokens.length; i++) {
        balance = IERC20(allAvailableTokens[i]).balanceOf(address(this));
        if (balance == 0) {
          continue;
        }
        redeemedTokens = redeemedTokens.add(
          _redeemProtocolTokens(
            protocolWrappers[allAvailableTokens[i]],
            allAvailableTokens[i],
            // _amount * protocolPoolBalance / idleSupply
            _amount.mul(balance).div(totalSupply()), // amount to redeem
            address(this)
          )
        );
      }

      _burn(msg.sender, _amount);
      if (fee > 0 && feeAddress != address(0)) {
        redeemedTokens = _getFee(_amount, redeemedTokens);
      }
      // send underlying minus fee to msg.sender
      IERC20(token).safeTransfer(msg.sender, redeemedTokens);

      if (this.paused() || iERC20Fulcrum(iToken).tokenPrice() < lastITokenPrice || _skipRebalance) {
        return redeemedTokens;
      }

      _rebalance(0, false);
  }

  /**
   * Here we calc the pool share one can withdraw given the amount of IdleToken they want to burn
   * and send interest-bearing tokens (eg. cDAI/iDAI) directly to the user.
   * Underlying (eg. DAI) is not redeemed here.
   *
   * @param _amount : amount of IdleTokens to be burned
   */
  function redeemInterestBearingTokens(uint256 _amount)
    external nonReentrant {
      uint256 idleSupply = totalSupply();
      address currentToken;
      uint256 balance;

      for (uint256 i = 0; i < allAvailableTokens.length; i++) {
        currentToken = allAvailableTokens[i];
        balance = IERC20(currentToken).balanceOf(address(this));
        if (balance == 0) {
          continue;
        }
        IERC20(currentToken).safeTransfer(
          msg.sender,
          _amount.mul(balance).div(idleSupply) // amount to redeem
        );
      }

      _burn(msg.sender, _amount);
  }

  /**
   * Allow any users to set new allocations as long as the new allocations
   * give a better avg APR than before
   * Allocations should be in the format [100000, 0, 0, 0, ...] where length is the same
   * as lastAllocations variable and the sum of all value should be == 100000
   *
   * This method is not callble if this instance of IdleToken is a risk adjusted instance
   * NOTE: this method can be paused
   *
   * @param _newAllocations : array with new allocations in percentage
   * @return : whether has rebalanced or not
   * @return avgApr : the new avg apr after rebalance
   */
  function openRebalance(uint256[] calldata _newAllocations)
    external whenNotPaused whenITokenPriceHasNotDecreased
    returns (bool, uint256 avgApr) {
      require(!isRiskAdjusted, "Setting allocations not allowed");
      uint256 initialAPR = getAvgAPR();
      // Validate and update rebalancer allocations
      IdleRebalancerV3(rebalancer).setAllocations(_newAllocations, allAvailableTokens);
      bool hasRebalanced = _rebalance(0, false);
      uint256 newAprAfterRebalance = getAvgAPR();
      require(newAprAfterRebalance > initialAPR, "APR not improved");
      return (hasRebalanced, newAprAfterRebalance);
  }

  /**
   * Dynamic allocate all the pool across different lending protocols if needed, use gas refund from gasToken
   *
   * NOTE: this method can be paused.
   * msg.sender should approve this contract to spend GST2 tokens before calling
   * this method
   *
   * @return : whether has rebalanced or not
   */
  function rebalanceWithGST()
    external gasDiscountFrom(msg.sender)
    returns (bool) {
      return _rebalance(0, false);
  }

  /**
   * DEPRECATED: Dynamic allocate all the pool across different lending protocols if needed,
   * Keep for backward compatibility with IdleV2
   *
   * NOTE: this method can be paused
   *
   * @param : not used
   * @param : not used
   * @return : whether has rebalanced or not
   */
  function rebalance(uint256, uint256[] calldata)
    external returns (bool) {
    return _rebalance(0, false);
  }

  /**
   * Dynamic allocate all the pool across different lending protocols if needed,
   * rebalance without params
   *
   * NOTE: this method can be paused
   *
   * @return : whether has rebalanced or not
   */
  function rebalance() external returns (bool) {
    return _rebalance(0, false);
  }

  /**
   * Get the contract balance of every protocol currently used
   *
   * @return tokenAddresses : array with all token addresses used,
   *                          eg [cTokenAddress, iTokenAddress]
   * @return amounts : array with all amounts for each protocol in order,
   *                   eg [amountCompoundInUnderlying, amountFulcrumInUnderlying]
   * @return total : total AUM in underlying
   */
  function getCurrentAllocations() external view
    returns (address[] memory tokenAddresses, uint256[] memory amounts, uint256 total) {
    return _getCurrentAllocations();
  }

  // internal
  /**
   * Used to mint IdleTokens, given an underlying amount (eg. DAI).
   * This method triggers a rebalance of the pools if needed
   * NOTE: User should 'approve' _amount of tokens before calling mintIdleToken
   * NOTE 2: this method can be paused
   * This method use GasTokens of this contract (if present) to get a gas discount
   *
   * @param _amount : amount of underlying token to be lended
   * @param : not used
   * @param _skipWholeRebalance : flag to decide if doing a simple mint or mint + rebalance
   * @return mintedTokens : amount of IdleTokens minted
   */
  function _mintIdleToken(uint256 _amount, uint256[] memory, bool _skipWholeRebalance)
    internal whenNotPaused whenITokenPriceHasNotDecreased
    returns (uint256 mintedTokens) {
      // Get current IdleToken price
      uint256 idlePrice = tokenPrice();
      // transfer tokens to this contract
      IERC20(token).safeTransferFrom(msg.sender, address(this), _amount);

      // Rebalance the current pool if needed and mint new supplied amount
      _rebalance(0, _skipWholeRebalance);

      mintedTokens = _amount.mul(10**18).div(idlePrice);
      _mint(msg.sender, mintedTokens);

      _updateAvgPrice(msg.sender, mintedTokens, idlePrice);
  }

  /**
   * Dynamic allocate all the pool across different lending protocols if needed
   *
   * NOTE: this method can be paused
   *
   * @param : not used
   * @return : whether has rebalanced or not
   */
  function _rebalance(uint256, bool _skipWholeRebalance)
    internal whenNotPaused whenITokenPriceHasNotDecreased
    returns (bool) {
      // check if we need to rebalance by looking at the allocations in rebalancer contract
      uint256[] memory rebalancerLastAllocations = IdleRebalancerV3(rebalancer).getAllocations();
      bool areAllocationsEqual = rebalancerLastAllocations.length == lastAllocations.length;
      if (areAllocationsEqual) {
        for (uint256 i = 0; i < lastAllocations.length || !areAllocationsEqual; i++) {
          if (lastAllocations[i] != rebalancerLastAllocations[i]) {
            areAllocationsEqual = false;
            break;
          }
        }
      }
      uint256 balance = IERC20(token).balanceOf(address(this));
      if (areAllocationsEqual && balance == 0) {
        return false;
      }

      if (balance > 0) {
        if (lastAllocations.length == 0 && _skipWholeRebalance) {
          // set in storage
          lastAllocations = rebalancerLastAllocations;
        }
        _mintWithAmounts(allAvailableTokens, _amountsFromAllocations(rebalancerLastAllocations, balance));
      }

      if (_skipWholeRebalance || areAllocationsEqual) {
        return false;
      }

      // Instead of redeeming everything during rebalance we redeem and mint only what needs
      // to be reallocated
      // get current allocations in underlying
      (address[] memory tokenAddresses, uint256[] memory amounts, uint256 totalInUnderlying) = _getCurrentAllocations();
      // calculate new allocations given the total
      uint256[] memory newAmounts = _amountsFromAllocations(rebalancerLastAllocations, totalInUnderlying);
      (uint256[] memory toMintAllocations, uint256 totalToMint, bool lowLiquidity) = _redeemAllNeeded(tokenAddresses, amounts, newAmounts);

      // if some protocol has liquidity that we should redeem, we do not update
      // lastAllocations to force another rebalance next time
      if (!lowLiquidity) {
        // Update lastAllocations with rebalancerLastAllocations
        delete lastAllocations;
        lastAllocations = rebalancerLastAllocations;
      }
      uint256 totalRedeemd = IERC20(token).balanceOf(address(this));
      if (totalRedeemd > 1 && totalToMint > 1) {
        // Do not mint directly using toMintAllocations check with totalRedeemd
        uint256[] memory tempAllocations = new uint256[](toMintAllocations.length);
        for (uint256 i = 0; i < toMintAllocations.length; i++) {
          // Calc what would have been the correct allocations percentage if all was available
          tempAllocations[i] = toMintAllocations[i].mul(100000).div(totalToMint);
        }

        uint256[] memory partialAmounts = _amountsFromAllocations(tempAllocations, totalRedeemd);
        _mintWithAmounts(allAvailableTokens, partialAmounts);
      }

      return true; // hasRebalanced
  }

  /**
   * Update avg price paid for each idle token of a user
   *
   * @param usr : user that should have balance update
   * @param qty : new amount deposited / transferred, in idleToken
   * @param price : curr idleToken price in underlying
   */
  function _updateAvgPrice(address usr, uint256 qty, uint256 price) internal {
    if (fee == 0) {
      userNoFeeQty[usr] = userNoFeeQty[usr].add(qty);
      return;
    }

    uint256 totBalance = balanceOf(usr).sub(userNoFeeQty[usr]);
    uint256 oldAvgPrice = userAvgPrices[usr];
    uint256 oldBalance = totBalance.sub(qty);
    userAvgPrices[usr] = oldAvgPrice.mul(oldBalance).div(totBalance).add(price.mul(qty).div(totBalance));
  }

  /**
   * Calculate fee and send them to feeAddress
   *
   * @param amount : in idleTokens
   * @param redeemed : in underlying
   * @return : net value in underlying
   */
  function _getFee(uint256 amount, uint256 redeemed) internal returns (uint256) {
    uint256 noFeeQty = userNoFeeQty[msg.sender];
    uint256 currPrice = tokenPrice();
    if (noFeeQty > 0 && noFeeQty > amount) {
      noFeeQty = amount;
    }

    uint256 totalValPaid = noFeeQty.mul(currPrice).add(amount.sub(noFeeQty).mul(userAvgPrices[msg.sender])).div(10**18);
    uint256 currVal = amount.mul(currPrice).div(10**18);
    if (currVal < totalValPaid) {
      return redeemed;
    }
    uint256 gain = currVal.sub(totalValPaid);
    uint256 feeDue = gain.mul(fee).div(100000);
    IERC20(token).safeTransfer(feeAddress, feeDue);
    userNoFeeQty[msg.sender] = userNoFeeQty[msg.sender].sub(noFeeQty);
    return currVal.sub(feeDue);
  }

  /**
   * Mint specific amounts of protocols tokens
   *
   * @param tokenAddresses : array of protocol tokens
   * @param protocolAmounts : array of amounts to be minted
   * @return : net value in underlying
   */
  function _mintWithAmounts(address[] memory tokenAddresses, uint256[] memory protocolAmounts) internal {
    // mint for each protocol and update currentTokensUsed
    require(tokenAddresses.length == protocolAmounts.length, "All tokens length != allocations length");

    uint256 currAmount;

    for (uint256 i = 0; i < protocolAmounts.length; i++) {
      currAmount = protocolAmounts[i];
      if (currAmount == 0) {
        continue;
      }
      _mintProtocolTokens(protocolWrappers[tokenAddresses[i]], currAmount);
    }
  }

  /**
   * Calculate amounts from percentage allocations (100000 => 100%)
   *
   * @param allocations : array of protocol allocations in percentage
   * @param total : total amount
   * @return : array with amounts
   */
  function _amountsFromAllocations(uint256[] memory allocations, uint256 total)
    internal pure returns (uint256[] memory) {
    uint256[] memory newAmounts = new uint256[](allocations.length);
    uint256 currBalance = 0;
    uint256 allocatedBalance = 0;

    for (uint256 i = 0; i < allocations.length; i++) {
      if (i == allocations.length - 1) {
        newAmounts[i] = total.sub(allocatedBalance);
      } else {
        currBalance = total.mul(allocations[i]).div(100000);
        allocatedBalance = allocatedBalance.add(currBalance);
        newAmounts[i] = currBalance;
      }
    }
    return newAmounts;
  }

  /**
   * Redeem all underlying needed from each protocol
   *
   * @param tokenAddresses : array of protocol tokens addresses
   * @param amounts : array with current allocations in underlying
   * @param newAmounts : array with new allocations in underlying
   * @return toMintAllocations : array with amounts to be minted
   * @return totalToMint : total amount that needs to be minted
   */
  function _redeemAllNeeded(
    address[] memory tokenAddresses,
    uint256[] memory amounts,
    uint256[] memory newAmounts
    ) internal returns (
      uint256[] memory toMintAllocations,
      uint256 totalToMint,
      bool lowLiquidity
    ) {
    require(amounts.length == newAmounts.length, 'Lengths not equal');
    toMintAllocations = new uint256[](amounts.length);
    ILendingProtocol protocol;
    uint256 currAmount;
    uint256 newAmount;
    address currToken;
    // check the difference between amounts and newAmounts
    for (uint256 i = 0; i < amounts.length; i++) {
      currToken = tokenAddresses[i];
      newAmount = newAmounts[i];
      currAmount = amounts[i];
      protocol = ILendingProtocol(protocolWrappers[currToken]);
      if (currAmount > newAmount) {
        toMintAllocations[i] = 0;
        uint256 toRedeem = currAmount.sub(newAmount);
        uint256 availableLiquidity = protocol.availableLiquidity();
        if (availableLiquidity < toRedeem) {
          lowLiquidity = true;
          toRedeem = availableLiquidity;
        }
        // redeem the difference
        _redeemProtocolTokens(
          protocolWrappers[currToken],
          currToken,
          // convert amount from underlying to protocol token
          toRedeem.mul(10**18).div(protocol.getPriceInToken()),
          address(this) // tokens are now in this contract
        );
      } else {
        toMintAllocations[i] = newAmount.sub(currAmount);
        totalToMint = totalToMint.add(toMintAllocations[i]);
      }
    }
  }

  /**
   * Get the contract balance of every protocol currently used
   *
   * @return tokenAddresses : array with all token addresses used,
   *                          eg [cTokenAddress, iTokenAddress]
   * @return amounts : array with all amounts for each protocol in order,
   *                   eg [amountCompoundInUnderlying, amountFulcrumInUnderlying]
   * @return total : total AUM in underlying
   */
  function _getCurrentAllocations() internal view
    returns (address[] memory tokenAddresses, uint256[] memory amounts, uint256 total) {
      // Get balance of every protocol implemented
      tokenAddresses = new address[](allAvailableTokens.length);
      amounts = new uint256[](allAvailableTokens.length);

      address currentToken;
      uint256 currTokenPrice;

      for (uint256 i = 0; i < allAvailableTokens.length; i++) {
        currentToken = allAvailableTokens[i];
        tokenAddresses[i] = currentToken;
        currTokenPrice = ILendingProtocol(protocolWrappers[currentToken]).getPriceInToken();
        amounts[i] = currTokenPrice.mul(
          IERC20(currentToken).balanceOf(address(this))
        ).div(10**18);
        total = total.add(amounts[i]);
      }

      // return addresses and respective amounts in underlying
      return (tokenAddresses, amounts, total);
  }

  // ILendingProtocols calls
  /**
   * Mint protocol tokens through protocol wrapper
   *
   * @param _wrapperAddr : address of protocol wrapper
   * @param _amount : amount of underlying to be lended
   * @return tokens : new tokens minted
   */
  function _mintProtocolTokens(address _wrapperAddr, uint256 _amount)
    internal
    returns (uint256 tokens) {
      if (_amount == 0) {
        return tokens;
      }
      // Transfer _amount underlying token (eg. DAI) to _wrapperAddr
      IERC20(token).safeTransfer(_wrapperAddr, _amount);
      tokens = ILendingProtocol(_wrapperAddr).mint();
  }

  /**
   * Redeem underlying tokens through protocol wrapper
   *
   * @param _wrapperAddr : address of protocol wrapper
   * @param _amount : amount of `_token` to redeem
   * @param _token : protocol token address
   * @param _account : should be msg.sender when rebalancing and final user when redeeming
   * @return tokens : new tokens minted
   */
  function _redeemProtocolTokens(address _wrapperAddr, address _token, uint256 _amount, address _account)
    internal
    returns (uint256 tokens) {
      if (_amount == 0) {
        return tokens;
      }
      // Transfer _amount of _protocolToken (eg. cDAI) to _wrapperAddr
      IERC20(_token).safeTransfer(_wrapperAddr, _amount);
      tokens = ILendingProtocol(_wrapperAddr).redeem(_account);
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint8","name":"_decimals","type":"uint8"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_cToken","type":"address"},{"internalType":"address","name":"_iToken","type":"address"},{"internalType":"address","name":"_rebalancer","type":"address"},{"internalType":"address","name":"_priceCalculator","type":"address"},{"internalType":"address","name":"_idleCompound","type":"address"},{"internalType":"address","name":"_idleFulcrum","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":true,"internalType":"address","name":"account","type":"address"}],"name":"PauserAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"PauserRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addPauser","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"allAvailableTokens","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"delayNewProtocols","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"fee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"feeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getAPRs","outputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"aprs","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getAvgAPR","outputs":[{"internalType":"uint256","name":"avgApr","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getCurrentAllocations","outputs":[{"internalType":"address[]","name":"tokenAddresses","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"uint256","name":"total","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"gst2","outputs":[{"internalType":"contract GasToken","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"iToken","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isNewProtocolDelayed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isPauser","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isRiskAdjusted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lastAllocations","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lastITokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"manualPlay","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"name":"mintIdleToken","outputs":[{"internalType":"uint256","name":"mintedTokens","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"_skipWholeRebalance","type":"bool"}],"name":"mintIdleToken","outputs":[{"internalType":"uint256","name":"mintedTokens","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256[]","name":"_newAllocations","type":"uint256[]"}],"name":"openRebalance","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"uint256","name":"avgApr","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"pause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"priceCalculator","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"protocolWrappers","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"name":"rebalance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"rebalance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"rebalanceWithGST","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rebalancer","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"_skipRebalance","type":"bool"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"name":"redeemIdleToken","outputs":[{"internalType":"uint256","name":"redeemedTokens","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"redeemInterestBearingTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"releaseTimes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"renouncePauser","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setFee","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_feeAddress","type":"address"}],"name":"setFeeAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"setGasParams","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bool","name":"_isRiskAdjusted","type":"bool"}],"name":"setIsRiskAdjusted","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bool","name":"_manualPlay","type":"bool"}],"name":"setManualPlay","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_priceCalculator","type":"address"}],"name":"setPriceCalculator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_wrapper","type":"address"}],"name":"setProtocolWrapper","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_rebalancer","type":"address"}],"name":"setRebalancer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokenDecimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokenPrice","outputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"unpause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userAvgPrices","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"}]

61010060405261374a608090815261a0aa60a052616c3e60c052611b6c60e0526200002f90600a9060046200054c565b503480156200003d57600080fd5b5060405162005d4f38038062005d4f83398181016040526101408110156200006457600080fd5b81019080805160405193929190846401000000008211156200008557600080fd5b9083019060208201858111156200009b57600080fd5b8251640100000000811182820188101715620000b657600080fd5b82525081516020918201929091019080838360005b83811015620000e5578181015183820152602001620000cb565b50505050905090810190601f168015620001135780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200013757600080fd5b9083019060208201858111156200014d57600080fd5b82516401000000008111828201881017156200016857600080fd5b82525081516020918201929091019080838360005b83811015620001975781810151838201526020016200017d565b50505050905090810190601f168015620001c55780820380516001836020036101000a031916815260200191505b506040908152602082810151918301516060840151608085015160a086015160c087015160e0880151610100909801518c51979a50949850929691959094929391928b918b918b916200021f9160039190860190620005a2565b50815162000235906004906020850190620005a2565b506005805460ff191660ff92909216919091179055505060016006556200025b620003ff565b600780546001600160a01b0319166001600160a01b0392831617908190556040519116906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3620002cd620002be6001600160e01b03620003ff16565b6001600160e01b036200040416565b6009805460ff19169055600c80546001600160a01b0319166001600160a01b0389169081179091556040805163313ce56760e01b8152905163313ce56791600480820192602092909190829003018186803b1580156200032c57600080fd5b505afa15801562000341573d6000803e3d6000fd5b505050506040513d60208110156200035857600080fd5b505160ff16601255600d80546001600160a01b03199081166001600160a01b03888116918217909355600e80548316888516179055600f805483168785161790558883166000818152600b60209081526040808320805487168a8916179055848352918290208054909516958716959095179093558251808401909352825291810191909152620003ee90601590600262000615565b5050505050505050505050620006bf565b335b90565b6200041f8160086200045660201b6200518c1790919060201c565b6040516001600160a01b038216907f6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f890600090a250565b6200046b82826001600160e01b03620004e316565b15620004be576040805162461bcd60e51b815260206004820152601f60248201527f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500604482015290519081900360640190fd5b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b60006001600160a01b0382166200052c5760405162461bcd60e51b815260040180806020018281038252602281526020018062005d2d6022913960400191505060405180910390fd5b506001600160a01b03166000908152602091909152604090205460ff1690565b82805482825590600052602060002090810192821562000590579160200282015b8281111562000590578251829061ffff169055916020019190600101906200056d565b506200059e9291506200067b565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620005e557805160ff191683800117855562000590565b8280016001018555821562000590579182015b8281111562000590578251825591602001919060010190620005f8565b8280548282559060005260206000209081019282156200066d579160200282015b828111156200066d57825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000636565b506200059e92915062000698565b6200040191905b808211156200059e576000815560010162000682565b6200040191905b808211156200059e5780546001600160a01b03191681556001016200069f565b61565e80620006cf6000396000f3fe608060405234801561001057600080fd5b50600436106103995760003560e01c8063715018a6116101e9578063b13bd4911161010f578063dae0f05e116100ad578063f2ce58061161007c578063f2ce580614610cfe578063f2d50ba614610d39578063f2fde38b14610d41578063fc0c546a14610d7457610399565b8063dae0f05e14610c80578063dba2d85d14610cb3578063dd62ed3e14610cbb578063ddca3f4314610cf657610399565b8063c85c93aa116100e9578063c85c93aa14610b50578063cb390f9714610bce578063cb50648814610bd6578063da5163cc14610bf557610399565b8063b13bd49114610a82578063be6fb53614610b23578063bf7143c114610b2b57610399565b80638b95e335116101875780639fc7875b116101565780639fc7875b146109eb578063a457c2d7146109f3578063a9059cbb14610a2c578063afdd3fc314610a6557610399565b80638b95e335146109cb5780638da5cb5b146109d35780638f32d59b146109db57806395d89b41146109e357610399565b806382ba653d116101c357806382ba653d1461093e57806382dc1ec41461095d5780638456cb59146109905780638705fcd41461099857610399565b8063715018a6146109265780637d7c2a1c1461092e5780637ff9b5961461093657610399565b80633b97e856116102ce57806346fbf68e1161026c57806369fe0e2d1161023b57806369fe0e2d1461089b5780636cfd1553146108b85780636ef8d66d146108eb57806370a08231146108f357610399565b806346fbf68e146107b65780635c975abb146107e95780636922d7b6146107f157806369ad6af21461082457610399565b8063408cfe24116102a8578063408cfe24146106cb57806341275358146106d357806341826c2d146106db57806345c8026c1461078357610399565b80633b97e856146106445780633cfcef641461064c5780633f4ba83a146106c357610399565b80631f80b18a1161033b578063313ce56711610315578063313ce56714610560578063321551251461057e57806336a00082146105ee578063395093511461060b57610399565b80631f80b18a1461050d57806323b872dd1461051557806323d39ab51461055857610399565b80630df94ef2116103775780630df94ef214610499578063154cf14e146104de57806318160ddd146104e8578063194a62a8146104f057610399565b806301d22ccd1461039e57806306fdde03146103cf578063095ea7b31461044c575b600080fd5b6103a6610d7c565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6103d7610d98565b6040805160208082528351818301528351919283929083019185019080838360005b838110156104115781810151838201526020016103f9565b50505050905090810190601f16801561043e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6104856004803603604081101561046257600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610e4d565b604080519115158252519081900360200190f35b6104cc600480360360208110156104af57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610e6b565b60408051918252519081900360200190f35b6104e6610e7d565b005b6104cc610f05565b6104e66004803603602081101561050657600080fd5b5035610f0b565b6104cc6110a6565b6104856004803603606081101561052b57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135611228565b6103a66112b0565b6105686112c3565b6040805160ff9092168252519081900360200190f35b6104e66004803603602081101561059457600080fd5b8101906020810181356401000000008111156105af57600080fd5b8201836020820111156105c157600080fd5b803590602001918460208302840111640100000000831117156105e357600080fd5b5090925090506112cc565b6103a66004803603602081101561060457600080fd5b5035611336565b6104856004803603604081101561062157600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013561136a565b6104cc6113cb565b6104cc6004803603604081101561066257600080fd5b8135919081019060408101602082013564010000000081111561068457600080fd5b82018360208201111561069657600080fd5b803590602001918460208302840111640100000000831117156106b857600080fd5b5090925090506113d1565b6104e661146e565b6103a661158b565b6103a66115a7565b6106e36115c3565b604051808060200180602001848152602001838103835286818151815260200191508051906020019060200280838360005b8381101561072d578181015183820152602001610715565b50505050905001838103825285818151815260200191508051906020019060200280838360005b8381101561076c578181015183820152602001610754565b505050509050019550505050505060405180910390f35b6103a66004803603602081101561079957600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166115db565b610485600480360360208110156107cc57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611603565b610485611616565b6104e66004803603602081101561080757600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661161f565b6104856004803603604081101561083a57600080fd5b8135919081019060408101602082013564010000000081111561085c57600080fd5b82018360208201111561086e57600080fd5b8035906020019184602083028401116401000000008311171561089057600080fd5b5090925090506117db565b6104e6600480360360208110156108b157600080fd5b50356117f0565b6104e6600480360360208110156108ce57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166118a5565b6104e66119ad565b6104cc6004803603602081101561090957600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166119bf565b6104e66119e7565b610485611aaf565b6104cc611ac1565b6104e66004803603602081101561095457600080fd5b50351515611ceb565b6104e66004803603602081101561097357600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611d75565b6104e6611dc4565b6104e6600480360360208110156109ae57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611eb6565b6103a6611fbe565b6103a6611fda565b610485611ff6565b6103d7612036565b6104856120b5565b61048560048036036040811015610a0957600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356120be565b61048560048036036040811015610a4257600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135612139565b6104cc60048036036020811015610a7b57600080fd5b5035612163565b610a8a612181565b604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015610ace578181015183820152602001610ab6565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015610b0d578181015183820152602001610af5565b5050505090500194505050505060405180910390f35b610485612315565b6104cc60048036036040811015610b4157600080fd5b50803590602001351515612324565b6104cc60048036036060811015610b6657600080fd5b8135916020810135151591810190606081016040820135640100000000811115610b8f57600080fd5b820183602082011115610ba157600080fd5b80359060200191846020830284011164010000000083111715610bc357600080fd5b5090925090506123c0565b610485612753565b6104e660048036036020811015610bec57600080fd5b50351515612761565b610c6560048036036020811015610c0b57600080fd5b810190602081018135640100000000811115610c2657600080fd5b820183602082011115610c3857600080fd5b80359060200191846020830284011164010000000083111715610c5a57600080fd5b5090925090506127f1565b60408051921515835260208301919091528051918290030190f35b6104cc60048036036020811015610c9657600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16612b72565b610485612b84565b6104cc60048036036040811015610cd157600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516612baa565b6104cc612be2565b6104e660048036036040811015610d1457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516612be8565b6104cc612e70565b6104e660048036036020811015610d5757600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16612e76565b6103a6612ed8565b600e5473ffffffffffffffffffffffffffffffffffffffff1681565b60038054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610e425780601f10610e1757610100808354040283529160200191610e42565b820191906000526020600020905b815481529060010190602001808311610e2557829003601f168201915b505050505090505b90565b6000610e61610e5a612ef4565b8484612ef8565b5060015b92915050565b60176020526000908152604090205481565b610e85611ff6565b610ed6576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b601480547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff1662010000179055565b60025490565b60068054600101908190556000610f20610f05565b9050600080805b60155481101561103e5760158181548110610f3e57fe5b60009182526020918290200154604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff909216955085926370a0823192602480840193829003018186803b158015610fb657600080fd5b505afa158015610fca573d6000803e3d6000fd5b505050506040513d6020811015610fe057600080fd5b5051915081610fee57611036565b61103633611012866110068a8763ffffffff61300b16565b9063ffffffff61306b16565b73ffffffffffffffffffffffffffffffffffffffff8616919063ffffffff6130ad16565b600101610f27565b50611049338661313a565b50505060065481146110a2576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b5050565b6000606060006110b461326a565b90935091506000905080805b601554811015611220578481815181106110d657fe5b6020026020010151600014156110eb57611218565b600b6000601583815481106110fc57fe5b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff90811684528382019490945260409283019091205482517fc89d5b8b000000000000000000000000000000000000000000000000000000008152925193169263c89d5b8b926004808201939291829003018186803b15801561118057600080fd5b505afa158015611194573d6000803e3d6000fd5b505050506040513d60208110156111aa57600080fd5b505185519093506111e790859061100690670de0b6b3a7640000908990869081106111d157fe5b602002602001015161300b90919063ffffffff16565b9150611215611208670de0b6b3a7640000611006868663ffffffff61300b16565b879063ffffffff6134e316565b95505b6001016110c0565b505050505090565b600061123584848461353d565b611273843361126e85604051806060016040528060288152602001615527602891396112618a33612baa565b919063ffffffff6136da16565b612ef8565b73ffffffffffffffffffffffffffffffffffffffff84166000908152601760205260409020546112a69084908490613771565b5060019392505050565b6eb3f879cb30fe243b4dfee438691c0481565b60055460ff1690565b6112d4611ff6565b611325576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b611331600a8383615320565b505050565b6015818154811061134357fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b6000610e61611377612ef4565b8461126e8560016000611388612ef4565b73ffffffffffffffffffffffffffffffffffffffff908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6134e316565b60125481565b600680546001019081905560009030825a604080516000808252602082019092529192506114009189916138b8565b935061140e5a820383613a9d565b50506006548114611466576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b509392505050565b61147e611479612ef4565b611603565b6114b95760405162461bcd60e51b81526004018080602001828103825260308152602001806154206030913960400191505060405180910390fd5b60095460ff16611510576040805162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015290519081900360640190fd5b600980547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611561612ef4565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190a1565b600d5473ffffffffffffffffffffffffffffffffffffffff1681565b60105473ffffffffffffffffffffffffffffffffffffffff1681565b60608060006115d061326a565b925092509250909192565b600b6020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b6000610e6560088363ffffffff613cbd16565b60095460ff1690565b611627611ff6565b611678576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff81166116e0576040805162461bcd60e51b815260206004820152600960248201527f4164647220697320300000000000000000000000000000000000000000000000604482015290519081900360640190fd5b60145462010000900460ff161580611753575073ffffffffffffffffffffffffffffffffffffffff811660009081526019602052604090205415801590611753575073ffffffffffffffffffffffffffffffffffffffff81166000908152601960205260409020546203f4804291909103115b156117af57600f80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556000908152601960205260408120556117d8565b73ffffffffffffffffffffffffffffffffffffffff811660009081526019602052604090204290555b50565b60006117e8600080613d3e565b949350505050565b6117f8611ff6565b611849576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6127108111156118a0576040805162461bcd60e51b815260206004820152600c60248201527f46656520746f6f20686967680000000000000000000000000000000000000000604482015290519081900360640190fd5b601355565b6118ad611ff6565b6118fe576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116611966576040805162461bcd60e51b815260206004820152600960248201527f4164647220697320300000000000000000000000000000000000000000000000604482015290519081900360640190fd5b600e80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6119bd6119b8612ef4565b6143fd565b565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b6119ef611ff6565b611a40576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60075460405160009173ffffffffffffffffffffffffffffffffffffffff16907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600780547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b6000611abc600080613d3e565b905090565b60006060601580549050604051908082528060200260200182016040528015611af4578160200160208202803883390190505b50905060005b601554811015611b8a57600b600060158381548110611b1557fe5b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff90811684529083019390935260409091019020548351911690839083908110611b5d57fe5b73ffffffffffffffffffffffffffffffffffffffff90921660209283029190910190910152600101611afa565b50600f5473ffffffffffffffffffffffffffffffffffffffff1663f28f3221611bb1610f05565b306015856040518563ffffffff1660e01b8152600401808581526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001806020018381038352858181548152602001915080548015611c5c57602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff168152600190910190602001808311611c31575b50508381038252845181528451602091820191808701910280838360005b83811015611c92578181015183820152602001611c7a565b50505050905001965050505050505060206040518083038186803b158015611cb957600080fd5b505afa158015611ccd573d6000803e3d6000fd5b505050506040513d6020811015611ce357600080fd5b505192915050565b611cf3611ff6565b611d44576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b601480547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b611d80611479612ef4565b611dbb5760405162461bcd60e51b81526004018080602001828103825260308152602001806154206030913960400191505060405180910390fd5b6117d881614452565b611dcf611479612ef4565b611e0a5760405162461bcd60e51b81526004018080602001828103825260308152602001806154206030913960400191505060405180910390fd5b60095460ff1615611e62576040805162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b600980547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611561612ef4565b611ebe611ff6565b611f0f576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116611f77576040805162461bcd60e51b815260206004820152600960248201527f4164647220697320300000000000000000000000000000000000000000000000604482015290519081900360640190fd5b601080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600f5473ffffffffffffffffffffffffffffffffffffffff1681565b60075473ffffffffffffffffffffffffffffffffffffffff1690565b60075460009073ffffffffffffffffffffffffffffffffffffffff1661201a612ef4565b73ffffffffffffffffffffffffffffffffffffffff1614905090565b60048054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610e425780601f10610e1757610100808354040283529160200191610e42565b60145460ff1681565b6000610e616120cb612ef4565b8461126e8560405180606001604052806025815260200161560560259139600160006120f5612ef4565b73ffffffffffffffffffffffffffffffffffffffff908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff6136da16565b600061214633848461353d565b33600090815260176020526040902054610e619084908490613771565b6016818154811061217057fe5b600091825260209091200154905081565b60608060006015805490506040519080825280602002602001820160405280156121b5578160200160208202803883390190505b5060155460408051828152602080840282010190915291945080156121e4578160200160208202803883390190505b50915060005b60155481101561230f576015818154811061220157fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691508184828151811061223b57fe5b73ffffffffffffffffffffffffffffffffffffffff9283166020918202929092018101919091528382166000908152600b82526040908190205481517fc89d5b8b000000000000000000000000000000000000000000000000000000008152915193169263c89d5b8b92600480840193919291829003018186803b1580156122c257600080fd5b505afa1580156122d6573d6000803e3d6000fd5b505050506040513d60208110156122ec57600080fd5b505183518490839081106122fc57fe5b60209081029190910101526001016121ea565b50509091565b60145462010000900460ff1681565b600680546001019081905560009030825a604080516000815260208101909152909150612353908790876138b8565b93506123615a820383613a9d565b505060065481146123b9576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b5092915050565b600680546001019081905560009081805b60155481101561255257601581815481106123e857fe5b60009182526020918290200154604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff909216926370a0823192602480840193829003018186803b15801561245d57600080fd5b505afa158015612471573d6000803e3d6000fd5b505050506040513d602081101561248757600080fd5b50519150816124955761254a565b61254761253a600b6000601585815481106124ac57fe5b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff908116845290830193909352604090910190205460158054919092169190859081106124f757fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16612534612524610f05565b6110068e8963ffffffff61300b16565b306144a7565b859063ffffffff6134e316565b93505b6001016123d1565b5061255d338861313a565b6000601354118015612586575060105473ffffffffffffffffffffffffffffffffffffffff1615155b1561259857612595878461458e565b92505b600c546125c29073ffffffffffffffffffffffffffffffffffffffff16338563ffffffff6130ad16565b3073ffffffffffffffffffffffffffffffffffffffff16635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b15801561260857600080fd5b505afa15801561261c573d6000803e3d6000fd5b505050506040513d602081101561263257600080fd5b5051806126d35750601154600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637ff9b5966040518163ffffffff1660e01b815260040160206040518083038186803b1580156126a557600080fd5b505afa1580156126b9573d6000803e3d6000fd5b505050506040513d60208110156126cf57600080fd5b5051105b806126db5750855b156126e657506126f4565b6126f1600080613d3e565b50505b600654811461274a576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b50949350505050565b601454610100900460ff1681565b612769611ff6565b6127ba576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60148054911515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff909216919091179055565b600954600090819060ff161561284e576040805162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b600d54604080517f7ff9b596000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff1691637ff9b596916004808301926020929190829003018186803b1580156128b957600080fd5b505afa1580156128cd573d6000803e3d6000fd5b505050506040513d60208110156128e357600080fd5b5051601154909150811015806128fb575060145460ff165b61294c576040805162461bcd60e51b815260206004820152601e60248201527f5061757365643a2069546f6b656e207072696365206465637265617365640000604482015290519081900360640190fd5b601454610100900460ff16156129a9576040805162461bcd60e51b815260206004820152601f60248201527f53657474696e6720616c6c6f636174696f6e73206e6f7420616c6c6f77656400604482015290519081900360640190fd5b60006129b36110a6565b600e54604080517fae773c10000000000000000000000000000000000000000000000000000000008152600481019182526044810189905292935073ffffffffffffffffffffffffffffffffffffffff9091169163ae773c10918991899160159181906024810190606401866020870280828437600083820152601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016909101848103835285548082526020909101915085908015612aaa57602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff168152600190910190602001808311612a7f575b505095505050505050600060405180830381600087803b158015612acd57600080fd5b505af1158015612ae1573d6000803e3d6000fd5b505050506000612af2600080613d3e565b90506000612afe6110a6565b9050828111612b54576040805162461bcd60e51b815260206004820152601060248201527f415052206e6f7420696d70726f76656400000000000000000000000000000000604482015290519081900360640190fd5b909450925050601154811115612b6a5760118190555b509250929050565b60196020526000908152604090205481565b60003360005a9050612b97600080613d3e565b9250612ba55a820383613a9d565b505090565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b60135481565b612bf0611ff6565b612c41576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff821615801590612c7b575073ffffffffffffffffffffffffffffffffffffffff811615155b612ccc576040805162461bcd60e51b815260206004820152600e60248201527f736f6d6520616464722069732030000000000000000000000000000000000000604482015290519081900360640190fd5b60145462010000900460ff161580612d3f575073ffffffffffffffffffffffffffffffffffffffff811660009081526019602052604090205415801590612d3f575073ffffffffffffffffffffffffffffffffffffffff81166000908152601960205260409020546203f4804291909103115b15612e465773ffffffffffffffffffffffffffffffffffffffff8281166000908152600b602052604090205416612de157601580546001810182556000919091527f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec4750180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84161790555b73ffffffffffffffffffffffffffffffffffffffff8281166000908152600b6020908152604080832080547fffffffffffffffffffffffff000000000000000000000000000000000000000016948616948517905592825260199052908120556110a2565b73ffffffffffffffffffffffffffffffffffffffff16600090815260196020526040902042905550565b60115481565b612e7e611ff6565b612ecf576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6117d8816146fb565b600c5473ffffffffffffffffffffffffffffffffffffffff1681565b3390565b73ffffffffffffffffffffffffffffffffffffffff8316612f4a5760405162461bcd60e51b81526004018080602001828103825260248152602001806155b76024913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8216612f9c5760405162461bcd60e51b81526004018080602001828103825260228152602001806154766022913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b60008261301a57506000610e65565b8282028284828161302757fe5b04146130645760405162461bcd60e51b81526004018080602001828103825260218152602001806155066021913960400191505060405180910390fd5b9392505050565b600061306483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506147db565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052611331908490614840565b73ffffffffffffffffffffffffffffffffffffffff821661318c5760405162461bcd60e51b81526004018080602001828103825260218152602001806155716021913960400191505060405180910390fd5b6131dc816040518060600160405280602281526020016153fe6022913973ffffffffffffffffffffffffffffffffffffffff8516600090815260208190526040902054919063ffffffff6136da16565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260208190526040902055600254613215908263ffffffff614a3616565b60025560408051828152905160009173ffffffffffffffffffffffffffffffffffffffff8516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b606080600060158054905060405190808252806020026020018201604052801561329e578160200160208202803883390190505b5060155460408051828152602080840282010190915291945080156132cd578160200160208202803883390190505b509150600080805b6015548110156134db57601581815481106132ec57fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1692508286828151811061332657fe5b73ffffffffffffffffffffffffffffffffffffffff9283166020918202929092018101919091528482166000908152600b82526040908190205481517f02bbce4600000000000000000000000000000000000000000000000000000000815291519316926302bbce4692600480840193919291829003018186803b1580156133ad57600080fd5b505afa1580156133c1573d6000803e3d6000fd5b505050506040513d60208110156133d757600080fd5b5051604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905191935061349391670de0b6b3a7640000916110069173ffffffffffffffffffffffffffffffffffffffff8816916370a08231916024808301926020929190829003018186803b15801561345a57600080fd5b505afa15801561346e573d6000803e3d6000fd5b505050506040513d602081101561348457600080fd5b5051859063ffffffff61300b16565b85828151811061349f57fe5b6020026020010181815250506134d18582815181106134ba57fe5b6020026020010151856134e390919063ffffffff16565b93506001016132d5565b505050909192565b600082820183811015613064576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff831661358f5760405162461bcd60e51b81526004018080602001828103825260258152602001806155926025913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff82166135e15760405162461bcd60e51b81526004018080602001828103825260238152602001806153db6023913960400191505060405180910390fd5b613631816040518060600160405280602681526020016154986026913973ffffffffffffffffffffffffffffffffffffffff8616600090815260208190526040902054919063ffffffff6136da16565b73ffffffffffffffffffffffffffffffffffffffff8085166000908152602081905260408082209390935590841681522054613673908263ffffffff6134e316565b73ffffffffffffffffffffffffffffffffffffffff8084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156137695760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561372e578181015183820152602001613716565b50505050905090810190601f16801561375b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6013546137d95773ffffffffffffffffffffffffffffffffffffffff83166000908152601860205260409020546137ae908363ffffffff6134e316565b73ffffffffffffffffffffffffffffffffffffffff8416600090815260186020526040902055611331565b73ffffffffffffffffffffffffffffffffffffffff83166000908152601860205260408120546138189061380c866119bf565b9063ffffffff614a3616565b73ffffffffffffffffffffffffffffffffffffffff8516600090815260176020526040812054919250613851838663ffffffff614a3616565b905061388a61386a84611006878963ffffffff61300b16565b61387e85611006868663ffffffff61300b16565b9063ffffffff6134e316565b73ffffffffffffffffffffffffffffffffffffffff8716600090815260176020526040902055505050505050565b60095460009060ff1615613913576040805162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b600d54604080517f7ff9b596000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff1691637ff9b596916004808301926020929190829003018186803b15801561397e57600080fd5b505afa158015613992573d6000803e3d6000fd5b505050506040513d60208110156139a857600080fd5b5051601154909150811015806139c0575060145460ff165b613a11576040805162461bcd60e51b815260206004820152601e60248201527f5061757365643a2069546f6b656e207072696365206465637265617365640000604482015290519081900360640190fd5b6000613a1b611ac1565b600c54909150613a499073ffffffffffffffffffffffffffffffffffffffff1633308963ffffffff614a7816565b613a54600085613d3e565b50613a718161100688670de0b6b3a764000063ffffffff61300b16565b9250613a7d3384614b0d565b613a88338483613771565b50601154811115611466576011559392505050565b6000600a600181548110613aad57fe5b9060005260206000200154600a600081548110613ac657fe5b9060005260206000200154840181613ada57fe5b0490506000805a9050600a600281548110613af157fe5b90600052602060002001548110613b4157600a600381548110613b1057fe5b9060005260206000200154600a600281548110613b2957fe5b9060005260206000200154820381613b3d57fe5b0491505b81831115613b4d578192505b8215613cb65773ffffffffffffffffffffffffffffffffffffffff8416301415613c05576eb3f879cb30fe243b4dfee438691c0473ffffffffffffffffffffffffffffffffffffffff16636366b936846040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b158015613bd357600080fd5b505af1158015613be7573d6000803e3d6000fd5b505050506040513d6020811015613bfd57600080fd5b50613cb69050565b604080517f079d229f00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff861660048201526024810185905290516eb3f879cb30fe243b4dfee438691c049163079d229f9160448083019260209291908290030181600087803b158015613c8957600080fd5b505af1158015613c9d573d6000803e3d6000fd5b505050506040513d6020811015613cb357600080fd5b50505b5050505050565b600073ffffffffffffffffffffffffffffffffffffffff8216613d115760405162461bcd60e51b815260040180806020018281038252602281526020018061554f6022913960400191505060405180910390fd5b5073ffffffffffffffffffffffffffffffffffffffff166000908152602091909152604090205460ff1690565b60095460009060ff1615613d99576040805162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b600d54604080517f7ff9b596000000000000000000000000000000000000000000000000000000008152905160009273ffffffffffffffffffffffffffffffffffffffff1691637ff9b596916004808301926020929190829003018186803b158015613e0457600080fd5b505afa158015613e18573d6000803e3d6000fd5b505050506040513d6020811015613e2e57600080fd5b505160115490915081101580613e46575060145460ff165b613e97576040805162461bcd60e51b815260206004820152601e60248201527f5061757365643a2069546f6b656e207072696365206465637265617365640000604482015290519081900360640190fd5b600e54604080517f65ed6e23000000000000000000000000000000000000000000000000000000008152905160609273ffffffffffffffffffffffffffffffffffffffff16916365ed6e23916004808301926000929190829003018186803b158015613f0257600080fd5b505afa158015613f16573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526020811015613f5d57600080fd5b8101908080516040519392919084640100000000821115613f7d57600080fd5b908301906020820185811115613f9257600080fd5b8251866020820283011164010000000082111715613faf57600080fd5b82525081516020918201928201910280838360005b83811015613fdc578181015183820152602001613fc4565b5050505090500160405250505090506000601680549050825114905080156140585760005b60165481108061400f575081155b156140565782818151811061402057fe5b60200260200101516016828154811061403557fe5b90600052602060002001541461404e5760009150614056565b600101614001565b505b600c54604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b1580156140c957600080fd5b505afa1580156140dd573d6000803e3d6000fd5b505050506040513d60208110156140f357600080fd5b50519050818015614102575080155b1561411357600094505050506143ea565b80156141ba576016541580156141265750855b1561414057825161413e90601690602086019061536b565b505b6141ba60158054806020026020016040519081016040528092919081815260200182805480156141a657602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff16815260019091019060200180831161417b575b50505050506141b58584614c24565b614d0a565b85806141c35750815b156141d457600094505050506143ea565b60608060006141e161326a565b92509250925060606141f38783614c24565b90506060600080614205878786614dd3565b925092509250806142315761421c601660006153a6565b895161422f9060169060208d019061536b565b505b600c54604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b1580156142a257600080fd5b505afa1580156142b6573d6000803e3d6000fd5b505050506040513d60208110156142cc57600080fd5b505190506001811180156142e05750600183115b156143da5760608451604051908082528060200260200182016040528015614312578160200160208202803883390190505b50905060005b85518110156143575761433885611006620186a08985815181106111d157fe5b82828151811061434457fe5b6020908102919091010152600101614318565b5060606143648284614c24565b90506143d760158054806020026020016040519081016040528092919081815260200182805480156143cc57602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff1681526001909101906020018083116143a1575b505050505082614d0a565b50505b60019c5050505050505050505050505b6011548111156123b95760115592915050565b61440e60088263ffffffff6150fa16565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fcd265ebaf09df2871cc7bd4133404a235ba12eff2041bb89d9c714a2621c7c7e90600090a250565b61446360088263ffffffff61518c16565b60405173ffffffffffffffffffffffffffffffffffffffff8216907f6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f890600090a250565b6000826144b3576117e8565b6144da73ffffffffffffffffffffffffffffffffffffffff8516868563ffffffff6130ad16565b8473ffffffffffffffffffffffffffffffffffffffff166395a2251f836040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b15801561455957600080fd5b505af115801561456d573d6000803e3d6000fd5b505050506040513d602081101561458357600080fd5b505195945050505050565b33600090815260186020526040812054816145a7611ac1565b90506000821180156145b857508482115b156145c1578491505b3360009081526017602052604081205461461390670de0b6b3a76400009061100690614603906145f78b8963ffffffff614a3616565b9063ffffffff61300b16565b61387e878763ffffffff61300b16565b90506000614633670de0b6b3a7640000611006898663ffffffff61300b16565b9050818110156146495785945050505050610e65565b600061465b828463ffffffff614a3616565b9050600061467b620186a06110066013548561300b90919063ffffffff16565b601054600c549192506146ae9173ffffffffffffffffffffffffffffffffffffffff90811691168363ffffffff6130ad16565b336000908152601860205260409020546146ce908763ffffffff614a3616565b336000908152601860205260409020556146ee838263ffffffff614a3616565b9998505050505050505050565b73ffffffffffffffffffffffffffffffffffffffff811661474d5760405162461bcd60e51b81526004018080602001828103825260268152602001806154506026913960400191505060405180910390fd5b60075460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600780547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6000818361482a5760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561372e578181015183820152602001613716565b50600083858161483657fe5b0495945050505050565b61485f8273ffffffffffffffffffffffffffffffffffffffff16615238565b6148b0576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b600060608373ffffffffffffffffffffffffffffffffffffffff16836040518082805190602001908083835b6020831061491957805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe090920191602091820191016148dc565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461497b576040519150601f19603f3d011682016040523d82523d6000602084013e614980565b606091505b5091509150816149d7576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115614a30578080602001905160208110156149f357600080fd5b5051614a305760405162461bcd60e51b815260040180806020018281038252602a8152602001806155db602a913960400191505060405180910390fd5b50505050565b600061306483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506136da565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052614a30908590614840565b73ffffffffffffffffffffffffffffffffffffffff8216614b75576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b600254614b88908263ffffffff6134e316565b60025573ffffffffffffffffffffffffffffffffffffffff8216600090815260208190526040902054614bc1908263ffffffff6134e316565b73ffffffffffffffffffffffffffffffffffffffff83166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6060808351604051908082528060200260200182016040528015614c52578160200160208202803883390190505b509050600080805b8651811015614cff576001875103811415614c9c57614c7f868363ffffffff614a3616565b848281518110614c8b57fe5b602002602001018181525050614cf7565b614cc9620186a0611006898481518110614cb257fe5b60200260200101518961300b90919063ffffffff16565b9250614cdb828463ffffffff6134e316565b915082848281518110614cea57fe5b6020026020010181815250505b600101614c5a565b509195945050505050565b8051825114614d4a5760405162461bcd60e51b81526004018080602001828103825260278152602001806154be6027913960400191505060405180910390fd5b6000805b8251811015614a3057828181518110614d6357fe5b602002602001015191508160001415614d7b57614dcb565b614dc9600b6000868481518110614d8e57fe5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff90811683529082019290925260400160002054168361526f565b505b600101614d4e565b60606000808351855114614e2e576040805162461bcd60e51b815260206004820152601160248201527f4c656e67746873206e6f7420657175616c000000000000000000000000000000604482015290519081900360640190fd5b8451604051908082528060200260200182016040528015614e59578160200160208202803883390190505b5092506000808080805b89518110156150ec578a8181518110614e7857fe5b60200260200101519150888181518110614e8e57fe5b60200260200101519250898181518110614ea457fe5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff8085166000908152600b9093526040909220549091169550935082841115615093576000888281518110614ef557fe5b60209081029190910101526000614f12858563ffffffff614a3616565b905060008673ffffffffffffffffffffffffffffffffffffffff1663743753596040518163ffffffff1660e01b815260040160206040518083038186803b158015614f5c57600080fd5b505afa158015614f70573d6000803e3d6000fd5b505050506040513d6020811015614f8657600080fd5b5051905081811015614f9a57600197508091505b61508b600b60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16856125348a73ffffffffffffffffffffffffffffffffffffffff166302bbce466040518163ffffffff1660e01b815260040160206040518083038186803b15801561504757600080fd5b505afa15801561505b573d6000803e3d6000fd5b505050506040513d602081101561507157600080fd5b505161100687670de0b6b3a764000063ffffffff61300b16565b5050506150e4565b6150a3838563ffffffff614a3616565b8882815181106150af57fe5b6020026020010181815250506150e18882815181106150ca57fe5b6020026020010151886134e390919063ffffffff16565b96505b600101614e63565b505050505093509350939050565b6151048282613cbd565b61513f5760405162461bcd60e51b81526004018080602001828103825260218152602001806154e56021913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff1660009081526020919091526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b6151968282613cbd565b156151e8576040805162461bcd60e51b815260206004820152601f60248201527f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff1660009081526020919091526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081158015906117e85750141592915050565b60008161527b57610e65565b600c546152a59073ffffffffffffffffffffffffffffffffffffffff16848463ffffffff6130ad16565b8273ffffffffffffffffffffffffffffffffffffffff16631249c58b6040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156152ed57600080fd5b505af1158015615301573d6000803e3d6000fd5b505050506040513d602081101561531757600080fd5b50519392505050565b82805482825590600052602060002090810192821561535b579160200282015b8281111561535b578235825591602001919060010190615340565b506153679291506153c0565b5090565b82805482825590600052602060002090810192821561535b579160200282015b8281111561535b57825182559160200191906001019061538b565b50805460008255906000526020600020908101906117d891905b610e4a91905b8082111561536757600081556001016153c656fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e6365506175736572526f6c653a2063616c6c657220646f6573206e6f742068617665207468652050617573657220726f6c654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365416c6c20746f6b656e73206c656e67746820213d20616c6c6f636174696f6e73206c656e677468526f6c65733a206163636f756e7420646f6573206e6f74206861766520726f6c65536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365526f6c65733a206163636f756e7420697320746865207a65726f206164647265737345524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa265627a7a72315820cb5853e74c24fceb7cac4974ee8ef2d7975645d216813656aab8bb2ea946ab4a64736f6c63430005100032526f6c65733a206163636f756e7420697320746865207a65726f20616464726573730000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000000120000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000005d3a536e4d6dbd6114cc1ead35777bab948e3643000000000000000000000000493c57c4763932315a328269e1adad09653b90810000000000000000000000003f03d8e4e8d7fcc8a9965e23bb3daa81cfc4ee24000000000000000000000000aefb1325a2c1756bc3fcc516d6c2cf947d225358000000000000000000000000728014ad4820ffbb9f7a73d6cfc4b226c62855b20000000000000000000000006735803b326682168d24241b8d80f0c06115f580000000000000000000000000000000000000000000000000000000000000001a49646c65444149207633205b5269736b2041646a75737465645d000000000000000000000000000000000000000000000000000000000000000000000000000b69646c6544414953616665000000000000000000000000000000000000000000

Deployed ByteCode Sourcemap

52681:29831:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;52681:29831:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53157:25;;;:::i;:::-;;;;;;;;;;;;;;;;;;;18593:83;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;18593:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12136:152;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;12136:152:0;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;54561:48;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;54561:48:0;;;;:::i;:::-;;;;;;;;;;;;;;;;59138:95;;;:::i;:::-;;11157:91;;;:::i;66343:617::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;66343:617:0;;:::i;61488:541::-;;;:::i;62141:348::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;62141:348:0;;;;;;;;;;;;;;;;;;:::i;51152:84::-;;;:::i;19445:83::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;59976:111;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;59976:111:0;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;59976:111:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;59976:111:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;-1:-1;59976:111:0;;-1:-1:-1;59976:111:0;-1:-1:-1;59976:111:0;:::i;54224:35::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;54224:35:0;;:::i;13473:210::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;13473:210:0;;;;;;;;;:::i;53486:28::-;;;:::i;63899:222::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;63899:222:0;;;;;;;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;63899:222:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;63899:222:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;-1:-1;63899:222:0;;-1:-1:-1;63899:222:0;-1:-1:-1;63899:222:0;:::i;27690:120::-;;;:::i;53032:21::-;;;:::i;53322:25::-;;;:::i;69841:179::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;69841:179:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;69841:179:0;;;;;;;;;;;;;;;;;;;;52906:51;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;52906:51:0;;;;:::i;25169:109::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;25169:109:0;;;;:::i;26897:78::-;;;:::i;57311:444::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;57311:444:0;;;;:::i;68983:117::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;68983:117:0;;;;;;;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;68983:117:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;68983:117:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;-1:-1;68983:117:0;;-1:-1:-1;68983:117:0;-1:-1:-1;68983:117:0;:::i;59415:128::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;59415:128:0;;:::i;56999:163::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;56999:163:0;;;;:::i;25386:79::-;;;:::i;11311:110::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;11311:110:0;;;;:::i;22825:140::-;;;:::i;69329:85::-;;;:::i;60213:482::-;;;:::i;58724:104::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;58724:104:0;;;;:::i;25286:92::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;25286:92:0;;;;:::i;27477:118::-;;;:::i;59653:163::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;59653:163:0;;;;:::i;53246:30::-;;;:::i;22014:79::-;;;:::i;22380:94::-;;;:::i;18795:87::-;;;:::i;53957:22::-;;;:::i;14186:261::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;14186:261:0;;;;;;;;;:::i;62493:214::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;62493:214:0;;;;;;;;;:::i;54464:32::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;54464:32:0;;:::i;60891:480::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;60891:480:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;60891:480:0;;;;;;;;;;;;;;;;;;;54141:32;;;:::i;63338:242::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;63338:242:0;;;;;;;;;:::i;64847:1188::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;64847:1188:0;;;;;;;;;;;;;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;64847:1188:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;64847:1188:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;-1:-1;64847:1188:0;;-1:-1:-1;64847:1188:0;-1:-1:-1;64847:1188:0;:::i;54053:26::-;;;:::i;58937:120::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;58937:120:0;;;;:::i;67579:636::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;67579:636:0;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;67579:636:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;67579:636:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;-1:-1;67579:636:0;;-1:-1:-1;67579:636:0;-1:-1:-1;67579:636:0;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;54834:47;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;54834:47:0;;;;:::i;68543:132::-;;;:::i;11855:134::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;11855:134:0;;;;;;;;;;;:::i;53791:18::-;;;:::i;57948:604::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;57948:604:0;;;;;;;;;;;:::i;53430:30::-;;;:::i;23120:109::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;23120:109:0;;;;:::i;52984:20::-;;;:::i;53157:25::-;;;;;;:::o;18593:83::-;18663:5;18656:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18630:13;;18656:12;;18663:5;;18656:12;;18663:5;18656:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18593:83;;:::o;12136:152::-;12202:4;12219:39;12228:12;:10;:12::i;:::-;12242:7;12251:6;12219:8;:39::i;:::-;-1:-1:-1;12276:4:0;12136:152;;;;;:::o;54561:48::-;;;;;;;;;;;;;:::o;59138:95::-;22226:9;:7;:9::i;:::-;22218:54;;;;;-1:-1:-1;;;22218:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59200:20;:27;;;;;;;;59138:95::o;11157:91::-;11228:12;;11157:91;:::o;66343:617::-;20925:13;:18;;20942:1;20925:18;;;;;:13;66454;:11;:13::i;:::-;66433:34;-1:-1:-1;66476:20:0;;;66531:387;66555:18;:25;66551:29;;66531:387;;;66613:18;66632:1;66613:21;;;;;;;;;;;;;;;;;;;66655:45;;;;;;66694:4;66655:45;;;;;;66613:21;;;;;-1:-1:-1;66613:21:0;;66655:30;;:45;;;;;;;;;;66613:21;66655:45;;;5:2:-1;;;;30:1;27;20:12;5:2;66655:45:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;66655:45:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;66655:45:0;;-1:-1:-1;66715:12:0;66711:51;;66742:8;;66711:51;66772:136;66818:10;66841:36;66866:10;66841:20;:7;66853;66841:20;:11;:20;:::i;:::-;:24;:36;:24;:36;:::i;:::-;66772:33;;;;:136;;:33;:136;:::i;:::-;66582:3;;66531:387;;;;66928:26;66934:10;66946:7;66928:5;:26::i;:::-;21001:1;;;21037:13;;21021:12;:29;21013:73;;;;;-1:-1:-1;;;21013:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;66343:617;;:::o;61488:541::-;61540:14;61568:24;61594:13;61611:24;:22;:24::i;:::-;61565:70;;-1:-1:-1;61565:70:0;-1:-1:-1;61644:15:0;;-1:-1:-1;61644:15:0;;61691:333;61715:18;:25;61711:29;;61691:333;;;61762:7;61770:1;61762:10;;;;;;;;;;;;;;61776:1;61762:15;61758:54;;;61792:8;;61758:54;61849:16;:39;61866:18;61885:1;61866:21;;;;;;;;;;;;;;;;;;;;;;;;61849:39;;;;;;;;;;;;;;;;;61832:66;;;;;;;61849:39;;;61832:64;;:66;;;;;61866:21;61832:66;;;;;;61849:39;61832:66;;;5:2:-1;;;;30:1;27;20:12;5:2;61832:66:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;61832:66:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;61832:66:0;61918:10;;61832:66;;-1:-1:-1;61918:33:0;;61945:5;;61918:22;;61933:6;;61918:7;;61926:1;;61918:10;;;;;;;;;;;;:14;;:22;;;;:::i;:33::-;61909:42;-1:-1:-1;61971:43:0;61982:31;62006:6;61982:19;:7;61909:42;61982:19;:11;:19;:::i;:31::-;61971:6;;:43;:10;:43;:::i;:::-;61962:52;;61691:333;61742:3;;61691:333;;;;61488:541;;;;;:::o;62141:348::-;62230:4;62243:36;62253:6;62261:9;62272:6;62243:9;:36::i;:::-;62286:115;62295:6;62303:10;62315:85;62349:6;62315:85;;;;;;;;;;;;;;;;;:29;62325:6;62333:10;62315:9;:29::i;:::-;:33;:85;;:33;:85;:::i;:::-;62286:8;:115::i;:::-;62443:21;;;;;;;:13;:21;;;;;;62408:57;;62424:9;;62435:6;;62408:15;:57::i;:::-;-1:-1:-1;62479:4:0;62141:348;;;;;:::o;51152:84::-;51193:42;51152:84;:::o;19445:83::-;19511:9;;;;19445:83;:::o;59976:111::-;22226:9;:7;:9::i;:::-;22218:54;;;;;-1:-1:-1;;;22218:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60060:21;:10;60073:8;;60060:21;:::i;:::-;;59976:111;;:::o;54224:35::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;54224:35:0;:::o;13473:210::-;13553:4;13570:83;13579:12;:10;:12::i;:::-;13593:7;13602:50;13641:10;13602:11;:25;13614:12;:10;:12::i;:::-;13602:25;;;;;;;;;;;;;;;;;;-1:-1:-1;13602:25:0;;;:34;;;;;;;;;;;:50;:38;:50;:::i;53486:28::-;;;;:::o;63899:222::-;20925:13;:18;;20942:1;20925:18;;;;;64031:20;;64010:4;64031:20;51378:9;64091:16;;;64105:1;64091:16;;;;;;;;;51353:34;;-1:-1:-1;64067:48:0;;64082:7;;64067:14;:48::i;:::-;64060:55;;51402:50;51436:9;51419:14;:26;51447:4;51402:16;:50::i;:::-;21001:1;;21037:13;;21021:12;:29;21013:73;;;;;-1:-1:-1;;;21013:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;63899:222;;;;;;:::o;27690:120::-;25066:22;25075:12;:10;:12::i;:::-;25066:8;:22::i;:::-;25058:83;;;;-1:-1:-1;;;25058:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27333:7;;;;27325:40;;;;;-1:-1:-1;;;27325:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;27749:7;:15;;;;;;27780:22;27789:12;:10;:12::i;:::-;27780:22;;;;;;;;;;;;;;;;;;27690:120::o;53032:21::-;;;;;;:::o;53322:25::-;;;;;;:::o;69841:179::-;69902:31;69935:24;69961:13;69990:24;:22;:24::i;:::-;69983:31;;;;;;69841:179;;;:::o;52906:51::-;;;;;;;;;;;;;;;:::o;25169:109::-;25225:4;25249:21;:8;25262:7;25249:21;:12;:21;:::i;26897:78::-;26960:7;;;;26897:78;:::o;57311:444::-;22226:9;:7;:9::i;:::-;22218:54;;;;;-1:-1:-1;;;22218:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57406:30;;;57398:52;;;;;-1:-1:-1;;;57398:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;57464:20;;;;;;;57463:21;;:123;;-1:-1:-1;57489:30:0;;;;;;;:12;:30;;;;;;:35;;;;:96;;-1:-1:-1;57534:30:0;;;;;;;:12;:30;;;;;;53712:16;57528:3;:36;;;;:57;57489:96;57459:246;;;57599:15;:34;;;;;;;;;;;;;-1:-1:-1;57644:30:0;;;:12;:30;;;;;:34;57689:7;;57459:246;57713:30;;;;;;;:12;:30;;;;;57746:3;57713:36;;22283:1;57311:444;:::o;68983:117::-;69054:4;69074:20;69085:1;69088:5;69074:10;:20::i;:::-;69067:27;68983:117;-1:-1:-1;;;;68983:117:0:o;59415:128::-;22226:9;:7;:9::i;:::-;22218:54;;;;;-1:-1:-1;;;22218:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53588:5;59486:4;:15;;59478:40;;;;;-1:-1:-1;;;59478:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;59527:3;:10;59415:128::o;56999:163::-;22226:9;:7;:9::i;:::-;22218:54;;;;;-1:-1:-1;;;22218:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57084:25;;;57076:47;;;;;-1:-1:-1;;;57076:47:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;57132:10;:24;;;;;;;;;;;;;;;56999:163::o;25386:79::-;25430:27;25444:12;:10;:12::i;:::-;25430:13;:27::i;:::-;25386:79::o;11311:110::-;11395:18;;11368:7;11395:18;;;;;;;;;;;;11311:110::o;22825:140::-;22226:9;:7;:9::i;:::-;22218:54;;;;;-1:-1:-1;;;22218:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22908:6;;22887:40;;22924:1;;22887:40;22908:6;;22887:40;;22924:1;;22887:40;22938:6;:19;;;;;;22825:140::o;69329:85::-;69368:4;69388:20;69399:1;69402:5;69388:10;:20::i;:::-;69381:27;;69329:85;:::o;60213:482::-;60266:13;60290:42;60349:18;:25;;;;60335:40;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;60335:40:0;-1:-1:-1;60290:85:0;-1:-1:-1;60389:9:0;60384:147;60408:18;:25;60404:29;;60384:147;;;60482:16;:39;60499:18;60518:1;60499:21;;;;;;;;;;;;;;;;;;;;;;;;60482:39;;;;;;;;;;;;;;;;60451:28;;60482:39;;;60451:25;;60477:1;;60451:28;;;;;;:70;;;;:28;;;;;;;;;;;:70;60435:3;;60384:147;;;-1:-1:-1;60567:15:0;;;;60547:47;60605:13;:11;:13::i;:::-;60628:4;60635:18;60655:25;60547:142;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;60547:142:0;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;60547:142:0;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;60547:142:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;60547:142:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;60547:142:0;;60213:482;-1:-1:-1;;60213:482:0:o;58724:104::-;22226:9;:7;:9::i;:::-;22218:54;;;;;-1:-1:-1;;;22218:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58798:10;:24;;;;;;;;;;;;;58724:104::o;25286:92::-;25066:22;25075:12;:10;:12::i;25066:22::-;25058:83;;;;-1:-1:-1;;;25058:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25351:19;25362:7;25351:10;:19::i;27477:118::-;25066:22;25075:12;:10;:12::i;25066:22::-;25058:83;;;;-1:-1:-1;;;25058:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27134:7;;;;27133:8;27125:37;;;;;-1:-1:-1;;;27125:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;27537:7;:14;;;;27547:4;27537:14;;;27567:20;27574:12;:10;:12::i;59653:163::-;22226:9;:7;:9::i;:::-;22218:54;;;;;-1:-1:-1;;;22218:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59738:25;;;59730:47;;;;;-1:-1:-1;;;59730:47:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;59786:10;:24;;;;;;;;;;;;;;;59653:163::o;53246:30::-;;;;;;:::o;22014:79::-;22079:6;;;;22014:79;:::o;22380:94::-;22460:6;;22420:4;;22460:6;;22444:12;:10;:12::i;:::-;:22;;;22437:29;;22380:94;:::o;18795:87::-;18867:7;18860:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18834:13;;18860:14;;18867:7;;18860:14;;18867:7;18860:14;;;;;;;;;;;;;;;;;;;;;;;;53957:22;;;;;;:::o;14186:261::-;14271:4;14288:129;14297:12;:10;:12::i;:::-;14311:7;14320:96;14359:15;14320:96;;;;;;;;;;;;;;;;;:11;:25;14332:12;:10;:12::i;:::-;14320:25;;;;;;;;;;;;;;;;;;-1:-1:-1;14320:25:0;;;:34;;;;;;;;;;;:96;;:38;:96;:::i;62493:214::-;62562:4;62575:40;62585:10;62597:9;62608:6;62575:9;:40::i;:::-;62671:10;62657:25;;;;:13;:25;;;;;;62622:61;;62638:9;;62649:6;;62622:15;:61::i;54464:32::-;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;54464:32:0;:::o;60891:480::-;60943:26;60971:21;61003:17;61055:18;:25;;;;61041:40;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;61041:40:0;-1:-1:-1;61111:18:0;:25;61097:40;;;;;;;;;;;;;;;;61029:52;;-1:-1:-1;61097:40:0;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;61097:40:0;-1:-1:-1;61090:47:0;-1:-1:-1;61151:9:0;61146:220;61170:18;:25;61166:29;;61146:220;;;61225:18;61244:1;61225:21;;;;;;;;;;;;;;;;;;;;;;;;;61213:33;;61272:9;61257;61267:1;61257:12;;;;;;;;:24;;;;:12;;;;;;;;;;:24;;;;61319:27;;;;;;;:16;:27;;;;;;;;61302:54;;;;;;;61319:27;;;61302:52;;:54;;;;;61257:12;;61302:54;;;;;;61319:27;61302:54;;;5:2:-1;;;;30:1;27;20:12;5:2;61302:54:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;61302:54:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;61302:54:0;61292:7;;:4;;61297:1;;61292:7;;;;;;;;;;;;;;;:64;61197:3;;61146:220;;;;60891:480;;;:::o;54141:32::-;;;;;;;;;:::o;63338:242::-;20925:13;:18;;20942:1;20925:18;;;;;63476:20;;63455:4;63476:20;51378:9;63536:16;;;63550:1;63536:16;;;;;;;;51353:34;;-1:-1:-1;63512:62:0;;63527:7;;63554:19;63512:14;:62::i;:::-;63505:69;;51402:50;51436:9;51419:14;:26;51447:4;51402:16;:50::i;:::-;21001:1;;21037:13;;21021:12;:29;21013:73;;;;;-1:-1:-1;;;21013:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;63338:242;;;;;:::o;64847:1188::-;20925:13;:18;;20942:1;20925:18;;;;;64971:22;;;;65028:557;65052:18;:25;65048:29;;65028:557;;;65112:18;65131:1;65112:21;;;;;;;;;;;;;;;;;;;65105:54;;;;;;65153:4;65105:54;;;;;;65112:21;;;;;65105:39;;:54;;;;;;;;;;65112:21;65105:54;;;5:2:-1;;;;30:1;27;20:12;5:2;65105:54:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;65105:54:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;65105:54:0;;-1:-1:-1;65174:12:0;65170:51;;65201:8;;65170:51;65248:327;65279:285;65315:16;:39;65332:18;65351:1;65332:21;;;;;;;;;;;;;;;;;;;;;;;;65315:39;;;;;;;;;;;;;;;;65369:18;:21;;65315:39;;;;;65369:18;65388:1;;65369:21;;;;;;;;;;;;;;;;;;65464:39;65489:13;:11;:13::i;:::-;65464:20;:7;65476;65464:20;:11;:20;:::i;:39::-;65546:4;65279:21;:285::i;:::-;65248:14;;:327;:18;:327;:::i;:::-;65231:344;;65028:557;65079:3;;65028:557;;;;65595:26;65601:10;65613:7;65595:5;:26::i;:::-;65640:1;65634:3;;:7;:35;;;;-1:-1:-1;65645:10:0;;:24;:10;:24;;65634:35;65630:111;;;65699:32;65707:7;65716:14;65699:7;:32::i;:::-;65682:49;;65630:111;65806:5;;65799:54;;65806:5;;65826:10;65838:14;65799:54;:26;:54;:::i;:::-;65868:4;:11;;;:13;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;65868:13:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;65868:13:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;65868:13:0;;:69;;;65922:15;;65899:6;;;;;;;;;;;65885:32;;;:34;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;65885:34:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;65885:34:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;65885:34:0;:52;65868:69;:87;;;;65941:14;65868:87;65864:135;;;-1:-1:-1;65968:21:0;;65864:135;66009:20;66020:1;66023:5;66009:10;:20::i;:::-;;21001:1;;21037:13;;21021:12;:29;21013:73;;;;;-1:-1:-1;;;21013:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;64847:1188;;;;;;;:::o;54053:26::-;;;;;;;;;:::o;58937:120::-;22226:9;:7;:9::i;:::-;22218:54;;;;;-1:-1:-1;;;22218:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59019:14;:32;;;;;;;;;;;;;;;;;58937:120::o;67579:636::-;27134:7;;67711:4;;;;27134:7;;27133:8;27125:37;;;;;-1:-1:-1;;;27125:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;56603:6;;56589:34;;;;;;;;56567:19;;56603:6;;;56589:32;;:34;;;;;;;;;;;;;;56603:6;56589:34;;;5:2:-1;;;;30:1;27;20:12;5:2;56589:34:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;56589:34:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;56589:34:0;56661:15;;56589:34;;-1:-1:-1;56646:30:0;;;;:44;;-1:-1:-1;56680:10:0;;;;56646:44;56630:108;;;;;-1:-1:-1;;;56630:108:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;67751:14;;;;;;;67750:15;67742:59;;;;;-1:-1:-1;;;67742:59:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;67810:18;67831:11;:9;:11::i;:::-;67921:10;;67904:80;;;;;;;;;;;;;;;;;;67810:32;;-1:-1:-1;67921:10:0;;;;;67904:43;;67948:15;;;;67965:18;;67904:80;;;;;;;;67948:15;67904:80;;;;67948:15;67904:80;1:33:-1;99:1;81:16;;;74:27;137:4;117:14;133:9;113:30;157:16;;;67904:80:0;;;;;;;;;;;;;;;-1:-1:-1;67904:80:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;67904:80:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;67904:80:0;;;;67993:18;68014:20;68025:1;68028:5;68014:10;:20::i;:::-;67993:41;;68043:28;68074:11;:9;:11::i;:::-;68043:42;;68125:10;68102:20;:33;68094:62;;;;;-1:-1:-1;;;68094:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;68173:13;;-1:-1:-1;68188:20:0;-1:-1:-1;;56775:15:0;;56761:11;:29;56757:81;;;56801:15;:29;;;56757:81;27173:1;67579:636;;;;;:::o;54834:47::-;;;;;;;;;;;;;:::o;68543:132::-;68627:4;68601:10;51353:22;51378:9;51353:34;;68649:20;68660:1;68663:5;68649:10;:20::i;:::-;68642:27;;51402:50;51436:9;51419:14;:26;51447:4;51402:16;:50::i;:::-;68543:132;;;:::o;11855:134::-;11954:18;;;;11927:7;11954:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;11855:134::o;53791:18::-;;;;:::o;57948:604::-;22226:9;:7;:9::i;:::-;22218:54;;;;;-1:-1:-1;;;22218:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58051:20;;;;;;;:46;;-1:-1:-1;58075:22:0;;;;;58051:46;58043:73;;;;;-1:-1:-1;;;58043:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;58132:20;;;;;;;58131:21;;:107;;-1:-1:-1;58157:22:0;;;;;;;:12;:22;;;;;;:27;;;;:80;;-1:-1:-1;58194:22:0;;;;;;;:12;:22;;;;;;53712:16;58188:3;:28;;;;:49;58157:80;58127:381;;;58303:38;:24;;;58339:1;58303:24;;;:16;:24;;;;;;;58299:100;;58356:18;27:10:-1;;39:1;23:18;;45:23;;-1:-1;58356:31:0;;;;;;;;;;;;;;;;58299:100;58409:24;;;;;;;;:16;:24;;;;;;;;:35;;;;;;;;;;;;58455:22;;;:12;:22;;;;;:26;58492:7;;58127:381;58518:22;;;;;;:12;:22;;;;;58543:3;58518:28;;-1:-1:-1;57948:604:0:o;53430:30::-;;;;:::o;23120:109::-;22226:9;:7;:9::i;:::-;22218:54;;;;;-1:-1:-1;;;22218:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23193:28;23212:8;23193:18;:28::i;52984:20::-;;;;;;:::o;3738:98::-;3818:10;3738:98;:::o;17118:338::-;17212:19;;;17204:68;;;;-1:-1:-1;;;17204:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17291:21;;;17283:68;;;;-1:-1:-1;;;17283:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17364:18;;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;17416:32;;;;;;;;;;;;;;;;;17118:338;;;:::o;6361:471::-;6419:7;6664:6;6660:47;;-1:-1:-1;6694:1:0;6687:8;;6660:47;6731:5;;;6735:1;6731;:5;:1;6755:5;;;;;:10;6747:56;;;;-1:-1:-1;;;6747:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6823:1;6361:471;-1:-1:-1;;;6361:471:0:o;7300:132::-;7358:7;7385:39;7389:1;7392;7385:39;;;;;;;;;;;;;;;;;:3;:39::i;31607:176::-;31716:58;;;31739:14;31716:58;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;31716:58:0;;;;;;;;25:18:-1;;61:17;;31716:58:0;182:15:-1;31739:23:0;179:29:-1;160:49;;31690:85:0;;31709:5;;31690:18;:85::i;16330:348::-;16406:21;;;16398:67;;;;-1:-1:-1;;;16398:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16499:68;16522:6;16499:68;;;;;;;;;;;;;;;;;:18;;;:9;:18;;;;;;;;;;;;:68;;:22;:68;:::i;:::-;16478:18;;;:9;:18;;;;;;;;;;:89;16593:12;;:24;;16610:6;16593:24;:16;:24;:::i;:::-;16578:12;:39;16633:37;;;;;;;;16659:1;;16633:37;;;;;;;;;;;;;16330:348;;:::o;80190:918::-;80252:31;80285:24;80311:13;80418:18;:25;;;;80404:40;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;80404:40:0;-1:-1:-1;80477:18:0;:25;80463:40;;;;;;;;;;;;;;;;80387:57;;-1:-1:-1;80463:40:0;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;80463:40:0;-1:-1:-1;80453:50:0;-1:-1:-1;80514:20:0;;;80576:413;80600:18;:25;80596:29;;80576:413;;;80658:18;80677:1;80658:21;;;;;;;;;;;;;;;;;;;;;;;;;80643:36;;80710:12;80690:14;80705:1;80690:17;;;;;;;;:32;;;;:17;;;;;;;;;;:32;;;;80767:30;;;;;;;:16;:30;;;;;;;;80750:66;;;;;;;80767:30;;;80750:64;;:66;;;;;80690:17;;80750:66;;;;;;80767:30;80750:66;;;5:2:-1;;;;30:1;27;20:12;5:2;80750:66:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;80750:66:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;80750:66:0;80871:45;;;;;;80910:4;80871:45;;;;;;80750:66;;-1:-1:-1;80840:99:0;;80932:6;;80840:87;;80871:30;;;;;;:45;;;;;80750:66;;80871:45;;;;;;;:30;:45;;;5:2:-1;;;;30:1;27;20:12;5:2;80871:45:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;80871:45:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;80871:45:0;80840:14;;:87;:18;:87;:::i;:99::-;80827:7;80835:1;80827:10;;;;;;;;;;;;;:112;;;;;80958:21;80968:7;80976:1;80968:10;;;;;;;;;;;;;;80958:5;:9;;:21;;;;:::i;:::-;80950:29;-1:-1:-1;80627:3:0;;80576:413;;;-1:-1:-1;;;80190:918:0;;;:::o;4989:181::-;5047:7;5079:5;;;5103:6;;;;5095:46;;;;;-1:-1:-1;;;5095:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;14937:471;15035:20;;;15027:70;;;;-1:-1:-1;;;15027:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15116:23;;;15108:71;;;;-1:-1:-1;;;15108:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15212;15234:6;15212:71;;;;;;;;;;;;;;;;;:17;;;:9;:17;;;;;;;;;;;;:71;;:21;:71;:::i;:::-;15192:17;;;;:9;:17;;;;;;;;;;;:91;;;;15317:20;;;;;;;:32;;15342:6;15317:32;:24;:32;:::i;:::-;15294:20;;;;:9;:20;;;;;;;;;;;;:55;;;;15365:35;;;;;;;15294:20;;15365:35;;;;;;;;;;;;;14937:471;;;:::o;5918:192::-;6004:7;6040:12;6032:6;;;;6024:29;;;;-1:-1:-1;;;6024:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;6024:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;6076:5:0;;;5918:192::o;74729:447::-;74815:3;;74811:92;;74854:17;;;;;;;:12;:17;;;;;;:26;;74876:3;74854:26;:21;:26;:::i;:::-;74834:17;;;;;;;:12;:17;;;;;:46;74889:7;;74811:92;74951:17;;;74911:18;74951:17;;;:12;:17;;;;;;74932:37;;:14;74964:3;74932:9;:14::i;:::-;:18;:37;:18;:37;:::i;:::-;74998:18;;;74976:19;74998:18;;;:13;:18;;;;;;74911:58;;-1:-1:-1;75044:19:0;74911:58;75059:3;75044:19;:14;:19;:::i;:::-;75023:40;-1:-1:-1;75091:79:0;75139:30;75158:10;75139:14;:5;75149:3;75139:14;:9;:14;:::i;:30::-;75091:43;75123:10;75091:27;:11;75107:10;75091:27;:15;:27;:::i;:43::-;:47;:79;:47;:79;:::i;:::-;75070:18;;;;;;;:13;:18;;;;;:100;-1:-1:-1;;;74729:447:0;;;:::o;70634:667::-;27134:7;;70792:20;;27134:7;;27133:8;27125:37;;;;;-1:-1:-1;;;27125:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;56603:6;;56589:34;;;;;;;;56567:19;;56603:6;;;56589:32;;:34;;;;;;;;;;;;;;56603:6;56589:34;;;5:2:-1;;;;30:1;27;20:12;5:2;56589:34:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;56589:34:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;56589:34:0;56661:15;;56589:34;;-1:-1:-1;56646:30:0;;;;:44;;-1:-1:-1;56680:10:0;;;;56646:44;56630:108;;;;;-1:-1:-1;;;56630:108:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;70861:17;70881:12;:10;:12::i;:::-;70952:5;;70861:32;;-1:-1:-1;70945:66:0;;70952:5;;70976:10;70996:4;71003:7;70945:66;:30;:66;:::i;:::-;71098:34;71109:1;71112:19;71098:10;:34::i;:::-;-1:-1:-1;71158:34:0;71182:9;71158:19;:7;71170:6;71158:19;:11;:19;:::i;:34::-;71143:49;;71201:31;71207:10;71219:12;71201:5;:31::i;:::-;71243:52;71259:10;71271:12;71285:9;71243:15;:52::i;:::-;56747:1;56775:15;;56761:11;:29;56757:81;;;56801:15;:29;70634:667;;-1:-1:-1;;;70634:667:0:o;51464:809::-;51696:14;51742:10;51753:1;51742:13;;;;;;;;;;;;;;;;51725:10;51736:1;51725:13;;;;;;;;;;;;;;;;51714:8;:24;51713:42;;;;;;51696:59;;51762:21;51790:11;51804:9;51790:23;;51941:10;51952:1;51941:13;;;;;;;;;;;;;;;;51934:3;:20;51930:96;;52005:10;52016:1;52005:13;;;;;;;;;;;;;;;;51988:10;51999:1;51988:13;;;;;;;;;;;;;;;;51982:3;:19;51981:37;;;;;;51965:53;;51930:96;52047:13;52038:6;:22;52034:67;;;52080:13;52071:22;;52034:67;52113:10;;52109:159;;52138:21;;;52154:4;52138:21;52134:127;;;51193:42;52172:13;;;52186:6;52172:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;52172:21:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;52172:21:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;52134:127:0;;-1:-1:-1;52134:127:0;;52220:31;;;;;;:17;:31;;;;;;;;;;;;;;51193:42;;52220:17;;:31;;;;;;;;;;;;;;-1:-1:-1;51193:42:0;52220:31;;;5:2:-1;;;;30:1;27;20:12;5:2;52220:31:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;52220:31:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;52134:127:0;51464:809;;;;;:::o;24434:203::-;24506:4;24531:21;;;24523:68;;;;-1:-1:-1;;;24523:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24609:20:0;;:11;:20;;;;;;;;;;;;;;;24434:203::o;71522:2943::-;27134:7;;71650:4;;27134:7;;27133:8;27125:37;;;;;-1:-1:-1;;;27125:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;56603:6;;56589:34;;;;;;;;56567:19;;56603:6;;;56589:32;;:34;;;;;;;;;;;;;;56603:6;56589:34;;;5:2:-1;;;;30:1;27;20:12;5:2;56589:34:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;56589:34:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;56589:34:0;56661:15;;56589:34;;-1:-1:-1;56646:30:0;;;;:44;;-1:-1:-1;56680:10:0;;;;56646:44;56630:108;;;;;-1:-1:-1;;;56630:108:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;71820:10;;71803:45;;;;;;;;71758:42;;71820:10;;;71803:43;;:45;;;;;71820:10;;71803:45;;;;;;;71820:10;71803:45;;;5:2:-1;;;;30:1;27;20:12;5:2;71803:45:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;71803:45:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;71803:45:0;80:15:-1;;;97:9;76:31;65:43;;120:4;113:20;13:2;5:11;;2:2;;;29:1;26;19:12;2:2;71803:45:0;;;;;;;;;;;;;19:11:-1;14:3;11:20;8:2;;;44:1;41;34:12;8:2;62:21;;;;123:4;114:14;;138:31;;;135:2;;;182:1;179;172:12;135:2;219:3;213:10;331:9;325:2;311:12;307:21;289:16;285:44;282:59;261:11;247:12;244:29;233:116;230:2;;;362:1;359;352:12;230:2;373:25;;-1:-1;71803:45:0;;421:4:-1;412:14;;;;71803:45:0;;;;;412:14:-1;71803:45:0;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;71803:45:0;;;;;;;;;;;71758:90;;71857:24;71920:15;:22;;;;71884:25;:32;:58;71857:85;;71955:19;71951:278;;;71992:9;71987:233;72011:15;:22;72007:26;;;:50;;;72038:19;72037:20;72007:50;71987:233;;;72103:25;72129:1;72103:28;;;;;;;;;;;;;;72081:15;72097:1;72081:18;;;;;;;;;;;;;;;;:50;72077:132;;72170:5;72148:27;;72190:5;;72077:132;72059:3;;71987:233;;;;71951:278;72262:5;;72255:38;;;;;;72287:4;72255:38;;;;;;72237:15;;72262:5;;;72255:23;;:38;;;;;;;;;;;;;;72262:5;72255:38;;;5:2:-1;;;;30:1;27;20:12;5:2;72255:38:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;72255:38:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;72255:38:0;;-1:-1:-1;72306:19:0;:35;;;;-1:-1:-1;72329:12:0;;72306:35;72302:74;;;72361:5;72354:12;;;;;;;72302:74;72390:11;;72386:298;;72418:15;:22;:27;:50;;;;;72449:19;72418:50;72414:153;;;72512:43;;;;:15;;:43;;;;;:::i;:::-;;72414:153;72577:97;72594:18;72577:97;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;72614:59;72638:25;72665:7;72614:23;:59::i;:::-;72577:16;:97::i;:::-;72698:19;:42;;;;72721:19;72698:42;72694:81;;;72760:5;72753:12;;;;;;;72694:81;72956:31;72989:24;73015:25;73044:24;:22;:24::i;:::-;72955:113;;;;;;73129:27;73159:69;73183:25;73210:17;73159:23;:69::i;:::-;73129:99;;73238:34;73274:19;73295:17;73316:53;73333:14;73349:7;73358:10;73316:16;:53::i;:::-;73237:132;;;;;;73529:12;73524:182;;73620:22;73627:15;;73620:22;:::i;:::-;73653:43;;;;:15;;:43;;;;;:::i;:::-;;73524:182;73744:5;;73737:38;;;;;;73769:4;73737:38;;;;;;73714:20;;73744:5;;;73737:23;;:38;;;;;;;;;;;;;;73744:5;73737:38;;;5:2:-1;;;;30:1;27;20:12;5:2;73737:38:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;73737:38:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;73737:38:0;;-1:-1:-1;73803:1:0;73788:16;;:35;;;;;73822:1;73808:11;:15;73788:35;73784:637;;;73917:32;73966:17;:24;73952:39;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;73952:39:0;-1:-1:-1;73917:74:0;-1:-1:-1;74007:9:0;74002:246;74026:17;:24;74022:1;:28;74002:246;;;74187:49;74224:11;74187:32;74212:6;74187:17;74205:1;74187:20;;;;;;;:49;74166:15;74182:1;74166:18;;;;;;;;;;;;;;;;;:70;74052:3;;74002:246;;;;74260:31;74294:54;74318:15;74335:12;74294:23;:54::i;:::-;74260:88;;74359:52;74376:18;74359:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74396:14;74359:16;:52::i;:::-;73784:637;;;74438:4;74431:11;;;;;;;;;;;;;56747:1;56775:15;;56761:11;:29;56757:81;;;56801:15;:29;71522:2943;;-1:-1:-1;;71522:2943:0:o;25603:130::-;25663:24;:8;25679:7;25663:24;:15;:24;:::i;:::-;25703:22;;;;;;;;;;;25603:130;:::o;25473:122::-;25530:21;:8;25543:7;25530:21;:12;:21;:::i;:::-;25567:20;;;;;;;;;;;25473:122;:::o;82099:410::-;82231:14;82260:12;82256:52;;82285:13;;82256:52;82388:50;:27;;;82416:12;82430:7;82388:50;:27;:50;:::i;:::-;82473:12;82456:37;;;82494:8;82456:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;82456:47:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;82456:47:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;82456:47:0;;82099:410;-1:-1:-1;;;;;82099:410:0:o;75364:754::-;75481:10;75433:7;75468:24;;;:12;:24;;;;;;75433:7;75519:12;:10;:12::i;:::-;75499:32;;75553:1;75542:8;:12;:33;;;;;75569:6;75558:8;:17;75542:33;75538:73;;;75597:6;75586:17;;75538:73;75709:10;75619:20;75695:25;;;:13;:25;;;;;;75642:92;;75727:6;;75642:80;;75670:51;;:20;:6;75681:8;75670:20;:10;:20;:::i;:::-;:24;:51;:24;:51;:::i;:::-;75642:23;:8;75655:9;75642:23;:12;:23;:::i;:92::-;75619:115;-1:-1:-1;75741:15:0;75759:33;75785:6;75759:21;:6;75770:9;75759:21;:10;:21;:::i;:33::-;75741:51;;75813:12;75803:7;:22;75799:60;;;75843:8;75836:15;;;;;;;;75799:60;75865:12;75880:25;:7;75892:12;75880:25;:11;:25;:::i;:::-;75865:40;;75912:14;75929:25;75947:6;75929:13;75938:3;;75929:4;:8;;:13;;;;:::i;:25::-;75988:10;;75968:5;;75912:42;;-1:-1:-1;75961:46:0;;75988:10;75968:5;;;;75988:10;75912:42;75961:46;:26;:46;:::i;:::-;76054:10;76041:24;;;;:12;:24;;;;;;:38;;76070:8;76041:38;:28;:38;:::i;:::-;76027:10;76014:24;;;;:12;:24;;;;;:65;76093:19;:7;76105:6;76093:19;:11;:19;:::i;:::-;76086:26;75364:754;-1:-1:-1;;;;;;;;;75364:754:0:o;23335:229::-;23409:22;;;23401:73;;;;-1:-1:-1;;;23401:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23511:6;;23490:38;;;;;;;23511:6;;23490:38;;23511:6;;23490:38;23539:6;:17;;;;;;;;;;;;;;;23335:229::o;7962:345::-;8048:7;8150:12;8143:5;8135:28;;;;-1:-1:-1;;;8135:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;8135:28:0;;8174:9;8190:1;8186;:5;;;;;;;7962:345;-1:-1:-1;;;;;7962:345:0:o;33646:1114::-;34250:27;34258:5;34250:25;;;:27::i;:::-;34242:71;;;;;-1:-1:-1;;;34242:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;34387:12;34401:23;34436:5;34428:19;;34448:4;34428:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;139:12;;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;34428:25:0;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;34386:67:0;;;;34472:7;34464:52;;;;;-1:-1:-1;;;34464:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34533:17;;:21;34529:224;;34675:10;34664:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;34664:30:0;34656:85;;;;-1:-1:-1;;;34656:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33646:1114;;;;:::o;5445:136::-;5503:7;5530:43;5534:1;5537;5530:43;;;;;;;;;;;;;;;;;:3;:43::i;31791:204::-;31918:68;;;31941:18;31918:68;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;31918:68:0;;;;;;;;25:18:-1;;61:17;;31918:68:0;182:15:-1;31941:27:0;179:29:-1;160:49;;31892:95:0;;31911:5;;31892:18;:95::i;15689:308::-;15765:21;;;15757:65;;;;;-1:-1:-1;;;15757:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;15850:12;;:24;;15867:6;15850:24;:16;:24;:::i;:::-;15835:12;:39;15906:18;;;:9;:18;;;;;;;;;;;:30;;15929:6;15906:30;:22;:30;:::i;:::-;15885:18;;;:9;:18;;;;;;;;;;;:51;;;;15952:37;;;;;;;15885:18;;:9;;15952:37;;;;;;;;;;15689:308;;:::o;77128:638::-;77234:16;77259:27;77303:11;:18;77289:33;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;77289:33:0;-1:-1:-1;77259:63:0;-1:-1:-1;77329:19:0;;;77396:341;77420:11;:18;77416:1;:22;77396:341;;;77484:1;77463:11;:18;:22;77458:1;:27;77454:276;;;77514:27;:5;77524:16;77514:27;:9;:27;:::i;:::-;77498:10;77509:1;77498:13;;;;;;;;;;;;;:43;;;;;77454:276;;;77582:37;77612:6;77582:25;77592:11;77604:1;77592:14;;;;;;;;;;;;;;77582:5;:9;;:25;;;;:::i;:37::-;77568:51;-1:-1:-1;77649:33:0;:16;77568:51;77649:33;:20;:33;:::i;:::-;77630:52;;77709:11;77693:10;77704:1;77693:13;;;;;;;;;;;;;:27;;;;;77454:276;77440:3;;77396:341;;;-1:-1:-1;77750:10:0;;77128:638;-1:-1:-1;;;;;77128:638:0:o;76348:545::-;76550:15;:22;76525:14;:21;:47;76517:99;;;;-1:-1:-1;;;76517:99:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76625:18;;76652:236;76676:15;:22;76672:1;:26;76652:236;;;76727:15;76743:1;76727:18;;;;;;;;;;;;;;76714:31;;76758:10;76772:1;76758:15;76754:50;;;76786:8;;76754:50;76812:68;76832:16;:35;76849:14;76864:1;76849:17;;;;;;;;;;;;;;;;;;;76832:35;;;;;;;;;;;;;;;-1:-1:-1;76832:35:0;;;76869:10;76812:19;:68::i;:::-;;76652:236;76700:3;;76652:236;;78177:1586;78339:34;78382:19;78410:17;78468:10;:17;78450:7;:14;:35;78442:65;;;;;-1:-1:-1;;;78442:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;78548:7;:14;78534:29;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;78534:29:0;-1:-1:-1;78514:49:0;-1:-1:-1;78570:25:0;;;;;78735:1023;78759:7;:14;78755:1;:18;78735:1023;;;78801:14;78816:1;78801:17;;;;;;;;;;;;;;78789:29;;78839:10;78850:1;78839:13;;;;;;;;;;;;;;78827:25;;78874:7;78882:1;78874:10;;;;;;;;;;;;;;;;;;;78921:27;;;;;;;;:16;:27;;;;;;;;;;;;-1:-1:-1;78874:10:0;-1:-1:-1;78962:22:0;;;78958:793;;;79020:1;78997:17;79015:1;78997:20;;;;;;;;;;;;;;;;;:24;79032:16;79051:25;:10;79066:9;79051:25;:14;:25;:::i;:::-;79032:44;;79087:26;79116:8;:27;;;:29;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;79116:29:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;79116:29:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;79116:29:0;;-1:-1:-1;79160:29:0;;;79156:121;;;79219:4;79204:19;;79247:18;79236:29;;79156:121;79321:283;79355:16;:27;79372:9;79355:27;;;;;;;;;;;;;;;;;;;;;;;;;79395:9;79480:52;79505:8;:24;;;:26;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;79505:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;79505:26:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;79505:26:0;79480:20;:8;79493:6;79480:20;:12;:20;:::i;79321:283::-;;78958:793;;;;;79654:25;:9;79668:10;79654:25;:13;:25;:::i;:::-;79631:17;79649:1;79631:20;;;;;;;;;;;;;:48;;;;;79704:37;79720:17;79738:1;79720:20;;;;;;;;;;;;;;79704:11;:15;;:37;;;;:::i;:::-;79690:51;;78958:793;78775:3;;78735:1023;;;;78177:1586;;;;;;;;;;;:::o;24156:183::-;24236:18;24240:4;24246:7;24236:3;:18::i;:::-;24228:64;;;;-1:-1:-1;;;24228:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24303:20;;24326:5;24303:20;;;;;;;;;;;:28;;;;;;24156:183::o;23898:178::-;23976:18;23980:4;23986:7;23976:3;:18::i;:::-;23975:19;23967:63;;;;;-1:-1:-1;;;23967:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;24041:20;;:11;:20;;;;;;;;;;;:27;;;;24064:4;24041:27;;;23898:178::o;28445:810::-;28505:4;29164:20;;29007:66;29204:15;;;;;:42;;-1:-1:-1;29223:23:0;;;29196:51;-1:-1:-1;;28445:810:0:o;81370:361::-;81466:14;81495:12;81491:52;;81520:13;;81491:52;81628:5;;81621:49;;81628:5;;81648:12;81662:7;81621:49;:26;:49;:::i;:::-;81705:12;81688:35;;;:37;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;81688:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;81688:37:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;81688:37:0;;81370:361;-1:-1:-1;;;81370:361:0:o;52681:29831::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;52681:29831:0;;;-1:-1:-1;52681:29831:0;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

bzzr://cb5853e74c24fceb7cac4974ee8ef2d7975645d216813656aab8bb2ea946ab4a
Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.