Contract 0x8497a80d46291e53f5f33200bc3823fd6a600284

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xa45dbf132b7bb73e843ce625d18da076919094aeb4f778db92afedeee5963191Harvest238409222022-01-17 21:25:185 days 11 hrs ago0xe25831c97ac161ad58aef70b6cee507b0e49688c IN  0x8497a80d46291e53f5f33200bc3823fd6a6002840 MATIC0.04128626497.6
0x1d4f0145e082b9430a0bdfa1b7b322509119ffad6431189e240fb36010336739Harvest238375912022-01-17 19:25:125 days 13 hrs ago0xe25831c97ac161ad58aef70b6cee507b0e49688c IN  0x8497a80d46291e53f5f33200bc3823fd6a6002840 MATIC0.072335565171
0x1c324179e403924ba917a61645dfef69866b9ca7779f15477a2fc02a94e9c749Harvest238341872022-01-17 17:25:165 days 15 hrs ago0xe25831c97ac161ad58aef70b6cee507b0e49688c IN  0x8497a80d46291e53f5f33200bc3823fd6a6002840 MATIC0.02495788559
0xbb15bf68c7da5f0e2b7d11b6eeb9bbc30ad1a62275be076c1ca3c8249dd8cc93Harvest238309192022-01-17 15:25:205 days 17 hrs ago0xe25831c97ac161ad58aef70b6cee507b0e49688c IN  0x8497a80d46291e53f5f33200bc3823fd6a6002840 MATIC0.0983509875232.5
0x01608a9b81130766093c0d1cfdc09c83235c667a6d277b79b2132643296f419aHarvest238276182022-01-17 13:25:155 days 19 hrs ago0xe25831c97ac161ad58aef70b6cee507b0e49688c IN  0x8497a80d46291e53f5f33200bc3823fd6a6002840 MATIC0.0829532415196.1
0xb12f33eeedb0108d6217ef9775135121351df9c679802420d20b2c60c4ad351aHarvest238243782022-01-17 11:25:155 days 21 hrs ago0xe25831c97ac161ad58aef70b6cee507b0e49688c IN  0x8497a80d46291e53f5f33200bc3823fd6a6002840 MATIC0.103638675245
0x07b91c578e078a4ed10a8465336d64dbf48060c2cee59618b41365eaffc53721Harvest238211332022-01-17 9:25:135 days 23 hrs ago0xe25831c97ac161ad58aef70b6cee507b0e49688c IN  0x8497a80d46291e53f5f33200bc3823fd6a6002840 MATIC0.05480159325129.55
0xc4910cc3f2077675e6b8b4714bf3b2eb563a0664322cfa72b6791bec58aea2b3Harvest238181532022-01-17 7:25:326 days 1 hr ago0xe25831c97ac161ad58aef70b6cee507b0e49688c IN  0x8497a80d46291e53f5f33200bc3823fd6a6002840 MATIC0.0422974100
0xb40e969549a4fd1e4ca8edc3675afbc1c50c11849c45be22a2725f09eea0e002Harvest238150902022-01-17 5:25:156 days 3 hrs ago0xe25831c97ac161ad58aef70b6cee507b0e49688c IN  0x8497a80d46291e53f5f33200bc3823fd6a6002840 MATIC0.14600362725345.15
0x3a80dd60f1a6215dddc244c937fefd33484311a1871c712bae684a119164b332Harvest238115992022-01-17 3:25:176 days 5 hrs ago0xe25831c97ac161ad58aef70b6cee507b0e49688c IN  0x8497a80d46291e53f5f33200bc3823fd6a6002840 MATIC0.0235407847555.65
0x3ac4d164679230763cce7f7670df3f30ad45e94feb8990e14f9195ccc2b7eb79Harvest238081092022-01-17 1:25:156 days 7 hrs ago0xe25831c97ac161ad58aef70b6cee507b0e49688c IN  0x8497a80d46291e53f5f33200bc3823fd6a6002840 MATIC0.0581645625137.5
0xe47d6dca7dfd4802109090c4f2d4dbcca1f3f2986a5c4dbd2ee9a2ee804bd905Harvest238048032022-01-16 23:25:146 days 9 hrs ago0xe25831c97ac161ad58aef70b6cee507b0e49688c IN  0x8497a80d46291e53f5f33200bc3823fd6a6002840 MATIC0.0290399797568.65
0x32183db19933dea865137d0ca047a4b4f6b6d2b08e2c991686912df6610c632aHarvest238014362022-01-16 21:25:126 days 11 hrs ago0xe25831c97ac161ad58aef70b6cee507b0e49688c IN  0x8497a80d46291e53f5f33200bc3823fd6a6002840 MATIC0.1041481228117.4
0xb63fd11eee1900e572b905e8a60ae895e900a70922d3b54c8a260a504431478cHarvest237616582022-01-15 21:25:167 days 11 hrs ago0xe25831c97ac161ad58aef70b6cee507b0e49688c IN  0x8497a80d46291e53f5f33200bc3823fd6a6002840 MATIC0.01895107244.8
0x38e1a3c4158e7997d1759dbf5f0d61cbd101a7df0b594a9e627baa3ed7154978Harvest237583512022-01-15 19:25:147 days 13 hrs ago0xe25831c97ac161ad58aef70b6cee507b0e49688c IN  0x8497a80d46291e53f5f33200bc3823fd6a6002840 MATIC0.06006813142
0x0b7b46cfcd9d989e41fddf5eee05201c00c33dbccaf58225349218fa7fe84826Harvest237549862022-01-15 17:25:167 days 15 hrs ago0xe25831c97ac161ad58aef70b6cee507b0e49688c IN  0x8497a80d46291e53f5f33200bc3823fd6a6002840 MATIC0.0229485637554.25
0xcc5d975e0e65a3c4f94b91f7208bc2f85a78b7e98e7812b3583f751b0235df80Harvest237518062022-01-15 15:25:167 days 17 hrs ago0xe25831c97ac161ad58aef70b6cee507b0e49688c IN  0x8497a80d46291e53f5f33200bc3823fd6a6002840 MATIC0.029145733568.9
0xbabb17e535bdae32714e501ca0058232e3917e397a7aca32d97bcec78ef2a590Harvest237484372022-01-15 13:25:147 days 19 hrs ago0xe25831c97ac161ad58aef70b6cee507b0e49688c IN  0x8497a80d46291e53f5f33200bc3823fd6a6002840 MATIC0.0370349632587.55
0x4435478f182fc43c469069e3fdcf1991749472b813bcf54954dc06fe0825cb5cHarvest237452592022-01-15 11:25:187 days 21 hrs ago0xe25831c97ac161ad58aef70b6cee507b0e49688c IN  0x8497a80d46291e53f5f33200bc3823fd6a6002840 MATIC0.0173224642540.95
0x7c648b43ad3de86b7c08080720478f5a0c592d15352ce15324062167d6fcfc72Harvest237423112022-01-15 9:25:187 days 23 hrs ago0xe25831c97ac161ad58aef70b6cee507b0e49688c IN  0x8497a80d46291e53f5f33200bc3823fd6a6002840 MATIC0.05160783122
0x68c9b17e8a3f3e0717ddebe3a07b00a3f6f78c7eb66188a10d0389041d422444Harvest237393932022-01-15 7:25:188 days 1 hr ago0xe25831c97ac161ad58aef70b6cee507b0e49688c IN  0x8497a80d46291e53f5f33200bc3823fd6a6002840 MATIC0.0274325227564.85
0x67d17adb8ebe2ddc368cf5266f52ef656fb6442a55963090159a715c6ffe8ea7Harvest237363982022-01-15 5:25:168 days 3 hrs ago0xe25831c97ac161ad58aef70b6cee507b0e49688c IN  0x8497a80d46291e53f5f33200bc3823fd6a6002840 MATIC0.0270518092563.95
0x8ed4caa2f9900552d0e8f79beb243ebdf7b8ed2e46115e5f86bcd1b4a4cf71daHarvest237332792022-01-15 3:25:148 days 5 hrs ago0xe25831c97ac161ad58aef70b6cee507b0e49688c IN  0x8497a80d46291e53f5f33200bc3823fd6a6002840 MATIC0.03181072875.2
0x225540be12db1045d9d5ae2256ff073747a479c69914b709ba63f13fc8e949daHarvest237299792022-01-15 1:25:228 days 7 hrs ago0xe25831c97ac161ad58aef70b6cee507b0e49688c IN  0x8497a80d46291e53f5f33200bc3823fd6a6002840 MATIC0.0329740192577.95
0xca9da2769bd3ce780bc41d724b1d5eed5b6c41a29d07eb1b8084cd987a6ed6a9Harvest237265472022-01-14 23:25:188 days 9 hrs ago0xe25831c97ac161ad58aef70b6cee507b0e49688c IN  0x8497a80d46291e53f5f33200bc3823fd6a6002840 MATIC0.030668587572.5
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Similar Match Source Code
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x6c5bd3260394530648c584aab9f0a727c981d6ad

Contract Name:
AaveStrategy

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at polygonscan.com on 2021-06-13
*/

pragma solidity ^0.8.4;


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

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

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

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

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

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

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

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

/*
 * @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 meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The defaut value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overloaded;
     *
     * 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 virtual returns (uint8) {
        return 18;
    }

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

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

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

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

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

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

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        _approve(sender, _msgSender(), currentAllowance - amount);

        return true;
    }

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

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

        return true;
    }

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

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        _balances[sender] = senderBalance - amount;
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);
    }

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

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

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

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

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

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        _balances[account] = accountBalance - amount;
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/**
 * @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 IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // 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 (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @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) {
        return a + b;
    }

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

    /**
     * @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) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting 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 a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards 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).
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

/**
 * @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.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

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

    bool private _paused;

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

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

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

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

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

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

abstract contract CommonContract is Ownable, Pausable {
}

interface IAaveIncentivesController {

  event RewardsAccrued(address indexed user, uint amount);

  event RewardsClaimed(
    address indexed user,
    address indexed to,
    uint amount
  );

  event RewardsClaimed(
    address indexed user,
    address indexed to,
    address indexed claimer,
    uint amount
  );

  function getRewardsBalance(address[] calldata assets, address user)
    external
    view
    returns (uint);

  function claimRewards(
    address[] calldata assets,
    uint amount,
    address to
  ) external returns (uint);

  function getUserUnclaimedRewards(address user) external view returns (uint);
}

interface IAaveLendingPool {
    event Deposit(
        address indexed reserve,
        address user,
        address indexed onBehalfOf,
        uint amount,
        uint16 indexed referral
    );

    event Withdraw(address indexed reserve, address indexed user, address indexed to, uint amount);

    function deposit(address asset, uint amount, address onBehalfOf, uint16 referralCode) external;
    function withdraw(address asset, uint amount, address to) external returns (uint);
    function borrow(address asset, uint amount, uint interestRateMode, uint16 referralCode, address onBehalfOf) external;
    function repay(address asset, uint amount, uint rateMode, address onBehalfOf) external returns (uint);

    function getUserAccountData(address user) external view returns (
        uint totalCollateralETH,
        uint totalDebtETH,
        uint availableBorrowsETH,
        uint currentLiquidationThreshold,
        uint ltv,
        uint healthFactor
    );

}

interface IController {
    function withdraw(address, uint256) external;

    function balanceOf(address) external view returns (uint256);

    function earn(address, uint256) external;

    function want(address) external view returns (address);

    function rewards() external view returns (address);

    function vaults(address) external view returns (address);

    function strategies(address) external view returns (address);
}

interface IDataProvider {
    function getReserveTokensAddresses(address asset) external view returns (
        address aTokenAddress,
        address stableDebtTokenAddress,
        address variableDebtTokenAddress
    );

    function getUserReserveData(address asset, address user) external view returns (
        uint256 currentATokenBalance,
        uint256 currentStableDebt,
        uint256 currentVariableDebt,
        uint256 principalStableDebt,
        uint256 scaledVariableDebt,
        uint256 stableBorrowRate,
        uint256 liquidityRate,
        uint40 stableRateLastUpdated,
        bool usageAsCollateralEnabled
    );
}

interface IUniswapRouter {
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
}

contract AaveStrategy is CommonContract {
    using SafeERC20 for IERC20;
    using Address for address;
    using SafeMath for uint;
    using SafeMath for uint8;

    address public constant wmatic = address(0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270);

    address public want;
    address public aToken;
    address public debtToken;

    // Aave contracts
    address public constant dataProvider = address(0x7551b5D2763519d4e37e8B81929D336De671d46d);
    address public constant incentivesController = address(0x357D51124f59836DeD84c8a1730D72B749d8BC23);
    address public constant pool = address(0x8dFf5E27EA6b7AC08EbFdf9eB090F32ee9a30fcf);

    // Routes
    address[] public wmaticToWantRoute;

    address public controller;
    address public treasury;

    // Profitability vars
    uint public borrowRate;
    uint public borrowRateMax;
    uint public borrowDepth;
    uint public minLeverage;
    uint constant public BORROW_DEPTH_MAX = 10;
    uint constant public INTEREST_RATE_MODE = 2; // variable
    uint constant public MIN_HEALTH_FACTOR = 1.05e18;  // Always at least 1.05 to not enter default like Arg

    address public exchange;

    // Fees
    uint constant public FEE_MAX = 10000;
    uint constant public PERFORMANCE_FEE = 350; // 3.5%
    uint constant public MAX_WITHDRAW_FEE = 100; // 1%
    uint public withdrawFee = 10; // 0.1%

    constructor(
        address _want,
        uint _borrowRate,
        uint _borrowRateMax,
        uint _borrowDepth,
        uint _minLeverage,
        address _controller,
        address _exchange
    ) {
        require(_want != address(0), "want zero address");
        require(_controller != address(0), "controller zero address");
        require(IController(_controller).vaults(_want) != address(0), "Controller vault zero address");

        want = _want;
        borrowRate = _borrowRate;
        borrowRateMax = _borrowRateMax;
        borrowDepth = _borrowDepth;
        minLeverage = _minLeverage;
        controller = _controller;
        exchange = _exchange;
        treasury = msg.sender;

        wmaticToWantRoute = [wmatic, want];

        (aToken,,debtToken) = IDataProvider(dataProvider).getReserveTokensAddresses(want);

        _giveAllowances();
    }

    modifier onlyController() {
        require(msg.sender == controller, "!controller");
        _;
    }

    function setTreasury(address _treasury) external onlyOwner {
        treasury = _treasury;
    }

    function setExchange(address _exchange) external onlyOwner {
        // Revoke current exchange
        IERC20(wmatic).safeApprove(exchange, 0);

        exchange = _exchange;
        IERC20(wmatic).safeApprove(exchange, type(uint).max);
    }

    // `withdrawFee` can't be more than 1%
    function setWithdrawFee(uint _fee) external onlyOwner {
        require(_fee <= MAX_WITHDRAW_FEE, "!cap");

        withdrawFee = _fee;
    }

    function setSwapRoute(address[] calldata _route) external onlyOwner {
        wmaticToWantRoute = _route;
    }

    function wantBalance() public view returns (uint) {
        return IERC20(want).balanceOf(address(this));
    }

    function deposit() public whenNotPaused {
        uint _balance = wantBalance();

        if (_balance > 0) {
            _leverage(_balance);
        }
    }

    function _leverage(uint _amount) internal {
        IAaveLendingPool(pool).deposit(want, _amount, address(this), 0);

        if (_amount < minLeverage) {
            return;
        }

        // Borrow & deposit strategy
        for (uint i = 0; i < borrowDepth; i++) {
            _amount = _amount.mul(borrowRate).div(100);

            IAaveLendingPool(pool).borrow(want, _amount, INTEREST_RATE_MODE, 0, address(this));
            IAaveLendingPool(pool).deposit(want, _amount, address(this), 0);

            if (_amount < minLeverage) {
                break;
            }
        }
    }

    function _fullDeleverage() internal {
        (uint supplyBal, uint borrowBal) = supplyAndBorrow();
        uint toWithdraw;

        while (borrowBal > 0) {
            toWithdraw = maxWithdrawFromSupply(supplyBal);

            IAaveLendingPool(pool).withdraw(want, toWithdraw, address(this));
            // Repay only will use the needed
            IAaveLendingPool(pool).repay(want, toWithdraw, INTEREST_RATE_MODE, address(this));

            (supplyBal, borrowBal) = supplyAndBorrow();
        }

        if (supplyBal > 0) {
            IAaveLendingPool(pool).withdraw(want, type(uint).max, address(this));
        }
    }

    function increaseHealthFactor() external onlyOwner {
        (uint supplyBal,) = supplyAndBorrow();

        // Only withdraw the 10% of the max withdraw
        uint toWithdraw = maxWithdrawFromSupply(supplyBal).mul(100).div(10);

        IAaveLendingPool(pool).withdraw(want, toWithdraw, address(this));
        IAaveLendingPool(pool).repay(want, toWithdraw, INTEREST_RATE_MODE, address(this));
    }

    function rebalance(uint _borrowRate, uint _borrowDepth) external onlyOwner {
        require(_borrowRate <= borrowRateMax, "!rate");
        require(_borrowDepth <= BORROW_DEPTH_MAX, "!depth");

        _fullDeleverage();
        borrowRate = _borrowRate;
        borrowDepth = _borrowDepth;

        deposit();
    }

    function vault() public view returns (address) {
        return IController(controller).vaults(want);
    }

    // Divide the supply with HF less 0.5 to finish at least with HF~=1.05
    function maxWithdrawFromSupply(uint _supply) internal view returns (uint) {
        // The healthFactor value has the same representation than supply so
        // to do the math we should remove 12 places from healthFactor to get a HF
        // with only 6 "decimals" and add 6 "decimals" to supply to divide like we do IRL.
        return _supply.sub(
            _supply.mul(1e6).div(
                currentHealthFactor().div(1e12).sub(0.05e6)
            )
        );
    }

    function _partialDeleverage(uint _needed) internal {
        // Instead of a require() to raise an exception, the fullDeleverage should
        // fix the health factor
        if (currentHealthFactor() <= MIN_HEALTH_FACTOR) {
            _fullDeleverage();

            return;
        }

        uint borrowBal;
        uint supplyBal;
        uint toWithdraw;
        uint toRepay;

        while (_needed > wantBalance()) {
            (supplyBal, borrowBal) = supplyAndBorrow();
            toWithdraw = maxWithdrawFromSupply(supplyBal);

            IAaveLendingPool(pool).withdraw(want, toWithdraw, address(this));

            // for depth == 0
            if (borrowBal > 0) {
                // Only repay the just amount
                toRepay = toWithdraw.mul(borrowRate).div(100);
                IAaveLendingPool(pool).repay(want, toRepay, INTEREST_RATE_MODE, address(this));
            }
        }
    }

    // Withdraw partial funds, normally used with a vault withdrawal
    function withdraw(uint _amount) external onlyController {
        uint balance = wantBalance();

        if (balance < _amount) {
            // If the amount is at least the half of the real deposit
            // we have to do a full deleverage, in other case the withdraw+repay
            // will looping for ever.
            if (_amount.mul(2) >= balanceOfPool()) {
                _fullDeleverage();
            } else {
                _partialDeleverage(_amount.sub(balance));
            }
        }

        if (tx.origin == owner()) {
            // Yield balancer
            IERC20(want).safeTransfer(vault(), _amount);
        } else {
            uint withdrawalFee = _amount.mul(withdrawFee).div(FEE_MAX);
            IERC20(want).safeTransfer(vault(), _amount.sub(withdrawalFee));
            IERC20(want).safeTransfer(treasury, withdrawalFee);
        }

        if (!paused()) {
            deposit();
        }
    }

    function balanceOf() public view returns (uint) {
        return wantBalance().add(balanceOfPool());
    }

    // it calculates how much 'want' the strategy has working in the farm.
    function balanceOfPool() public view returns (uint) {
        (uint supplyBal, uint borrowBal) = supplyAndBorrow();
        return supplyBal.sub(borrowBal);
    }


    function claimRewards() internal {
        // Incentive controller only receive aToken addresses
        address[] memory assets = new address[](2);
        assets[0] = aToken;
        assets[1] = debtToken;

        IAaveIncentivesController(incentivesController).claimRewards(
            assets, type(uint).max, address(this)
        );
    }

    // _maticToWantRatio is a pre-calculated ratio to prevent
    // sandwich attacks
    function harvest(uint _maticToWantRatio) public {
        require(
            _msgSender() == owner() || _msgSender() == controller,
            "Owner or controller only"
        );

        uint _before = wantBalance();

        claimRewards();

        // only need swap when is different =)
        if (want != wmatic) {
            swapRewards(_maticToWantRatio);
        }

        uint harvested = wantBalance().sub(_before);

        chargeFees(harvested);

        if (!paused()) {
            // re-deposit
            deposit();
        }
    }

    function swapRewards(uint _maticToWantRatio) internal {
        uint balance = IERC20(wmatic).balanceOf(address(this));

        if (balance > 0) {
            // _maticToWantRatio is a 9 decimals ratio number calculated by the
            // caller before call harvest to get the minimum amount of want-tokens.
            // So the balance is multiplied by the ratio and then divided by 9 decimals
            // to get the same "precision". Then the result should be divided for the
            // decimal diff between tokens.
            // E.g want is USDT with  only 6 decimals:
            // _maticToWantRatio = 1_522_650_000 (1.52265 USDT/MATIC)
            // balance = 1e18 (1.0 MATIC)
            // tokenDiffPrecision = 1e21 ((1e18 MATIC decimals / 1e6 USDT decimals) * 1e9 ratio precision)
            // expected = 1522650 (1e18 * 1_522_650_000 / 1e21) [1.52 in USDT decimals]

            uint tokenDiffPrecision = (10 ** ERC20(wmatic).decimals()).div(
                10 ** ERC20(want).decimals()
            ).mul(1e9);
            uint expected = balance.mul(_maticToWantRatio).div(tokenDiffPrecision);

            IUniswapRouter(exchange).swapExactTokensForTokens(
                balance, expected, wmaticToWantRoute, address(this), block.timestamp.add(60)
            );
        }
    }

    /**
     * @dev Takes out 3.5% performance fee.
     */
    function chargeFees(uint _harvested) internal {
        uint performanceFee = _harvested.mul(PERFORMANCE_FEE).div(FEE_MAX); // 3%

        if (performanceFee > 0) {
            // Pay to treasury 3.5% of the total reward claimed
            IERC20(want).safeTransfer(treasury, performanceFee);
        }
    }

    function userReserves() public view returns (
        uint256 currentATokenBalance,
        uint256 currentStableDebt,
        uint256 currentVariableDebt,
        uint256 principalStableDebt,
        uint256 scaledVariableDebt,
        uint256 stableBorrowRate,
        uint256 liquidityRate,
        uint40 stableRateLastUpdated,
        bool usageAsCollateralEnabled
    ) {
        return IDataProvider(dataProvider).getUserReserveData(want, address(this));
    }

    function supplyAndBorrow() public view returns (uint, uint) {
        (uint supplyBal,,uint borrowBal,,,,,,) = userReserves();
        return (supplyBal, borrowBal);
    }

    // returns the user account data across all the reserves
    function userAccountData() public view returns (
        uint totalCollateralETH,
        uint totalDebtETH,
        uint availableBorrowsETH,
        uint currentLiquidationThreshold,
        uint ltv,
        uint healthFactor
    ) {
        return IAaveLendingPool(pool).getUserAccountData(address(this));
    }

    function currentHealthFactor() public view returns (uint) {
        (,,,,, uint healthFactor) = userAccountData();

        return healthFactor;
    }

    // called as part of strat migration. Sends all the available funds back to the vault.
    function retireStrat(uint _maticToWantRatio) external onlyController {
        _pause();
        _fullDeleverage();

        harvest(_maticToWantRatio);

        IERC20(want).transfer(vault(), wantBalance());

        _removeAllowances();
    }

    // pauses deposits and withdraws all funds from third party systems.
    function panic() public onlyOwner {
        _fullDeleverage();
        pause();
    }

    function pause() public onlyOwner {
        _pause();

        _removeAllowances();
    }

    function unpause() external onlyOwner {
        _unpause();

        _giveAllowances();

        deposit();
    }

    function _giveAllowances() internal {
        IERC20(want).safeApprove(pool, type(uint).max);
        IERC20(wmatic).safeApprove(exchange, type(uint).max);
    }

    function _removeAllowances() internal {
        IERC20(want).safeApprove(pool, 0);
        IERC20(wmatic).safeApprove(exchange, 0);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_want","type":"address"},{"internalType":"uint256","name":"_borrowRate","type":"uint256"},{"internalType":"uint256","name":"_borrowRateMax","type":"uint256"},{"internalType":"uint256","name":"_borrowDepth","type":"uint256"},{"internalType":"uint256","name":"_minLeverage","type":"uint256"},{"internalType":"address","name":"_controller","type":"address"},{"internalType":"address","name":"_exchange","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"BORROW_DEPTH_MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FEE_MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INTEREST_RATE_MODE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_WITHDRAW_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_HEALTH_FACTOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERFORMANCE_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"aToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceOfPool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"borrowDepth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"borrowRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"borrowRateMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"controller","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentHealthFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dataProvider","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"debtToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"exchange","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maticToWantRatio","type":"uint256"}],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"incentivesController","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"increaseHealthFactor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minLeverage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"panic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_borrowRate","type":"uint256"},{"internalType":"uint256","name":"_borrowDepth","type":"uint256"}],"name":"rebalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maticToWantRatio","type":"uint256"}],"name":"retireStrat","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_exchange","type":"address"}],"name":"setExchange","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_route","type":"address[]"}],"name":"setSwapRoute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setWithdrawFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"supplyAndBorrow","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"userAccountData","outputs":[{"internalType":"uint256","name":"totalCollateralETH","type":"uint256"},{"internalType":"uint256","name":"totalDebtETH","type":"uint256"},{"internalType":"uint256","name":"availableBorrowsETH","type":"uint256"},{"internalType":"uint256","name":"currentLiquidationThreshold","type":"uint256"},{"internalType":"uint256","name":"ltv","type":"uint256"},{"internalType":"uint256","name":"healthFactor","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"userReserves","outputs":[{"internalType":"uint256","name":"currentATokenBalance","type":"uint256"},{"internalType":"uint256","name":"currentStableDebt","type":"uint256"},{"internalType":"uint256","name":"currentVariableDebt","type":"uint256"},{"internalType":"uint256","name":"principalStableDebt","type":"uint256"},{"internalType":"uint256","name":"scaledVariableDebt","type":"uint256"},{"internalType":"uint256","name":"stableBorrowRate","type":"uint256"},{"internalType":"uint256","name":"liquidityRate","type":"uint256"},{"internalType":"uint40","name":"stableRateLastUpdated","type":"uint40"},{"internalType":"bool","name":"usageAsCollateralEnabled","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"want","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wantBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wmatic","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"wmaticToWantRoute","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

6080604052600a600c553480156200001657600080fd5b5060405162003a8c38038062003a8c8339810160408190526200003991620008c0565b600080546001600160a01b031916339081178255604051909182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506000805460ff60a01b191690556001600160a01b038716620000d75760405162461bcd60e51b815260206004820152601160248201527077616e74207a65726f206164647265737360781b60448201526064015b60405180910390fd5b6001600160a01b0382166200012f5760405162461bcd60e51b815260206004820152601760248201527f636f6e74726f6c6c6572207a65726f20616464726573730000000000000000006044820152606401620000ce565b604051632988bb9f60e21b81526001600160a01b0388811660048301526000919084169063a622ee7c9060240160206040518083038186803b1580156200017557600080fd5b505afa1580156200018a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001b091906200085a565b6001600160a01b03161415620002095760405162461bcd60e51b815260206004820152601d60248201527f436f6e74726f6c6c6572207661756c74207a65726f20616464726573730000006044820152606401620000ce565b600180546001600160a01b03808a166001600160a01b03199283168117909355600789905560088890556009879055600a86905560058054868316908416179055600b8054918516918316919091179055600680549091163317905560408051808201909152730d500b1d8e8ef31e21c99d1db9a6444d3adf1270815260208101919091526200029e906004906002620007bc565b506001546040516334924edb60e21b81526001600160a01b039091166004820152737551b5d2763519d4e37e8b81929d336de671d46d9063d2493b6c9060240160606040518083038186803b158015620002f757600080fd5b505afa1580156200030c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000332919062000877565b600380546001600160a01b039283166001600160a01b0319918216179091556002805494909216931692909217909155506200036d6200037a565b50505050505050620009f1565b600154620003b5906001600160a01b0316738dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf600019620003f3602090811b6200172017901c565b600b54620003f190730d500b1d8e8ef31e21c99d1db9a6444d3adf1270906001600160a01b0316600019620003f3602090811b6200172017901c565b565b801580620004815750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b1580156200044457600080fd5b505afa15801562000459573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200047f919062000952565b155b620004f55760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000006064820152608401620000ce565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0390811663095ea7b360e01b179091526200054d9185916200055216565b505050565b6000620005ae826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166200063060201b620018fb179092919060201c565b8051909150156200054d5780806020019051810190620005cf919062000930565b6200054d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401620000ce565b60606200064184846000856200064b565b90505b9392505050565b606082471015620006ae5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401620000ce565b843b620006fe5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401620000ce565b600080866001600160a01b031685876040516200071c91906200096b565b60006040518083038185875af1925050503d80600081146200075b576040519150601f19603f3d011682016040523d82523d6000602084013e62000760565b606091505b509092509050620007738282866200077e565b979650505050505050565b606083156200078f57508162000644565b825115620007a05782518084602001fd5b8160405162461bcd60e51b8152600401620000ce919062000989565b82805482825590600052602060002090810192821562000814579160200282015b828111156200081457825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620007dd565b506200082292915062000826565b5090565b5b8082111562000822576000815560010162000827565b80516001600160a01b03811681146200085557600080fd5b919050565b6000602082840312156200086c578081fd5b62000644826200083d565b6000806000606084860312156200088c578182fd5b62000897846200083d565b9250620008a7602085016200083d565b9150620008b7604085016200083d565b90509250925092565b600080600080600080600060e0888a031215620008db578283fd5b620008e6886200083d565b9650602088015195506040880151945060608801519350608088015192506200091260a089016200083d565b91506200092260c089016200083d565b905092959891949750929550565b60006020828403121562000942578081fd5b8151801515811462000644578182fd5b60006020828403121562000964578081fd5b5051919050565b600082516200097f818460208701620009be565b9190910192915050565b6020815260008251806020840152620009aa816040850160208701620009be565b601f01601f19169190910160400192915050565b60005b83811015620009db578181015183820152602001620009c1565b83811115620009eb576000848401525b50505050565b61308b8062000a016000396000f3fe608060405234801561001057600080fd5b50600436106103155760003560e01c8063a0c1f15e116101a7578063ddc63262116100ee578063f2fde38b11610097578063fb41be1611610071578063fb41be1614610651578063fbfa77cf1461066c578063ff0e578b1461067457600080fd5b8063f2fde38b14610618578063f77c47911461062b578063f8d898981461063e57600080fd5b8063e93f5665116100c8578063e93f5665146105f3578063e941fa78146105fc578063f0f442601461060557600080fd5b8063ddc63262146105c5578063debbecd5146105d8578063df8879b8146105e057600080fd5b8063c2624e1e11610150578063d0e30db01161012a578063d0e30db0146105a2578063d2f7265a146105aa578063d4b0de2f146105bd57600080fd5b8063c2624e1e1461055b578063c914b43714610564578063cb0d7bac1461056d57600080fd5b8063b4896ecc11610181578063b4896ecc14610531578063b5627e4214610539578063b6ac642a1461054857600080fd5b8063a0c1f15e146104e8578063af1df255146104fb578063b334ed861461051657600080fd5b806361d027b31161026b5780637b6466b2116102145780638456cb59116101ee5780638456cb59146104c65780638da5cb5b146104ce57806397684317146104df57600080fd5b80637b6466b2146104a357806383008bd9146104ab5780638426fc55146104b357600080fd5b8063715018a611610245578063715018a6146104765780637204cd661461047e578063722713f71461049b57600080fd5b806361d027b3146103fb57806367b1f5df1461040e57806371284b761461042157600080fd5b80632e1a7d4d116102cd5780635a01f33d116102a75780635a01f33d146103b25780635c975abb146103ba5780635d777c46146103e857600080fd5b80632e1a7d4d1461038d5780633f4ba83a146103a25780634700d305146103aa57600080fd5b806316f0115b116102fe57806316f0115b1461033e5780631f1fcd511461037157806320f6f76f1461038457600080fd5b80630e5ad9f11461031a5780631158808614610336575b600080fd5b61032360085481565b6040519081526020015b60405180910390f35b610323610687565b610359738dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf81565b6040516001600160a01b03909116815260200161032d565b600154610359906001600160a01b031681565b610323600a5481565b6103a061039b366004612ba6565b6106aa565b005b6103a0610824565b6103a0610898565b610323610902565b60005474010000000000000000000000000000000000000000900460ff16604051901515815260200161032d565b6103a06103f6366004612a3e565b610918565b600654610359906001600160a01b031681565b6103a061041c366004612a06565b610983565b610429610a65565b60408051998a5260208a0198909852968801959095526060870193909352608086019190915260a085015260c084015264ffffffffff1660e083015215156101008201526101200161032d565b6103a0610b44565b610486610c00565b6040805192835260208301919091520161032d565b610323610c21565b610323610c41565b610323600281565b6103596104c1366004612ba6565b610cd6565b6103a0610d00565b6000546001600160a01b0316610359565b61032360095481565b600254610359906001600160a01b031681565b61035973357d51124f59836ded84c8a1730d72b749d8bc2381565b610359737551b5d2763519d4e37e8b81929d336de671d46d81565b610323600a81565b610323670e92596fd629000081565b6103a0610556366004612ba6565b610d6a565b61032361271081565b61032360075481565b610575610e1c565b604080519687526020870195909552938501929092526060840152608083015260a082015260c00161032d565b6103a0610ed7565b600b54610359906001600160a01b031681565b610323606481565b6103a06105d3366004612ba6565b610f5d565b6103a0611061565b6103a06105ee366004612bd6565b61125c565b61032361015e81565b610323600c5481565b6103a0610613366004612a06565b611373565b6103a0610626366004612a06565b611407565b600554610359906001600160a01b031681565b600354610359906001600160a01b031681565b610359730d500b1d8e8ef31e21c99d1db9a6444d3adf127081565b610359611550565b6103a0610682366004612ba6565b6115ed565b6000806000610694610c00565b90925090506106a38282611914565b9250505090565b6005546001600160a01b031633146107095760405162461bcd60e51b815260206004820152600b60248201527f21636f6e74726f6c6c657200000000000000000000000000000000000000000060448201526064015b60405180910390fd5b6000610713610c41565b90508181101561075457610725610687565b610730836002611929565b106107425761073d611935565b610754565b61075461074f8383611914565b611ba6565b6000546001600160a01b031632141561078a57610785610772611550565b6001546001600160a01b03169084611d99565b6107f6565b60006107ad6127106107a7600c548661192990919063ffffffff16565b90611de2565b90506107d76107ba611550565b6107c48584611914565b6001546001600160a01b03169190611d99565b6006546001546107f4916001600160a01b03918216911683611d99565b505b60005474010000000000000000000000000000000000000000900460ff1661082057610820610ed7565b5050565b6000546001600160a01b0316331461087e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610700565b610886611dee565b61088e611ec0565b610896610ed7565b565b6000546001600160a01b031633146108f25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610700565b6108fa611935565b610896610d00565b60008061090d610e1c565b979650505050505050565b6000546001600160a01b031633146109725760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610700565b61097e60048383612961565b505050565b6000546001600160a01b031633146109dd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610700565b600b54610a0a90730d500b1d8e8ef31e21c99d1db9a6444d3adf1270906001600160a01b03166000611720565b600b80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038316908117909155610a6290730d500b1d8e8ef31e21c99d1db9a6444d3adf127090600019611720565b50565b6001546040517f28dd2d010000000000000000000000000000000000000000000000000000000081526001600160a01b03909116600482015230602482015260009081908190819081908190819081908190737551b5d2763519d4e37e8b81929d336de671d46d906328dd2d01906044016101206040518083038186803b158015610aef57600080fd5b505afa158015610b03573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b279190612c40565b985098509850985098509850985098509850909192939495969798565b6000546001600160a01b03163314610b9e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610700565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b600080600080610c0e610a65565b50969b949a509398505050505050505050565b6000610c3c610c2e610687565b610c36610c41565b90611f1b565b905090565b6001546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015610c9e57600080fd5b505afa158015610cb2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3c9190612bbe565b60048181548110610ce657600080fd5b6000918252602090912001546001600160a01b0316905081565b6000546001600160a01b03163314610d5a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610700565b610d62611f27565b610896611ff9565b6000546001600160a01b03163314610dc45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610700565b6064811115610e175760405162461bcd60e51b81526004016107009060208082526004908201527f2163617000000000000000000000000000000000000000000000000000000000604082015260600190565b600c55565b6040517fbf92857c00000000000000000000000000000000000000000000000000000000815230600482015260009081908190819081908190738dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf9063bf92857c9060240160c06040518083038186803b158015610e8c57600080fd5b505afa158015610ea0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec49190612bf7565b949b939a50919850965094509092509050565b60005474010000000000000000000000000000000000000000900460ff1615610f425760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610700565b6000610f4c610c41565b90508015610a6257610a6281612052565b6000546001600160a01b0316331480610f8957506005546001600160a01b0316336001600160a01b0316145b610fd55760405162461bcd60e51b815260206004820152601860248201527f4f776e6572206f7220636f6e74726f6c6c6572206f6e6c7900000000000000006044820152606401610700565b6000610fdf610c41565b9050610fe961228a565b6001546001600160a01b0316730d500b1d8e8ef31e21c99d1db9a6444d3adf127014611018576110188261240a565b600061102c82611026610c41565b90611914565b9050611037816126a8565b60005474010000000000000000000000000000000000000000900460ff1661097e5761097e610ed7565b6000546001600160a01b031633146110bb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610700565b60006110c5610c00565b50905060006110e3600a6107a760646110dd866126e1565b90611929565b6001546040517f69328dec0000000000000000000000000000000000000000000000000000000081526001600160a01b03909116600482015260248101829052306044820152909150738dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf906369328dec90606401602060405180830381600087803b15801561116557600080fd5b505af1158015611179573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061119d9190612bbe565b506001546040517f573ade810000000000000000000000000000000000000000000000000000000081526001600160a01b0390911660048201526024810182905260026044820152306064820152738dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf9063573ade8190608401602060405180830381600087803b15801561122457600080fd5b505af1158015611238573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061097e9190612bbe565b6000546001600160a01b031633146112b65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610700565b6008548211156113085760405162461bcd60e51b815260206004820152600560248201527f21726174650000000000000000000000000000000000000000000000000000006044820152606401610700565b600a8111156113595760405162461bcd60e51b815260206004820152600660248201527f21646570746800000000000000000000000000000000000000000000000000006044820152606401610700565b611361611935565b60078290556009819055610820610ed7565b6000546001600160a01b031633146113cd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610700565b600680547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6000546001600160a01b031633146114615760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610700565b6001600160a01b0381166114dd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610700565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6005546001546040517fa622ee7c0000000000000000000000000000000000000000000000000000000081526001600160a01b039182166004820152600092919091169063a622ee7c9060240160206040518083038186803b1580156115b557600080fd5b505afa1580156115c9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3c9190612a22565b6005546001600160a01b031633146116475760405162461bcd60e51b815260206004820152600b60248201527f21636f6e74726f6c6c65720000000000000000000000000000000000000000006044820152606401610700565b61164f611f27565b611657611935565b61166081610f5d565b6001546001600160a01b031663a9059cbb611679611550565b611681610c41565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b1580156116df57600080fd5b505af11580156116f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117179190612b8c565b50610a62611ff9565b8015806117c257506040517fdd62ed3e0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b15801561178857600080fd5b505afa15801561179c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117c09190612bbe565b155b6118345760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000006064820152608401610700565b6040516001600160a01b03831660248201526044810182905261097e9084907f095ea7b300000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152612714565b606061190a84846000856127f9565b90505b9392505050565b60006119208284612f84565b90505b92915050565b60006119208284612f65565b600080611940610c00565b9150915060005b8115611ae257611956836126e1565b6001546040517f69328dec0000000000000000000000000000000000000000000000000000000081526001600160a01b03909116600482015260248101829052306044820152909150738dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf906369328dec90606401602060405180830381600087803b1580156119d857600080fd5b505af11580156119ec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a109190612bbe565b506001546040517f573ade810000000000000000000000000000000000000000000000000000000081526001600160a01b0390911660048201526024810182905260026044820152306064820152738dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf9063573ade8190608401602060405180830381600087803b158015611a9757600080fd5b505af1158015611aab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611acf9190612bbe565b50611ad8610c00565b9093509150611947565b821561097e576001546040517f69328dec0000000000000000000000000000000000000000000000000000000081526001600160a01b0390911660048201526000196024820152306044820152738dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf906369328dec90606401602060405180830381600087803b158015611b6857600080fd5b505af1158015611b7c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ba09190612bbe565b50505050565b670e92596fd6290000611bb7610902565b11611bc457610a62611935565b6000806000805b611bd3610c41565b851115611d9257611be2610c00565b94509250611bef836126e1565b6001546040517f69328dec0000000000000000000000000000000000000000000000000000000081526001600160a01b03909116600482015260248101829052306044820152909250738dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf906369328dec90606401602060405180830381600087803b158015611c7157600080fd5b505af1158015611c85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ca99190612bbe565b508315611d8d57611cca60646107a76007548561192990919063ffffffff16565b6001546040517f573ade810000000000000000000000000000000000000000000000000000000081526001600160a01b0390911660048201526024810182905260026044820152306064820152909150738dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf9063573ade8190608401602060405180830381600087803b158015611d5357600080fd5b505af1158015611d67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d8b9190612bbe565b505b611bcb565b5050505050565b6040516001600160a01b03831660248201526044810182905261097e9084907fa9059cbb0000000000000000000000000000000000000000000000000000000090606401611879565b60006119208284612e3e565b60005474010000000000000000000000000000000000000000900460ff16611e585760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610700565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600154611eed906001600160a01b0316738dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf600019611720565b600b5461089690730d500b1d8e8ef31e21c99d1db9a6444d3adf1270906001600160a01b0316600019611720565b60006119208284612e26565b60005474010000000000000000000000000000000000000000900460ff1615611f925760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610700565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611ea33390565b600154612025906001600160a01b0316738dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf6000611720565b600b5461089690730d500b1d8e8ef31e21c99d1db9a6444d3adf1270906001600160a01b03166000611720565b6001546040517fe8eda9df0000000000000000000000000000000000000000000000000000000081526001600160a01b0390911660048201526024810182905230604482015260006064820152738dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf9063e8eda9df90608401600060405180830381600087803b1580156120d857600080fd5b505af11580156120ec573d6000803e3d6000fd5b50505050600a548110156120fd5750565b60005b6009548110156108205761212460646107a76007548561192990919063ffffffff16565b6001546040517fa415bcad0000000000000000000000000000000000000000000000000000000081526001600160a01b039091166004820152602481018290526002604482015260006064820152306084820152909250738dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf9063a415bcad9060a401600060405180830381600087803b1580156121b457600080fd5b505af11580156121c8573d6000803e3d6000fd5b50506001546040517fe8eda9df0000000000000000000000000000000000000000000000000000000081526001600160a01b0390911660048201526024810185905230604482015260006064820152738dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf925063e8eda9df9150608401600060405180830381600087803b15801561225257600080fd5b505af1158015612266573d6000803e3d6000fd5b50505050600a54821015612278575050565b8061228281612fc7565b915050612100565b604080516002808252606082018352600092602083019080368337505060025482519293506001600160a01b0316918391506000906122f2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6001600160a01b03928316602091820292909201015260035482519116908290600190811061234a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6001600160a01b03909216602092830291909101909101526040517f3111e7b300000000000000000000000000000000000000000000000000000000815273357d51124f59836ded84c8a1730d72b749d8bc2390633111e7b3906123b8908490600019903090600401612cfe565b602060405180830381600087803b1580156123d257600080fd5b505af11580156123e6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108209190612bbe565b6040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600090730d500b1d8e8ef31e21c99d1db9a6444d3adf1270906370a082319060240160206040518083038186803b15801561247057600080fd5b505afa158015612484573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124a89190612bbe565b905080156108205760006125de633b9aca006110dd600160009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561250b57600080fd5b505afa15801561251f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125439190612cc1565b61254e90600a612eba565b730d500b1d8e8ef31e21c99d1db9a6444d3adf12706001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561259b57600080fd5b505afa1580156125af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125d39190612cc1565b6107a790600a612eba565b905060006125f0826107a78587611929565b600b549091506001600160a01b03166338ed1739848360043061261442603c611f1b565b6040518663ffffffff1660e01b8152600401612634959493929190612db3565b600060405180830381600087803b15801561264e57600080fd5b505af1158015612662573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052611d929190810190612aae565b60006126bc6127106107a78461015e611929565b9050801561082057600654600154610820916001600160a01b03918216911683611d99565b600061192361270d61270061c35061102664e8d4a510006107a7610902565b6107a785620f4240611929565b8390611914565b6000612769826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166118fb9092919063ffffffff16565b80519091501561097e57808060200190518101906127879190612b8c565b61097e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610700565b6060824710156128715760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610700565b843b6128bf5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610700565b600080866001600160a01b031685876040516128db9190612ce2565b60006040518083038185875af1925050503d8060008114612918576040519150601f19603f3d011682016040523d82523d6000602084013e61291d565b606091505b509150915061090d8282866060831561293757508161190d565b8251156129475782518084602001fd5b8160405162461bcd60e51b81526004016107009190612d62565b8280548282559060005260206000209081019282156129cc579160200282015b828111156129cc5781547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03843516178255602090920191600190910190612981565b506129d89291506129dc565b5090565b5b808211156129d857600081556001016129dd565b80518015158114612a0157600080fd5b919050565b600060208284031215612a17578081fd5b813561190d81613040565b600060208284031215612a33578081fd5b815161190d81613040565b60008060208385031215612a50578081fd5b823567ffffffffffffffff80821115612a67578283fd5b818501915085601f830112612a7a578283fd5b813581811115612a88578384fd5b8660208260051b8501011115612a9c578384fd5b60209290920196919550909350505050565b60006020808385031215612ac0578182fd5b825167ffffffffffffffff80821115612ad7578384fd5b818501915085601f830112612aea578384fd5b815181811115612afc57612afc613011565b8060051b6040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f83011681018181108582111715612b3f57612b3f613011565b604052828152858101935084860182860187018a1015612b5d578788fd5b8795505b83861015612b7f578051855260019590950194938601938601612b61565b5098975050505050505050565b600060208284031215612b9d578081fd5b611920826129f1565b600060208284031215612bb7578081fd5b5035919050565b600060208284031215612bcf578081fd5b5051919050565b60008060408385031215612be8578182fd5b50508035926020909101359150565b60008060008060008060c08789031215612c0f578182fd5b865195506020870151945060408701519350606087015192506080870151915060a087015190509295509295509295565b60008060008060008060008060006101208a8c031215612c5e578283fd5b8951985060208a0151975060408a0151965060608a0151955060808a0151945060a08a0151935060c08a0151925060e08a015164ffffffffff81168114612ca3578283fd5b9150612cb26101008b016129f1565b90509295985092959850929598565b600060208284031215612cd2578081fd5b815160ff8116811461190d578182fd5b60008251612cf4818460208701612f9b565b9190910192915050565b606080825284519082018190526000906020906080840190828801845b82811015612d405781516001600160a01b031684529284019290840190600101612d1b565b50505090830194909452506001600160a01b0391909116604090910152919050565b6020815260008251806020840152612d81816040850160208701612f9b565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b600060a082018783526020878185015260a0604085015281875480845260c0860191508885528285209350845b81811015612e055784546001600160a01b031683526001948501949284019201612de0565b50506001600160a01b03969096166060850152505050608001529392505050565b60008219821115612e3957612e39612fe2565b500190565b600082612e72577f4e487b710000000000000000000000000000000000000000000000000000000081526012600452602481fd5b500490565b600181815b80851115612eb2578160001904821115612e9857612e98612fe2565b80851615612ea557918102915b93841c9390800290612e7c565b509250929050565b600061192060ff841683600082612ed357506001611923565b81612ee057506000611923565b8160018114612ef65760028114612f0057612f1c565b6001915050611923565b60ff841115612f1157612f11612fe2565b50506001821b611923565b5060208310610133831016604e8410600b8410161715612f3f575081810a611923565b612f498383612e77565b8060001904821115612f5d57612f5d612fe2565b029392505050565b6000816000190483118215151615612f7f57612f7f612fe2565b500290565b600082821015612f9657612f96612fe2565b500390565b60005b83811015612fb6578181015183820152602001612f9e565b83811115611ba05750506000910152565b6000600019821415612fdb57612fdb612fe2565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6001600160a01b0381168114610a6257600080fdfea264697066735822122047c83bc199c0f5d8a9078e26eb3db94738001d331b3cef6a8084dd03481a68ff64736f6c634300080400330000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f619000000000000000000000000000000000000000000000000000000000000004e0000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000005af3107a40000000000000000000000000008cb6f055a094027245f9e572846b7c1083e5ae2f0000000000000000000000001b02da8cb0d097eb8d57a175b88c7d8b47997506

Deployed ByteCode Sourcemap

40503:13546:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41352:25;;;;;;;;;14609::1;;;14597:2;14582:18;41352:25:0;;;;;;;;48818:165;;;:::i;41083:82::-;;41122:42;41083:82;;;;;-1:-1:-1;;;;;5547:55:1;;;5529:74;;5517:2;5502:18;41083:82:0;5484:125:1;40771:19:0;;;;;-1:-1:-1;;;;;40771:19:0;;;41414:23;;;;;;47655:963;;;;;;:::i;:::-;;:::i;:::-;;53607:119;;;:::i;53410:88::-;;;:::i;52821:154::-;;;:::i;36216:86::-;36263:4;36287:7;;;;;;36216:86;;9236:14:1;;9229:22;9211:41;;9199:2;9184:18;36216:86:0;9166:92:1;43497:113:0;;;;;;:::i;:::-;;:::i;41264:23::-;;;;;-1:-1:-1;;;;;41264:23:0;;;43043:249;;;;;;:::i;:::-;;:::i;51758:479::-;;;:::i;:::-;;;;16856:25:1;;;16912:2;16897:18;;16890:34;;;;16940:18;;;16933:34;;;;16998:2;16983:18;;16976:34;;;;17041:3;17026:19;;17019:35;;;;17085:3;17070:19;;17063:35;17129:3;17114:19;;17107:35;17191:12;17179:25;17173:3;17158:19;;17151:54;17249:14;17242:22;17236:3;17221:19;;17214:51;16843:3;16828:19;51758:479:0;16810:461:1;27689:148:0;;;:::i;52245:174::-;;;:::i;:::-;;;;14819:25:1;;;14875:2;14860:18;;14853:34;;;;14792:18;52245:174:0;14774:119:1;48626:108:0;;;:::i;43618:113::-;;;:::i;41493:43::-;;41535:1;41493:43;;41189:34;;;;;;:::i;:::-;;:::i;53506:93::-;;;:::i;27038:87::-;27084:7;27111:6;-1:-1:-1;;;;;27111:6:0;27038:87;;41384:23;;;;;;40797:21;;;;;-1:-1:-1;;;;;40797:21:0;;;40978:98;;41033:42;40978:98;;40881:90;;40928:42;40881:90;;41444:42;;41484:2;41444:42;;41555:48;;41596:7;41555:48;;43344:145;;;;;;:::i;:::-;;:::i;41712:36::-;;41743:5;41712:36;;41323:22;;;;;;52489:324;;;:::i;:::-;;;;16240:25:1;;;16296:2;16281:18;;16274:34;;;;16324:18;;;16317:34;;;;16382:2;16367:18;;16360:34;16425:3;16410:19;;16403:35;16469:3;16454:19;;16447:35;16227:3;16212:19;52489:324:0;16194:294:1;43739:164:0;;;:::i;41667:23::-;;;;;-1:-1:-1;;;;;41667:23:0;;;41812:43;;41852:3;41812:43;;49443:579;;;;;;:::i;:::-;;:::i;45189:410::-;;;:::i;45607:326::-;;;;;;:::i;:::-;;:::i;41755:42::-;;41794:3;41755:42;;41868:28;;;;;;42937:98;;;;;;:::i;:::-;;:::i;27992:244::-;;;;;;:::i;:::-;;:::i;41232:25::-;;;;;-1:-1:-1;;;;;41232:25:0;;;40825:24;;;;;-1:-1:-1;;;;;40825:24:0;;;40678:84;;40719:42;40678:84;;45941:109;;;:::i;53075:253::-;;;;;;:::i;:::-;;:::i;48818:165::-;48864:4;48882:14;48898;48916:17;:15;:17::i;:::-;48881:52;;-1:-1:-1;48881:52:0;-1:-1:-1;48951:24:0;48881:52;;48951:13;:24::i;:::-;48944:31;;;;48818:165;:::o;47655:963::-;42883:10;;-1:-1:-1;;;;;42883:10:0;42869;:24;42861:48;;;;-1:-1:-1;;;42861:48:0;;10668:2:1;42861:48:0;;;10650:21:1;10707:2;10687:18;;;10680:30;10746:13;10726:18;;;10719:41;10777:18;;42861:48:0;;;;;;;;;47722:12:::1;47737:13;:11;:13::i;:::-;47722:28;;47777:7;47767;:17;47763:413;;;48015:15;:13;:15::i;:::-;47997:14;:7:::0;48009:1:::1;47997:11;:14::i;:::-;:33;47993:172;;48051:17;:15;:17::i;:::-;47993:172;;;48109:40;48128:20;:7:::0;48140;48128:11:::1;:20::i;:::-;48109:18;:40::i;:::-;27084:7:::0;27111:6;-1:-1:-1;;;;;27111:6:0;48192:9:::1;:20;48188:360;;;48260:43;48286:7;:5;:7::i;:::-;48267:4;::::0;-1:-1:-1;;;;;48267:4:0::1;::::0;48295:7;48260:25:::1;:43::i;:::-;48188:360;;;48336:18;48357:37;41743:5;48357:24;48369:11;;48357:7;:11;;:24;;;;:::i;:::-;:28:::0;::::1;:37::i;:::-;48336:58;;48409:62;48435:7;:5;:7::i;:::-;48444:26;:7:::0;48456:13;48444:11:::1;:26::i;:::-;48416:4;::::0;-1:-1:-1;;;;;48416:4:0::1;::::0;48409:62;:25:::1;:62::i;:::-;48512:8;::::0;;48493:4;48486:50:::1;::::0;-1:-1:-1;;;;;48493:4:0;;::::1;::::0;48512:8:::1;48522:13:::0;48486:25:::1;:50::i;:::-;48188:360;;36263:4:::0;36287:7;;;;;;48560:51:::1;;48590:9;:7;:9::i;:::-;42920:1;47655:963:::0;:::o;53607:119::-;27084:7;27111:6;-1:-1:-1;;;;;27111:6:0;3394:10;27258:23;27250:68;;;;-1:-1:-1;;;27250:68:0;;12092:2:1;27250:68:0;;;12074:21:1;;;12111:18;;;12104:30;12170:34;12150:18;;;12143:62;12222:18;;27250:68:0;12064:182:1;27250:68:0;53656:10:::1;:8;:10::i;:::-;53679:17;:15;:17::i;:::-;53709:9;:7;:9::i;:::-;53607:119::o:0;53410:88::-;27084:7;27111:6;-1:-1:-1;;;;;27111:6:0;3394:10;27258:23;27250:68;;;;-1:-1:-1;;;27250:68:0;;12092:2:1;27250:68:0;;;12074:21:1;;;12111:18;;;12104:30;12170:34;12150:18;;;12143:62;12222:18;;27250:68:0;12064:182:1;27250:68:0;53455:17:::1;:15;:17::i;:::-;53483:7;:5;:7::i;52821:154::-:0;52873:4;52897:17;52918;:15;:17::i;:::-;52890:45;52821:154;-1:-1:-1;;;;;;;52821:154:0:o;43497:113::-;27084:7;27111:6;-1:-1:-1;;;;;27111:6:0;3394:10;27258:23;27250:68;;;;-1:-1:-1;;;27250:68:0;;12092:2:1;27250:68:0;;;12074:21:1;;;12111:18;;;12104:30;12170:34;12150:18;;;12143:62;12222:18;;27250:68:0;12064:182:1;27250:68:0;43576:26:::1;:17;43596:6:::0;;43576:26:::1;:::i;:::-;;43497:113:::0;;:::o;43043:249::-;27084:7;27111:6;-1:-1:-1;;;;;27111:6:0;3394:10;27258:23;27250:68;;;;-1:-1:-1;;;27250:68:0;;12092:2:1;27250:68:0;;;12074:21:1;;;12111:18;;;12104:30;12170:34;12150:18;;;12143:62;12222:18;;27250:68:0;12064:182:1;27250:68:0;43176:8:::1;::::0;43149:39:::1;::::0;40719:42:::1;::::0;-1:-1:-1;;;;;43176:8:0::1;;43149:26;:39::i;:::-;43201:8;:20:::0;;;::::1;-1:-1:-1::0;;;;;43201:20:0;::::1;::::0;;::::1;::::0;;;43232:52:::1;::::0;40719:42:::1;::::0;-1:-1:-1;;43232:26:0::1;:52::i;:::-;43043:249:::0;:::o;51758:479::-;52209:4;;52162:67;;;;;-1:-1:-1;;;;;52209:4:0;;;52162:67;;;5849:34:1;52223:4:0;5899:18:1;;;5892:43;-1:-1:-1;;;;;;;;;;;;;;;;;;40928:42:0;;52162:46;;5761:18:1;;52162:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;52155:74;;;;;;;;;;;;;;;;;;51758:479;;;;;;;;;:::o;27689:148::-;27084:7;27111:6;-1:-1:-1;;;;;27111:6:0;3394:10;27258:23;27250:68;;;;-1:-1:-1;;;27250:68:0;;12092:2:1;27250:68:0;;;12074:21:1;;;12111:18;;;12104:30;12170:34;12150:18;;;12143:62;12222:18;;27250:68:0;12064:182:1;27250:68:0;27796:1:::1;27780:6:::0;;27759:40:::1;::::0;-1:-1:-1;;;;;27780:6:0;;::::1;::::0;27759:40:::1;::::0;27796:1;;27759:40:::1;27827:1;27810:19:::0;;;::::1;::::0;;27689:148::o;52245:174::-;52293:4;52299;52317:14;52333;52357;:12;:14::i;:::-;-1:-1:-1;52316:55:0;;;;-1:-1:-1;52245:174:0;;-1:-1:-1;;;;;;;;;52245:174:0:o;48626:108::-;48668:4;48692:34;48710:15;:13;:15::i;:::-;48692:13;:11;:13::i;:::-;:17;;:34::i;:::-;48685:41;;48626:108;:::o;43618:113::-;43693:4;;43686:37;;;;;43717:4;43686:37;;;5529:74:1;43662:4:0;;-1:-1:-1;;;;;43693:4:0;;43686:22;;5502:18:1;;43686:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;41189:34::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;41189:34:0;;-1:-1:-1;41189:34:0;:::o;53506:93::-;27084:7;27111:6;-1:-1:-1;;;;;27111:6:0;3394:10;27258:23;27250:68;;;;-1:-1:-1;;;27250:68:0;;12092:2:1;27250:68:0;;;12074:21:1;;;12111:18;;;12104:30;12170:34;12150:18;;;12143:62;12222:18;;27250:68:0;12064:182:1;27250:68:0;53551:8:::1;:6;:8::i;:::-;53572:19;:17;:19::i;43344:145::-:0;27084:7;27111:6;-1:-1:-1;;;;;27111:6:0;3394:10;27258:23;27250:68;;;;-1:-1:-1;;;27250:68:0;;12092:2:1;27250:68:0;;;12074:21:1;;;12111:18;;;12104:30;12170:34;12150:18;;;12143:62;12222:18;;27250:68:0;12064:182:1;27250:68:0;41852:3:::1;43417:4;:24;;43409:41;;;;-1:-1:-1::0;;;43409:41:0::1;;;;;;11760:2:1::0;11742:21;;;11799:1;11779:18;;;11772:29;11837:6;11832:2;11817:18;;11810:34;11876:2;11861:18;;11732:153;43409:41:0::1;43463:11;:18:::0;43344:145::o;52489:324::-;52749:56;;;;;52799:4;52749:56;;;5529:74:1;52547:23:0;;;;;;;;;;;;41122:42;;52749:41;;5502:18:1;;52749:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;52742:63;;;;-1:-1:-1;52742:63:0;;-1:-1:-1;52742:63:0;-1:-1:-1;52742:63:0;-1:-1:-1;52742:63:0;;-1:-1:-1;52489:324:0;-1:-1:-1;52489:324:0:o;43739:164::-;36263:4;36287:7;;;;;;36541:9;36533:38;;;;-1:-1:-1;;;36533:38:0;;11415:2:1;36533:38:0;;;11397:21:1;11454:2;11434:18;;;11427:30;11493:18;11473;;;11466:46;11529:18;;36533:38:0;11387:166:1;36533:38:0;43790:13:::1;43806;:11;:13::i;:::-;43790:29:::0;-1:-1:-1;43836:12:0;;43832:64:::1;;43865:19;43875:8;43865:9;:19::i;49443:579::-:0;27084:7;27111:6;-1:-1:-1;;;;;27111:6:0;3394:10;49524:23;;:53;;-1:-1:-1;49567:10:0;;-1:-1:-1;;;;;49567:10:0;3394;-1:-1:-1;;;;;49551:26:0;;49524:53;49502:127;;;;-1:-1:-1;;;49502:127:0;;12787:2:1;49502:127:0;;;12769:21:1;12826:2;12806:18;;;12799:30;12865:26;12845:18;;;12838:54;12909:18;;49502:127:0;12759:174:1;49502:127:0;49642:12;49657:13;:11;:13::i;:::-;49642:28;;49683:14;:12;:14::i;:::-;49762:4;;-1:-1:-1;;;;;49762:4:0;40719:42;49762:14;49758:77;;49793:30;49805:17;49793:11;:30::i;:::-;49847:14;49864:26;49882:7;49864:13;:11;:13::i;:::-;:17;;:26::i;:::-;49847:43;;49903:21;49914:9;49903:10;:21::i;:::-;36263:4;36287:7;;;;;;49937:78;;49994:9;:7;:9::i;45189:410::-;27084:7;27111:6;-1:-1:-1;;;;;27111:6:0;3394:10;27258:23;27250:68;;;;-1:-1:-1;;;27250:68:0;;12092:2:1;27250:68:0;;;12074:21:1;;;12111:18;;;12104:30;12170:34;12150:18;;;12143:62;12222:18;;27250:68:0;12064:182:1;27250:68:0;45252:14:::1;45271:17;:15;:17::i;:::-;45251:37;;;45355:15;45373:49;45419:2;45373:41;45410:3;45373:32;45395:9;45373:21;:32::i;:::-;:36:::0;::::1;:41::i;:49::-;45467:4;::::0;45435:64:::1;::::0;;;;-1:-1:-1;;;;;45467:4:0;;::::1;45435:64;::::0;::::1;6511:34:1::0;6561:18;;;6554:34;;;45493:4:0::1;6604:18:1::0;;;6597:43;45355:67:0;;-1:-1:-1;41122:42:0::1;::::0;45435:31:::1;::::0;6423:18:1;;45435:64:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;45539:4:0::1;::::0;45510:81:::1;::::0;;;;-1:-1:-1;;;;;45539:4:0;;::::1;45510:81;::::0;::::1;7438:34:1::0;7488:18;;;7481:34;;;41535:1:0::1;7531:18:1::0;;;7524:34;45585:4:0::1;7574:18:1::0;;;7567:43;41122:42:0::1;::::0;45510:28:::1;::::0;7349:19:1;;45510:81:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;45607:326::-:0;27084:7;27111:6;-1:-1:-1;;;;;27111:6:0;3394:10;27258:23;27250:68;;;;-1:-1:-1;;;27250:68:0;;12092:2:1;27250:68:0;;;12074:21:1;;;12111:18;;;12104:30;12170:34;12150:18;;;12143:62;12222:18;;27250:68:0;12064:182:1;27250:68:0;45716:13:::1;;45701:11;:28;;45693:46;;;::::0;-1:-1:-1;;;45693:46:0;;13498:2:1;45693:46:0::1;::::0;::::1;13480:21:1::0;13537:1;13517:18;;;13510:29;13575:7;13555:18;;;13548:35;13600:18;;45693:46:0::1;13470:154:1::0;45693:46:0::1;41484:2;45758:12;:32;;45750:51;;;::::0;-1:-1:-1;;;45750:51:0;;12453:2:1;45750:51:0::1;::::0;::::1;12435:21:1::0;12492:1;12472:18;;;12465:29;12530:8;12510:18;;;12503:36;12556:18;;45750:51:0::1;12425:155:1::0;45750:51:0::1;45814:17;:15;:17::i;:::-;45842:10;:24:::0;;;45877:11:::1;:26:::0;;;45916:9:::1;:7;:9::i;42937:98::-:0;27084:7;27111:6;-1:-1:-1;;;;;27111:6:0;3394:10;27258:23;27250:68;;;;-1:-1:-1;;;27250:68:0;;12092:2:1;27250:68:0;;;12074:21:1;;;12111:18;;;12104:30;12170:34;12150:18;;;12143:62;12222:18;;27250:68:0;12064:182:1;27250:68:0;43007:8:::1;:20:::0;;;::::1;-1:-1:-1::0;;;;;43007:20:0;;;::::1;::::0;;;::::1;::::0;;42937:98::o;27992:244::-;27084:7;27111:6;-1:-1:-1;;;;;27111:6:0;3394:10;27258:23;27250:68;;;;-1:-1:-1;;;27250:68:0;;12092:2:1;27250:68:0;;;12074:21:1;;;12111:18;;;12104:30;12170:34;12150:18;;;12143:62;12222:18;;27250:68:0;12064:182:1;27250:68:0;-1:-1:-1;;;;;28081:22:0;::::1;28073:73;;;::::0;-1:-1:-1;;;28073:73:0;;10261:2:1;28073:73:0::1;::::0;::::1;10243:21:1::0;10300:2;10280:18;;;10273:30;10339:34;10319:18;;;10312:62;10410:8;10390:18;;;10383:36;10436:19;;28073:73:0::1;10233:228:1::0;28073:73:0::1;28183:6;::::0;;28162:38:::1;::::0;-1:-1:-1;;;;;28162:38:0;;::::1;::::0;28183:6;::::1;::::0;28162:38:::1;::::0;::::1;28211:6;:17:::0;;;::::1;-1:-1:-1::0;;;;;28211:17:0;;;::::1;::::0;;;::::1;::::0;;27992:244::o;45941:109::-;46018:10;;;46037:4;46006:36;;;;;-1:-1:-1;;;;;46037:4:0;;;46006:36;;;5529:74:1;45979:7:0;;46018:10;;;;;46006:30;;5502:18:1;;46006:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;53075:253::-;42883:10;;-1:-1:-1;;;;;42883:10:0;42869;:24;42861:48;;;;-1:-1:-1;;;42861:48:0;;10668:2:1;42861:48:0;;;10650:21:1;10707:2;10687:18;;;10680:30;10746:13;10726:18;;;10719:41;10777:18;;42861:48:0;10640:161:1;42861:48:0;53155:8:::1;:6;:8::i;:::-;53174:17;:15;:17::i;:::-;53204:26;53212:17;53204:7;:26::i;:::-;53250:4;::::0;-1:-1:-1;;;;;53250:4:0::1;53243:21;53265:7;:5;:7::i;:::-;53274:13;:11;:13::i;:::-;53243:45;::::0;;::::1;::::0;;;;;;-1:-1:-1;;;;;6138:55:1;;;53243:45:0::1;::::0;::::1;6120:74:1::0;6210:18;;;6203:34;6093:18;;53243:45:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;53301:19;:17;:19::i;23487:622::-:0;23857:10;;;23856:62;;-1:-1:-1;23873:39:0;;;;;23897:4;23873:39;;;5849:34:1;-1:-1:-1;;;;;5919:15:1;;;5899:18;;;5892:43;23873:15:0;;;;;5761:18:1;;23873:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:44;23856:62;23848:152;;;;-1:-1:-1;;;23848:152:0;;14242:2:1;23848:152:0;;;14224:21:1;14281:2;14261:18;;;14254:30;14320:34;14300:18;;;14293:62;14391:24;14371:18;;;14364:52;14433:19;;23848:152:0;14214:244:1;23848:152:0;24038:62;;-1:-1:-1;;;;;6138:55:1;;24038:62:0;;;6120:74:1;6210:18;;;6203:34;;;24011:90:0;;24031:5;;24061:22;;6093:18:1;;24038:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24011:19;:90::i;17961:195::-;18064:12;18096:52;18118:6;18126:4;18132:1;18135:12;18096:21;:52::i;:::-;18089:59;;17961:195;;;;;;:::o;31323:98::-;31381:7;31408:5;31412:1;31408;:5;:::i;:::-;31401:12;;31323:98;;;;;:::o;31680:::-;31738:7;31765:5;31769:1;31765;:5;:::i;44533:648::-;44581:14;44597;44615:17;:15;:17::i;:::-;44580:52;;;;44643:15;44671:377;44678:13;;44671:377;;44721:32;44743:9;44721:21;:32::i;:::-;44802:4;;44770:64;;;;;-1:-1:-1;;;;;44802:4:0;;;44770:64;;;6511:34:1;6561:18;;;6554:34;;;44828:4:0;6604:18:1;;;6597:43;44708:45:0;;-1:-1:-1;41122:42:0;;44770:31;;6423:18:1;;44770:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;44925:4:0;;44896:81;;;;;-1:-1:-1;;;;;44925:4:0;;;44896:81;;;7438:34:1;7488:18;;;7481:34;;;41535:1:0;7531:18:1;;;7524:34;44971:4:0;7574:18:1;;;7567:43;41122:42:0;;44896:28;;7349:19:1;;44896:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;45019:17;:15;:17::i;:::-;44994:42;;-1:-1:-1;44994:42:0;-1:-1:-1;44671:377:0;;;45064:13;;45060:114;;45126:4;;45094:68;;;;;-1:-1:-1;;;;;45126:4:0;;;45094:68;;;6511:34:1;-1:-1:-1;;6561:18:1;;;6554:34;45156:4:0;6604:18:1;;;6597:43;41122:42:0;;45094:31;;6423:18:1;;45094:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;44533:648;;;:::o;46630:947::-;41596:7;46814:21;:19;:21::i;:::-;:42;46810:115;;46873:17;:15;:17::i;46810:115::-;46937:14;46962;46987:15;47013:12;47038:532;47055:13;:11;:13::i;:::-;47045:7;:23;47038:532;;;47110:17;:15;:17::i;:::-;47085:42;-1:-1:-1;47085:42:0;-1:-1:-1;47155:32:0;47085:42;47155:21;:32::i;:::-;47236:4;;47204:64;;;;;-1:-1:-1;;;;;47236:4:0;;;47204:64;;;6511:34:1;6561:18;;;6554:34;;;47262:4:0;6604:18:1;;;6597:43;47142:45:0;;-1:-1:-1;41122:42:0;;47204:31;;6423:18:1;;47204:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;47320:13:0;;47316:243;;47411:35;47442:3;47411:26;47426:10;;47411;:14;;:26;;;;:::i;:35::-;47494:4;;47465:78;;;;;-1:-1:-1;;;;;47494:4:0;;;47465:78;;;7438:34:1;7488:18;;;7481:34;;;41535:1:0;7531:18:1;;;7524:34;47537:4:0;7574:18:1;;;7567:43;47401:45:0;;-1:-1:-1;41122:42:0;;47465:28;;7349:19:1;;47465:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;47316:243;47038:532;;;46630:947;;;;;:::o;22828:177::-;22938:58;;-1:-1:-1;;;;;6138:55:1;;22938:58:0;;;6120:74:1;6210:18;;;6203:34;;;22911:86:0;;22931:5;;22961:23;;6093:18:1;;22938:58:0;6075:168:1;32079:98:0;32137:7;32164:5;32168:1;32164;:5;:::i;37275:120::-;36263:4;36287:7;;;;;;36811:41;;;;-1:-1:-1;;;36811:41:0;;9912:2:1;36811:41:0;;;9894:21:1;9951:2;9931:18;;;9924:30;9990:22;9970:18;;;9963:50;10030:18;;36811:41:0;9884:170:1;36811:41:0;37344:5:::1;37334:15:::0;;;::::1;::::0;;37365:22:::1;3394:10:::0;37374:12:::1;37365:22;::::0;-1:-1:-1;;;;;5547:55:1;;;5529:74;;5517:2;5502:18;37365:22:0::1;;;;;;;37275:120::o:0;53734:164::-;53788:4;;53781:46;;-1:-1:-1;;;;;53788:4:0;41122:42;-1:-1:-1;;53781:24:0;:46::i;:::-;53865:8;;53838:52;;40719:42;;-1:-1:-1;;;;;53865:8:0;-1:-1:-1;;53838:26:0;:52::i;30942:98::-;31000:7;31027:5;31031:1;31027;:5;:::i;37016:118::-;36263:4;36287:7;;;;;;36541:9;36533:38;;;;-1:-1:-1;;;36533:38:0;;11415:2:1;36533:38:0;;;11397:21:1;11454:2;11434:18;;;11427:30;11493:18;11473;;;11466:46;11529:18;;36533:38:0;11387:166:1;36533:38:0;37076:7:::1;:14:::0;;;::::1;::::0;::::1;::::0;;37106:20:::1;37113:12;3394:10:::0;;3314:98;53906:140;53962:4;;53955:33;;-1:-1:-1;;;;;53962:4:0;41122:42;53986:1;53955:24;:33::i;:::-;54026:8;;53999:39;;40719:42;;-1:-1:-1;;;;;54026:8:0;;53999:26;:39::i;43911:614::-;43995:4;;43964:63;;;;;-1:-1:-1;;;;;43995:4:0;;;43964:63;;;6950:34:1;7000:18;;;6993:34;;;44018:4:0;7043:18:1;;;7036:43;43995:4:0;7095:18:1;;;7088:47;41122:42:0;;43964:30;;6861:19:1;;43964:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44054:11;;44044:7;:21;44040:60;;;43911:614;:::o;44040:60::-;44155:6;44150:368;44171:11;;44167:1;:15;44150:368;;;44214:32;44242:3;44214:23;44226:10;;44214:7;:11;;:23;;;;:::i;:32::-;44293:4;;44263:82;;;;;-1:-1:-1;;;;;44293:4:0;;;44263:82;;;7948:34:1;7998:18;;;7991:34;;;41535:1:0;8041:18:1;;;8034:34;44293:4:0;8084:18:1;;;8077:47;44339:4:0;8140:19:1;;;8133:44;44204:42:0;;-1:-1:-1;41122:42:0;;44263:29;;7859:19:1;;44263:82:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;44391:4:0;;44360:63;;;;;-1:-1:-1;;;;;44391:4:0;;;44360:63;;;6950:34:1;7000:18;;;6993:34;;;44414:4:0;7043:18:1;;;7036:43;44391:4:0;7095:18:1;;;7088:47;41122:42:0;;-1:-1:-1;44360:30:0;;-1:-1:-1;6861:19:1;;44360:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44454:11;;44444:7;:21;44440:67;;;42920:1:::1;47655:963:::0;:::o;44440:67::-;44184:3;;;;:::i;:::-;;;;44150:368;;48993:354;49126:16;;;49140:1;49126:16;;;;;;;;49100:23;;49126:16;;;;;;;;-1:-1:-1;;49165:6:0;;49153:9;;;;-1:-1:-1;;;;;;49165:6:0;;49153:9;;-1:-1:-1;49165:6:0;;49153:9;;;;;;;;;;;;-1:-1:-1;;;;;49153:18:0;;;:9;;;;;;;;;:18;49194:9;;49182;;49194;;;49182:6;;49194:9;;49182;;;;;;;;;;;;;;-1:-1:-1;;;;;49182:21:0;;;:9;;;;;;;;;;;:21;49216:123;;;;;41033:42;;49216:60;;:123;;49291:6;;-1:-1:-1;;49299:14:0;49323:4;;49216:123;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;50030:1333::-;50110:39;;;;;50143:4;50110:39;;;5529:74:1;50095:12:0;;40719:42;;50110:24;;5502:18:1;;50110:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;50095:54;-1:-1:-1;50166:11:0;;50162:1194;;50950:23;50976:107;51079:3;50976:98;51043:4;;;;;;;;;-1:-1:-1;;;;;51043:4:0;-1:-1:-1;;;;;51037:20:0;;:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;51031:28;;:2;:28;:::i;:::-;40719:42;-1:-1:-1;;;;;50983:22:0;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;50977:30;;:2;:30;:::i;50976:107::-;50950:133;-1:-1:-1;51098:13:0;51114:54;50950:133;51114:30;:7;51126:17;51114:11;:30::i;:54::-;51200:8;;51098:70;;-1:-1:-1;;;;;;51200:8:0;51185:49;51253:7;51098:70;51272:17;51299:4;51306:23;:15;51326:2;51306:19;:23::i;:::-;51185:159;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;51434:316::-;51491:19;51513:44;41743:5;51513:31;:10;41794:3;51513:14;:31::i;:44::-;51491:66;-1:-1:-1;51580:18:0;;51576:167;;51706:8;;;51687:4;51680:51;;-1:-1:-1;;;;;51687:4:0;;;;51706:8;51716:14;51680:25;:51::i;46134:488::-;46202:4;46480:134;46506:97;46545:43;46581:6;46545:31;46571:4;46545:21;:19;:21::i;:43::-;46506:16;:7;46518:3;46506:11;:16::i;:97::-;46480:7;;:11;:134::i;25262:761::-;25686:23;25712:69;25740:4;25712:69;;;;;;;;;;;;;;;;;25720:5;-1:-1:-1;;;;;25712:27:0;;;:69;;;;;:::i;:::-;25796:17;;25686:95;;-1:-1:-1;25796:21:0;25792:224;;25938:10;25927:30;;;;;;;;;;;;:::i;:::-;25919:85;;;;-1:-1:-1;;;25919:85:0;;13831:2:1;25919:85:0;;;13813:21:1;13870:2;13850:18;;;13843:30;13909:34;13889:18;;;13882:62;13980:12;13960:18;;;13953:40;14010:19;;25919:85:0;13803:232:1;19013:530:0;19140:12;19198:5;19173:21;:30;;19165:81;;;;-1:-1:-1;;;19165:81:0;;11008:2:1;19165:81:0;;;10990:21:1;11047:2;11027:18;;;11020:30;11086:34;11066:18;;;11059:62;11157:8;11137:18;;;11130:36;11183:19;;19165:81:0;10980:228:1;19165:81:0;15410:20;;19257:60;;;;-1:-1:-1;;;19257:60:0;;13140:2:1;19257:60:0;;;13122:21:1;13179:2;13159:18;;;13152:30;13218:31;13198:18;;;13191:59;13267:18;;19257:60:0;13112:179:1;19257:60:0;19391:12;19405:23;19432:6;-1:-1:-1;;;;;19432:11:0;19452:5;19460:4;19432:33;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19390:75;;;;19483:52;19501:7;19510:10;19522:12;21668;21697:7;21693:595;;;-1:-1:-1;21728:10:0;21721:17;;21693:595;21842:17;;:21;21838:439;;22105:10;22099:17;22166:15;22153:10;22149:2;22145:19;22138:44;22053:148;22248:12;22241:20;;-1:-1:-1;;;22241:20:0;;;;;;;;:::i;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:164:1;90:13;;139;;132:21;122:32;;112:2;;168:1;165;158:12;112:2;71:107;;;:::o;183:257::-;242:6;295:2;283:9;274:7;270:23;266:32;263:2;;;316:6;308;301:22;263:2;360:9;347:23;379:31;404:5;379:31;:::i;445:261::-;515:6;568:2;556:9;547:7;543:23;539:32;536:2;;;589:6;581;574:22;536:2;626:9;620:16;645:31;670:5;645:31;:::i;711:665::-;797:6;805;858:2;846:9;837:7;833:23;829:32;826:2;;;879:6;871;864:22;826:2;924:9;911:23;953:18;994:2;986:6;983:14;980:2;;;1015:6;1007;1000:22;980:2;1058:6;1047:9;1043:22;1033:32;;1103:7;1096:4;1092:2;1088:13;1084:27;1074:2;;1130:6;1122;1115:22;1074:2;1175;1162:16;1201:2;1193:6;1190:14;1187:2;;;1222:6;1214;1207:22;1187:2;1280:7;1275:2;1265:6;1262:1;1258:14;1254:2;1250:23;1246:32;1243:45;1240:2;;;1306:6;1298;1291:22;1240:2;1342;1334:11;;;;;1364:6;;-1:-1:-1;816:560:1;;-1:-1:-1;;;;816:560:1:o;1381:1220::-;1476:6;1507:2;1550;1538:9;1529:7;1525:23;1521:32;1518:2;;;1571:6;1563;1556:22;1518:2;1609:9;1603:16;1638:18;1679:2;1671:6;1668:14;1665:2;;;1700:6;1692;1685:22;1665:2;1743:6;1732:9;1728:22;1718:32;;1788:7;1781:4;1777:2;1773:13;1769:27;1759:2;;1815:6;1807;1800:22;1759:2;1849;1843:9;1871:2;1867;1864:10;1861:2;;;1877:18;;:::i;:::-;1923:2;1920:1;1916:10;1955:2;1949:9;2014:66;2009:2;2005;2001:11;1997:84;1989:6;1985:97;2132:6;2120:10;2117:22;2112:2;2100:10;2097:18;2094:46;2091:2;;;2143:18;;:::i;:::-;2179:2;2172:22;2229:18;;;2263:15;;;;-1:-1:-1;2298:11:1;;;2328;;;2324:20;;2321:33;-1:-1:-1;2318:2:1;;;2372:6;2364;2357:22;2318:2;2399:6;2390:15;;2414:156;2428:2;2425:1;2422:9;2414:156;;;2485:10;;2473:23;;2446:1;2439:9;;;;;2516:12;;;;2548;;2414:156;;;-1:-1:-1;2589:6:1;1487:1114;-1:-1:-1;;;;;;;;1487:1114:1:o;2606:212::-;2673:6;2726:2;2714:9;2705:7;2701:23;2697:32;2694:2;;;2747:6;2739;2732:22;2694:2;2775:37;2802:9;2775:37;:::i;2823:190::-;2882:6;2935:2;2923:9;2914:7;2910:23;2906:32;2903:2;;;2956:6;2948;2941:22;2903:2;-1:-1:-1;2984:23:1;;2893:120;-1:-1:-1;2893:120:1:o;3018:194::-;3088:6;3141:2;3129:9;3120:7;3116:23;3112:32;3109:2;;;3162:6;3154;3147:22;3109:2;-1:-1:-1;3190:16:1;;3099:113;-1:-1:-1;3099:113:1:o;3217:258::-;3285:6;3293;3346:2;3334:9;3325:7;3321:23;3317:32;3314:2;;;3367:6;3359;3352:22;3314:2;-1:-1:-1;;3395:23:1;;;3465:2;3450:18;;;3437:32;;-1:-1:-1;3304:171:1:o;3480:502::-;3595:6;3603;3611;3619;3627;3635;3688:3;3676:9;3667:7;3663:23;3659:33;3656:2;;;3710:6;3702;3695:22;3656:2;3744:9;3738:16;3728:26;;3794:2;3783:9;3779:18;3773:25;3763:35;;3838:2;3827:9;3823:18;3817:25;3807:35;;3882:2;3871:9;3867:18;3861:25;3851:35;;3926:3;3915:9;3911:19;3905:26;3895:36;;3971:3;3960:9;3956:19;3950:26;3940:36;;3646:336;;;;;;;;:::o;3987:814::-;4125:6;4133;4141;4149;4157;4165;4173;4181;4189;4242:3;4230:9;4221:7;4217:23;4213:33;4210:2;;;4264:6;4256;4249:22;4210:2;4298:9;4292:16;4282:26;;4348:2;4337:9;4333:18;4327:25;4317:35;;4392:2;4381:9;4377:18;4371:25;4361:35;;4436:2;4425:9;4421:18;4415:25;4405:35;;4480:3;4469:9;4465:19;4459:26;4449:36;;4525:3;4514:9;4510:19;4504:26;4494:36;;4570:3;4559:9;4555:19;4549:26;4539:36;;4618:3;4607:9;4603:19;4597:26;4663:12;4656:5;4652:24;4645:5;4642:35;4632:2;;4696:6;4688;4681:22;4632:2;4724:5;-1:-1:-1;4748:47:1;4790:3;4775:19;;4748:47;:::i;:::-;4738:57;;4200:601;;;;;;;;;;;:::o;4806:293::-;4874:6;4927:2;4915:9;4906:7;4902:23;4898:32;4895:2;;;4948:6;4940;4933:22;4895:2;4985:9;4979:16;5035:4;5028:5;5024:16;5017:5;5014:27;5004:2;;5060:6;5052;5045:22;5104:274;5233:3;5271:6;5265:13;5287:53;5333:6;5328:3;5321:4;5313:6;5309:17;5287:53;:::i;:::-;5356:16;;;;;5241:137;-1:-1:-1;;5241:137:1:o;8188:878::-;8434:2;8446:21;;;8516:13;;8419:18;;;8538:22;;;8386:4;;8614;;8591:3;8576:19;;;8641:15;;;8386:4;8687:218;8701:6;8698:1;8695:13;8687:218;;;8766:13;;-1:-1:-1;;;;;8762:62:1;8750:75;;8845:12;;;;8880:15;;;;8723:1;8716:9;8687:218;;;-1:-1:-1;;;8941:18:1;;;8934:34;;;;-1:-1:-1;;;;;;9004:55:1;;;;8999:2;8984:18;;;8977:83;8922:3;8395:671;-1:-1:-1;8395:671:1:o;9263:442::-;9412:2;9401:9;9394:21;9375:4;9444:6;9438:13;9487:6;9482:2;9471:9;9467:18;9460:34;9503:66;9562:6;9557:2;9546:9;9542:18;9537:2;9529:6;9525:15;9503:66;:::i;:::-;9621:2;9609:15;9626:66;9605:88;9590:104;;;;9696:2;9586:113;;9384:321;-1:-1:-1;;9384:321:1:o;14898:1050::-;15149:4;15197:3;15186:9;15182:19;15228:6;15217:9;15210:25;15254:2;15292:6;15287:2;15276:9;15272:18;15265:34;15335:3;15330:2;15319:9;15315:18;15308:31;15359:6;15394;15388:13;15425:6;15417;15410:22;15463:3;15452:9;15448:19;15441:26;;15489:6;15483:4;15476:20;15535:2;15529:4;15519:19;15505:33;;15556:4;15569:217;15583:6;15580:1;15577:13;15569:217;;;15648:13;;-1:-1:-1;;;;;15644:62:1;15632:75;;15774:1;15762:14;;;;15727:12;;;;15598:9;15569:217;;;-1:-1:-1;;;;;;;15842:55:1;;;;15837:2;15822:18;;15815:83;-1:-1:-1;;;15929:3:1;15914:19;15907:35;15803:3;15158:790;-1:-1:-1;;;15158:790:1:o;17276:128::-;17316:3;17347:1;17343:6;17340:1;17337:13;17334:2;;;17353:18;;:::i;:::-;-1:-1:-1;17389:9:1;;17324:80::o;17409:274::-;17449:1;17475;17465:2;;17510:77;17507:1;17500:88;17611:4;17608:1;17601:15;17639:4;17636:1;17629:15;17465:2;-1:-1:-1;17668:9:1;;17455:228::o;17688:482::-;17777:1;17820:5;17777:1;17834:330;17855:7;17845:8;17842:21;17834:330;;;17974:4;-1:-1:-1;;17902:77:1;17896:4;17893:87;17890:2;;;17983:18;;:::i;:::-;18033:7;18023:8;18019:22;18016:2;;;18053:16;;;;18016:2;18132:22;;;;18092:15;;;;17834:330;;;17838:3;17752:418;;;;;:::o;18175:140::-;18233:5;18262:47;18303:4;18293:8;18289:19;18283:4;18369:5;18399:8;18389:2;;-1:-1:-1;18440:1:1;18454:5;;18389:2;18488:4;18478:2;;-1:-1:-1;18525:1:1;18539:5;;18478:2;18570:4;18588:1;18583:59;;;;18656:1;18651:130;;;;18563:218;;18583:59;18613:1;18604:10;;18627:5;;;18651:130;18688:3;18678:8;18675:17;18672:2;;;18695:18;;:::i;:::-;-1:-1:-1;;18751:1:1;18737:16;;18766:5;;18563:218;;18865:2;18855:8;18852:16;18846:3;18840:4;18837:13;18833:36;18827:2;18817:8;18814:16;18809:2;18803:4;18800:12;18796:35;18793:77;18790:2;;;-1:-1:-1;18902:19:1;;;18934:5;;18790:2;18981:34;19006:8;19000:4;18981:34;:::i;:::-;19111:6;-1:-1:-1;;19039:79:1;19030:7;19027:92;19024:2;;;19122:18;;:::i;:::-;19160:20;;18379:807;-1:-1:-1;;;18379:807:1:o;19191:228::-;19231:7;19357:1;-1:-1:-1;;19285:74:1;19282:1;19279:81;19274:1;19267:9;19260:17;19256:105;19253:2;;;19364:18;;:::i;:::-;-1:-1:-1;19404:9:1;;19243:176::o;19424:125::-;19464:4;19492:1;19489;19486:8;19483:2;;;19497:18;;:::i;:::-;-1:-1:-1;19534:9:1;;19473:76::o;19554:258::-;19626:1;19636:113;19650:6;19647:1;19644:13;19636:113;;;19726:11;;;19720:18;19707:11;;;19700:39;19672:2;19665:10;19636:113;;;19767:6;19764:1;19761:13;19758:2;;;-1:-1:-1;;19802:1:1;19784:16;;19777:27;19607:205::o;19817:195::-;19856:3;-1:-1:-1;;19880:5:1;19877:77;19874:2;;;19957:18;;:::i;:::-;-1:-1:-1;20004:1:1;19993:13;;19864:148::o;20017:184::-;20069:77;20066:1;20059:88;20166:4;20163:1;20156:15;20190:4;20187:1;20180:15;20206:184;20258:77;20255:1;20248:88;20355:4;20352:1;20345:15;20379:4;20376:1;20369:15;20395:154;-1:-1:-1;;;;;20474:5:1;20470:54;20463:5;20460:65;20450:2;;20539:1;20536;20529:12

Swarm Source

ipfs://47c83bc199c0f5d8a9078e26eb3db94738001d331b3cef6a8084dd03481a68ff
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
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.