ETH Price: $2,728.32 (+2.27%)

Contract

0xBB838373C5168184abF60c2547CEC94411A2a5dA
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xC301ecC4...e7883d7df
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
StrategyCompound

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion, BSL 1.1 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2023-10-09
*/

// SPDX-License-Identifier: BUSL-1.1
// File: lib/ipor-protocol/contracts/libraries/StorageLib.sol


pragma solidity 0.8.20;

/// @title Storage ID's associated with the IPOR Protocol Router.
library StorageLib {
    uint256 constant STORAGE_SLOT_BASE = 1_000_000;

    // append only
    enum StorageId {
        /// @dev The address of the contract owner.
        Owner,
        AppointedOwner,
        Paused,
        PauseGuardian,
        ReentrancyStatus,
        RouterFunctionPaused,
        AmmSwapsLiquidators,
        AmmPoolsAppointedToRebalance,
        AmmPoolsParams
    }

    /// @notice Struct which contains owner address of IPOR Protocol Router.
    struct OwnerStorage {
        address owner;
    }

    /// @notice Struct which contains appointed owner address of IPOR Protocol Router.
    struct AppointedOwnerStorage {
        address appointedOwner;
    }

    /// @notice Struct which contains reentrancy status of IPOR Protocol Router.
    struct ReentrancyStatusStorage {
        uint256 value;
    }

    /// @notice Struct which contains information about swap liquidators.
    /// @dev First key is an asset (pool), second key is an liquidator address in the asset pool,
    /// value is a flag to indicate whether account is a liquidator.
    /// True - account is a liquidator, False - account is not a liquidator.
    struct AmmSwapsLiquidatorsStorage {
        mapping(address => mapping(address => bool)) value;
    }

    /// @notice Struct which contains information about accounts appointed to rebalance.
    /// @dev first key - asset address, second key - account address which is allowed to rebalance in the asset pool,
    /// value - flag to indicate whether account is allowed to rebalance. True - allowed, False - not allowed.
    struct AmmPoolsAppointedToRebalanceStorage {
        mapping(address => mapping(address => bool)) value;
    }

    struct AmmPoolsParamsValue {
        /// @dev max liquidity pool balance in the asset pool, represented without 18 decimals
        uint32 maxLiquidityPoolBalance;
        /// @dev The threshold for auto-rebalancing the pool. Value represented without 18 decimals.
        /// Value represents multiplication of 1000.
        uint32 autoRebalanceThresholdInThousands;
        /// @dev asset management ratio, represented without 18 decimals, value represents percentage with 2 decimals
        /// 65% = 6500, 99,99% = 9999, this is a percentage which stay in Amm Treasury in opposite to Asset Management
        /// based on AMM Treasury balance (100%).
        uint16 ammTreasuryAndAssetManagementRatio;
    }

    /// @dev key - asset address, value - struct AmmOpenSwapParamsValue
    struct AmmPoolsParamsStorage {
        mapping(address => AmmPoolsParamsValue) value;
    }

    /// @dev key - function sig, value - 1 if function is paused, 0 if not
    struct RouterFunctionPausedStorage {
        mapping(bytes4 => uint256) value;
    }

    /// @notice Gets Ipor Protocol Router owner address.
    function getOwner() internal pure returns (OwnerStorage storage owner) {
        uint256 slot = _getStorageSlot(StorageId.Owner);
        assembly {
            owner.slot := slot
        }
    }

    /// @notice Gets Ipor Protocol Router appointed owner address.
    function getAppointedOwner() internal pure returns (AppointedOwnerStorage storage appointedOwner) {
        uint256 slot = _getStorageSlot(StorageId.AppointedOwner);
        assembly {
            appointedOwner.slot := slot
        }
    }

    /// @notice Gets Ipor Protocol Router reentrancy status.
    function getReentrancyStatus() internal pure returns (ReentrancyStatusStorage storage reentrancyStatus) {
        uint256 slot = _getStorageSlot(StorageId.ReentrancyStatus);
        assembly {
            reentrancyStatus.slot := slot
        }
    }

    /// @notice Gets information if function is paused in Ipor Protocol Router.
    function getRouterFunctionPaused() internal pure returns (RouterFunctionPausedStorage storage paused) {
        uint256 slot = _getStorageSlot(StorageId.RouterFunctionPaused);
        assembly {
            paused.slot := slot
        }
    }

    /// @notice Gets point to pause guardian storage.
    function getPauseGuardianStorage() internal pure returns (mapping(address => bool) storage store) {
        uint256 slot = _getStorageSlot(StorageId.PauseGuardian);
        assembly {
            store.slot := slot
        }
    }

    /// @notice Gets point to liquidators storage.
    /// @return store - point to liquidators storage.
    function getAmmSwapsLiquidatorsStorage() internal pure returns (AmmSwapsLiquidatorsStorage storage store) {
        uint256 slot = _getStorageSlot(StorageId.AmmSwapsLiquidators);
        assembly {
            store.slot := slot
        }
    }

    /// @notice Gets point to accounts appointed to rebalance storage.
    /// @return store - point to accounts appointed to rebalance storage.
    function getAmmPoolsAppointedToRebalanceStorage()
        internal
        pure
        returns (AmmPoolsAppointedToRebalanceStorage storage store)
    {
        uint256 slot = _getStorageSlot(StorageId.AmmPoolsAppointedToRebalance);
        assembly {
            store.slot := slot
        }
    }

    /// @notice Gets point to amm pools params storage.
    /// @return store - point to amm pools params storage.
    function getAmmPoolsParamsStorage() internal pure returns (AmmPoolsParamsStorage storage store) {
        uint256 slot = _getStorageSlot(StorageId.AmmPoolsParams);
        assembly {
            store.slot := slot
        }
    }

    function _getStorageSlot(StorageId storageId) private pure returns (uint256 slot) {
        return uint256(storageId) + STORAGE_SLOT_BASE;
    }
}

// File: lib/ipor-protocol/contracts/security/PauseManager.sol


pragma solidity 0.8.20;


/// @title Ipor Protocol Router Pause Manager library
library PauseManager {
    /// @notice Emitted when new pause guardian is added
    /// @param guardians List of addresses of guardian
    event PauseGuardiansAdded(address[] indexed guardians);

    /// @notice Emitted when pause guardian is removed
    /// @param guardians List of addresses of guardian
    event PauseGuardiansRemoved(address[] indexed guardians);

    /// @notice Checks if account is Ipor Protocol Router pause guardian
    /// @param account Address of guardian
    /// @return true if account is Ipor Protocol Router pause guardian
    function isPauseGuardian(address account) internal view returns (bool) {
        mapping(address => bool) storage pauseGuardians = StorageLib.getPauseGuardianStorage();
        return pauseGuardians[account];
    }

    /// @notice Adds Ipor Protocol Router pause guardian
    /// @param newGuardians Addresses of guardians
    function addPauseGuardians(address[] calldata newGuardians) internal {
        uint256 length = newGuardians.length;
        if (length == 0) {
            return;
        }

        mapping(address => bool) storage pauseGuardians = StorageLib.getPauseGuardianStorage();

        for (uint256 i; i < length; ) {
            pauseGuardians[newGuardians[i]] = true;
            unchecked {
                i++;
            }
        }
        emit PauseGuardiansAdded(newGuardians);
    }

    /// @notice Removes Ipor Protocol Router pause guardian
    /// @param guardians Addresses of guardians
    function removePauseGuardians(address[] calldata guardians) internal {
        uint256 length = guardians.length;

        if (length == 0) {
            return;
        }

        mapping(address => bool) storage pauseGuardians = StorageLib.getPauseGuardianStorage();

        for (uint256 i; i < length; ) {
            pauseGuardians[guardians[i]] = false;
            unchecked {
                i++;
            }
        }
        emit PauseGuardiansRemoved(guardians);
    }
}

// File: lib/ipor-protocol/contracts/libraries/errors/AssetManagementErrors.sol


pragma solidity 0.8.20;

library AssetManagementErrors {
    // 500-599-assetManagement

    /// @notice asset mismatch
    string public constant ASSET_MISMATCH = "IPOR_500";

    // @notice caller is not asset management contract
    string public constant CALLER_NOT_ASSET_MANAGEMENT = "IPOR_501";

    /// @notice treasury address is incorrect
    string public constant INCORRECT_TREASURY_ADDRESS = "IPOR_502";

    /// @notice iv token value which should be minted is too low
    string public constant IV_TOKEN_MINT_AMOUNT_TOO_LOW = "IPOR_503";

    /// @notice iv token value which should be burned is too low
    string public constant IV_TOKEN_BURN_AMOUNT_TOO_LOW = "IPOR_504";

    /// @notice only Treasury Manager can access the function
    string public constant CALLER_NOT_TREASURY_MANAGER = "IPOR_505";

    /// @notice  problem with redeem shared token
    string public constant SHARED_TOKEN_REDEEM_ERROR = "IPOR_506";

    /// @dev Error appears if deposit every strategy failed
    string public constant DEPOSIT_TO_STRATEGY_FAILED = "IPOR_507";

    /// @dev Error appears when deposited amount returned from strategy is not higher than 0 and lower than amount sent to strategy
    string public constant STRATEGY_INCORRECT_DEPOSITED_AMOUNT = "IPOR_508";
}

// File: lib/ipor-protocol/contracts/interfaces/IIporContractCommonGov.sol


pragma solidity 0.8.20;

/// @title Interface for interaction with standalone IPOR smart contract by DAO government with common methods.
interface IIporContractCommonGov {
    /// @notice Pauses current smart contract. It can be executed only by the Owner.
    /// @dev Emits {Paused} event from AssetManagement.
    function pause() external;

    /// @notice Unpauses current smart contract. It can be executed only by the Owner
    /// @dev Emits {Unpaused} event from AssetManagement.
    function unpause() external;

    /// @notice Checks if given account is a pause guardian.
    /// @param account The address of the account to be checked.
    /// @return true if account is a pause guardian.
    function isPauseGuardian(address account) external view returns (bool);

    /// @notice Adds a pause guardian to the list of guardians. Function available only for the Owner.
    /// @param guardians The list of addresses of the pause guardians to be added.
    function addPauseGuardians(address[] calldata guardians) external;

    /// @notice Removes a pause guardian from the list of guardians. Function available only for the Owner.
    /// @param guardians The list of addresses of the pause guardians to be removed.
    function removePauseGuardians(address[] calldata guardians) external;
}

// File: lib/ipor-protocol/contracts/interfaces/IProxyImplementation.sol


pragma solidity 0.8.20;

/// @title Technical interface for reading data related to the UUPS proxy pattern in Ipor Protocol.
interface IProxyImplementation {
    /// @notice Retrieves the address of the implementation contract for UUPS proxy.
    /// @return The address of the implementation contract.
    /// @dev The function returns the value stored in the implementation storage slot.
    function getImplementation() external view returns (address);
}

// File: @openzeppelin/contracts-upgradeable/utils/StorageSlotUpgradeable.sol


// OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.

pragma solidity ^0.8.0;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC1967 implementation slot:
 * ```solidity
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 *
 * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._
 * _Available since v4.9 for `string`, `bytes`._
 */
library StorageSlotUpgradeable {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    struct StringSlot {
        string value;
    }

    struct BytesSlot {
        bytes value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` with member `value` located at `slot`.
     */
    function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` representation of the string storage pointer `store`.
     */
    function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` with member `value` located at `slot`.
     */
    function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
     */
    function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }
}

// File: @openzeppelin/contracts-upgradeable/interfaces/IERC1967Upgradeable.sol


// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC1967.sol)

pragma solidity ^0.8.0;

/**
 * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.
 *
 * _Available since v4.8.3._
 */
interface IERC1967Upgradeable {
    /**
     * @dev Emitted when the implementation is upgraded.
     */
    event Upgraded(address indexed implementation);

    /**
     * @dev Emitted when the admin account has changed.
     */
    event AdminChanged(address previousAdmin, address newAdmin);

    /**
     * @dev Emitted when the beacon is changed.
     */
    event BeaconUpgraded(address indexed beacon);
}

// File: @openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable.sol


// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)

pragma solidity ^0.8.0;

/**
 * @dev This is the interface that {BeaconProxy} expects of its beacon.
 */
interface IBeaconUpgradeable {
    /**
     * @dev Must return an address that can be used as a delegate call target.
     *
     * {BeaconProxy} will check that this address is a contract.
     */
    function implementation() external view returns (address);
}

// File: @openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol


// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)

pragma solidity ^0.8.0;

/**
 * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified
 * proxy whose upgrades are fully controlled by the current implementation.
 */
interface IERC1822ProxiableUpgradeable {
    /**
     * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation
     * address.
     *
     * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks
     * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this
     * function revert if invoked through a proxy.
     */
    function proxiableUUID() external view returns (bytes32);
}

// File: lib/ipor-protocol/contracts/libraries/math/IporMath.sol


pragma solidity 0.8.20;

library IporMath {
    uint256 private constant RAY = 1e27;

    //@notice Division with rounding up on last position, x, and y is with MD
    function division(uint256 x, uint256 y) internal pure returns (uint256 z) {
        z = (x + (y / 2)) / y;
    }

    function divisionInt(int256 x, int256 y) internal pure returns (int256 z) {
        uint256 absX = uint256(x < 0 ? -x : x);
        uint256 absY = uint256(y < 0 ? -y : y);

        // Use bitwise XOR to get the sign on MBS bit then shift to LSB
        // sign == 0x0000...0000 ==  0 if the number is non-negative
        // sign == 0xFFFF...FFFF == -1 if the number is negative
        int256 sign = (x ^ y) >> 255;

        uint256 divAbs;
        uint256 remainder;

        unchecked {
            divAbs = absX / absY;
            remainder = absX % absY;
        }
        // Check if we need to round
        if (sign < 0) {
            // remainder << 1 left shift is equivalent to multiplying by 2
            if (remainder << 1 > absY) {
                ++divAbs;
            }
        } else {
            if (remainder << 1 >= absY) {
                ++divAbs;
            }
        }

        // (sign | 1) is cheaper than (sign < 0) ? -1 : 1;
        unchecked {
            z = int256(divAbs) * (sign | 1);
        }
    }

    function divisionWithoutRound(uint256 x, uint256 y) internal pure returns (uint256 z) {
        z = x / y;
    }

    function convertWadToAssetDecimals(uint256 value, uint256 assetDecimals) internal pure returns (uint256) {
        if (assetDecimals == 18) {
            return value;
        } else if (assetDecimals > 18) {
            return value * 10 ** (assetDecimals - 18);
        } else {
            return division(value, 10 ** (18 - assetDecimals));
        }
    }

    function convertWadToAssetDecimalsWithoutRound(
        uint256 value,
        uint256 assetDecimals
    ) internal pure returns (uint256) {
        if (assetDecimals == 18) {
            return value;
        } else if (assetDecimals > 18) {
            return value * 10 ** (assetDecimals - 18);
        } else {
            return divisionWithoutRound(value, 10 ** (18 - assetDecimals));
        }
    }

    function convertToWad(uint256 value, uint256 assetDecimals) internal pure returns (uint256) {
        if (value > 0) {
            if (assetDecimals == 18) {
                return value;
            } else if (assetDecimals > 18) {
                return division(value, 10 ** (assetDecimals - 18));
            } else {
                return value * 10 ** (18 - assetDecimals);
            }
        } else {
            return value;
        }
    }

    function absoluteValue(int256 value) internal pure returns (uint256) {
        return (uint256)(value < 0 ? -value : value);
    }

    function percentOf(uint256 value, uint256 rate) internal pure returns (uint256) {
        return division(value * rate, 1e18);
    }

    /// @notice Calculates x^n where x and y are represented in RAY (27 decimals)
    /// @param x base, represented in 27 decimals
    /// @param n exponent, represented in 27 decimals
    /// @return z x^n represented in 27 decimals
    function rayPow(uint256 x, uint256 n) internal pure returns (uint256 z) {
        assembly {
            switch x
            case 0 {
                switch n
                case 0 {
                    z := RAY
                }
                default {
                    z := 0
                }
            }
            default {
                switch mod(n, 2)
                case 0 {
                    z := RAY
                }
                default {
                    z := x
                }
                let half := div(RAY, 2) // for rounding.
                for {
                    n := div(n, 2)
                } n {
                    n := div(n, 2)
                } {
                    let xx := mul(x, x)
                    if iszero(eq(div(xx, x), x)) {
                        revert(0, 0)
                    }
                    let xxRound := add(xx, half)
                    if lt(xxRound, xx) {
                        revert(0, 0)
                    }
                    x := div(xxRound, RAY)
                    if mod(n, 2) {
                        let zx := mul(z, x)
                        if and(iszero(iszero(x)), iszero(eq(div(zx, x), z))) {
                            revert(0, 0)
                        }
                        let zxRound := add(zx, half)
                        if lt(zxRound, zx) {
                            revert(0, 0)
                        }
                        z := div(zxRound, RAY)
                    }
                }
            }
        }
    }
}

// File: lib/ipor-protocol/contracts/vault/interfaces/compound/ComptrollerInterface.sol


pragma solidity 0.8.20;

interface ComptrollerInterface {
    function claimComp(address holder) external;

    function claimComp(address holder, address[] calldata) external;

    function claimComp(
        address[] calldata holders,
        address[] calldata cTokens,
        bool borrowers,
        bool suppliers
    ) external;
}

// File: lib/ipor-protocol/contracts/vault/interfaces/compound/CErc20.sol


pragma solidity 0.8.20;

interface CErc20 {
    function mint(uint256) external returns (uint256);

    function exchangeRateCurrent() external returns (uint256);

    function supplyRatePerBlock() external view returns (uint256);

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

    function exchangeRateStored() external view returns (uint256);

    function redeem(uint256) external returns (uint256);

    function decimals() external view returns (uint8);
}

// File: lib/ipor-protocol/contracts/libraries/errors/IporErrors.sol


pragma solidity 0.8.20;

library IporErrors {
    // 000-199 - general codes

    /// @notice General problem, address is wrong
    string public constant WRONG_ADDRESS = "IPOR_000";

    /// @notice General problem. Wrong decimals
    string public constant WRONG_DECIMALS = "IPOR_001";

    /// @notice General problem, addresses mismatch
    string public constant ADDRESSES_MISMATCH = "IPOR_002";

    /// @notice Sender's asset balance is too low to transfer and to open a swap
    string public constant SENDER_ASSET_BALANCE_TOO_LOW = "IPOR_003";

    /// @notice Value is not greater than zero
    string public constant VALUE_NOT_GREATER_THAN_ZERO = "IPOR_004";

    /// @notice Input arrays length mismatch
    string public constant INPUT_ARRAYS_LENGTH_MISMATCH = "IPOR_005";

    /// @notice Amount is too low to transfer
    string public constant NOT_ENOUGH_AMOUNT_TO_TRANSFER = "IPOR_006";

    /// @notice msg.sender is not an appointed owner, so cannot confirm his appointment to be an owner of a specific smart contract
    string public constant SENDER_NOT_APPOINTED_OWNER = "IPOR_007";

    /// @notice only Router can have access to function
    string public constant CALLER_NOT_IPOR_PROTOCOL_ROUTER = "IPOR_008";

    /// @notice Chunk size is equal to zero
    string public constant CHUNK_SIZE_EQUAL_ZERO = "IPOR_009";

    /// @notice Chunk size is too big
    string public constant CHUNK_SIZE_TOO_BIG = "IPOR_010";

    /// @notice Caller is not a  guardian
    string public constant CALLER_NOT_GUARDIAN = "IPOR_011";

    /// @notice Request contains invalid method signature, which is not supported by the Ipor Protocol Router
    string public constant ROUTER_INVALID_SIGNATURE = "IPOR_012";

    /// @notice Only AMM Treasury can have access to function
    string public constant CALLER_NOT_AMM_TREASURY = "IPOR_013";

    /// @notice Caller is not an owner
    string public constant CALLER_NOT_OWNER = "IPOR_014";

    /// @notice Method is paused
    string public constant METHOD_PAUSED = "IPOR_015";

    /// @notice Reentrancy appears
    string public constant REENTRANCY = "IPOR_016";

    /// @notice Asset is not supported
    string public constant ASSET_NOT_SUPPORTED = "IPOR_017";

    /// @notice Return back ETH failed in Ipor Protocol Router
    string public constant ROUTER_RETURN_BACK_ETH_FAILED = "IPOR_018";
}

// File: lib/ipor-protocol/contracts/libraries/IporContractValidator.sol


pragma solidity 0.8.20;


library IporContractValidator {
    function checkAddress(address addr) internal pure returns (address) {
        require(addr != address(0), IporErrors.WRONG_ADDRESS);
        return addr;
    }
}

// File: lib/ipor-protocol/contracts/interfaces/IStrategy.sol


pragma solidity 0.8.20;

/// @title Interface for interaction with  Asset Management's strategy.
/// @notice Strategy represents an external DeFi protocol and acts as and wrapper that standarizes the API of the external protocol.
interface IStrategy {
    /// @notice Returns current version of strategy
    /// @dev Increase number when implementation inside source code is different that implementation deployed on Mainnet
    /// @return current Strategy's version
    function getVersion() external pure returns (uint256);

    /// @notice Gets asset / underlying token / stablecoin which is assocciated with this Strategy instance
    /// @return asset / underlying token / stablecoin address
    function asset() external view returns (address);

    /// @notice Returns strategy's share token address
    function shareToken() external view returns (address);

    /// @notice Gets annualised interest rate (APR) for this strategy. Returns current APY from Dai Savings Rate.
    /// @return APR value, represented in 18 decimals.
    /// @dev APY = dsr^(365*24*60*60), dsr represented in 27 decimals
    function getApy() external view returns (uint256);

    /// @notice Gets balance for given asset (underlying / stablecoin) allocated to this strategy.
    /// @return balance for given asset, represented in 18 decimals.
    function balanceOf() external view returns (uint256);

    /// @notice Deposits asset amount from AssetManagement to this specific Strategy. Function available only for AssetManagement.
    /// @dev Emits {Transfer} from ERC20 asset. If available then events from external DeFi protocol assocciated with this strategy.
    /// @param amount asset amount represented in 18 decimals.
    function deposit(uint256 amount) external returns (uint256 depositedAmount);

    /// @notice Withdraws asset amount from Strategy to AssetManagement. Function available only for AssetManagement.
    /// @dev Emits {Transfer} from ERC20 asset. If available then events from external DeFi protocol assocciated with this strategy.
    /// @param amount asset amount represented in 18 decimals.
    /// @return withdrawnAmount The final amount withdrawn, represented in 18 decimals
    function withdraw(uint256 amount) external returns (uint256 withdrawnAmount);
}

// File: lib/ipor-protocol/contracts/interfaces/IStrategyCompound.sol


pragma solidity 0.8.20;


/// @title Interface for interacting with Compound.
/// @notice It standarises the calls made by the asset management to the external DeFi protocol.
interface IStrategyCompound is IStrategy {
    /// @notice Emitted when blocks per day changed by Owner.
    /// @param newBlocksPerDay new value blocks per day
    event BlocksPerDayChanged(uint256 newBlocksPerDay);
}

// File: @openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol


// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library AddressUpgradeable {
    /**
     * @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
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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://consensys.net/diligence/blog/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.8.0/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");

        (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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

// File: @openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol


// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.2;


/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
 * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
 * case an upgrade adds a module that needs to be initialized.
 *
 * For example:
 *
 * [.hljs-theme-light.nopadding]
 * ```solidity
 * contract MyToken is ERC20Upgradeable {
 *     function initialize() initializer public {
 *         __ERC20_init("MyToken", "MTK");
 *     }
 * }
 *
 * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
 *     function initializeV2() reinitializer(2) public {
 *         __ERC20Permit_init("MyToken");
 *     }
 * }
 * ```
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
 * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() {
 *     _disableInitializers();
 * }
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     * @custom:oz-retyped-from bool
     */
    uint8 private _initialized;

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

    /**
     * @dev Triggered when the contract has been initialized or reinitialized.
     */
    event Initialized(uint8 version);

    /**
     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
     * `onlyInitializing` functions can be used to initialize parent contracts.
     *
     * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a
     * constructor.
     *
     * Emits an {Initialized} event.
     */
    modifier initializer() {
        bool isTopLevelCall = !_initializing;
        require(
            (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),
            "Initializable: contract is already initialized"
        );
        _initialized = 1;
        if (isTopLevelCall) {
            _initializing = true;
        }
        _;
        if (isTopLevelCall) {
            _initializing = false;
            emit Initialized(1);
        }
    }

    /**
     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
     * used to initialize parent contracts.
     *
     * A reinitializer may be used after the original initialization step. This is essential to configure modules that
     * are added through upgrades and that require initialization.
     *
     * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`
     * cannot be nested. If one is invoked in the context of another, execution will revert.
     *
     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
     * a contract, executing them in the right order is up to the developer or operator.
     *
     * WARNING: setting the version to 255 will prevent any future reinitialization.
     *
     * Emits an {Initialized} event.
     */
    modifier reinitializer(uint8 version) {
        require(!_initializing && _initialized < version, "Initializable: contract is already initialized");
        _initialized = version;
        _initializing = true;
        _;
        _initializing = false;
        emit Initialized(version);
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} and {reinitializer} modifiers, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    /**
     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called
     * through proxies.
     *
     * Emits an {Initialized} event the first time it is successfully executed.
     */
    function _disableInitializers() internal virtual {
        require(!_initializing, "Initializable: contract is initializing");
        if (_initialized != type(uint8).max) {
            _initialized = type(uint8).max;
            emit Initialized(type(uint8).max);
        }
    }

    /**
     * @dev Returns the highest version that has been initialized. See {reinitializer}.
     */
    function _getInitializedVersion() internal view returns (uint8) {
        return _initialized;
    }

    /**
     * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.
     */
    function _isInitializing() internal view returns (bool) {
        return _initializing;
    }
}

// File: @openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol


// OpenZeppelin Contracts (last updated v4.9.0) (proxy/ERC1967/ERC1967Upgrade.sol)

pragma solidity ^0.8.2;







/**
 * @dev This abstract contract provides getters and event emitting update functions for
 * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.
 *
 * _Available since v4.1._
 */
abstract contract ERC1967UpgradeUpgradeable is Initializable, IERC1967Upgradeable {
    function __ERC1967Upgrade_init() internal onlyInitializing {
    }

    function __ERC1967Upgrade_init_unchained() internal onlyInitializing {
    }
    // This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1
    bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;

    /**
     * @dev Storage slot with the address of the current implementation.
     * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;

    /**
     * @dev Returns the current implementation address.
     */
    function _getImplementation() internal view returns (address) {
        return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value;
    }

    /**
     * @dev Stores a new address in the EIP1967 implementation slot.
     */
    function _setImplementation(address newImplementation) private {
        require(AddressUpgradeable.isContract(newImplementation), "ERC1967: new implementation is not a contract");
        StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
    }

    /**
     * @dev Perform implementation upgrade
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeTo(address newImplementation) internal {
        _setImplementation(newImplementation);
        emit Upgraded(newImplementation);
    }

    /**
     * @dev Perform implementation upgrade with additional setup call.
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeToAndCall(address newImplementation, bytes memory data, bool forceCall) internal {
        _upgradeTo(newImplementation);
        if (data.length > 0 || forceCall) {
            AddressUpgradeable.functionDelegateCall(newImplementation, data);
        }
    }

    /**
     * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeToAndCallUUPS(address newImplementation, bytes memory data, bool forceCall) internal {
        // Upgrades from old implementations will perform a rollback test. This test requires the new
        // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing
        // this special case will break upgrade paths from old UUPS implementation to new ones.
        if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) {
            _setImplementation(newImplementation);
        } else {
            try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) {
                require(slot == _IMPLEMENTATION_SLOT, "ERC1967Upgrade: unsupported proxiableUUID");
            } catch {
                revert("ERC1967Upgrade: new implementation is not UUPS");
            }
            _upgradeToAndCall(newImplementation, data, forceCall);
        }
    }

    /**
     * @dev Storage slot with the admin of the contract.
     * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;

    /**
     * @dev Returns the current admin.
     */
    function _getAdmin() internal view returns (address) {
        return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value;
    }

    /**
     * @dev Stores a new address in the EIP1967 admin slot.
     */
    function _setAdmin(address newAdmin) private {
        require(newAdmin != address(0), "ERC1967: new admin is the zero address");
        StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin;
    }

    /**
     * @dev Changes the admin of the proxy.
     *
     * Emits an {AdminChanged} event.
     */
    function _changeAdmin(address newAdmin) internal {
        emit AdminChanged(_getAdmin(), newAdmin);
        _setAdmin(newAdmin);
    }

    /**
     * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.
     * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.
     */
    bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;

    /**
     * @dev Returns the current beacon.
     */
    function _getBeacon() internal view returns (address) {
        return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value;
    }

    /**
     * @dev Stores a new beacon in the EIP1967 beacon slot.
     */
    function _setBeacon(address newBeacon) private {
        require(AddressUpgradeable.isContract(newBeacon), "ERC1967: new beacon is not a contract");
        require(
            AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()),
            "ERC1967: beacon implementation is not a contract"
        );
        StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon;
    }

    /**
     * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does
     * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).
     *
     * Emits a {BeaconUpgraded} event.
     */
    function _upgradeBeaconToAndCall(address newBeacon, bytes memory data, bool forceCall) internal {
        _setBeacon(newBeacon);
        emit BeaconUpgraded(newBeacon);
        if (data.length > 0 || forceCall) {
            AddressUpgradeable.functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data);
        }
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

// File: @openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol


// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/UUPSUpgradeable.sol)

pragma solidity ^0.8.0;




/**
 * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an
 * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.
 *
 * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is
 * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing
 * `UUPSUpgradeable` with a custom implementation of upgrades.
 *
 * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.
 *
 * _Available since v4.1._
 */
abstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable {
    function __UUPSUpgradeable_init() internal onlyInitializing {
    }

    function __UUPSUpgradeable_init_unchained() internal onlyInitializing {
    }
    /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment
    address private immutable __self = address(this);

    /**
     * @dev Check that the execution is being performed through a delegatecall call and that the execution context is
     * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case
     * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a
     * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to
     * fail.
     */
    modifier onlyProxy() {
        require(address(this) != __self, "Function must be called through delegatecall");
        require(_getImplementation() == __self, "Function must be called through active proxy");
        _;
    }

    /**
     * @dev Check that the execution is not being performed through a delegate call. This allows a function to be
     * callable on the implementing contract but not through proxies.
     */
    modifier notDelegated() {
        require(address(this) == __self, "UUPSUpgradeable: must not be called through delegatecall");
        _;
    }

    /**
     * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the
     * implementation. It is used to validate the implementation's compatibility when performing an upgrade.
     *
     * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks
     * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this
     * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.
     */
    function proxiableUUID() external view virtual override notDelegated returns (bytes32) {
        return _IMPLEMENTATION_SLOT;
    }

    /**
     * @dev Upgrade the implementation of the proxy to `newImplementation`.
     *
     * Calls {_authorizeUpgrade}.
     *
     * Emits an {Upgraded} event.
     *
     * @custom:oz-upgrades-unsafe-allow-reachable delegatecall
     */
    function upgradeTo(address newImplementation) public virtual onlyProxy {
        _authorizeUpgrade(newImplementation);
        _upgradeToAndCallUUPS(newImplementation, new bytes(0), false);
    }

    /**
     * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call
     * encoded in `data`.
     *
     * Calls {_authorizeUpgrade}.
     *
     * Emits an {Upgraded} event.
     *
     * @custom:oz-upgrades-unsafe-allow-reachable delegatecall
     */
    function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {
        _authorizeUpgrade(newImplementation);
        _upgradeToAndCallUUPS(newImplementation, data, true);
    }

    /**
     * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by
     * {upgradeTo} and {upgradeToAndCall}.
     *
     * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.
     *
     * ```solidity
     * function _authorizeUpgrade(address) internal override onlyOwner {}
     * ```
     */
    function _authorizeUpgrade(address newImplementation) internal virtual;

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

// File: @openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol


// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;


/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuardUpgradeable is Initializable {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

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

    uint256 private _status;

    function __ReentrancyGuard_init() internal onlyInitializing {
        __ReentrancyGuard_init_unchained();
    }

    function __ReentrancyGuard_init_unchained() internal onlyInitializing {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

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

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

// File: @openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;


/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with 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 ContextUpgradeable is Initializable {
    function __Context_init() internal onlyInitializing {
    }

    function __Context_init_unchained() internal onlyInitializing {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

// File: @openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol


// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;



/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init() internal onlyInitializing {
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal onlyInitializing {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

// File: lib/ipor-protocol/contracts/security/IporOwnableUpgradeable.sol


pragma solidity 0.8.20;



/// @title Extended version of OpenZeppelin OwnableUpgradeable contract with appointed owner
abstract contract IporOwnableUpgradeable is OwnableUpgradeable {
    address private _appointedOwner;

    /// @notice Emitted when account is appointed to transfer ownership
    /// @param appointedOwner Address of appointed owner
    event AppointedToTransferOwnership(address indexed appointedOwner);

    modifier onlyAppointedOwner() {
        require(_appointedOwner == msg.sender, IporErrors.SENDER_NOT_APPOINTED_OWNER);
        _;
    }

    /// @notice Oppoint account to transfer ownership
    /// @param appointedOwner Address of appointed owner
    function transferOwnership(address appointedOwner) public override onlyOwner {
        require(appointedOwner != address(0), IporErrors.WRONG_ADDRESS);
        _appointedOwner = appointedOwner;
        emit AppointedToTransferOwnership(appointedOwner);
    }

    /// @notice Confirm transfer ownership
    /// @dev This is real transfer ownership in second step by appointed account
    function confirmTransferOwnership() external onlyAppointedOwner {
        _appointedOwner = address(0);
        _transferOwnership(msg.sender);
    }

    /// @notice Renounce ownership
    function renounceOwnership() public virtual override onlyOwner {
        _transferOwnership(address(0));
        _appointedOwner = address(0);
    }
}

// File: @openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol


// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;



/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract PausableUpgradeable is Initializable, ContextUpgradeable {
    /**
     * @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.
     */
    function __Pausable_init() internal onlyInitializing {
        __Pausable_init_unchained();
    }

    function __Pausable_init_unchained() internal onlyInitializing {
        _paused = false;
    }

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

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

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

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        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());
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

// File: @openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20PermitUpgradeable.sol


// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20PermitUpgradeable {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

// File: @openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol


// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20Upgradeable {
    /**
     * @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 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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount) external returns (bool);
}

// File: @openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;


/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20MetadataUpgradeable is IERC20Upgradeable {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

// File: lib/ipor-protocol/contracts/vault/strategies/StrategyCore.sol


pragma solidity 0.8.20;














abstract contract StrategyCore is
    Initializable,
    PausableUpgradeable,
    ReentrancyGuardUpgradeable,
    UUPSUpgradeable,
    IporOwnableUpgradeable,
    IStrategy,
    IProxyImplementation,
    IIporContractCommonGov
{
    using IporContractValidator for address;

    address public immutable asset;
    uint256 public immutable assetDecimals;
    address public immutable shareToken;
    address public immutable assetManagement;

    /// @dev deprecated
    address internal _assetDeprecated;
    /// @dev deprecated
    address internal _shareTokenDeprecated;
    /// @dev deprecated
    address internal _assetManagementDeprecated;

    address internal _treasury;
    address internal _treasuryManager;

    /// @notice Emmited when doClaim function had been executed.
    /// @param claimedBy account that executes claim action
    /// @param shareTokenAddress share token associated with one strategy
    /// @param treasury Treasury address where claimed tokens are transferred.
    /// @param amount S
    event DoClaim(address indexed claimedBy, address indexed shareTokenAddress, address indexed treasury, uint256 amount);

    /// @notice Emmited when Treasury address has changed
    /// @param newTreasury new Treasury address
    event TreasuryChanged(address newTreasury);

    /// @notice Emmited when Treasury Manager address has changed
    /// @param newTreasuryManager new Treasury Manager address
    event TreasuryManagerChanged(address newTreasuryManager);

    modifier onlyAssetManagement() {
        require(msg.sender == assetManagement, AssetManagementErrors.CALLER_NOT_ASSET_MANAGEMENT);
        _;
    }

    modifier onlyPauseGuardian() {
        require(PauseManager.isPauseGuardian(msg.sender), IporErrors.CALLER_NOT_GUARDIAN);
        _;
    }

    modifier onlyTreasuryManager() {
        require(msg.sender == _treasuryManager, AssetManagementErrors.CALLER_NOT_TREASURY_MANAGER);
        _;
    }

    constructor(address assetInput, uint256 assetDecimalsInput, address shareTokenInput, address assetManagementInput) {
        asset = assetInput.checkAddress();

        require(assetDecimalsInput == IERC20MetadataUpgradeable(assetInput).decimals(), IporErrors.WRONG_DECIMALS);

        assetDecimals = assetDecimalsInput;
        shareToken = shareTokenInput.checkAddress();
        assetManagement = assetManagementInput.checkAddress();
    }

    function getTreasuryManager() external view returns (address) {
        return _treasuryManager;
    }

    function setTreasuryManager(address manager) external whenNotPaused onlyOwner {
        require(manager != address(0), IporErrors.WRONG_ADDRESS);
        _treasuryManager = manager;
        emit TreasuryManagerChanged(manager);
    }

    function getTreasury() external view returns (address) {
        return _treasury;
    }

    function setTreasury(address newTreasury) external whenNotPaused onlyTreasuryManager {
        require(newTreasury != address(0), AssetManagementErrors.INCORRECT_TREASURY_ADDRESS);
        _treasury = newTreasury;
        emit TreasuryChanged(newTreasury);
    }

    function pause() external override onlyPauseGuardian {
        _pause();
    }

    function unpause() external override onlyOwner {
        _unpause();
    }

    function isPauseGuardian(address account) external view override returns (bool) {
        return PauseManager.isPauseGuardian(account);
    }

    function addPauseGuardians(address[] calldata guardians) external override onlyOwner {
        PauseManager.addPauseGuardians(guardians);
    }

    function removePauseGuardians(address[] calldata guardians) external override onlyOwner {
        PauseManager.removePauseGuardians(guardians);
    }

    function getImplementation() external view override returns (address) {
        return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value;
    }

    //solhint-disable no-empty-blocks
    function _authorizeUpgrade(address) internal override onlyOwner {}
}

// File: @openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol


// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;




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

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20Upgradeable token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20Upgradeable 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(IERC20Upgradeable 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'
        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));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20Upgradeable token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20Upgradeable token, address spender, uint256 value) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to
     * 0 before setting it to a non-zero value.
     */
    function forceApprove(IERC20Upgradeable token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    function safePermit(
        IERC20PermitUpgradeable token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @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(IERC20Upgradeable 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");
        require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
    }

    /**
     * @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).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20Upgradeable token, bytes memory data) private returns (bool) {
        // 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 cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return
            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && AddressUpgradeable.isContract(address(token));
    }
}

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


// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount) external returns (bool);
}

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


// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;


/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

// File: lib/ipor-protocol/contracts/vault/strategies/StrategyCompound.sol


pragma solidity 0.8.20;










contract StrategyCompound is StrategyCore, IStrategyCompound {
    using IporContractValidator for address;
    using SafeERC20Upgradeable for IERC20Upgradeable;

    uint256 public constant override getVersion = 2_000;

    uint256 public immutable blocksPerDay;
    ComptrollerInterface public immutable comptroller;
    IERC20Upgradeable public immutable compToken;

    /// @dev deprecated
    uint256 private _blocksPerDayDeprecated;
    /// @dev deprecated
    ComptrollerInterface private _comptrollerDeprecated;
    /// @dev deprecated
    IERC20Upgradeable private _compTokenDeprecated;

    /// @custom:oz-upgrades-unsafe-allow constructor
    constructor(
        address assetInput,
        uint256 assetDecimalsInput,
        address shareTokenInput,
        address assetManagementInput,
        uint256 blocksPerDayInput,
        address comptrollerInput,
        address compTokenInput
    ) StrategyCore(assetInput, assetDecimalsInput, shareTokenInput, assetManagementInput) {
        blocksPerDay = blocksPerDayInput;
        comptroller = ComptrollerInterface(comptrollerInput.checkAddress());
        compToken = IERC20Upgradeable(compTokenInput.checkAddress());

        _disableInitializers();
    }

    function initialize() public initializer nonReentrant {
        __Pausable_init();
        __Ownable_init();
        __UUPSUpgradeable_init();

        _treasuryManager = msg.sender;
    }

    ///  @notice gets current APY in Compound Protocol.
    /// @dev To achieve number in 18 decimals where we have multiplication of 2 numbers in 18 decimals we need to divide by 1e18.
    /// @dev 1e54 it is a 1e18 * 1e18 * 1e18, to achieve number in 18 decimals when there is multiplication of 3 numbers in 18 decimals, we need to divide by 1e54.
    /// @dev 1e36 it is a 1e18 * 1e18, to achieve number in 18 decimals when there is multiplication of 2 numbers in 18 decimals, we need to divide by 1e36.
    function getApy() external view override returns (uint256 apy) {
        uint256 cRate = CErc20(shareToken).supplyRatePerBlock(); // interest % per block
        uint256 ratePerDay = cRate * blocksPerDay + 1e18;

        uint256 ratePerDay4 = IporMath.division(ratePerDay * ratePerDay * ratePerDay * ratePerDay, 1e54);
        uint256 ratePerDay8 = IporMath.division(ratePerDay4 * ratePerDay4, 1e18);
        uint256 ratePerDay32 = IporMath.division(ratePerDay8 * ratePerDay8 * ratePerDay8 * ratePerDay8, 1e54);
        uint256 ratePerDay64 = IporMath.division(ratePerDay32 * ratePerDay32, 1e18);
        uint256 ratePerDay256 = IporMath.division(ratePerDay64 * ratePerDay64 * ratePerDay64 * ratePerDay64, 1e54);
        uint256 ratePerDay360 = IporMath.division(ratePerDay256 * ratePerDay64 * ratePerDay32 * ratePerDay8, 1e54);
        uint256 ratePerDay365 = IporMath.division(ratePerDay360 * ratePerDay4 * ratePerDay, 1e36);

        apy = ratePerDay365 - 1e18;
    }

    /// @notice Gets AssetManagement Compound Strategy's asset amount in Compound Protocol.
    /// @dev Explanation decimals inside implementation
    /// In Compound exchangeRateStored is calculated in following way:
    /// uint exchangeRate = cashPlusBorrowsMinusReserves * expScale / _totalSupply;
    /// When:
    /// Asset decimals = 18, then exchangeRate decimals := 18 + 18 - 8 = 28 and balanceOf decimals := 28 + 8 - 18 = 18 decimals.
    /// Asset decimals = 6, then exchangeRate decimals := 6 + 18 - 8 = 16 and balanceOf decimals := 16 + 8 - 6 = 18 decimals.
    /// In both cases we have 18 decimals which is number of decimals supported in IPOR Protocol.
    /// @return uint256 AssetManagement Strategy's asset amount in Compound represented in 18 decimals
    function balanceOf() external view override returns (uint256) {
        CErc20 shareTokenContract = CErc20(shareToken);

        return (
            IporMath.division(
                (shareTokenContract.exchangeRateStored() * shareTokenContract.balanceOf(address(this))),
                (10 ** IERC20Metadata(asset).decimals())
            )
        );
    }

    /**
     * @dev Deposit into compound lending.
     * @notice deposit can only done by AssetManagement .
     * @param wadAmount amount to deposit in compound lending, amount represented in 18 decimals
     */
    function deposit(
        uint256 wadAmount
    ) external override whenNotPaused onlyAssetManagement returns (uint256 depositedAmount) {
        uint256 amount = IporMath.convertWadToAssetDecimals(wadAmount, assetDecimals);
        IERC20Upgradeable(asset).forceApprove(shareToken, amount);
        IERC20Upgradeable(asset).safeTransferFrom(msg.sender, address(this), amount);
        CErc20(shareToken).mint(amount);
        depositedAmount = IporMath.convertToWad(amount, assetDecimals);
    }

    /**
     * @dev withdraw from compound lending.
     * @notice withdraw can only done by AssetManagement.
     * @param wadAmount candidate amount to withdraw from compound lending, amount represented in 18 decimals
     */
    function withdraw(
        uint256 wadAmount
    ) external override whenNotPaused onlyAssetManagement returns (uint256 withdrawnAmount) {
        uint256 amount = IporMath.convertWadToAssetDecimalsWithoutRound(wadAmount, assetDecimals);

        CErc20 shareTokenContract = CErc20(shareToken);

        // Transfer assets from Compound to Strategy
        uint256 redeemStatus = shareTokenContract.redeem(
            IporMath.division(amount * 1e18, shareTokenContract.exchangeRateStored())
        );

        require(redeemStatus == 0, AssetManagementErrors.SHARED_TOKEN_REDEEM_ERROR);

        uint256 withdrawnAmountCompound = IERC20Upgradeable(asset).balanceOf(address(this));

        // Transfer all assets from Strategy to AssetManagement
        IERC20Upgradeable(asset).safeTransfer(msg.sender, withdrawnAmountCompound);

        withdrawnAmount = IporMath.convertToWad(withdrawnAmountCompound, assetDecimals);
    }

    /**
     * @dev Claim extra reward of Governace token(COMP).
     */
    function doClaim() external whenNotPaused nonReentrant onlyOwner {
        address treasuryAddress = _treasury;

        require(treasuryAddress != address(0), IporErrors.WRONG_ADDRESS);

        address[] memory assets = new address[](1);
        assets[0] = shareToken;

        comptroller.claimComp(address(this), assets);

        uint256 balance = compToken.balanceOf(address(this));

        compToken.safeTransfer(treasuryAddress, balance);

        emit DoClaim(msg.sender, assets[0], treasuryAddress, balance);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"assetInput","type":"address"},{"internalType":"uint256","name":"assetDecimalsInput","type":"uint256"},{"internalType":"address","name":"shareTokenInput","type":"address"},{"internalType":"address","name":"assetManagementInput","type":"address"},{"internalType":"uint256","name":"blocksPerDayInput","type":"uint256"},{"internalType":"address","name":"comptrollerInput","type":"address"},{"internalType":"address","name":"compTokenInput","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"appointedOwner","type":"address"}],"name":"AppointedToTransferOwnership","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newBlocksPerDay","type":"uint256"}],"name":"BlocksPerDayChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"claimedBy","type":"address"},{"indexed":true,"internalType":"address","name":"shareTokenAddress","type":"address"},{"indexed":true,"internalType":"address","name":"treasury","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DoClaim","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address[]","name":"guardians","type":"address[]"}],"name":"PauseGuardiansAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address[]","name":"guardians","type":"address[]"}],"name":"PauseGuardiansRemoved","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":"newTreasury","type":"address"}],"name":"TreasuryChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newTreasuryManager","type":"address"}],"name":"TreasuryManagerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"inputs":[{"internalType":"address[]","name":"guardians","type":"address[]"}],"name":"addPauseGuardians","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"asset","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"assetDecimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"assetManagement","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":"blocksPerDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"compToken","outputs":[{"internalType":"contract IERC20Upgradeable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"comptroller","outputs":[{"internalType":"contract ComptrollerInterface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"confirmTransferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"wadAmount","type":"uint256"}],"name":"deposit","outputs":[{"internalType":"uint256","name":"depositedAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"doClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getApy","outputs":[{"internalType":"uint256","name":"apy","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getImplementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTreasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTreasuryManager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getVersion","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isPauseGuardian","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"guardians","type":"address[]"}],"name":"removePauseGuardians","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newTreasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"manager","type":"address"}],"name":"setTreasuryManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"shareToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"appointedOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"wadAmount","type":"uint256"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"withdrawnAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x6080604052600436106101e35760003560e01c80636c9fa59e11610102578063ac522e2411610095578063cc29516a11610064578063cc29516a146105ab578063f0f44260146105c0578063f2fde38b146105e0578063fe47a9f21461060057600080fd5b8063ac522e2414610517578063b6b55f2514610537578063c2d4160114610557578063c43b66871461058b57600080fd5b80638456cb59116100d15780638456cb59146104b05780638da5cb5b146104c55780639c4e89f4146104e3578063aaf10f421461050257600080fd5b80636c9fa59e1461043d578063715018a614610471578063722713f7146104865780638129fc1c1461049b57600080fd5b80633f4ba83a1161017a57806352d1902d1161014957806352d1902d146103a85780635c975abb146103bd5780635fe3b567146103d55780636605dfa71461040957600080fd5b80633f4ba83a1461031c5780634261f4d8146103315780634cfea68a146103615780634f1ef2861461039557600080fd5b80632e1a7d4d116101b65780632e1a7d4d146102895780633659cfe6146102a957806338d52e0f146102c95780633b19e84a146102fd57600080fd5b80630d8e6e2c146101e857806316211564146102115780631fb922e01461025d578063209e84ee14610272575b600080fd5b3480156101f457600080fd5b506101fe6107d081565b6040519081526020015b60405180910390f35b34801561021d57600080fd5b506102457f0000000000000000000000008e679c1d67af0cd4b314896856f09ece9e64d6b581565b6040516001600160a01b039091168152602001610208565b34801561026957600080fd5b506101fe610620565b34801561027e57600080fd5b506102876107e5565b005b34801561029557600080fd5b506101fe6102a4366004612507565b610a7a565b3480156102b557600080fd5b506102876102c436600461253c565b610d61565b3480156102d557600080fd5b506102457f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec781565b34801561030957600080fd5b50610131546001600160a01b0316610245565b34801561032857600080fd5b50610287610e29565b34801561033d57600080fd5b5061035161034c36600461253c565b610e39565b6040519015158152602001610208565b34801561036d57600080fd5b506101fe7f0000000000000000000000000000000000000000000000000000000000001c2081565b6102876103a336600461256d565b610e4a565b3480156103b457600080fd5b506101fe610f03565b3480156103c957600080fd5b5060335460ff16610351565b3480156103e157600080fd5b506102457f0000000000000000000000003d9819210a31b4961b30ef54be2aed79b9c9cd3b81565b34801561041557600080fd5b506102457f000000000000000000000000c00e94cb662c3520282e6f5717214004a7f2688881565b34801561044957600080fd5b506102457f000000000000000000000000f650c3d88d12db855b8bf7d11be6c55a4e07dcc981565b34801561047d57600080fd5b50610287610fb6565b34801561049257600080fd5b506101fe610fdb565b3480156104a757600080fd5b5061028761116b565b3480156104bc57600080fd5b506102876112b1565b3480156104d157600080fd5b5060fb546001600160a01b0316610245565b3480156104ef57600080fd5b50610132546001600160a01b0316610245565b34801561050e57600080fd5b50610245611302565b34801561052357600080fd5b5061028761053236600461262f565b61131e565b34801561054357600080fd5b506101fe610552366004612507565b611330565b34801561056357600080fd5b506101fe7f000000000000000000000000000000000000000000000000000000000000000681565b34801561059757600080fd5b506102876105a636600461262f565b611517565b3480156105b757600080fd5b50610287611529565b3480156105cc57600080fd5b506102876105db36600461253c565b611590565b3480156105ec57600080fd5b506102876105fb36600461253c565b61167b565b34801561060c57600080fd5b5061028761061b36600461253c565b611715565b6000807f000000000000000000000000f650c3d88d12db855b8bf7d11be6c55a4e07dcc96001600160a01b031663ae9d70b06040518163ffffffff1660e01b8152600401602060405180830381865afa158015610681573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106a591906126a4565b905060006106d37f0000000000000000000000000000000000000000000000000000000000001c20836126d3565b6106e590670de0b6b3a76400006126ea565b9050600061072982806106f881806126d3565b61070291906126d3565b61070c91906126d3565b760a70c3c40a64e6c51999090b65f67d92400000000000006117bb565b9050600061074861073a83806126d3565b670de0b6b3a76400006117bb565b9050600061075b82806106f881806126d3565b9050600061076c61073a83806126d3565b9050600061077f82806106f881806126d3565b9050600061079285856106f886866126d3565b905060006107c3886107a489856126d3565b6107ae91906126d3565b6ec097ce7bc90715b34b9f10000000006117bb565b90506107d7670de0b6b3a7640000826126fd565b995050505050505050505090565b6107ed6117dd565b6107f5611823565b6107fd61187c565b61013154604080518082019091526008815267049504f525f3030360c41b60208201526001600160a01b0390911690816108535760405162461bcd60e51b815260040161084a9190612734565b60405180910390fd5b50604080516001808252818301909252600091602080830190803683370190505090507f000000000000000000000000f650c3d88d12db855b8bf7d11be6c55a4e07dcc9816000815181106108aa576108aa612767565b6001600160a01b03928316602091820292909201015260405162e1ed9760e51b81527f0000000000000000000000003d9819210a31b4961b30ef54be2aed79b9c9cd3b90911690631c3db2e090610907903090859060040161277d565b600060405180830381600087803b15801561092157600080fd5b505af1158015610935573d6000803e3d6000fd5b50506040516370a0823160e01b8152306004820152600092507f000000000000000000000000c00e94cb662c3520282e6f5717214004a7f268886001600160a01b031691506370a0823190602401602060405180830381865afa1580156109a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c491906126a4565b90506109fa6001600160a01b037f000000000000000000000000c00e94cb662c3520282e6f5717214004a7f268881684836118d6565b826001600160a01b031682600081518110610a1757610a17612767565b60200260200101516001600160a01b0316336001600160a01b03167fd6e7c12127e6e6ff4ddf62f42bcc614dcaabdff3322b838b26aeb662404fbb7784604051610a6391815260200190565b60405180910390a4505050610a786001606555565b565b6000610a846117dd565b60408051808201909152600881526749504f525f35303160c01b6020820152336001600160a01b037f0000000000000000000000008e679c1d67af0cd4b314896856f09ece9e64d6b51614610aec5760405162461bcd60e51b815260040161084a9190612734565b506000610b19837f000000000000000000000000000000000000000000000000000000000000000661193e565b90507f000000000000000000000000f650c3d88d12db855b8bf7d11be6c55a4e07dcc960006001600160a01b03821663db006a75610bc9610b6286670de0b6b3a76400006126d3565b856001600160a01b031663182df0f56040518163ffffffff1660e01b8152600401602060405180830381865afa158015610ba0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc491906126a4565b6117bb565b6040518263ffffffff1660e01b8152600401610be791815260200190565b6020604051808303816000875af1158015610c06573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c2a91906126a4565b60408051808201909152600881526724a827a92f9a981b60c11b60208201529091508115610c6b5760405162461bcd60e51b815260040161084a9190612734565b506040516370a0823160e01b81523060048201526000907f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec76001600160a01b0316906370a0823190602401602060405180830381865afa158015610cd3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cf791906126a4565b9050610d2d6001600160a01b037f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec71633836118d6565b610d57817f000000000000000000000000000000000000000000000000000000000000000661199e565b9695505050505050565b6001600160a01b037f000000000000000000000000bb838373c5168184abf60c2547cec94411a2a5da163003610da95760405162461bcd60e51b815260040161084a906127d9565b7f000000000000000000000000bb838373c5168184abf60c2547cec94411a2a5da6001600160a01b0316610ddb611302565b6001600160a01b031614610e015760405162461bcd60e51b815260040161084a90612825565b610e0a816119ea565b60408051600080825260208201909252610e26918391906119f2565b50565b610e3161187c565b610a78611b5d565b6000610e4482611baf565b92915050565b6001600160a01b037f000000000000000000000000bb838373c5168184abf60c2547cec94411a2a5da163003610e925760405162461bcd60e51b815260040161084a906127d9565b7f000000000000000000000000bb838373c5168184abf60c2547cec94411a2a5da6001600160a01b0316610ec4611302565b6001600160a01b031614610eea5760405162461bcd60e51b815260040161084a90612825565b610ef3826119ea565b610eff828260016119f2565b5050565b6000306001600160a01b037f000000000000000000000000bb838373c5168184abf60c2547cec94411a2a5da1614610fa35760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c0000000000000000606482015260840161084a565b50600080516020612a9583398151915290565b610fbe61187c565b610fc86000611bdd565b61012d80546001600160a01b0319169055565b6040516370a0823160e01b81523060048201526000907f000000000000000000000000f650c3d88d12db855b8bf7d11be6c55a4e07dcc990611165906001600160a01b038316906370a0823190602401602060405180830381865afa158015611048573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061106c91906126a4565b826001600160a01b031663182df0f56040518163ffffffff1660e01b8152600401602060405180830381865afa1580156110aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ce91906126a4565b6110d891906126d3565b7f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec76001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015611136573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061115a9190612871565b610bc490600a612978565b91505090565b600054610100900460ff161580801561118b5750600054600160ff909116105b806111a55750303b1580156111a5575060005460ff166001145b6112085760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161084a565b6000805460ff19166001179055801561122b576000805461ff0019166101001790555b611233611823565b61123b611c2f565b611243611c5e565b61124b611c8d565b61013280546001600160a01b031916331790556112686001606555565b8015610e26576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498906020015b60405180910390a150565b6112ba33611baf565b6040518060400160405280600881526020016749504f525f30313160c01b815250906112f95760405162461bcd60e51b815260040161084a9190612734565b50610a78611cb4565b600080516020612a95833981519152546001600160a01b031690565b61132661187c565b610eff8282611cf1565b600061133a6117dd565b60408051808201909152600881526749504f525f35303160c01b6020820152336001600160a01b037f0000000000000000000000008e679c1d67af0cd4b314896856f09ece9e64d6b516146113a25760405162461bcd60e51b815260040161084a9190612734565b5060006113cf837f0000000000000000000000000000000000000000000000000000000000000006611dba565b90506114256001600160a01b037f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7167f000000000000000000000000f650c3d88d12db855b8bf7d11be6c55a4e07dcc983611dee565b61145a6001600160a01b037f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec716333084611e83565b60405163140e25ad60e31b8152600481018290527f000000000000000000000000f650c3d88d12db855b8bf7d11be6c55a4e07dcc96001600160a01b03169063a0712d68906024016020604051808303816000875af11580156114c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114e591906126a4565b50611510817f000000000000000000000000000000000000000000000000000000000000000661199e565b9392505050565b61151f61187c565b610eff8282611ebb565b61012d5460408051808201909152600881526749504f525f30303760c01b6020820152906001600160a01b031633146115755760405162461bcd60e51b815260040161084a9190612734565b5061012d80546001600160a01b0319169055610a7833611bdd565b6115986117dd565b6101325460408051808201909152600881526749504f525f35303560c01b6020820152906001600160a01b031633146115e45760405162461bcd60e51b815260040161084a9190612734565b5060408051808201909152600881526724a827a92f9a981960c11b60208201526001600160a01b03821661162b5760405162461bcd60e51b815260040161084a9190612734565b5061013180546001600160a01b0319166001600160a01b0383169081179091556040519081527fc714d22a2f08b695f81e7c707058db484aa5b4d6b4c9fd64beb10fe85832f608906020016112a6565b61168361187c565b604080518082019091526008815267049504f525f3030360c41b60208201526001600160a01b0382166116c95760405162461bcd60e51b815260040161084a9190612734565b5061012d80546001600160a01b0319166001600160a01b0383169081179091556040517f3ec7bb1d452f3c36260fa8ef678a597fd97574d8ec42f6dc98ffce3dbc91228f90600090a250565b61171d6117dd565b61172561187c565b604080518082019091526008815267049504f525f3030360c41b60208201526001600160a01b03821661176b5760405162461bcd60e51b815260040161084a9190612734565b5061013280546001600160a01b0319166001600160a01b0383169081179091556040519081527f4941fd14d7d71e07c8188109bda8b540dc503964eb05e01062d3dcd8ef4991d4906020016112a6565b6000816117c9600282612987565b6117d390856126ea565b6115109190612987565b60335460ff1615610a785760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161084a565b6002606554036118755760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161084a565b6002606555565b60fb546001600160a01b03163314610a785760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161084a565b6040516001600160a01b03831660248201526044810182905261193990849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611f84565b505050565b60008160120361194f575081610e44565b601282111561197f576119636012836126fd565b61196e90600a6129a9565b61197890846126d3565b9050610e44565b6119788361198e8460126126fd565b61199990600a6129a9565b612059565b600082156119e357816012036119b5575081610e44565b60128211156119d857611978836119cd6012856126fd565b610bc490600a6129a9565b6119638260126126fd565b5081610e44565b610e2661187c565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615611a255761193983612065565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611a7f575060408051601f3d908101601f19168201909252611a7c918101906126a4565b60015b611ae25760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b606482015260840161084a565b600080516020612a958339815191528114611b515760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b606482015260840161084a565b50611939838383612101565b611b65612126565b6033805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600080611bba61216f565b6001600160a01b0390931660009081526020939093525050604090205460ff1690565b60fb80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff16611c565760405162461bcd60e51b815260040161084a906129b5565b610a7861217c565b600054610100900460ff16611c855760405162461bcd60e51b815260040161084a906129b5565b610a786121af565b600054610100900460ff16610a785760405162461bcd60e51b815260040161084a906129b5565b611cbc6117dd565b6033805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611b923390565b806000819003611d0057505050565b6000611d0a61216f565b905060005b82811015611d73576000826000878785818110611d2e57611d2e612767565b9050602002016020810190611d43919061253c565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055600101611d0f565b508383604051611d84929190612a00565b604051908190038120907fe36d877f5755caee7e117ab1005d1acd030211e8a7ad495316fcaf980d0d054c90600090a250505050565b600081601203611dcb575081610e44565b6012821115611ddf576119636012836126fd565b611978836119cd8460126126fd565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611e3f84826121df565b611e7d576040516001600160a01b038416602482015260006044820152611e7390859063095ea7b360e01b90606401611902565b611e7d8482611f84565b50505050565b6040516001600160a01b0380851660248301528316604482015260648101829052611e7d9085906323b872dd60e01b90608401611902565b806000819003611eca57505050565b6000611ed461216f565b905060005b82811015611f3d576001826000878785818110611ef857611ef8612767565b9050602002016020810190611f0d919061253c565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055600101611ed9565b508383604051611f4e929190612a00565b604051908190038120907f7802196382882a6ea8cc8c8a1d5f53efe52da8a8d8a0e6f6ce86662996f181df90600090a250505050565b6000611fd9826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166122869092919063ffffffff16565b9050805160001480611ffa575080806020019051810190611ffa9190612a40565b6119395760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161084a565b60006115108284612987565b6001600160a01b0381163b6120d25760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b606482015260840161084a565b600080516020612a9583398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b61210a8361229d565b6000825111806121175750805b1561193957611e7d83836122dd565b60335460ff16610a785760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161084a565b600080610e446003612302565b600054610100900460ff166121a35760405162461bcd60e51b815260040161084a906129b5565b6033805460ff19169055565b600054610100900460ff166121d65760405162461bcd60e51b815260040161084a906129b5565b610a7833611bdd565b6000806000846001600160a01b0316846040516121fc9190612a62565b6000604051808303816000865af19150503d8060008114612239576040519150601f19603f3d011682016040523d82523d6000602084013e61223e565b606091505b50915091508180156122685750805115806122685750808060200190518101906122689190612a40565b801561227d57506001600160a01b0385163b15155b95945050505050565b60606122958484600085612324565b949350505050565b6122a681612065565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606115108383604051806060016040528060278152602001612ab5602791396123ff565b6000620f424082600881111561231a5761231a612a7e565b610e4491906126ea565b6060824710156123855760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161084a565b600080866001600160a01b031685876040516123a19190612a62565b60006040518083038185875af1925050503d80600081146123de576040519150601f19603f3d011682016040523d82523d6000602084013e6123e3565b606091505b50915091506123f487838387612469565b979650505050505050565b6060600080856001600160a01b03168560405161241c9190612a62565b600060405180830381855af49150503d8060008114612457576040519150601f19603f3d011682016040523d82523d6000602084013e61245c565b606091505b5091509150610d57868383875b606083156124d85782516000036124d1576001600160a01b0385163b6124d15760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161084a565b5081612295565b61229583838151156124ed5781518083602001fd5b8060405162461bcd60e51b815260040161084a9190612734565b60006020828403121561251957600080fd5b5035919050565b80356001600160a01b038116811461253757600080fd5b919050565b60006020828403121561254e57600080fd5b61151082612520565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561258057600080fd5b61258983612520565b9150602083013567ffffffffffffffff808211156125a657600080fd5b818501915085601f8301126125ba57600080fd5b8135818111156125cc576125cc612557565b604051601f8201601f19908116603f011681019083821181831017156125f4576125f4612557565b8160405282815288602084870101111561260d57600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6000806020838503121561264257600080fd5b823567ffffffffffffffff8082111561265a57600080fd5b818501915085601f83011261266e57600080fd5b81358181111561267d57600080fd5b8660208260051b850101111561269257600080fd5b60209290920196919550909350505050565b6000602082840312156126b657600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610e4457610e446126bd565b80820180821115610e4457610e446126bd565b81810381811115610e4457610e446126bd565b60005b8381101561272b578181015183820152602001612713565b50506000910152565b6020815260008251806020840152612753816040850160208701612710565b601f01601f19169190910160400192915050565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b038381168252604060208084018290528451918401829052600092858201929091906060860190855b818110156127cb5785518516835294830194918301916001016127ad565b509098975050505050505050565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b60006020828403121561288357600080fd5b815160ff8116811461151057600080fd5b600181815b808511156128cf5781600019048211156128b5576128b56126bd565b808516156128c257918102915b93841c9390800290612899565b509250929050565b6000826128e657506001610e44565b816128f357506000610e44565b816001811461290957600281146129135761292f565b6001915050610e44565b60ff841115612924576129246126bd565b50506001821b610e44565b5060208310610133831016604e8410600b8410161715612952575081810a610e44565b61295c8383612894565b8060001904821115612970576129706126bd565b029392505050565b600061151060ff8416836128d7565b6000826129a457634e487b7160e01b600052601260045260246000fd5b500490565b600061151083836128d7565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60008184825b85811015612a35576001600160a01b03612a1f83612520565b1683526020928301929190910190600101612a06565b509095945050505050565b600060208284031215612a5257600080fd5b8151801515811461151057600080fd5b60008251612a74818460208701612710565b9190910192915050565b634e487b7160e01b600052602160045260246000fdfe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212202dad5e44978a0e3ab15aac0f9336156ce34c760fe71351585530c0c0842f493e64736f6c63430008140033

Deployed Bytecode Sourcemap

92046:6665:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;92217:51;;;;;;;;;;;;92263:5;92217:51;;;;;160:25:1;;;148:2;133:18;92217:51:0;;;;;;;;77496:40;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;360:32:1;;;342:51;;330:2;315:18;77496:40:0;196:203:1;94020:983:0;;;;;;;;;;;;;:::i;98167:541::-;;;;;;;;;;;;;:::i;:::-;;97135:948;;;;;;;;;;-1:-1:-1;97135:948:0;;;;;:::i;:::-;;:::i;56282:198::-;;;;;;;;;;-1:-1:-1;56282:198:0;;;;;:::i;:::-;;:::i;77372:30::-;;;;;;;;;;;;;;;79904:90;;;;;;;;;;-1:-1:-1;79977:9:0;;-1:-1:-1;;;;;79977:9:0;79904:90;;80364:76;;;;;;;;;;;;;:::i;80448:143::-;;;;;;;;;;-1:-1:-1;80448:143:0;;;;;:::i;:::-;;:::i;:::-;;;1123:14:1;;1116:22;1098:41;;1086:2;1071:18;80448:143:0;958:187:1;92277:37:0;;;;;;;;;;;;;;;56811:223;;;;;;:::i;:::-;;:::i;55888:133::-;;;;;;;;;;;;;:::i;69611:86::-;;;;;;;;;;-1:-1:-1;69682:7:0;;;;69611:86;;92321:49;;;;;;;;;;;;;;;92377:44;;;;;;;;;;;;;;;77454:35;;;;;;;;;;;;;;;67562:151;;;;;;;;;;;;;:::i;95793:370::-;;;;;;;;;;;;;:::i;93307:194::-;;;;;;;;;;;;;:::i;80276:80::-;;;;;;;;;;;;;:::i;64436:87::-;;;;;;;;;;-1:-1:-1;64509:6:0;;-1:-1:-1;;;;;64509:6:0;64436:87;;79547:104;;;;;;;;;;-1:-1:-1;79627:16:0;;-1:-1:-1;;;;;79627:16:0;79547:104;;80911:161;;;;;;;;;;;;;:::i;80752:151::-;;;;;;;;;;-1:-1:-1;80752:151:0;;;;;:::i;:::-;;:::i;96390:504::-;;;;;;;;;;-1:-1:-1;96390:504:0;;;;;:::i;:::-;;:::i;77409:38::-;;;;;;;;;;;;;;;80599:145;;;;;;;;;;-1:-1:-1;80599:145:0;;;;;:::i;:::-;;:::i;67366:152::-;;;;;;;;;;;;;:::i;80002:266::-;;;;;;;;;;-1:-1:-1;80002:266:0;;;;;:::i;:::-;;:::i;66970:262::-;;;;;;;;;;-1:-1:-1;66970:262:0;;;;;:::i;:::-;;:::i;79659:237::-;;;;;;;;;;-1:-1:-1;79659:237:0;;;;;:::i;:::-;;:::i;94020:983::-;94070:11;94094:13;94117:10;-1:-1:-1;;;;;94110:37:0;;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;94094:55;-1:-1:-1;94184:18:0;94205:20;94213:12;94094:55;94205:20;:::i;:::-;:27;;94228:4;94205:27;:::i;:::-;94184:48;-1:-1:-1;94245:19:0;94267:74;94184:48;;94285:23;94184:48;;94285:23;:::i;:::-;:36;;;;:::i;:::-;:49;;;;:::i;:::-;94336:4;94267:17;:74::i;:::-;94245:96;-1:-1:-1;94352:19:0;94374:50;94392:25;94245:96;;94392:25;:::i;:::-;94419:4;94374:17;:50::i;:::-;94352:72;-1:-1:-1;94435:20:0;94458:78;94352:72;;94476:25;94352:72;;94476:25;:::i;94458:78::-;94435:101;-1:-1:-1;94547:20:0;94570:52;94588:27;94435:101;;94588:27;:::i;94570:52::-;94547:75;-1:-1:-1;94633:21:0;94657:82;94547:75;;94675:27;94547:75;;94675:27;:::i;94657:82::-;94633:106;-1:-1:-1;94750:21:0;94774:82;94838:11;94823:12;94792:28;94808:12;94633:106;94792:28;:::i;94774:82::-;94750:106;-1:-1:-1;94867:21:0;94891:65;94939:10;94909:27;94925:11;94750:106;94909:27;:::i;:::-;:40;;;;:::i;:::-;94951:4;94891:17;:65::i;:::-;94867:89;-1:-1:-1;94975:20:0;94991:4;94867:89;94975:20;:::i;:::-;94969:26;;94083:920;;;;;;;;;94020:983;:::o;98167:541::-;69216:19;:17;:19::i;:::-;60405:21:::1;:19;:21::i;:::-;64322:13:::2;:11;:13::i;:::-;98269:9:::3;::::0;98330:24:::3;::::0;;;;::::3;::::0;;;::::3;::::0;;-1:-1:-1;;;98330:24:0::3;::::0;::::3;::::0;-1:-1:-1;;;;;98269:9:0;;::::3;::::0;98299:29;98291:64:::3;;;;-1:-1:-1::0;;;98291:64:0::3;;;;;;;;:::i;:::-;;;;;;;;;-1:-1:-1::0;98394:16:0::3;::::0;;98408:1:::3;98394:16:::0;;;;;::::3;::::0;;;98368:23:::3;::::0;98394:16:::3;::::0;;::::3;::::0;;::::3;::::0;::::3;;::::0;-1:-1:-1;98394:16:0::3;98368:42;;98433:10;98421:6;98428:1;98421:9;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;98421:22:0;;::::3;:9;::::0;;::::3;::::0;;;;;:22;98456:44:::3;::::0;-1:-1:-1;;;98456:44:0;;:11:::3;:21:::0;;::::3;::::0;::::3;::::0;:44:::3;::::0;98486:4:::3;::::0;98493:6;;98456:44:::3;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;-1:-1:-1::0;;98531:34:0::3;::::0;-1:-1:-1;;;98531:34:0;;98559:4:::3;98531:34;::::0;::::3;342:51:1::0;98513:15:0::3;::::0;-1:-1:-1;98531:9:0::3;-1:-1:-1::0;;;;;98531:19:0::3;::::0;-1:-1:-1;98531:19:0::3;::::0;315:18:1;;98531:34:0::3;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;98513:52:::0;-1:-1:-1;98578:48:0::3;-1:-1:-1::0;;;;;98578:9:0::3;:22;98601:15:::0;98513:52;98578:22:::3;:48::i;:::-;98675:15;-1:-1:-1::0;;;;;98644:56:0::3;98664:6;98671:1;98664:9;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;98644:56:0::3;98652:10;-1:-1:-1::0;;;;;98644:56:0::3;;98692:7;98644:56;;;;160:25:1::0;;148:2;133:18;;14:177;98644:56:0::3;;;;;;;;98232:476;;;60449:20:::1;59666:1:::0;60969:7;:22;60786:213;60449:20:::1;98167:541::o:0;97135:948::-;97249:23;69216:19;:17;:19::i;:::-;78701:49:::1;::::0;;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;78701:49:0::1;::::0;::::1;::::0;78670:10:::1;-1:-1:-1::0;;;;;78684:15:0::1;78670:29;;78662:89;;;;-1:-1:-1::0;;;78662:89:0::1;;;;;;;;:::i;:::-;;97285:14:::2;97302:72;97349:9;97360:13;97302:46;:72::i;:::-;97285:89:::0;-1:-1:-1;97422:10:0::2;97387:25;-1:-1:-1::0;;;;;97523:25:0;::::2;;97563:73;97581:13;97285:89:::0;97590:4:::2;97581:13;:::i;:::-;97596:18;-1:-1:-1::0;;;;;97596:37:0::2;;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;97563:17;:73::i;:::-;97523:124;;;;;;;;;;;;;160:25:1::0;;148:2;133:18;;14:177;97523:124:0::2;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;97687:47;::::0;;;;::::2;::::0;;;::::2;::::0;;-1:-1:-1;;;97687:47:0::2;::::0;::::2;::::0;97500:147;;-1:-1:-1;97668:17:0;;97660:75:::2;;;;-1:-1:-1::0;;;97660:75:0::2;;;;;;;;:::i;:::-;-1:-1:-1::0;97782:49:0::2;::::0;-1:-1:-1;;;97782:49:0;;97825:4:::2;97782:49;::::0;::::2;342:51:1::0;97748:31:0::2;::::0;97800:5:::2;-1:-1:-1::0;;;;;97782:34:0::2;::::0;::::2;::::0;315:18:1;;97782:49:0::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;97748:83:::0;-1:-1:-1;97909:74:0::2;-1:-1:-1::0;;;;;97927:5:0::2;97909:37;97947:10;97748:83:::0;97909:37:::2;:74::i;:::-;98014:61;98036:23;98061:13;98014:21;:61::i;:::-;97996:79:::0;97135:948;-1:-1:-1;;;;;;97135:948:0:o;56282:198::-;-1:-1:-1;;;;;54758:6:0;54741:23;54749:4;54741:23;54733:80;;;;-1:-1:-1;;;54733:80:0;;;;;;;:::i;:::-;54856:6;-1:-1:-1;;;;;54832:30:0;:20;:18;:20::i;:::-;-1:-1:-1;;;;;54832:30:0;;54824:87;;;;-1:-1:-1;;;54824:87:0;;;;;;;:::i;:::-;56364:36:::1;56382:17;56364;:36::i;:::-;56452:12;::::0;;56462:1:::1;56452:12:::0;;;::::1;::::0;::::1;::::0;;;56411:61:::1;::::0;56433:17;;56452:12;56411:21:::1;:61::i;:::-;56282:198:::0;:::o;80364:76::-;64322:13;:11;:13::i;:::-;80422:10:::1;:8;:10::i;80448:143::-:0;80522:4;80546:37;80575:7;80546:28;:37::i;:::-;80539:44;80448:143;-1:-1:-1;;80448:143:0:o;56811:223::-;-1:-1:-1;;;;;54758:6:0;54741:23;54749:4;54741:23;54733:80;;;;-1:-1:-1;;;54733:80:0;;;;;;;:::i;:::-;54856:6;-1:-1:-1;;;;;54832:30:0;:20;:18;:20::i;:::-;-1:-1:-1;;;;;54832:30:0;;54824:87;;;;-1:-1:-1;;;54824:87:0;;;;;;;:::i;:::-;56927:36:::1;56945:17;56927;:36::i;:::-;56974:52;56996:17;57015:4;57021;56974:21;:52::i;:::-;56811:223:::0;;:::o;55888:133::-;55966:7;55194:4;-1:-1:-1;;;;;55203:6:0;55186:23;;55178:92;;;;-1:-1:-1;;;55178:92:0;;6891:2:1;55178:92:0;;;6873:21:1;6930:2;6910:18;;;6903:30;6969:34;6949:18;;;6942:62;7040:26;7020:18;;;7013:54;7084:19;;55178:92:0;6689:420:1;55178:92:0;-1:-1:-1;;;;;;;;;;;;55888:133:0;:::o;67562:151::-;64322:13;:11;:13::i;:::-;67636:30:::1;67663:1;67636:18;:30::i;:::-;67677:15;:28:::0;;-1:-1:-1;;;;;;67677:28:0::1;::::0;;67562:151::o;95793:370::-;96026:43;;-1:-1:-1;;;96026:43:0;;96063:4;96026:43;;;342:51:1;95846:7:0;;95901:10;;95947:197;;-1:-1:-1;;;;;96026:28:0;;;;;315:18:1;;96026:43:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;95984:18;-1:-1:-1;;;;;95984:37:0;;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:85;;;;:::i;:::-;96111:5;-1:-1:-1;;;;;96096:30:0;;:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;96090:38;;:2;:38;:::i;95947:197::-;95925:230;;;95793:370;:::o;93307:194::-;42727:19;42750:13;;;;;;42749:14;;42797:34;;;;-1:-1:-1;42815:12:0;;42830:1;42815:12;;;;:16;42797:34;42796:108;;;-1:-1:-1;42876:4:0;31499:19;:23;;;42837:66;;-1:-1:-1;42886:12:0;;;;;:17;42837:66;42774:204;;;;-1:-1:-1;;;42774:204:0;;8977:2:1;42774:204:0;;;8959:21:1;9016:2;8996:18;;;8989:30;9055:34;9035:18;;;9028:62;-1:-1:-1;;;9106:18:1;;;9099:44;9160:19;;42774:204:0;8775:410:1;42774:204:0;42989:12;:16;;-1:-1:-1;;42989:16:0;43004:1;42989:16;;;43016:67;;;;43051:13;:20;;-1:-1:-1;;43051:20:0;;;;;43016:67;60405:21:::1;:19;:21::i;:::-;93372:17:::2;:15;:17::i;:::-;93400:16;:14;:16::i;:::-;93427:24;:22;:24::i;:::-;93464:16;:29:::0;;-1:-1:-1;;;;;;93464:29:0::2;93483:10;93464:29;::::0;;60449:20:::1;59666:1:::0;60969:7;:22;60786:213;60449:20:::1;43109:14:::0;43105:102;;;43156:5;43140:21;;-1:-1:-1;;43140:21:0;;;43181:14;;-1:-1:-1;9342:36:1;;43181:14:0;;9330:2:1;9315:18;43181:14:0;;;;;;;;42716:498;93307:194::o;80276:80::-;78827:40;78856:10;78827:28;:40::i;:::-;78869:30;;;;;;;;;;;;;-1:-1:-1;;;78869:30:0;;;78819:81;;;;;-1:-1:-1;;;78819:81:0;;;;;;;;:::i;:::-;;80340:8:::1;:6;:8::i;80911:161::-:0;-1:-1:-1;;;;;;;;;;;80999:65:0;-1:-1:-1;;;;;80999:65:0;;80911:161::o;80752:151::-;64322:13;:11;:13::i;:::-;80851:44:::1;80885:9;;80851:33;:44::i;96390:504::-:0;96503:23;69216:19;:17;:19::i;:::-;78701:49:::1;::::0;;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;78701:49:0::1;::::0;::::1;::::0;78670:10:::1;-1:-1:-1::0;;;;;78684:15:0::1;78670:29;;78662:89;;;;-1:-1:-1::0;;;78662:89:0::1;;;;;;;;:::i;:::-;;96539:14:::2;96556:60;96591:9;96602:13;96556:34;:60::i;:::-;96539:77:::0;-1:-1:-1;96627:57:0::2;-1:-1:-1::0;;;;;96645:5:0::2;96627:37;96665:10;96539:77:::0;96627:37:::2;:57::i;:::-;96695:76;-1:-1:-1::0;;;;;96713:5:0::2;96695:41;96737:10;96757:4;96764:6:::0;96695:41:::2;:76::i;:::-;96782:31;::::0;-1:-1:-1;;;96782:31:0;;::::2;::::0;::::2;160:25:1::0;;;96789:10:0::2;-1:-1:-1::0;;;;;96782:23:0::2;::::0;::::2;::::0;133:18:1;;96782:31:0::2;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;96842:44;96864:6;96872:13;96842:21;:44::i;:::-;96824:62:::0;96390:504;-1:-1:-1;;;96390:504:0:o;80599:145::-;64322:13;:11;:13::i;:::-;80695:41:::1;80726:9;;80695:30;:41::i;67366:152::-:0;66760:15;;66791:37;;;;;;;;;;;;-1:-1:-1;;;66791:37:0;;;;;-1:-1:-1;;;;;66760:15:0;66779:10;66760:29;66752:77;;;;-1:-1:-1;;;66752:77:0;;;;;;;;:::i;:::-;-1:-1:-1;67441:15:0::1;:28:::0;;-1:-1:-1;;;;;;67441:28:0::1;::::0;;67480:30:::1;67499:10;67480:18;:30::i;80002:266::-:0;69216:19;:17;:19::i;:::-;78992:16:::1;::::0;79010:49:::1;::::0;;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;79010:49:0::1;::::0;::::1;::::0;;-1:-1:-1;;;;;78992:16:0::1;78978:10;:30;78970:90;;;;-1:-1:-1::0;;;78970:90:0::1;;;;;;;;:::i;:::-;-1:-1:-1::0;80133:48:0::2;::::0;;;;::::2;::::0;;;::::2;::::0;;-1:-1:-1;;;80133:48:0::2;::::0;::::2;::::0;-1:-1:-1;;;;;80106:25:0;::::2;80098:84;;;;-1:-1:-1::0;;;80098:84:0::2;;;;;;;;:::i;:::-;-1:-1:-1::0;80193:9:0::2;:23:::0;;-1:-1:-1;;;;;;80193:23:0::2;-1:-1:-1::0;;;;;80193:23:0;::::2;::::0;;::::2;::::0;;;80232:28:::2;::::0;342:51:1;;;80232:28:0::2;::::0;330:2:1;315:18;80232:28:0::2;196:203:1::0;66970:262:0;64322:13;:11;:13::i;:::-;67096:24:::1;::::0;;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;67096:24:0::1;::::0;::::1;::::0;-1:-1:-1;;;;;67066:28:0;::::1;67058:63;;;;-1:-1:-1::0;;;67058:63:0::1;;;;;;;;:::i;:::-;-1:-1:-1::0;67132:15:0::1;:32:::0;;-1:-1:-1;;;;;;67132:32:0::1;-1:-1:-1::0;;;;;67132:32:0;::::1;::::0;;::::1;::::0;;;67180:44:::1;::::0;::::1;::::0;-1:-1:-1;;67180:44:0::1;66970:262:::0;:::o;79659:237::-;69216:19;:17;:19::i;:::-;64322:13:::1;:11;:13::i;:::-;79779:24:::2;::::0;;;;::::2;::::0;;;::::2;::::0;;-1:-1:-1;;;79779:24:0::2;::::0;::::2;::::0;-1:-1:-1;;;;;79756:21:0;::::2;79748:56;;;;-1:-1:-1::0;;;79748:56:0::2;;;;;;;;:::i;:::-;-1:-1:-1::0;79815:16:0::2;:26:::0;;-1:-1:-1;;;;;;79815:26:0::2;-1:-1:-1::0;;;;;79815:26:0;::::2;::::0;;::::2;::::0;;;79857:31:::2;::::0;342:51:1;;;79857:31:0::2;::::0;330:2:1;315:18;79857:31:0::2;196:203:1::0;18257:114:0;18320:9;18362:1;18352:5;18356:1;18362;18352:5;:::i;:::-;18347:11;;:1;:11;:::i;:::-;18346:17;;;;:::i;69770:108::-;69682:7;;;;69840:9;69832:38;;;;-1:-1:-1;;;69832:38:0;;9813:2:1;69832:38:0;;;9795:21:1;9852:2;9832:18;;;9825:30;-1:-1:-1;;;9871:18:1;;;9864:46;9927:18;;69832:38:0;9611:340:1;60485:293:0;59710:1;60619:7;;:19;60611:63;;;;-1:-1:-1;;;60611:63:0;;10158:2:1;60611:63:0;;;10140:21:1;10197:2;10177:18;;;10170:30;10236:33;10216:18;;;10209:61;10287:18;;60611:63:0;9956:355:1;60611:63:0;59710:1;60752:7;:18;60485:293::o;64601:132::-;64509:6;;-1:-1:-1;;;;;64509:6:0;62554:10;64665:23;64657:68;;;;-1:-1:-1;;;64657:68:0;;10518:2:1;64657:68:0;;;10500:21:1;;;10537:18;;;10530:30;10596:34;10576:18;;;10569:62;10648:18;;64657:68:0;10316:356:1;82139:188:0;82260:58;;-1:-1:-1;;;;;10869:32:1;;82260:58:0;;;10851:51:1;10918:18;;;10911:34;;;82233:86:0;;82253:5;;-1:-1:-1;;;82283:23:0;10824:18:1;;82260:58:0;;;;-1:-1:-1;;82260:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;82260:58:0;-1:-1:-1;;;;;;82260:58:0;;;;;;;;;;82233:19;:86::i;:::-;82139:188;;;:::o;19954:417::-;20087:7;20111:13;20128:2;20111:19;20107:257;;-1:-1:-1;20154:5:0;20147:12;;20107:257;20197:2;20181:13;:18;20177:187;;;20238:18;20254:2;20238:13;:18;:::i;:::-;20231:26;;:2;:26;:::i;:::-;20223:34;;:5;:34;:::i;:::-;20216:41;;;;20177:187;20297:55;20318:5;20332:18;20337:13;20332:2;:18;:::i;:::-;20325:26;;:2;:26;:::i;:::-;20297:20;:55::i;20379:465::-;20462:7;20486:9;;20482:355;;20516:13;20533:2;20516:19;20512:269;;-1:-1:-1;20563:5:0;20556:12;;20512:269;20610:2;20594:13;:18;20590:191;;;20640:43;20649:5;20663:18;20679:2;20663:13;:18;:::i;:::-;20656:26;;:2;:26;:::i;20590:191::-;20746:18;20751:13;20746:2;:18;:::i;20482:355::-;-1:-1:-1;20820:5:0;20813:12;;81119:66;64322:13;:11;:13::i;48852:958::-;46952:66;49272:59;;;49268:535;;;49348:37;49367:17;49348:18;:37::i;49268:535::-;49451:17;-1:-1:-1;;;;;49422:61:0;;:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;49422:63:0;;;;;;;;-1:-1:-1;;49422:63:0;;;;;;;;;;;;:::i;:::-;;;49418:306;;49652:56;;-1:-1:-1;;;49652:56:0;;11483:2:1;49652:56:0;;;11465:21:1;11522:2;11502:18;;;11495:30;11561:34;11541:18;;;11534:62;-1:-1:-1;;;11612:18:1;;;11605:44;11666:19;;49652:56:0;11281:410:1;49418:306:0;-1:-1:-1;;;;;;;;;;;49536:28:0;;49528:82;;;;-1:-1:-1;;;49528:82:0;;11898:2:1;49528:82:0;;;11880:21:1;11937:2;11917:18;;;11910:30;11976:34;11956:18;;;11949:62;-1:-1:-1;;;12027:18:1;;;12020:39;12076:19;;49528:82:0;11696:405:1;49528:82:0;49486:140;49738:53;49756:17;49775:4;49781:9;49738:17;:53::i;70466:120::-;69475:16;:14;:16::i;:::-;70525:7:::1;:15:::0;;-1:-1:-1;;70525:15:0::1;::::0;;70556:22:::1;62554:10:::0;70565:12:::1;70556:22;::::0;-1:-1:-1;;;;;360:32:1;;;342:51;;330:2;315:18;70556:22:0::1;;;;;;;70466:120::o:0;6630:217::-;6695:4;6712:47;6762:36;:34;:36::i;:::-;-1:-1:-1;;;;;6816:23:0;;;;;;;;;;;;-1:-1:-1;;6816:23:0;;;;;;;6630:217::o;65696:191::-;65789:6;;;-1:-1:-1;;;;;65806:17:0;;;-1:-1:-1;;;;;;65806:17:0;;;;;;;65839:40;;65789:6;;;65806:17;65789:6;;65839:40;;65770:16;;65839:40;65759:128;65696:191;:::o;68781:99::-;44870:13;;;;;;;44862:69;;;;-1:-1:-1;;;44862:69:0;;;;;;;:::i;:::-;68845:27:::1;:25;:27::i;63979:97::-:0;44870:13;;;;;;;44862:69;;;;-1:-1:-1;;;44862:69:0;;;;;;;:::i;:::-;64042:26:::1;:24;:26::i;53886:68::-:0;44870:13;;;;;;;44862:69;;;;-1:-1:-1;;;44862:69:0;;;;;;;:::i;70207:118::-;69216:19;:17;:19::i;:::-;70267:7:::1;:14:::0;;-1:-1:-1;;70267:14:0::1;70277:4;70267:14;::::0;;70297:20:::1;70304:12;62554:10:::0;;62474:98;7584:497;7681:9;7664:14;7714:11;;;7710:50;;7742:7;7584:497;;:::o;7710:50::-;7772:47;7822:36;:34;:36::i;:::-;7772:86;;7876:9;7871:155;7891:6;7887:1;:10;7871:155;;;7947:5;7916:14;:28;7931:9;;7941:1;7931:12;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;7916:28:0;;;;;;;;;;;;-1:-1:-1;7916:28:0;:36;;-1:-1:-1;;7916:36:0;;;;;;;;;;-1:-1:-1;7996:3:0;7871:155;;;;8063:9;;8041:32;;;;;;;:::i;:::-;;;;;;;;;;;;;;;7653:428;;7584:497;;:::o;19578:368::-;19674:7;19698:13;19715:2;19698:19;19694:245;;-1:-1:-1;19741:5:0;19734:12;;19694:245;19784:2;19768:13;:18;19764:175;;;19825:18;19841:2;19825:13;:18;:::i;19764:175::-;19884:43;19893:5;19907:18;19912:13;19907:2;:18;:::i;85065:428::-;85192:62;;;-1:-1:-1;;;;;10869:32:1;;85192:62:0;;;10851:51:1;10918:18;;;;10911:34;;;85192:62:0;;;;;;;;;;10824:18:1;;;;85192:62:0;;;;;;;;-1:-1:-1;;;;;85192:62:0;-1:-1:-1;;;85192:62:0;;;85272:44;85296:5;85192:62;85272:23;:44::i;:::-;85267:219;;85360:58;;-1:-1:-1;;;;;13272:32:1;;85360:58:0;;;13254:51:1;85416:1:0;13321:18:1;;;13314:45;85333:86:0;;85353:5;;-1:-1:-1;;;85383:22:0;13227:18:1;;85360:58:0;13074:291:1;85333:86:0;85434:40;85454:5;85461:12;85434:19;:40::i;:::-;85153:340;85065:428;;;:::o;82572:216::-;82711:68;;-1:-1:-1;;;;;13628:15:1;;;82711:68:0;;;13610:34:1;13680:15;;13660:18;;;13653:43;13712:18;;;13705:34;;;82684:96:0;;82704:5;;-1:-1:-1;;;82734:27:0;13545:18:1;;82711:68:0;13370:375:1;6965:501:0;7062:12;7045:14;7096:11;;;7092:50;;7124:7;6965:501;;:::o;7092:50::-;7154:47;7204:36;:34;:36::i;:::-;7154:86;;7258:9;7253:157;7273:6;7269:1;:10;7253:157;;;7332:4;7298:14;:31;7313:12;;7326:1;7313:15;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;7298:31:0;;;;;;;;;;;;-1:-1:-1;7298:31:0;:38;;-1:-1:-1;;7298:38:0;;;;;;;;;;-1:-1:-1;7380:3:0;7253:157;;;;7445:12;;7425:33;;;;;;;:::i;:::-;;;;;;;;;;;;;;;7034:432;;6965:501;;:::o;86539:660::-;86974:23;87000:69;87028:4;87000:69;;;;;;;;;;;;;;;;;87008:5;-1:-1:-1;;;;;87000:27:0;;;:69;;;;;:::i;:::-;86974:95;;87088:10;:17;87109:1;87088:22;:56;;;;87125:10;87114:30;;;;;;;;;;;;:::i;:::-;87080:111;;;;-1:-1:-1;;;87080:111:0;;14234:2:1;87080:111:0;;;14216:21:1;14273:2;14253:18;;;14246:30;14312:34;14292:18;;;14285:62;-1:-1:-1;;;14363:18:1;;;14356:40;14413:19;;87080:111:0;14032:406:1;19456:114:0;19531:9;19557:5;19561:1;19557;:5;:::i;47699:284::-;-1:-1:-1;;;;;31499:19:0;;;47773:106;;;;-1:-1:-1;;;47773:106:0;;14645:2:1;47773:106:0;;;14627:21:1;14684:2;14664:18;;;14657:30;14723:34;14703:18;;;14696:62;-1:-1:-1;;;14774:18:1;;;14767:43;14827:19;;47773:106:0;14443:409:1;47773:106:0;-1:-1:-1;;;;;;;;;;;47890:85:0;;-1:-1:-1;;;;;;47890:85:0;-1:-1:-1;;;;;47890:85:0;;;;;;;;;;47699:284::o;48392:281::-;48501:29;48512:17;48501:10;:29::i;:::-;48559:1;48545:4;:11;:15;:28;;;;48564:9;48545:28;48541:125;;;48590:64;48630:17;48649:4;48590:39;:64::i;69955:108::-;69682:7;;;;70014:41;;;;-1:-1:-1;;;70014:41:0;;15059:2:1;70014:41:0;;;15041:21:1;15098:2;15078:18;;;15071:30;-1:-1:-1;;;15117:18:1;;;15110:50;15177:18;;70014:41:0;14857:344:1;4324:235:0;4382:38;4433:12;4448:40;4464:23;4448:15;:40::i;68888:97::-;44870:13;;;;;;;44862:69;;;;-1:-1:-1;;;44862:69:0;;;;;;;:::i;:::-;68962:7:::1;:15:::0;;-1:-1:-1;;68962:15:0::1;::::0;;68888:97::o;64084:113::-;44870:13;;;;;;;44862:69;;;;-1:-1:-1;;;44862:69:0;;;;;;;:::i;:::-;64157:32:::1;62554:10:::0;64157:18:::1;:32::i;87710:624::-:0;87804:4;88111:12;88125:23;88160:5;-1:-1:-1;;;;;88152:19:0;88172:4;88152:25;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;88110:67;;;;88208:7;:69;;;;-1:-1:-1;88220:17:0;;:22;;:56;;;88257:10;88246:30;;;;;;;;;;;;:::i;:::-;88208:118;;;;-1:-1:-1;;;;;;31499:19:0;;;:23;;88281:45;88188:138;87710:624;-1:-1:-1;;;;;87710:624:0:o;33959:229::-;34096:12;34128:52;34150:6;34158:4;34164:1;34167:12;34128:21;:52::i;:::-;34121:59;33959:229;-1:-1:-1;;;;33959:229:0:o;48096:155::-;48163:37;48182:17;48163:18;:37::i;:::-;48216:27;;-1:-1:-1;;;;;48216:27:0;;;;;;;;48096:155;:::o;36596:200::-;36679:12;36711:77;36732:6;36740:4;36711:77;;;;;;;;;;;;;;;;;:20;:77::i;5753:146::-;5821:12;262:9;5861;5853:18;;;;;;;;:::i;:::-;:38;;;;:::i;35045:455::-;35215:12;35273:5;35248:21;:30;;35240:81;;;;-1:-1:-1;;;35240:81:0;;15832:2:1;35240:81:0;;;15814:21:1;15871:2;15851:18;;;15844:30;15910:34;15890:18;;;15883:62;-1:-1:-1;;;15961:18:1;;;15954:36;16007:19;;35240:81:0;15630:402:1;35240:81:0;35333:12;35347:23;35374:6;-1:-1:-1;;;;;35374:11:0;35393:5;35400:4;35374:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35332:73;;;;35423:69;35450:6;35458:7;35467:10;35479:12;35423:26;:69::i;:::-;35416:76;35045:455;-1:-1:-1;;;;;;;35045:455:0:o;36990:332::-;37135:12;37161;37175:23;37202:6;-1:-1:-1;;;;;37202:19:0;37222:4;37202:25;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37160:67;;;;37245:69;37272:6;37280:7;37289:10;37301:12;37618:644;37803:12;37832:7;37828:427;;;37860:10;:17;37881:1;37860:22;37856:290;;-1:-1:-1;;;;;31499:19:0;;;38070:60;;;;-1:-1:-1;;;38070:60:0;;16239:2:1;38070:60:0;;;16221:21:1;16278:2;16258:18;;;16251:30;16317:31;16297:18;;;16290:59;16366:18;;38070:60:0;16037:353:1;38070:60:0;-1:-1:-1;38167:10:0;38160:17;;37828:427;38210:33;38218:10;38230:12;38965:17;;:21;38961:388;;39197:10;39191:17;39254:15;39241:10;39237:2;39233:19;39226:44;38961:388;39324:12;39317:20;;-1:-1:-1;;;39317:20:0;;;;;;;;:::i;404:180:1:-;463:6;516:2;504:9;495:7;491:23;487:32;484:52;;;532:1;529;522:12;484:52;-1:-1:-1;555:23:1;;404:180;-1:-1:-1;404:180:1:o;589:173::-;657:20;;-1:-1:-1;;;;;706:31:1;;696:42;;686:70;;752:1;749;742:12;686:70;589:173;;;:::o;767:186::-;826:6;879:2;867:9;858:7;854:23;850:32;847:52;;;895:1;892;885:12;847:52;918:29;937:9;918:29;:::i;1150:127::-;1211:10;1206:3;1202:20;1199:1;1192:31;1242:4;1239:1;1232:15;1266:4;1263:1;1256:15;1282:995;1359:6;1367;1420:2;1408:9;1399:7;1395:23;1391:32;1388:52;;;1436:1;1433;1426:12;1388:52;1459:29;1478:9;1459:29;:::i;:::-;1449:39;;1539:2;1528:9;1524:18;1511:32;1562:18;1603:2;1595:6;1592:14;1589:34;;;1619:1;1616;1609:12;1589:34;1657:6;1646:9;1642:22;1632:32;;1702:7;1695:4;1691:2;1687:13;1683:27;1673:55;;1724:1;1721;1714:12;1673:55;1760:2;1747:16;1782:2;1778;1775:10;1772:36;;;1788:18;;:::i;:::-;1863:2;1857:9;1831:2;1917:13;;-1:-1:-1;;1913:22:1;;;1937:2;1909:31;1905:40;1893:53;;;1961:18;;;1981:22;;;1958:46;1955:72;;;2007:18;;:::i;:::-;2047:10;2043:2;2036:22;2082:2;2074:6;2067:18;2122:7;2117:2;2112;2108;2104:11;2100:20;2097:33;2094:53;;;2143:1;2140;2133:12;2094:53;2199:2;2194;2190;2186:11;2181:2;2173:6;2169:15;2156:46;2244:1;2239:2;2234;2226:6;2222:15;2218:24;2211:35;2265:6;2255:16;;;;;;;1282:995;;;;;:::o;2934:615::-;3020:6;3028;3081:2;3069:9;3060:7;3056:23;3052:32;3049:52;;;3097:1;3094;3087:12;3049:52;3137:9;3124:23;3166:18;3207:2;3199:6;3196:14;3193:34;;;3223:1;3220;3213:12;3193:34;3261:6;3250:9;3246:22;3236:32;;3306:7;3299:4;3295:2;3291:13;3287:27;3277:55;;3328:1;3325;3318:12;3277:55;3368:2;3355:16;3394:2;3386:6;3383:14;3380:34;;;3410:1;3407;3400:12;3380:34;3463:7;3458:2;3448:6;3445:1;3441:14;3437:2;3433:23;3429:32;3426:45;3423:65;;;3484:1;3481;3474:12;3423:65;3515:2;3507:11;;;;;3537:6;;-1:-1:-1;2934:615:1;;-1:-1:-1;;;;2934:615:1:o;3554:184::-;3624:6;3677:2;3665:9;3656:7;3652:23;3648:32;3645:52;;;3693:1;3690;3683:12;3645:52;-1:-1:-1;3716:16:1;;3554:184;-1:-1:-1;3554:184:1:o;3743:127::-;3804:10;3799:3;3795:20;3792:1;3785:31;3835:4;3832:1;3825:15;3859:4;3856:1;3849:15;3875:168;3948:9;;;3979;;3996:15;;;3990:22;;3976:37;3966:71;;4017:18;;:::i;4048:125::-;4113:9;;;4134:10;;;4131:36;;;4147:18;;:::i;4178:128::-;4245:9;;;4266:11;;;4263:37;;;4280:18;;:::i;4311:250::-;4396:1;4406:113;4420:6;4417:1;4414:13;4406:113;;;4496:11;;;4490:18;4477:11;;;4470:39;4442:2;4435:10;4406:113;;;-1:-1:-1;;4553:1:1;4535:16;;4528:27;4311:250::o;4566:396::-;4715:2;4704:9;4697:21;4678:4;4747:6;4741:13;4790:6;4785:2;4774:9;4770:18;4763:34;4806:79;4878:6;4873:2;4862:9;4858:18;4853:2;4845:6;4841:15;4806:79;:::i;:::-;4946:2;4925:15;-1:-1:-1;;4921:29:1;4906:45;;;;4953:2;4902:54;;4566:396;-1:-1:-1;;4566:396:1:o;4967:127::-;5028:10;5023:3;5019:20;5016:1;5009:31;5059:4;5056:1;5049:15;5083:4;5080:1;5073:15;5099:759;-1:-1:-1;;;;;5385:15:1;;;5367:34;;5317:2;5420;5438:18;;;5431:30;;;5510:13;;5302:18;;;5532:22;;;5269:4;;5611:15;;;;5339:19;;5420:2;5585;5570:18;;;5269:4;5654:178;5668:6;5665:1;5662:13;5654:178;;;5733:13;;5729:22;;5717:35;;5807:15;;;;5772:12;;;;5690:1;5683:9;5654:178;;;-1:-1:-1;5849:3:1;;5099:759;-1:-1:-1;;;;;;;;5099:759:1:o;5863:408::-;6065:2;6047:21;;;6104:2;6084:18;;;6077:30;6143:34;6138:2;6123:18;;6116:62;-1:-1:-1;;;6209:2:1;6194:18;;6187:42;6261:3;6246:19;;5863:408::o;6276:::-;6478:2;6460:21;;;6517:2;6497:18;;;6490:30;6556:34;6551:2;6536:18;;6529:62;-1:-1:-1;;;6622:2:1;6607:18;;6600:42;6674:3;6659:19;;6276:408::o;7114:273::-;7182:6;7235:2;7223:9;7214:7;7210:23;7206:32;7203:52;;;7251:1;7248;7241:12;7203:52;7283:9;7277:16;7333:4;7326:5;7322:16;7315:5;7312:27;7302:55;;7353:1;7350;7343:12;7392:422;7481:1;7524:5;7481:1;7538:270;7559:7;7549:8;7546:21;7538:270;;;7618:4;7614:1;7610:6;7606:17;7600:4;7597:27;7594:53;;;7627:18;;:::i;:::-;7677:7;7667:8;7663:22;7660:55;;;7697:16;;;;7660:55;7776:22;;;;7736:15;;;;7538:270;;;7542:3;7392:422;;;;;:::o;7819:806::-;7868:5;7898:8;7888:80;;-1:-1:-1;7939:1:1;7953:5;;7888:80;7987:4;7977:76;;-1:-1:-1;8024:1:1;8038:5;;7977:76;8069:4;8087:1;8082:59;;;;8155:1;8150:130;;;;8062:218;;8082:59;8112:1;8103:10;;8126:5;;;8150:130;8187:3;8177:8;8174:17;8171:43;;;8194:18;;:::i;:::-;-1:-1:-1;;8250:1:1;8236:16;;8265:5;;8062:218;;8364:2;8354:8;8351:16;8345:3;8339:4;8336:13;8332:36;8326:2;8316:8;8313:16;8308:2;8302:4;8299:12;8295:35;8292:77;8289:159;;;-1:-1:-1;8401:19:1;;;8433:5;;8289:159;8480:34;8505:8;8499:4;8480:34;:::i;:::-;8550:6;8546:1;8542:6;8538:19;8529:7;8526:32;8523:58;;;8561:18;;:::i;:::-;8599:20;;7819:806;-1:-1:-1;;;7819:806:1:o;8630:140::-;8688:5;8717:47;8758:4;8748:8;8744:19;8738:4;8717:47;:::i;9389:217::-;9429:1;9455;9445:132;;9499:10;9494:3;9490:20;9487:1;9480:31;9534:4;9531:1;9524:15;9562:4;9559:1;9552:15;9445:132;-1:-1:-1;9591:9:1;;9389:217::o;10956:131::-;11016:5;11045:36;11072:8;11066:4;11045:36;:::i;12106:407::-;12308:2;12290:21;;;12347:2;12327:18;;;12320:30;12386:34;12381:2;12366:18;;12359:62;-1:-1:-1;;;12452:2:1;12437:18;;12430:41;12503:3;12488:19;;12106:407::o;12518:551::-;12689:3;12720;12767:6;12689:3;12801:241;12815:6;12812:1;12809:13;12801:241;;;-1:-1:-1;;;;;12882:26:1;12901:6;12882:26;:::i;:::-;12878:52;12864:67;;12954:4;12980:14;;;;13017:15;;;;;12837:1;12830:9;12801:241;;;-1:-1:-1;13058:5:1;;12518:551;-1:-1:-1;;;;;12518:551:1:o;13750:277::-;13817:6;13870:2;13858:9;13849:7;13845:23;13841:32;13838:52;;;13886:1;13883;13876:12;13838:52;13918:9;13912:16;13971:5;13964:13;13957:21;13950:5;13947:32;13937:60;;13993:1;13990;13983:12;15206:287;15335:3;15373:6;15367:13;15389:66;15448:6;15443:3;15436:4;15428:6;15424:17;15389:66;:::i;:::-;15471:16;;;;;15206:287;-1:-1:-1;;15206:287:1:o;15498:127::-;15559:10;15554:3;15550:20;15547:1;15540:31;15590:4;15587:1;15580:15;15614:4;15611:1;15604:15

Swarm Source

ipfs://2dad5e44978a0e3ab15aac0f9336156ce34c760fe71351585530c0c0842f493e

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

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