FTM Price: $0.542312 (+7.14%)
Gas: 41 GWei
 

Sponsored

Transaction Hash
Method
Block
From
To
Value
Withdraw805710012024-05-07 19:32:3843 days ago1715110358IN
0xE4a54b6a...6e364dBF9
0 FTM0.0391574172
Withdraw770140172024-03-09 3:24:45102 days ago1709954685IN
0xE4a54b6a...6e364dBF9
0 FTM0.0185931435.66995604
Withdraw765788252024-03-01 4:48:25110 days ago1709268505IN
0xE4a54b6a...6e364dBF9
0 FTM0.05112238101.43894144
Withdraw759455682024-02-19 11:13:21121 days ago1708341201IN
0xE4a54b6a...6e364dBF9
0 FTM0.0259149451.42018133
Approve759379252024-02-19 8:46:25121 days ago1708332385IN
0xE4a54b6a...6e364dBF9
0 FTM0.0014796331.92026612
Withdraw758443332024-02-17 19:30:19123 days ago1708198219IN
0xE4a54b6a...6e364dBF9
0 FTM0.0052741810.11824646
Withdraw All733230892023-12-27 21:56:50174 days ago1703714210IN
0xE4a54b6a...6e364dBF9
0 FTM0.05817386107
Withdraw All731225382023-12-25 2:24:00177 days ago1703471040IN
0xE4a54b6a...6e364dBF9
0 FTM0.018871436.61216214
Withdraw All730799992023-12-24 12:27:39178 days ago1703420859IN
0xE4a54b6a...6e364dBF9
0 FTM0.0184831834
Withdraw All730795212023-12-24 12:15:46178 days ago1703420146IN
0xE4a54b6a...6e364dBF9
0 FTM0.0167441232.48850879
Withdraw All727876182023-12-19 15:44:04183 days ago1703000644IN
0xE4a54b6a...6e364dBF9
0 FTM0.0221241242.92728538
Withdraw All717540042023-12-01 21:27:39200 days ago1701466059IN
0xE4a54b6a...6e364dBF9
0 FTM0.0212265939.04652887
Withdraw696546582023-10-22 22:38:05240 days ago1698014285IN
0xE4a54b6a...6e364dBF9
0 FTM0.0135107320.5
Withdraw687932152023-09-30 2:59:04263 days ago1696042744IN
0xE4a54b6a...6e364dBF9
0 FTM0.0178481634.2444292
Withdraw652392892023-07-06 22:19:37348 days ago1688681977IN
0xE4a54b6a...6e364dBF9
0 FTM3.104726765,612
Withdraw652332842023-07-06 20:38:39349 days ago1688675919IN
0xE4a54b6a...6e364dBF9
0 FTM2.597254484,036.82129469
Withdraw651949842023-07-06 4:11:17349 days ago1688616677IN
0xE4a54b6a...6e364dBF9
0 FTM0.0137161153.81252991
Withdraw638480742023-06-10 1:51:33375 days ago1686361893IN
0xE4a54b6a...6e364dBF9
0 FTM13.2272378820,558.98207574
Withdraw629982532023-05-24 21:12:10391 days ago1684962730IN
0xE4a54b6a...6e364dBF9
0 FTM0.36910763539.71626933
Withdraw629188742023-05-23 18:32:01393 days ago1684866721IN
0xE4a54b6a...6e364dBF9
0 FTM0.285151941,055.03593756
Withdraw621882182023-05-13 11:00:01403 days ago1683975601IN
0xE4a54b6a...6e364dBF9
0 FTM0.0243407390.05847265
Withdraw618598612023-05-09 16:32:37407 days ago1683649957IN
0xE4a54b6a...6e364dBF9
0 FTM0.0361105133.60554162
Withdraw615903442023-05-06 7:19:48410 days ago1683357588IN
0xE4a54b6a...6e364dBF9
0 FTM0.25681172950.21841387
Withdraw611552782023-04-30 17:52:53416 days ago1682877173IN
0xE4a54b6a...6e364dBF9
0 FTM0.12694573201.39087472
Withdraw610767792023-04-29 17:19:59417 days ago1682788799IN
0xE4a54b6a...6e364dBF9
0 FTM0.02942788336
View all transactions

Latest 1 internal transaction

Parent Transaction Hash Block From To Value
520187452022-12-08 2:33:40559 days ago1670466820  Contract Creation0 FTM
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ReaperVaultERC4626

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
File 1 of 23 : ReaperVaultERC4626.sol
// SPDX-License-Identifier: BUSL-1.1

pragma solidity ^0.8.0;

import "./ReaperVaultV2.sol";
import "./interfaces/IERC4626Functions.sol";

// Extension of ReaperVaultV2 that implements all ERC4626 functions.
// ReaperVaultV2 still extends IERC4626Events so it can have access to the Deposit
// and Withdraw events to log within its own internal _deposit() and _withdraw()
// functions.
contract ReaperVaultERC4626 is ReaperVaultV2, IERC4626Functions {
    using SafeERC20 for IERC20Metadata;

    // See comments on ReaperVaultV2's constructor
    constructor(
        address _token,
        string memory _name,
        string memory _symbol,
        uint256 _tvlCap,
        address _treasury,
        address[] memory _strategists,
        address[] memory _multisigRoles
    ) ReaperVaultV2(_token, _name, _symbol, _tvlCap, _treasury, _strategists, _multisigRoles) {}

    // The address of the underlying token used for the Vault for accounting, depositing, and withdrawing.
    // MUST be an ERC-20 token contract.
    // MUST NOT revert.
    function asset() external view override returns (address assetTokenAddress) {
        return address(token);
    }

    // Total amount of the underlying asset that is “managed” by Vault.
    // SHOULD include any compounding that occurs from yield.
    // MUST be inclusive of any fees that are charged against assets in the Vault.
    // MUST NOT revert.
    function totalAssets() external view override returns (uint256 totalManagedAssets) {
        return balance();
    }

    // The amount of shares that the Vault would exchange for the amount of assets provided,
    // in an ideal scenario where all the conditions are met.
    //
    // MUST NOT be inclusive of any fees that are charged against assets in the Vault.
    // MUST NOT show any variations depending on the caller.
    // MUST NOT reflect slippage or other on-chain conditions, when performing the actual exchange.
    // MUST NOT revert unless due to integer overflow caused by an unreasonably large input.
    // MUST round down towards 0.
    // This calculation MAY NOT reflect the “per-user” price-per-share, and instead should reflect
    // the “average-user’s” price-per-share, meaning what the average user should expect to see when exchanging to and from.
    function convertToShares(uint256 assets) public view override returns (uint256 shares) {
        if (totalSupply() == 0 || _freeFunds() == 0) return assets;
        return (assets * totalSupply()) / _freeFunds();
    }

    // The amount of assets that the Vault would exchange for the amount of shares provided,
    // in an ideal scenario where all the conditions are met.
    //
    // MUST NOT be inclusive of any fees that are charged against assets in the Vault.
    // MUST NOT show any variations depending on the caller.
    // MUST NOT reflect slippage or other on-chain conditions, when performing the actual exchange.
    // MUST NOT revert unless due to integer overflow caused by an unreasonably large input.
    // MUST round down towards 0.
    // This calculation MAY NOT reflect the “per-user” price-per-share, and instead should reflect
    // the “average-user’s” price-per-share, meaning what the average user should expect to see when exchanging to and from.
    function convertToAssets(uint256 shares) public view override returns (uint256 assets) {
        if (totalSupply() == 0) return shares;
        return (shares * _freeFunds()) / totalSupply();
    }

    // Maximum amount of the underlying asset that can be deposited into the Vault for the receiver, through a deposit call.
    // MUST return the maximum amount of assets deposit would allow to be deposited for receiver and not cause a revert,
    // which MUST NOT be higher than the actual maximum that would be accepted (it should underestimate if necessary).
    //
    // This assumes that the user has infinite assets, i.e. MUST NOT rely on balanceOf of asset.
    // MUST factor in both global and user-specific limits, like if deposits are entirely disabled (even temporarily) it MUST return 0.
    // MUST return 2 ** 256 - 1 if there is no limit on the maximum amount of assets that may be deposited.
    // MUST NOT revert.
    function maxDeposit(address) external view override returns (uint256 maxAssets) {
        if (emergencyShutdown || balance() >= tvlCap) return 0;
        if (tvlCap == type(uint256).max) return type(uint256).max;
        return tvlCap - balance();
    }

    // Allows an on-chain or off-chain user to simulate the effects of their deposit at the current block, given current on-chain conditions.
    // MUST return as close to and no more than the exact amount of Vault shares that would be minted in a deposit call in the same transaction.
    // I.e. deposit should return the same or more shares as previewDeposit if called in the same transaction.
    //
    // MUST NOT account for deposit limits like those returned from maxDeposit and should always act as though the deposit would be accepted,
    // regardless if the user has enough tokens approved, etc.
    //
    // MUST be inclusive of deposit fees. Integrators should be aware of the existence of deposit fees.
    // MUST NOT revert due to vault specific user/global limits. MAY revert due to other conditions that would also cause deposit to revert.
    // Note that any unfavorable discrepancy between convertToShares and previewDeposit SHOULD be considered slippage in share price
    // or some other type of condition, meaning the depositor will lose assets by depositing.
    function previewDeposit(uint256 assets) external view override returns (uint256 shares) {
        return convertToShares(assets);
    }

    // Mints shares Vault shares to receiver by depositing exactly assets of underlying tokens.
    // MUST emit the Deposit event.
    // MUST support ERC-20 approve / transferFrom on asset as a deposit flow.
    // MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the deposit execution,
    // and are accounted for during deposit.
    //
    // MUST revert if all of assets cannot be deposited (due to deposit limit being reached, slippage,
    // the user not approving enough underlying tokens to the Vault contract, etc).
    //
    // Note that most implementations will require pre-approval of the Vault with the Vault’s underlying asset token.
    function deposit(uint256 assets, address receiver) external override returns (uint256 shares) {
        shares = _deposit(assets, receiver);
    }

    // Maximum amount of shares that can be minted from the Vault for the receiver, through a mint call.
    // MUST return the maximum amount of shares mint would allow to be deposited to receiver and not cause a revert,
    // which MUST NOT be higher than the actual maximum that would be accepted (it should underestimate if necessary).
    // This assumes that the user has infinite assets, i.e. MUST NOT rely on balanceOf of asset.
    //
    // MUST factor in both global and user-specific limits, like if mints are entirely disabled (even temporarily) it MUST return 0.
    // MUST return 2 ** 256 - 1 if there is no limit on the maximum amount of shares that may be minted.
    // MUST NOT revert.
    function maxMint(address) external view override returns (uint256 maxShares) {
        if (emergencyShutdown || balance() >= tvlCap) return 0;
        if (tvlCap == type(uint256).max) return type(uint256).max;
        return convertToShares(tvlCap - balance());
    }

    // Allows an on-chain or off-chain user to simulate the effects of their mint at the current block, given current on-chain conditions.
    // MUST return as close to and no fewer than the exact amount of assets that would be deposited in a mint call
    // in the same transaction. I.e. mint should return the same or fewer assets as previewMint if called in the same transaction.
    //
    // MUST NOT account for mint limits like those returned from maxMint and should always act as though
    // the mint would be accepted, regardless if the user has enough tokens approved, etc.
    //
    // MUST be inclusive of deposit fees. Integrators should be aware of the existence of deposit fees.
    // MUST NOT revert due to vault specific user/global limits. MAY revert due to other conditions that would also cause mint to revert.
    // Note that any unfavorable discrepancy between convertToAssets and previewMint SHOULD be considered
    // slippage in share price or some other type of condition, meaning the depositor will lose assets by minting.
    function previewMint(uint256 shares) public view override returns (uint256 assets) {
        if (totalSupply() == 0) return shares;
        assets = roundUpDiv(shares * _freeFunds(), totalSupply());
    }

    // Mints exactly shares Vault shares to receiver by depositing assets of underlying tokens.
    // MUST emit the Deposit event.
    // MUST support ERC-20 approve / transferFrom on asset as a mint flow. MAY support an additional
    // flow in which the underlying tokens are owned by the Vault contract before the mint execution,
    // and are accounted for during mint.
    //
    // MUST revert if all of shares cannot be minted (due to deposit limit being reached, slippage,
    // the user not approving enough underlying tokens to the Vault contract, etc).
    //
    // Note that most implementations will require pre-approval of the Vault with the Vault’s underlying asset token.
    function mint(uint256 shares, address receiver) external override returns (uint256 assets) {
        assets = previewMint(shares); // previewMint rounds up so exactly "shares" should be minted and not 1 wei less
        _deposit(assets, receiver);
    }

    // Maximum amount of the underlying asset that can be withdrawn from the owner balance in the Vault, through a withdraw call.
    // MUST return the maximum amount of assets that could be transferred from owner through withdraw and not cause a revert,
    // which MUST NOT be higher than the actual maximum that would be accepted (it should underestimate if necessary).
    //
    // MUST factor in both global and user-specific limits, like if withdrawals are entirely disabled (even temporarily) it MUST return 0.
    // MUST NOT revert.
    function maxWithdraw(address owner) external view override returns (uint256 maxAssets) {
        return convertToAssets(balanceOf(owner));
    }

    // Allows an on-chain or off-chain user to simulate the effects of their withdrawal at the current block,
    // given current on-chain conditions.
    //
    // MUST return as close to and no fewer than the exact amount of Vault shares that would be burned
    // in a withdraw call in the same transaction. I.e. withdraw should return the same or fewer shares
    // as previewWithdraw if called in the same transaction.
    //
    // MUST NOT account for withdrawal limits like those returned from maxWithdraw and should always act
    // as though the withdrawal would be accepted, regardless if the user has enough shares, etc.
    //
    // MUST be inclusive of withdrawal fees. Integrators should be aware of the existence of withdrawal fees.
    // MUST NOT revert due to vault specific user/global limits. MAY revert due to other conditions that would also cause withdraw to revert.
    // Note that any unfavorable discrepancy between convertToShares and previewWithdraw SHOULD be
    // considered slippage in share price or some other type of condition, meaning the depositor will lose assets by depositing.
    function previewWithdraw(uint256 assets) public view override returns (uint256 shares) {
        if (totalSupply() == 0 || _freeFunds() == 0) return 0;
        shares = roundUpDiv(assets * totalSupply(), _freeFunds());
    }

    // Burns shares from owner and sends exactly assets of underlying tokens to receiver.
    // MUST emit the Withdraw event.
    // MUST support a withdraw flow where the shares are burned from owner directly where owner is msg.sender.
    // MUST support a withdraw flow where the shares are burned from owner directly where msg.sender has
    // ERC-20 approval over the shares of owner.
    //
    // MAY support an additional flow in which the shares are transferred to the Vault contract before the
    // withdraw execution, and are accounted for during withdraw.
    //
    // MUST revert if all of assets cannot be withdrawn (due to withdrawal limit being reached, slippage,
    // the owner not having enough shares, etc).
    //
    // Note that some implementations will require pre-requesting to the Vault before a withdrawal may be performed.
    // Those methods should be performed separately.
    function withdraw(
        uint256 assets,
        address receiver,
        address owner
    ) external override returns (uint256 shares) {
        shares = previewWithdraw(assets); // previewWithdraw() rounds up so exactly "assets" are withdrawn and not 1 wei less
        if (msg.sender != owner) _spendAllowance(owner, msg.sender, shares);
        _withdraw(shares, receiver, owner);
    }

    // Maximum amount of Vault shares that can be redeemed from the owner balance in the Vault, through a redeem call.
    // MUST return the maximum amount of shares that could be transferred from owner through redeem and not cause a
    // revert, which MUST NOT be higher than the actual maximum that would be accepted (it should underestimate if necessary).
    //
    // MUST factor in both global and user-specific limits, like if redemption is entirely disabled
    // (even temporarily) it MUST return 0.
    //
    // MUST NOT revert.
    function maxRedeem(address owner) external view override returns (uint256 maxShares) {
        return balanceOf(owner);
    }

    // Allows an on-chain or off-chain user to simulate the effects of their redeemption at the current block,
    // given current on-chain conditions.
    //
    // MUST return as close to and no more than the exact amount of assets that would be withdrawn in a redeem call
    // in the same transaction. I.e. redeem should return the same or more assets as previewRedeem if called in the
    // same transaction.
    //
    // MUST NOT account for redemption limits like those returned from maxRedeem and should always act as though
    // the redemption would be accepted, regardless if the user has enough shares, etc.
    //
    // MUST be inclusive of withdrawal fees. Integrators should be aware of the existence of withdrawal fees.
    // MUST NOT revert due to vault specific user/global limits. MAY revert due to other conditions that would
    // also cause redeem to revert.
    //
    // Note that any unfavorable discrepancy between convertToAssets and previewRedeem SHOULD be considered slippage
    // in share price or some other type of condition, meaning the depositor will lose assets by redeeming.
    function previewRedeem(uint256 shares) external view override returns (uint256 assets) {
        return convertToAssets(shares);
    }

    // Burns exactly shares from owner and sends assets of underlying tokens to receiver.
    // MUST emit the Withdraw event.
    // MUST support a redeem flow where the shares are burned from owner directly where owner is msg.sender.
    // MUST support a redeem flow where the shares are burned from owner directly where msg.sender has ERC-20
    // approval over the shares of owner.
    //
    // MAY support an additional flow in which the shares are transferred to the Vault contract before the redeem
    // execution, and are accounted for during redeem.
    //
    // MUST revert if all of shares cannot be redeemed (due to withdrawal limit being reached, slippage,
    // the owner not having enough shares, etc).
    //
    // Note that some implementations will require pre-requesting to the Vault before a withdrawal may be performed.
    // Those methods should be performed separately.
    function redeem(
        uint256 shares,
        address receiver,
        address owner
    ) external override returns (uint256 assets) {
        if (msg.sender != owner) _spendAllowance(owner, msg.sender, shares);
        assets = _withdraw(shares, receiver, owner);
    }

    // Helper function to perform round-up/ceiling integer division.
    // Based on the formula: x / y + (x % y != 0)
    function roundUpDiv(uint256 x, uint256 y) internal pure returns (uint256) {
        require(y != 0, "Division by 0");

        uint256 q = x / y;
        if (x % y != 0) q++;
        return q;
    }
}

File 2 of 23 : ReaperVaultV2.sol
// SPDX-License-Identifier: BUSL-1.1

pragma solidity ^0.8.0;

import "./interfaces/IERC4626Events.sol";
import "./interfaces/IStrategy.sol";
import "./libraries/ReaperMathUtils.sol";
import "./mixins/ReaperAccessControl.sol";
import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/math/Math.sol";

/**
 * @notice Implementation of a vault to deposit funds for yield optimizing.
 * This is the contract that receives funds and that users interface with.
 * The yield optimizing strategy itself is implemented in a separate 'Strategy.sol' contract.
 */
contract ReaperVaultV2 is ReaperAccessControl, ERC20, IERC4626Events, AccessControlEnumerable, ReentrancyGuard {
    using ReaperMathUtils for uint256;
    using SafeERC20 for IERC20Metadata;

    struct StrategyParams {
        uint256 activation; // Activation block.timestamp
        uint256 feeBPS; // Performance fee taken from profit, in BPS
        uint256 allocBPS; // Allocation in BPS of vault's total assets
        uint256 allocated; // Amount of capital allocated to this strategy
        uint256 gains; // Total returns that Strategy has realized for Vault
        uint256 losses; // Total losses that Strategy has realized for Vault
        uint256 lastReport; // block.timestamp of the last time a report occured
    }

    mapping(address => StrategyParams) public strategies;

    // Ordering that `withdraw` uses to determine which strategies to pull funds from
    address[] public withdrawalQueue;

    uint256 public constant DEGRADATION_COEFFICIENT = 10**18; // The unit for calculating profit degradation.
    uint256 public constant PERCENT_DIVISOR = 10000;
    uint256 public tvlCap;

    uint256 public totalAllocBPS; // Sum of allocBPS across all strategies (in BPS, <= 10k)
    uint256 public totalAllocated; // Amount of tokens that have been allocated to all strategies
    uint256 public lastReport; // block.timestamp of last report from any strategy

    uint256 public immutable constructionTime;
    bool public emergencyShutdown;

    // The token the vault accepts and looks to maximize.
    IERC20Metadata public immutable token;

    // Max slippage(loss) allowed when withdrawing, in BPS (0.01%)
    uint256 public withdrawMaxLoss = 1;
    uint256 public lockedProfitDegradation; // rate per block of degradation. DEGRADATION_COEFFICIENT is 100% per block
    uint256 public lockedProfit; // how much profit is locked and cant be withdrawn

    /**
     * Reaper Roles in increasing order of privilege.
     * {STRATEGIST} - Role conferred to authors of the strategy, allows for tweaking non-critical params.
     * {GUARDIAN} - Multisig requiring 2 signatures for invoking emergency measures.
     * {ADMIN}- Multisig requiring 3 signatures for deactivating emergency measures and changing TVL cap.
     *
     * The DEFAULT_ADMIN_ROLE (in-built access control role) will be granted to a multisig requiring 4
     * signatures. This role would have the ability to add strategies, as well as the ability to grant any other
     * roles.
     *
     * Also note that roles are cascading. So any higher privileged role should be able to perform all the functions
     * of any lower privileged role.
     */
    bytes32 public constant STRATEGIST = keccak256("STRATEGIST");
    bytes32 public constant GUARDIAN = keccak256("GUARDIAN");
    bytes32 public constant ADMIN = keccak256("ADMIN");

    address public treasury; // address to whom performance fee is remitted in the form of vault shares

    event StrategyAdded(address indexed strategy, uint256 feeBPS, uint256 allocBPS);
    event StrategyFeeBPSUpdated(address indexed strategy, uint256 feeBPS);
    event StrategyAllocBPSUpdated(address indexed strategy, uint256 allocBPS);
    event StrategyRevoked(address indexed strategy);
    event UpdateWithdrawalQueue(address[] withdrawalQueue);
    event WithdrawMaxLossUpdated(uint256 withdrawMaxLoss);
    event EmergencyShutdown(bool active);
    event InCaseTokensGetStuckCalled(address token, uint256 amount);
    event TvlCapUpdated(uint256 newTvlCap);
    event LockedProfitDegradationUpdated(uint256 degradation);
    event StrategyReported(
        address indexed strategy,
        uint256 gain,
        uint256 loss,
        uint256 debtPaid,
        uint256 gains,
        uint256 losses,
        uint256 allocated,
        uint256 allocationAdded,
        uint256 allocBPS
    );

    /**
     * @notice Initializes the vault's own 'RF' token.
     * This token is minted when someone does a deposit. It is burned in order
     * to withdraw the corresponding portion of the underlying assets.
     * @param _token the token to maximize.
     * @param _name the name of the vault token.
     * @param _symbol the symbol of the vault token.
     * @param _tvlCap initial deposit cap for scaling TVL safely
     */
    constructor(
        address _token,
        string memory _name,
        string memory _symbol,
        uint256 _tvlCap,
        address _treasury,
        address[] memory _strategists,
        address[] memory _multisigRoles
    ) ERC20(string(_name), string(_symbol)) {
        token = IERC20Metadata(_token);
        constructionTime = block.timestamp;
        lastReport = block.timestamp;
        tvlCap = _tvlCap;
        treasury = _treasury;
        lockedProfitDegradation = (DEGRADATION_COEFFICIENT * 46) / 10**6; // 6 hours in blocks

        uint256 numStrategists = _strategists.length;
        for (uint256 i = 0; i < numStrategists; i = i.uncheckedInc()) {
            _grantRole(STRATEGIST, _strategists[i]);
        }

        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _grantRole(DEFAULT_ADMIN_ROLE, _multisigRoles[0]);
        _grantRole(ADMIN, _multisigRoles[1]);
        _grantRole(GUARDIAN, _multisigRoles[2]);
    }

    /**
     * @notice Adds a new strategy to the vault with a given allocation amount in basis points.
     * @param _strategy The strategy to add.
     * @param _feeBPS The performance fee (taken from profit) in basis points
     * @param _allocBPS The strategy allocation in basis points
     */
    function addStrategy(
        address _strategy,
        uint256 _feeBPS,
        uint256 _allocBPS
    ) external {
        _atLeastRole(DEFAULT_ADMIN_ROLE);
        require(!emergencyShutdown, "Cannot add strategy during emergency shutdown");
        require(_strategy != address(0), "Invalid strategy address");
        require(strategies[_strategy].activation == 0, "Strategy already added");
        require(address(this) == IStrategy(_strategy).vault(), "Strategy's vault does not match");
        require(address(token) == IStrategy(_strategy).want(), "Strategy's want does not match");
        require(_feeBPS <= PERCENT_DIVISOR / 5, "Fee cannot be higher than 20 BPS");
        require(_allocBPS + totalAllocBPS <= PERCENT_DIVISOR, "Invalid allocBPS value");

        strategies[_strategy] = StrategyParams({
            activation: block.timestamp,
            feeBPS: _feeBPS,
            allocBPS: _allocBPS,
            allocated: 0,
            gains: 0,
            losses: 0,
            lastReport: block.timestamp
        });

        totalAllocBPS += _allocBPS;
        withdrawalQueue.push(_strategy);
        emit StrategyAdded(_strategy, _feeBPS, _allocBPS);
    }

    /**
     * @notice Updates the strategy's performance fee.
     * @param _strategy The strategy to update.
     * @param _feeBPS The new performance fee in basis points.
     */
    function updateStrategyFeeBPS(address _strategy, uint256 _feeBPS) external {
        _atLeastRole(ADMIN);
        require(strategies[_strategy].activation != 0, "Invalid strategy address");
        require(_feeBPS <= PERCENT_DIVISOR / 5, "Fee cannot be higher than 20 BPS");
        strategies[_strategy].feeBPS = _feeBPS;
        emit StrategyFeeBPSUpdated(_strategy, _feeBPS);
    }

    /**
     * @notice Updates the allocation points for a given strategy.
     * @param _strategy The strategy to update.
     * @param _allocBPS The strategy allocation in basis points
     */
    function updateStrategyAllocBPS(address _strategy, uint256 _allocBPS) external {
        _atLeastRole(STRATEGIST);
        require(strategies[_strategy].activation != 0, "Invalid strategy address");
        totalAllocBPS -= strategies[_strategy].allocBPS;
        strategies[_strategy].allocBPS = _allocBPS;
        totalAllocBPS += _allocBPS;
        require(totalAllocBPS <= PERCENT_DIVISOR, "Invalid BPS value");
        emit StrategyAllocBPSUpdated(_strategy, _allocBPS);
    }

    /**
     * @notice Removes any allocation to a given strategy.
     * @param _strategy The strategy to revoke.
     */
    function revokeStrategy(address _strategy) external {
        if (msg.sender != _strategy) {
            _atLeastRole(GUARDIAN);
        }

        if (strategies[_strategy].allocBPS == 0) {
            return;
        }

        totalAllocBPS -= strategies[_strategy].allocBPS;
        strategies[_strategy].allocBPS = 0;
        emit StrategyRevoked(_strategy);
    }

    /**
     * @notice Called by a strategy to determine the amount of capital that the vault is
     * able to provide it. A positive amount means that vault has excess capital to provide
     * the strategy, while a negative amount means that the strategy has a balance owing to
     * the vault.
     */
    function availableCapital() public view returns (int256) {
        address stratAddr = msg.sender;
        if (totalAllocBPS == 0 || emergencyShutdown) {
            return -int256(strategies[stratAddr].allocated);
        }

        uint256 stratMaxAllocation = (strategies[stratAddr].allocBPS * balance()) / PERCENT_DIVISOR;
        uint256 stratCurrentAllocation = strategies[stratAddr].allocated;

        if (stratCurrentAllocation > stratMaxAllocation) {
            return -int256(stratCurrentAllocation - stratMaxAllocation);
        } else if (stratCurrentAllocation < stratMaxAllocation) {
            uint256 vaultMaxAllocation = (totalAllocBPS * balance()) / PERCENT_DIVISOR;
            uint256 vaultCurrentAllocation = totalAllocated;

            if (vaultCurrentAllocation >= vaultMaxAllocation) {
                return 0;
            }

            uint256 available = stratMaxAllocation - stratCurrentAllocation;
            available = Math.min(available, vaultMaxAllocation - vaultCurrentAllocation);
            available = Math.min(available, token.balanceOf(address(this)));

            return int256(available);
        } else {
            return 0;
        }
    }

    /**
     * @notice Updates the withdrawalQueue to match the addresses and order specified.
     * @param _withdrawalQueue The new withdrawalQueue to update to.
     */
    function setWithdrawalQueue(address[] calldata _withdrawalQueue) external {
        _atLeastRole(ADMIN);
        uint256 queueLength = _withdrawalQueue.length;
        require(queueLength != 0, "Queue must not be empty");

        delete withdrawalQueue;
        for (uint256 i = 0; i < queueLength; i = i.uncheckedInc()) {
            address strategy = _withdrawalQueue[i];
            StrategyParams storage params = strategies[strategy];
            require(params.activation != 0, "Invalid strategy address");
            withdrawalQueue.push(strategy);
        }
        emit UpdateWithdrawalQueue(_withdrawalQueue);
    }

    /**
     * @dev It calculates the total underlying value of {token} held by the system.
     * It takes into account the vault contract balance, and the balance deployed across
     * all the strategies.
     */
    function balance() public view returns (uint256) {
        return token.balanceOf(address(this)) + totalAllocated;
    }

    /**
     * @notice It calculates the amount of free funds available after profit locking.
     * For calculating share price, issuing shares during deposit, or burning shares during withdrawal.
     * @return freeFunds - the total amount of free funds available.
     */
    function _freeFunds() internal view returns (uint256) {
        return balance() - _calculateLockedProfit();
    }

    /**
     * @dev Function for various UIs to display the current value of one of our yield tokens.
     * Returns an uint256 with 18 decimals of how much underlying asset one vault share represents.
     */
    function getPricePerFullShare() public view returns (uint256) {
        return totalSupply() == 0 ? 10**decimals() : (_freeFunds() * 10**decimals()) / totalSupply();
    }

    /**
     * @dev A helper function to call deposit() with all the sender's funds.
     */
    function depositAll() external {
        _deposit(token.balanceOf(msg.sender), msg.sender);
    }

    /**
     * @notice The entrypoint of funds into the system. People deposit with this function
     * into the vault.
     * @notice the _before and _after variables are used to account properly for
     * 'burn-on-transaction' tokens.
     * @param _amount The amount of assets to deposit
     */
    function deposit(uint256 _amount) external {
        _deposit(_amount, msg.sender);
    }

    // Internal helper function to deposit {_amount} of assets and mint corresponding
    // shares to {_receiver}. Returns the number of shares that were minted.
    function _deposit(uint256 _amount, address _receiver) internal nonReentrant returns (uint256 shares) {
        require(!emergencyShutdown, "Cannot deposit during emergency shutdown");
        require(_amount != 0, "Invalid amount");
        uint256 pool = balance();
        require(pool + _amount <= tvlCap, "Vault is full");

        uint256 freeFunds = _freeFunds();
        uint256 balBefore = token.balanceOf(address(this));
        token.safeTransferFrom(msg.sender, address(this), _amount);
        uint256 balAfter = token.balanceOf(address(this));
        _amount = balAfter - balBefore;
        if (totalSupply() == 0) {
            shares = _amount;
        } else {
            shares = (_amount * totalSupply()) / freeFunds; // use "freeFunds" instead of "pool"
        }
        _mint(_receiver, shares);
        emit Deposit(msg.sender, _receiver, _amount, shares);
    }

    /**
     * @dev A helper function to call withdraw() with all the sender's funds.
     */
    function withdrawAll() external {
        _withdraw(balanceOf(msg.sender), msg.sender, msg.sender);
    }

    /**
     * @notice Function to exit the system. The vault will withdraw the required tokens
     * from the strategies and pay up the token holder. A proportional number of IOU
     * tokens are burned in the process.
     * @param _shares the number of shares to burn
     */
    function withdraw(uint256 _shares) external {
        _withdraw(_shares, msg.sender, msg.sender);
    }

    // Internal helper function to burn {_shares} of vault shares belonging to {_owner}
    // and return corresponding assets to {_receiver}. Returns the number of assets that were returned.
    function _withdraw(
        uint256 _shares,
        address _receiver,
        address _owner
    ) internal nonReentrant returns (uint256 value) {
        require(_shares != 0, "Invalid amount");
        value = (_freeFunds() * _shares) / totalSupply();
        _burn(_owner, _shares);

        if (value > token.balanceOf(address(this))) {
            uint256 totalLoss = 0;
            uint256 queueLength = withdrawalQueue.length;
            uint256 vaultBalance = 0;
            for (uint256 i = 0; i < queueLength; i = i.uncheckedInc()) {
                vaultBalance = token.balanceOf(address(this));
                if (value <= vaultBalance) {
                    break;
                }

                address stratAddr = withdrawalQueue[i];
                uint256 strategyBal = strategies[stratAddr].allocated;
                if (strategyBal == 0) {
                    continue;
                }

                uint256 remaining = value - vaultBalance;
                uint256 loss = IStrategy(stratAddr).withdraw(Math.min(remaining, strategyBal));
                uint256 actualWithdrawn = token.balanceOf(address(this)) - vaultBalance;

                // Withdrawer incurs any losses from withdrawing as reported by strat
                if (loss != 0) {
                    value -= loss;
                    totalLoss += loss;
                    _reportLoss(stratAddr, loss);
                }

                strategies[stratAddr].allocated -= actualWithdrawn;
                totalAllocated -= actualWithdrawn;
            }

            vaultBalance = token.balanceOf(address(this));
            if (value > vaultBalance) {
                value = vaultBalance;
            }

            require(
                totalLoss <= ((value + totalLoss) * withdrawMaxLoss) / PERCENT_DIVISOR,
                "Withdraw loss exceeds slippage"
            );
        }

        token.safeTransfer(_receiver, value);
        emit Withdraw(msg.sender, _receiver, _owner, value, _shares);
    }

    /**
     * @notice It calculates the amount of locked profit from recent harvests.
     * @return the amount of locked profit.
     */
    function _calculateLockedProfit() internal view returns (uint256) {
        uint256 lockedFundsRatio = (block.timestamp - lastReport) * lockedProfitDegradation;
        if (lockedFundsRatio < DEGRADATION_COEFFICIENT) {
            return lockedProfit - ((lockedFundsRatio * lockedProfit) / DEGRADATION_COEFFICIENT);
        }

        return 0;
    }

    /**
     * @notice Helper function to report a loss by a given strategy.
     * @param strategy The strategy to report the loss for.
     * @param loss The amount lost.
     */
    function _reportLoss(address strategy, uint256 loss) internal {
        StrategyParams storage stratParams = strategies[strategy];
        // Loss can only be up the amount of capital allocated to the strategy
        uint256 allocation = stratParams.allocated;
        require(loss <= allocation, "Strategy loss cannot be greater than allocation");

        if (totalAllocBPS != 0) {
            // reduce strat's allocBPS proportional to loss
            uint256 bpsChange = Math.min((loss * totalAllocBPS) / totalAllocated, stratParams.allocBPS);

            // If the loss is too small, bpsChange will be 0
            if (bpsChange != 0) {
                stratParams.allocBPS -= bpsChange;
                totalAllocBPS -= bpsChange;
            }
        }

        // Finally, adjust our strategy's parameters by the loss
        stratParams.losses += loss;
        stratParams.allocated -= loss;
        totalAllocated -= loss;
    }

    /**
     * @notice Helper function to charge fees from the gain reported by a strategy.
     * Fees is charged by issuing the corresponding amount of vault shares to the treasury.
     * @param strategy The strategy that reported gain.
     * @param gain The amount of profit reported.
     * @return The fee amount in assets.
     */
    function _chargeFees(address strategy, uint256 gain) internal returns (uint256) {
        uint256 performanceFee = (gain * strategies[strategy].feeBPS) / PERCENT_DIVISOR;
        if (performanceFee != 0) {
            uint256 supply = totalSupply();
            uint256 shares = supply == 0 ? performanceFee : (performanceFee * supply) / _freeFunds();
            _mint(treasury, shares);
        }
        return performanceFee;
    }

    // To avoid "stack too deep" errors
    struct LocalVariables_report {
        address stratAddr;
        uint256 loss;
        uint256 gain;
        uint256 fees;
        int256 available;
        uint256 debt;
        uint256 credit;
        uint256 debtPayment;
        uint256 freeWantInStrat;
        uint256 lockedProfitBeforeLoss;
    }

    /**
     * @notice Main contact point where each strategy interacts with the vault during its harvest
     * to report profit/loss as well as any repayment of debt.
     * @param _roi The return on investment (positive or negative) given as the total amount
     * gained or lost from the harvest.
     * @param _repayment The repayment of debt by the strategy.
     */
    function report(int256 _roi, uint256 _repayment) external returns (uint256) {
        LocalVariables_report memory vars;
        vars.stratAddr = msg.sender;
        StrategyParams storage strategy = strategies[vars.stratAddr];
        require(strategy.activation != 0, "Unauthorized strategy");

        if (_roi < 0) {
            vars.loss = uint256(-_roi);
            _reportLoss(vars.stratAddr, vars.loss);
        } else if (_roi > 0) {
            vars.gain = uint256(_roi);
            vars.fees = _chargeFees(vars.stratAddr, vars.gain);
            strategy.gains += vars.gain;
        }

        vars.available = availableCapital();
        if (vars.available < 0) {
            vars.debt = uint256(-vars.available);
            vars.debtPayment = Math.min(vars.debt, _repayment);

            if (vars.debtPayment != 0) {
                strategy.allocated -= vars.debtPayment;
                totalAllocated -= vars.debtPayment;
                vars.debt -= vars.debtPayment; // tracked for return value
            }
        } else if (vars.available > 0) {
            vars.credit = uint256(vars.available);
            strategy.allocated += vars.credit;
            totalAllocated += vars.credit;
        }

        vars.freeWantInStrat = vars.gain + _repayment;
        if (vars.credit > vars.freeWantInStrat) {
            token.safeTransfer(vars.stratAddr, vars.credit - vars.freeWantInStrat);
        } else if (vars.credit < vars.freeWantInStrat) {
            token.safeTransferFrom(vars.stratAddr, address(this), vars.freeWantInStrat - vars.credit);
        }

        // Profit is locked and gradually released per block
        // NOTE: compute current locked profit and replace with sum of current and new
        vars.lockedProfitBeforeLoss = _calculateLockedProfit() + vars.gain - vars.fees;
        if (vars.lockedProfitBeforeLoss > vars.loss) {
            lockedProfit = vars.lockedProfitBeforeLoss - vars.loss;
        } else {
            lockedProfit = 0;
        }

        strategy.lastReport = block.timestamp;
        lastReport = block.timestamp;

        emit StrategyReported(
            vars.stratAddr,
            vars.gain,
            vars.loss,
            vars.debtPayment,
            strategy.gains,
            strategy.losses,
            strategy.allocated,
            vars.credit,
            strategy.allocBPS
        );

        if (strategy.allocBPS == 0 || emergencyShutdown) {
            return IStrategy(vars.stratAddr).balanceOf();
        }

        return vars.debt;
    }

    /**
     * @notice Updates the withdrawMaxLoss which is the maximum allowed slippage.
     * @param _withdrawMaxLoss The new value, in basis points.
     */
    function updateWithdrawMaxLoss(uint256 _withdrawMaxLoss) external {
        _atLeastRole(STRATEGIST);
        require(_withdrawMaxLoss <= PERCENT_DIVISOR, "Invalid BPS value");
        withdrawMaxLoss = _withdrawMaxLoss;
        emit WithdrawMaxLossUpdated(_withdrawMaxLoss);
    }

    /**
     * @notice Updates the vault tvl cap (the max amount of assets held by the vault).
     * @dev pass in max value of uint to effectively remove TVL cap.
     * @param _newTvlCap The new tvl cap.
     */
    function updateTvlCap(uint256 _newTvlCap) public {
        _atLeastRole(ADMIN);
        tvlCap = _newTvlCap;
        emit TvlCapUpdated(tvlCap);
    }

    /**
     * @dev helper function to remove TVL cap
     */
    function removeTvlCap() external {
        updateTvlCap(type(uint256).max);
    }

    /**
     * Activates or deactivates Vault mode where all Strategies go into full
     * withdrawal.
     * During Emergency Shutdown:
     * 1. No Users may deposit into the Vault (but may withdraw as usual.)
     * 2. New Strategies may not be added.
     * 3. Each Strategy must pay back their debt as quickly as reasonable to
     * minimally affect their position.
     *
     * If true, the Vault goes into Emergency Shutdown. If false, the Vault
     * goes back into Normal Operation.
     */
    function setEmergencyShutdown(bool _active) external {
        if (_active) {
            _atLeastRole(GUARDIAN);
        } else {
            _atLeastRole(ADMIN);
        }
        emergencyShutdown = _active;
        emit EmergencyShutdown(_active);
    }

    /**
     * @notice Changes the locked profit degradation.
     * @param degradation - The rate of degradation in percent per second scaled to 1e18.
     */
    function setLockedProfitDegradation(uint256 degradation) external {
        _atLeastRole(ADMIN);
        require(degradation <= DEGRADATION_COEFFICIENT, "Degradation cannot be more than 100%");
        lockedProfitDegradation = degradation;
        emit LockedProfitDegradationUpdated(degradation);
    }

    /**
     * @notice Only DEFAULT_ADMIN_ROLE can update treasury address.
     */
    function updateTreasury(address newTreasury) external {
        _atLeastRole(DEFAULT_ADMIN_ROLE);
        require(newTreasury != address(0), "Invalid address");
        treasury = newTreasury;
    }

    /**
     * @dev Rescues random funds stuck that the strat can't handle.
     * @param _token address of the token to rescue.
     */
    function inCaseTokensGetStuck(address _token) external {
        _atLeastRole(ADMIN);
        require(_token != address(token), "!token");

        uint256 amount = IERC20Metadata(_token).balanceOf(address(this));
        IERC20Metadata(_token).safeTransfer(msg.sender, amount);
        emit InCaseTokensGetStuckCalled(_token, amount);
    }

    /**
     * @dev Overrides the default 18 decimals for the vault ERC20 to
     * match the same decimals as the underlying token used
     */
    function decimals() public view override returns (uint8) {
        return token.decimals();
    }

    /**
     * @dev Returns an array of all the relevant roles arranged in descending order of privilege.
     *      Subclasses should override this to specify their unique roles arranged in the correct
     *      order, for example, [SUPER-ADMIN, ADMIN, GUARDIAN, STRATEGIST].
     */
    function _cascadingAccessRoles() internal view override returns (bytes32[] memory) {
        bytes32[] memory cascadingAccessRoles = new bytes32[](4);
        cascadingAccessRoles[0] = DEFAULT_ADMIN_ROLE;
        cascadingAccessRoles[1] = ADMIN;
        cascadingAccessRoles[2] = GUARDIAN;
        cascadingAccessRoles[3] = STRATEGIST;
        return cascadingAccessRoles;
    }

    /**
     * @dev Returns {true} if {_account} has been granted {_role}. Subclasses should override
     *      this to specify their unique role-checking criteria.
     */
    function _hasRole(bytes32 _role, address _account) internal view override returns (bool) {
        return hasRole(_role, _account);
    }
}

File 3 of 23 : IERC4626Events.sol
// SPDX-License-Identifier: agpl-3.0

pragma solidity ^0.8.0;

interface IERC4626Events {
    event Deposit(address indexed sender, address indexed owner, uint256 assets, uint256 shares);
    event Withdraw(
        address indexed sender,
        address indexed receiver,
        address indexed owner,
        uint256 assets,
        uint256 shares
    );
}

File 4 of 23 : IStrategy.sol
// SPDX-License-Identifier: BUSL-1.1

pragma solidity ^0.8.0;

interface IStrategy {
    //vault only - withdraws funds from the strategy
    function withdraw(uint256 _amount) external returns (uint256 loss);

    //claims rewards, charges fees, and re-deposits; returns roi (+ve for profit, -ve for loss).
    function harvest() external returns (int256 roi);

    //returns the balance of all tokens managed by the strategy
    function balanceOf() external view returns (uint256);

    //returns the address of the vault that the strategy is serving
    function vault() external view returns (address);

    //returns the address of the token that the strategy needs to operate
    function want() external view returns (address);
}

File 5 of 23 : ReaperMathUtils.sol
// SPDX-License-Identifier: BUSL-1.1

pragma solidity ^0.8.0;

library ReaperMathUtils {
    /**
     * @notice For doing an unchecked increment of an index for gas optimization purposes
     * @param _i - The number to increment
     * @return The incremented number
     */
    function uncheckedInc(uint256 _i) internal pure returns (uint256) {
        unchecked {
            return _i + 1;
        }
    }
}

File 6 of 23 : ReaperAccessControl.sol
// SPDX-License-Identifier: BUSL-1.1

import "../libraries/ReaperMathUtils.sol";

pragma solidity ^0.8.0;

/**
 * A mixin to provide access control to a variety of roles. Designed to be compatible
 * with both upgradeable and non-upgradble contracts. HAS NO STORAGE.
 */
abstract contract ReaperAccessControl {
    using ReaperMathUtils for uint256;

    /**
     * @notice Checks cascading role privileges to ensure that caller has at least role {_role}.
     * Any higher privileged role should be able to perform all the functions of any lower privileged role.
     * This is accomplished using the {cascadingAccess} array that lists all roles from most privileged
     * to least privileged.
     * @param _role - The role in bytes from the keccak256 hash of the role name
     */
    function _atLeastRole(bytes32 _role) internal view {
        bytes32[] memory cascadingAccessRoles = _cascadingAccessRoles();
        uint256 numRoles = cascadingAccessRoles.length;
        bool specifiedRoleFound = false;
        bool senderHighestRoleFound = false;

        // {_role} must be found in the {cascadingAccessRoles} array.
        // Also, msg.sender's highest role index <= specified role index.
        for (uint256 i = 0; i < numRoles; i = i.uncheckedInc()) {
            if (!senderHighestRoleFound && _hasRole(cascadingAccessRoles[i], msg.sender)) {
                senderHighestRoleFound = true;
            }
            if (_role == cascadingAccessRoles[i]) {
                specifiedRoleFound = true;
                break;
            }
        }

        require(specifiedRoleFound && senderHighestRoleFound, "Unauthorized access");
    }

    /**
     * @dev Returns an array of all the relevant roles arranged in descending order of privilege.
     *      Subclasses should override this to specify their unique roles arranged in the correct
     *      order, for example, [SUPER-ADMIN, ADMIN, GUARDIAN, STRATEGIST].
     */
    function _cascadingAccessRoles() internal view virtual returns (bytes32[] memory);

    /**
     * @dev Returns {true} if {_account} has been granted {_role}. Subclasses should override
     *      this to specify their unique role-checking criteria.
     */
    function _hasRole(bytes32 _role, address _account) internal view virtual returns (bool);
}

File 7 of 23 : IERC4626Functions.sol
// SPDX-License-Identifier: agpl-3.0

pragma solidity ^0.8.0;

interface IERC4626Functions {
    function asset() external view returns (address assetTokenAddress);

    function totalAssets() external view returns (uint256 totalManagedAssets);

    function convertToShares(uint256 assets) external view returns (uint256 shares);

    function convertToAssets(uint256 shares) external view returns (uint256 assets);

    function maxDeposit(address receiver) external view returns (uint256 maxAssets);

    function previewDeposit(uint256 assets) external view returns (uint256 shares);

    function deposit(uint256 assets, address receiver) external returns (uint256 shares);

    function maxMint(address receiver) external view returns (uint256 maxShares);

    function previewMint(uint256 shares) external view returns (uint256 assets);

    function mint(uint256 shares, address receiver) external returns (uint256 assets);

    function maxWithdraw(address owner) external view returns (uint256 maxAssets);

    function previewWithdraw(uint256 assets) external view returns (uint256 shares);

    function withdraw(
        uint256 assets,
        address receiver,
        address owner
    ) external returns (uint256 shares);

    function maxRedeem(address owner) external view returns (uint256 maxShares);

    function previewRedeem(uint256 shares) external view returns (uint256 assets);

    function redeem(
        uint256 shares,
        address receiver,
        address owner
    ) external returns (uint256 assets);
}

File 8 of 23 : AccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControlEnumerable.sol";
import "./AccessControl.sol";
import "../utils/structs/EnumerableSet.sol";

/**
 * @dev Extension of {AccessControl} that allows enumerating the members of each role.
 */
abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {
    using EnumerableSet for EnumerableSet.AddressSet;

    mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view virtual override returns (address) {
        return _roleMembers[role].at(index);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view virtual override returns (uint256) {
        return _roleMembers[role].length();
    }

    /**
     * @dev Overload {_grantRole} to track enumerable memberships
     */
    function _grantRole(bytes32 role, address account) internal virtual override {
        super._grantRole(role, account);
        _roleMembers[role].add(account);
    }

    /**
     * @dev Overload {_revokeRole} to track enumerable memberships
     */
    function _revokeRole(bytes32 role, address account) internal virtual override {
        super._revokeRole(role, account);
        _roleMembers[role].remove(account);
    }
}

File 9 of 23 : IAccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";

/**
 * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
 */
interface IAccessControlEnumerable is IAccessControl {
    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) external view returns (address);

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) external view returns (uint256);
}

File 10 of 23 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 11 of 23 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 12 of 23 : Context.sol
// SPDX-License-Identifier: MIT
// 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 Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

File 13 of 23 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 14 of 23 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 15 of 23 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 16 of 23 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastvalue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastvalue;
                // Update the index for the moved value
                set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

File 17 of 23 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

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

    uint256 private _status;

    constructor() {
        _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() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

File 18 of 23 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

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

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

        return true;
    }

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

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

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

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

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

        _afterTokenTransfer(address(0), account, amount);
    }

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

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

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

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

        _afterTokenTransfer(account, address(0), amount);
    }

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

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

    /**
     * @dev Spend `amount` form the allowance of `owner` toward `spender`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

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

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

File 19 of 23 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Moves `amount` tokens from the caller's account to `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);

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

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

File 20 of 23 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @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 21 of 23 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

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

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

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

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

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

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

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

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

File 22 of 23 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [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://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason 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 {
            // 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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 23 of 23 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a / b + (a % b == 0 ? 0 : 1);
    }
}

Settings
{
  "metadata": {
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint256","name":"_tvlCap","type":"uint256"},{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"address[]","name":"_strategists","type":"address[]"},{"internalType":"address[]","name":"_multisigRoles","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"assets","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"active","type":"bool"}],"name":"EmergencyShutdown","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"InCaseTokensGetStuckCalled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"degradation","type":"uint256"}],"name":"LockedProfitDegradationUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"strategy","type":"address"},{"indexed":false,"internalType":"uint256","name":"feeBPS","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"allocBPS","type":"uint256"}],"name":"StrategyAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"strategy","type":"address"},{"indexed":false,"internalType":"uint256","name":"allocBPS","type":"uint256"}],"name":"StrategyAllocBPSUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"strategy","type":"address"},{"indexed":false,"internalType":"uint256","name":"feeBPS","type":"uint256"}],"name":"StrategyFeeBPSUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"strategy","type":"address"},{"indexed":false,"internalType":"uint256","name":"gain","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"loss","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"debtPaid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"gains","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"losses","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"allocated","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"allocationAdded","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"allocBPS","type":"uint256"}],"name":"StrategyReported","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"strategy","type":"address"}],"name":"StrategyRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newTvlCap","type":"uint256"}],"name":"TvlCapUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"withdrawalQueue","type":"address[]"}],"name":"UpdateWithdrawalQueue","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"assets","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"Withdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"withdrawMaxLoss","type":"uint256"}],"name":"WithdrawMaxLossUpdated","type":"event"},{"inputs":[],"name":"ADMIN","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEGRADATION_COEFFICIENT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GUARDIAN","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERCENT_DIVISOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STRATEGIST","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_strategy","type":"address"},{"internalType":"uint256","name":"_feeBPS","type":"uint256"},{"internalType":"uint256","name":"_allocBPS","type":"uint256"}],"name":"addStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"asset","outputs":[{"internalType":"address","name":"assetTokenAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"availableCapital","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"constructionTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"convertToAssets","outputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"name":"convertToShares","outputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"deposit","outputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyShutdown","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPricePerFullShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"inCaseTokensGetStuck","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastReport","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockedProfit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockedProfitDegradation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"maxDeposit","outputs":[{"internalType":"uint256","name":"maxAssets","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"maxMint","outputs":[{"internalType":"uint256","name":"maxShares","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"maxRedeem","outputs":[{"internalType":"uint256","name":"maxShares","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"maxWithdraw","outputs":[{"internalType":"uint256","name":"maxAssets","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"mint","outputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"name":"previewDeposit","outputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"previewMint","outputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"previewRedeem","outputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"name":"previewWithdraw","outputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"redeem","outputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"removeTvlCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int256","name":"_roi","type":"int256"},{"internalType":"uint256","name":"_repayment","type":"uint256"}],"name":"report","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategy","type":"address"}],"name":"revokeStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_active","type":"bool"}],"name":"setEmergencyShutdown","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"degradation","type":"uint256"}],"name":"setLockedProfitDegradation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_withdrawalQueue","type":"address[]"}],"name":"setWithdrawalQueue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"strategies","outputs":[{"internalType":"uint256","name":"activation","type":"uint256"},{"internalType":"uint256","name":"feeBPS","type":"uint256"},{"internalType":"uint256","name":"allocBPS","type":"uint256"},{"internalType":"uint256","name":"allocated","type":"uint256"},{"internalType":"uint256","name":"gains","type":"uint256"},{"internalType":"uint256","name":"losses","type":"uint256"},{"internalType":"uint256","name":"lastReport","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20Metadata","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocBPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocated","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAssets","outputs":[{"internalType":"uint256","name":"totalManagedAssets","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tvlCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_strategy","type":"address"},{"internalType":"uint256","name":"_allocBPS","type":"uint256"}],"name":"updateStrategyAllocBPS","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategy","type":"address"},{"internalType":"uint256","name":"_feeBPS","type":"uint256"}],"name":"updateStrategyFeeBPS","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newTreasury","type":"address"}],"name":"updateTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newTvlCap","type":"uint256"}],"name":"updateTvlCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_withdrawMaxLoss","type":"uint256"}],"name":"updateWithdrawMaxLoss","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_shares","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawMaxLoss","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"withdrawalQueue","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60c06040526001600f553480156200001657600080fd5b5060405162004fa338038062004fa3833981016040819052620000399162000596565b86868686868686858581600390805190602001906200005a92919062000364565b5080516200007090600490602084019062000364565b50506001600755506001600160a01b0387811660a052426080819052600d55600a859055601280546001600160a01b031916918516919091179055620f4240620000c4670de0b6b3a7640000602e6200067f565b620000d09190620006ad565b601055815160005b818110156200014d576200012f7fb17d0a42cc710456bf9c3efb785dcd0cb93a0ac358113307b5c64b285b516b5c8583815181106200011b576200011b620006d0565b60200260200101516200020460201b60201c565b62000145816200024760201b6200253d1760201c565b9050620000d8565b506200015b60003362000204565b620001796000801b836000815181106200011b576200011b620006d0565b620001b47fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42836001815181106200011b576200011b620006d0565b620001ef7f8b5b16d04624687fcf0d0228f19993c9157c1ed07b41d8d430fd9100eb099fe8836002815181106200011b576200011b620006d0565b50505050505050505050505050505062000723565b6200021b82826200024d60201b620025431760201c565b600082815260066020908152604090912062000242918390620025c9620002f2821b17901c565b505050565b60010190565b60008281526005602090815260408083206001600160a01b038516845290915290205460ff16620002ee5760008281526005602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620002ad3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600062000309836001600160a01b03841662000312565b90505b92915050565b60008181526001830160205260408120546200035b575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556200030c565b5060006200030c565b8280546200037290620006e6565b90600052602060002090601f016020900481019282620003965760008555620003e1565b82601f10620003b157805160ff1916838001178555620003e1565b82800160010185558215620003e1579182015b82811115620003e1578251825591602001919060010190620003c4565b50620003ef929150620003f3565b5090565b5b80821115620003ef5760008155600101620003f4565b80516001600160a01b03811681146200042257600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171562000468576200046862000427565b604052919050565b600082601f8301126200048257600080fd5b81516001600160401b038111156200049e576200049e62000427565b6020620004b4601f8301601f191682016200043d565b8281528582848701011115620004c957600080fd5b60005b83811015620004e9578581018301518282018401528201620004cc565b83811115620004fb5760008385840101525b5095945050505050565b600082601f8301126200051757600080fd5b815160206001600160401b0382111562000535576200053562000427565b8160051b620005468282016200043d565b92835284810182019282810190878511156200056157600080fd5b83870192505b848310156200058b576200057b836200040a565b8252918301919083019062000567565b979650505050505050565b600080600080600080600060e0888a031215620005b257600080fd5b620005bd886200040a565b60208901519097506001600160401b0380821115620005db57600080fd5b620005e98b838c0162000470565b975060408a01519150808211156200060057600080fd5b6200060e8b838c0162000470565b965060608a015195506200062560808b016200040a565b945060a08a01519150808211156200063c57600080fd5b6200064a8b838c0162000505565b935060c08a01519150808211156200066157600080fd5b50620006708a828b0162000505565b91505092959891949750929550565b6000816000190483118215151615620006a857634e487b7160e01b600052601160045260246000fd5b500290565b600082620006cb57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b600181811c90821680620006fb57607f821691505b602082108114156200071d57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a0516147e3620007c0600039600081816105ce01528181610a1201528181610e4101528181610ea6015281816112280152818161131901528181611c4201528181611f0201528181611f94015281816122f601528181612eca01528181612f6a015281816130e6015281816131f2015281816132f80152818161359f015281816136190152613659015260006109d801526147e36000f3fe608060405234801561001057600080fd5b506004361061043d5760003560e01c8063724c184c11610236578063b6b55f251161013b578063d250f088116100c3578063def68a9c11610087578063def68a9c146109ad578063ef8b30f7146109c0578063f06c5610146109d3578063fa34d611146109fa578063fc0c546a14610a0d57600080fd5b8063d250f08814610937578063d547741f14610946578063d905777e14610959578063dd62ed3e1461096c578063de5f6268146109a557600080fd5b8063c63d75b61161010a578063c63d75b6146108d8578063c6e6f592146108eb578063c822adda146108fe578063ca15c87314610911578063ce96cb771461092457600080fd5b8063b6b55f2514610896578063ba087652146108a9578063bb994d48146108bc578063c3535b52146108cf57600080fd5b806395d89b41116101be578063a9059cbb1161018d578063a9059cbb14610842578063ac579b7714610855578063b3d7f6b914610868578063b460af941461087b578063b69ef8a81461088e57600080fd5b806395d89b411461080a5780639cfdede314610812578063a217fddf14610827578063a457c2d71461082f57600080fd5b80637f51bb1f116102055780637f51bb1f146107b6578063853828b6146107c95780639010d07c146107d157806391d14854146107e457806394bf804d146107f757600080fd5b8063724c184c1461077357806377c7b8fc146107885780637a550365146107905780637d6205be146107a357600080fd5b80633403c2fc1161034757806345f7f249116102cf5780635f3d3a0e116102935780635f3d3a0e1461070857806361d027b31461071b5780636e553f651461072e5780636f9c94a81461074157806370a082311461074a57600080fd5b806345f7f249146106c7578063462f82f4146106d0578063483b6031146106e35780634870dd9a146106ec5780634cdad506146106f557600080fd5b806339ebf8231161031657806339ebf823146106195780633f23fa1a14610699578063402d267d146106a257806342232716146106b557806344b81396146106be57600080fd5b80633403c2fc146105ac57806336568abe146105b957806338d52e0f146105cc578063395093511461060657600080fd5b806318160ddd116103ca57806329b9d6941161039957806329b9d6941461054f5780632a0acc6a146105575780632e1a7d4d1461056c5780632f2ff15d1461057f578063313ce5671461059257600080fd5b806318160ddd14610509578063199cb7d81461051157806323b872dd14610519578063248a9ca31461052c57600080fd5b806307a2d13a1161041157806307a2d13a146104aa578063095ea7b3146104bd5780630a28a477146104d05780630f3d249d146104e357806314c64402146104f657600080fd5b8062272d811461044257806301e1d1141461045757806301ffc9a71461047257806306fdde0314610495575b600080fd5b610455610450366004614088565b610a34565b005b61045f610a87565b6040519081526020015b60405180910390f35b6104856104803660046140a1565b610a96565b6040519015158152602001610469565b61049d610ac1565b60405161046991906140f7565b61045f6104b8366004614088565b610b53565b6104856104cb36600461413f565b610b85565b61045f6104de366004614088565b610b9d565b61045f6104f136600461416b565b610be9565b61045561050436600461419b565b61105d565b60025461045f565b61045f6110d7565b6104856105273660046141b8565b6112a8565b61045f61053a366004614088565b60009081526005602052604090206001015490565b6104556112ce565b61045f60008051602061476e83398151915281565b61045561057a366004614088565b6112db565b61045561058d3660046141f9565b6112ea565b61059a611315565b60405160ff9091168152602001610469565b600e546104859060ff1681565b6104556105c73660046141f9565b611399565b7f00000000000000000000000000000000000000000000000000000000000000005b6040516001600160a01b039091168152602001610469565b61048561061436600461413f565b611413565b610664610627366004614229565b6008602052600090815260409020805460018201546002830154600384015460048501546005860154600690960154949593949293919290919087565b604080519788526020880196909652948601939093526060850191909152608084015260a083015260c082015260e001610469565b61045f600a5481565b61045f6106b0366004614229565b611452565b61045f60105481565b61045f60115481565b61045f600c5481565b6104556106de366004614088565b6114a6565b61045f600f5481565b61045f61271081565b61045f610703366004614088565b611538565b61045561071636600461413f565b611543565b6012546105ee906001600160a01b031681565b61045f61073c3660046141f9565b611687565b61045f600b5481565b61045f610758366004614229565b6001600160a01b031660009081526020819052604090205490565b61045f60008051602061474e83398151915281565b61045f611693565b61045561079e366004614088565b6116e8565b6104556107b136600461413f565b611798565b6104556107c4366004614229565b611890565b610455611904565b6105ee6107df36600461416b565b611921565b6104856107f23660046141f9565b611939565b61045f6108053660046141f9565b611964565b61049d611982565b61045f60008051602061478e83398151915281565b61045f600081565b61048561083d36600461413f565b611991565b61048561085036600461413f565b611a2e565b610455610863366004614246565b611a3c565b61045f610876366004614088565b611bb3565b61045f6108893660046142bb565b611be3565b61045f611c1e565b6104556108a4366004614088565b611cb7565b61045f6108b73660046142bb565b611cc1565b6104556108ca366004614229565b611cf1565b61045f600d5481565b61045f6108e6366004614229565b611db6565b61045f6108f9366004614088565b611e0d565b6105ee61090c366004614088565b611e42565b61045f61091f366004614088565b611e6c565b61045f610932366004614229565b611e83565b61045f670de0b6b3a764000081565b6104556109543660046141f9565b611ea5565b61045f610967366004614229565b611ecb565b61045f61097a3660046142fd565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610455611ee9565b6104556109bb366004614229565b611f7b565b61045f6109ce366004614088565b6120c4565b61045f7f000000000000000000000000000000000000000000000000000000000000000081565b610455610a0836600461432b565b6120cf565b6105ee7f000000000000000000000000000000000000000000000000000000000000000081565b610a4b60008051602061476e8339815191526125de565b600a8190556040518181527f2923cecec41b7140eaf657a035af4abb23ed61d16b1fc20a986838eb3ad99bd0906020015b60405180910390a150565b6000610a91611c1e565b905090565b60006001600160e01b03198216635a05180f60e01b1480610abb5750610abb826126b6565b92915050565b606060038054610ad090614360565b80601f0160208091040260200160405190810160405280929190818152602001828054610afc90614360565b8015610b495780601f10610b1e57610100808354040283529160200191610b49565b820191906000526020600020905b815481529060010190602001808311610b2c57829003601f168201915b5050505050905090565b6000610b5e60025490565b610b66575090565b600254610b716126eb565b610b7b90846143b1565b610abb91906143e6565b600033610b93818585612707565b5060019392505050565b6000610ba860025490565b1580610bb95750610bb76126eb565b155b15610bc657506000919050565b610abb610bd260025490565b610bdc90846143b1565b610be46126eb565b61282b565b6000610c4a60405180610140016040528060006001600160a01b031681526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b3380825260009081526008602052604090208054610ca75760405162461bcd60e51b8152602060048201526015602482015274556e617574686f72697a656420737472617465677960581b60448201526064015b60405180910390fd5b6000851215610cd057610cb9856143fa565b602083018190528251610ccb9161289a565b610d10565b6000851315610d1057604082018590528151610cec90866129e1565b60608301526040820151600482018054600090610d0a908490614417565b90915550505b610d186110d7565b6080830181905260001315610daa578160800151610d35906143fa565b60a08301819052610d469085612a7a565b60e0830181905215610da5578160e00151816003016000828254610d6a919061442f565b909155505060e0820151600c8054600090610d8690849061442f565b909155505060e082015160a083018051610da190839061442f565b9052505b610df9565b600082608001511315610df957608082015160c08301819052600382018054600090610dd7908490614417565b909155505060c0820151600c8054600090610df3908490614417565b90915550505b838260400151610e099190614417565b610100830181905260c08301511115610e6d57815161010083015160c0840151610e689291610e379161442f565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169190612a90565b610ece565b8161010001518260c001511015610ece57610ece8260000151308460c00151856101000151610e9c919061442f565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016929190612af3565b81606001518260400151610ee0612b31565b610eea9190614417565b610ef4919061442f565b610120830181905260208301511015610f24578160200151826101200151610f1c919061442f565b601155610f2a565b60006011555b4260068201819055600d55815160408084015160208086015160e0808801516004880154600589015460038a015460c0808d015160028d01548b519a8b52988a0197909752888a01949094526060880192909252608087015260a086015284019190915282015290516001600160a01b03909216917f67f96d2854a335a4cadb49f84fd3ca6f990744ddb3feceeb4b349d2d53d32ad3918190036101000190a260028101541580610fdd5750600e5460ff165b156110515781600001516001600160a01b031663722713f76040518163ffffffff1660e01b8152600401602060405180830381865afa158015611024573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110489190614446565b92505050610abb565b5060a001519392505050565b801561107f5761107a60008051602061474e8339815191526125de565b611096565b61109660008051602061476e8339815191526125de565b600e805460ff19168215159081179091556040519081527fba40372a3a724dca3c57156128ef1e896724b65b37a17f190b1ad5de68f3a4f390602001610a7c565b600b54600090339015806110ed5750600e5460ff165b1561111d576001600160a01b038116600090815260086020526040902060030154611117906143fa565b91505090565b600061271061112a611c1e565b6001600160a01b03841660009081526008602052604090206002015461115091906143b1565b61115a91906143e6565b6001600160a01b0383166000908152600860205260409020600301549091508181111561119c5761118b828261442f565b611194906143fa565b935050505090565b8181101561129e5760006127106111b1611c1e565b600b546111be91906143b1565b6111c891906143e6565b600c549091508181106111e15760009550505050505090565b60006111ed848661442f565b9050611202816111fd848661442f565b612a7a565b6040516370a0823160e01b81523060048201529091506112939082906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa15801561126f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111fd9190614446565b979650505050505050565b6000935050505090565b6000336112b6858285612b97565b6112c1858585612c23565b60019150505b9392505050565b6112d9600019610a34565b565b6112e6813333612df1565b5050565b6000828152600560205260409020600101546113068133613376565b61131083836133da565b505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015611375573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a91919061445f565b6001600160a01b03811633146114095760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610c9e565b6112e682826133fc565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909190610b93908290869061144d908790614417565b612707565b600e5460009060ff168061146f5750600a5461146c611c1e565b10155b1561147c57506000919050565b600019600a5414156114915750600019919050565b611499611c1e565b600a54610abb919061442f565b6114bd60008051602061478e8339815191526125de565b6127108111156115035760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964204250532076616c756560781b6044820152606401610c9e565b600f8190556040518181527f23e1382e62459214e4b3240fe95817b36865752f45f7569957018fe5a105f7b590602001610a7c565b6000610abb82610b53565b61155a60008051602061478e8339815191526125de565b6001600160a01b03821660009081526008602052604090205461158f5760405162461bcd60e51b8152600401610c9e90614482565b6001600160a01b038216600090815260086020526040812060020154600b8054919290916115be90849061442f565b90915550506001600160a01b0382166000908152600860205260408120600201829055600b80548392906115f3908490614417565b9091555050600b5461271010156116405760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964204250532076616c756560781b6044820152606401610c9e565b816001600160a01b03167f437afd93b1abdad7ff741b69dde7efdd15dba7fb6999ba3471db17fd029dced98260405161167b91815260200190565b60405180910390a25050565b60006112c7838361341e565b600061169e60025490565b156116d5576002546116ae611315565b6116b990600a61459d565b6116c16126eb565b6116cb91906143b1565b610a9191906143e6565b6116dd611315565b610a9190600a61459d565b6116ff60008051602061476e8339815191526125de565b670de0b6b3a76400008111156117635760405162461bcd60e51b8152602060048201526024808201527f4465677261646174696f6e2063616e6e6f74206265206d6f7265207468616e206044820152633130302560e01b6064820152608401610c9e565b60108190556040518181527f056863905a721211fc4dda1d688efc8f120b4b689d2e41da8249cf6eff20069190602001610a7c565b6117af60008051602061476e8339815191526125de565b6001600160a01b0382166000908152600860205260409020546117e45760405162461bcd60e51b8152600401610c9e90614482565b6117f160056127106143e6565b8111156118405760405162461bcd60e51b815260206004820181905260248201527f4665652063616e6e6f7420626520686967686572207468616e203230204250536044820152606401610c9e565b6001600160a01b03821660008181526008602052604090819020600101839055517f8281ff4064168f20aa9abde7f62b8b72efb10b48e7e838af54dcabff3131474a9061167b9084815260200190565b61189a60006125de565b6001600160a01b0381166118e25760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b6044820152606401610c9e565b601280546001600160a01b0319166001600160a01b0392909216919091179055565b3360008181526020819052604090205461191e9180612df1565b50565b60008281526006602052604081206112c79083613770565b60009182526005602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600061196f83611bb3565b905061197b818361341e565b5092915050565b606060048054610ad090614360565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919083811015611a165760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610c9e565b611a238286868403612707565b506001949350505050565b600033610b93818585612c23565b611a5360008051602061476e8339815191526125de565b8080611aa15760405162461bcd60e51b815260206004820152601760248201527f5175657565206d757374206e6f7420626520656d7074790000000000000000006044820152606401610c9e565b611aad60096000614056565b60005b81811015611b74576000848483818110611acc57611acc6145ac565b9050602002016020810190611ae19190614229565b6001600160a01b0381166000908152600860205260409020805491925090611b1b5760405162461bcd60e51b8152600401610c9e90614482565b5060098054600180820183556000929092527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0180546001600160a01b0319166001600160a01b03939093169290921790915501611ab0565b507fe159a1b5cb3e0bbe2f0caa53bcf2cd9ea0bc25a8c7b8302b1ac510f29cac8baa8383604051611ba69291906145c2565b60405180910390a1505050565b6000611bbe60025490565b611bc6575090565b610abb611bd16126eb565b611bdb90846143b1565b60025461282b565b6000611bee84610b9d565b9050336001600160a01b03831614611c0b57611c0b823383612b97565b611c16818484612df1565b509392505050565b600c546040516370a0823160e01b8152306004820152600091906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa158015611c89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cad9190614446565b610a919190614417565b6112e6813361341e565b6000336001600160a01b03831614611cde57611cde823386612b97565b611ce9848484612df1565b949350505050565b336001600160a01b03821614611d1857611d1860008051602061474e8339815191526125de565b6001600160a01b038116600090815260086020526040902060020154611d3b5750565b6001600160a01b038116600090815260086020526040812060020154600b805491929091611d6a90849061442f565b90915550506001600160a01b038116600081815260086020526040808220600201829055517f4201c688d84c01154d321afa0c72f1bffe9eef53005c9de9d035074e71e9b32a9190a250565b600e5460009060ff1680611dd35750600a54611dd0611c1e565b10155b15611de057506000919050565b600019600a541415611df55750600019919050565b610abb611e00611c1e565b600a546108f9919061442f565b6000611e1860025490565b1580611e295750611e276126eb565b155b15611e32575090565b611e3a6126eb565b600254610b71565b60098181548110611e5257600080fd5b6000918252602090912001546001600160a01b0316905081565b6000818152600660205260408120610abb9061377c565b6001600160a01b038116600090815260208190526040812054610abb90610b53565b600082815260056020526040902060010154611ec18133613376565b61131083836133fc565b6001600160a01b038116600090815260208190526040812054610abb565b6040516370a0823160e01b815233600482015261191e907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015611f51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f759190614446565b3361341e565b611f9260008051602061476e8339815191526125de565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b03161415611ffd5760405162461bcd60e51b815260206004820152600660248201526510ba37b5b2b760d11b6044820152606401610c9e565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015612044573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120689190614446565b905061207e6001600160a01b0383163383612a90565b604080516001600160a01b0384168152602081018390527f741ee845808813887c0b0d54aa20a3d0f670bebce7b6a1face577afbc00d1d6c910160405180910390a15050565b6000610abb82611e0d565b6120d960006125de565b600e5460ff16156121425760405162461bcd60e51b815260206004820152602d60248201527f43616e6e6f742061646420737472617465677920647572696e6720656d65726760448201526c32b731bc9039b43aba3237bbb760991b6064820152608401610c9e565b6001600160a01b0383166121685760405162461bcd60e51b8152600401610c9e90614482565b6001600160a01b038316600090815260086020526040902054156121c75760405162461bcd60e51b815260206004820152601660248201527514dd1c985d1959de48185b1c9958591e48185919195960521b6044820152606401610c9e565b826001600160a01b031663fbfa77cf6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612205573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122299190614610565b6001600160a01b0316306001600160a01b0316146122895760405162461bcd60e51b815260206004820152601f60248201527f53747261746567792773207661756c7420646f6573206e6f74206d61746368006044820152606401610c9e565b826001600160a01b0316631f1fcd516040518163ffffffff1660e01b8152600401602060405180830381865afa1580156122c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122eb9190614610565b6001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03161461236b5760405162461bcd60e51b815260206004820152601e60248201527f537472617465677927732077616e7420646f6573206e6f74206d6174636800006044820152606401610c9e565b61237860056127106143e6565b8211156123c75760405162461bcd60e51b815260206004820181905260248201527f4665652063616e6e6f7420626520686967686572207468616e203230204250536044820152606401610c9e565b612710600b54826123d89190614417565b111561241f5760405162461bcd60e51b8152602060048201526016602482015275496e76616c696420616c6c6f634250532076616c756560501b6044820152606401610c9e565b6040805160e0810182524280825260208083018681528385018681526000606086018181526080870182815260a0880183815260c089019788526001600160a01b038d1684526008909652978220965187559251600187015590516002860155905160038501559351600484015551600583015551600690910155600b80548392906124ac908490614417565b9091555050600980546001810182556000919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0180546001600160a01b0319166001600160a01b03851690811790915560408051848152602081018490527f45bb3eed5cd098efb0a286413fb1f3c11841762610cefbabae6a772963e916ba910160405180910390a2505050565b60010190565b61254d8282611939565b6112e65760008281526005602090815260408083206001600160a01b03851684529091529020805460ff191660011790556125853390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006112c7836001600160a01b038416613786565b60006125e86137d5565b8051909150600080805b8381101561266257811580156126265750612626858281518110612618576126186145ac565b6020026020010151336138ad565b1561263057600191505b848181518110612642576126426145ac565b602002602001015186141561265a5760019250612662565b6001016125f2565b5081801561266d5750805b6126af5760405162461bcd60e51b8152602060048201526013602482015272556e617574686f72697a65642061636365737360681b6044820152606401610c9e565b5050505050565b60006001600160e01b03198216637965db0b60e01b1480610abb57506301ffc9a760e01b6001600160e01b0319831614610abb565b60006126f5612b31565b6126fd611c1e565b610a91919061442f565b6001600160a01b0383166127695760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610c9e565b6001600160a01b0382166127ca5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610c9e565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60008161286a5760405162461bcd60e51b815260206004820152600d60248201526c04469766973696f6e206279203609c1b6044820152606401610c9e565b600061287683856143e6565b9050612882838561462d565b156112c7578061289181614641565b95945050505050565b6001600160a01b038216600090815260086020526040902060038101548083111561291f5760405162461bcd60e51b815260206004820152602f60248201527f5374726174656779206c6f73732063616e6e6f7420626520677265617465722060448201526e3a3430b71030b63637b1b0ba34b7b760891b6064820152608401610c9e565b600b541561298e576000612951600c54600b548661293d91906143b1565b61294791906143e6565b8460020154612a7a565b9050801561298c578083600201600082825461296d919061442f565b9250508190555080600b6000828254612986919061442f565b90915550505b505b828260050160008282546129a29190614417565b92505081905550828260030160008282546129bd919061442f565b9250508190555082600c60008282546129d6919061442f565b909155505050505050565b6001600160a01b038216600090815260086020526040812060010154819061271090612a0d90856143b1565b612a1791906143e6565b905080156112c7576000612a2a60025490565b905060008115612a5557612a3c6126eb565b612a4683856143b1565b612a5091906143e6565b612a57565b825b601254909150612a70906001600160a01b0316826138b9565b5050905092915050565b6000818310612a8957816112c7565b5090919050565b6040516001600160a01b03831660248201526044810182905261131090849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152613998565b6040516001600160a01b0380851660248301528316604482015260648101829052612b2b9085906323b872dd60e01b90608401612abc565b50505050565b600080601054600d5442612b45919061442f565b612b4f91906143b1565b9050670de0b6b3a7640000811015612b8f57670de0b6b3a764000060115482612b7891906143b1565b612b8291906143e6565b601154611117919061442f565b600091505090565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114612b2b5781811015612c165760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610c9e565b612b2b8484848403612707565b6001600160a01b038316612c875760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610c9e565b6001600160a01b038216612ce95760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610c9e565b6001600160a01b03831660009081526020819052604090205481811015612d615760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610c9e565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290612d98908490614417565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612de491815260200190565b60405180910390a3612b2b565b600060026007541415612e465760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c9e565b600260075583612e895760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b6044820152606401610c9e565b60025484612e956126eb565b612e9f91906143b1565b612ea991906143e6565b9050612eb58285613a6a565b6040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015612f19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f3d9190614446565b8111156132eb5760095460009081805b828110156131dc576040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015612fb9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612fdd9190614446565b9150818511612feb576131dc565b600060098281548110613000576130006145ac565b60009182526020808320909101546001600160a01b03168083526008909152604090912060030154909150806130375750506131d4565b6000613043858961442f565b90506000836001600160a01b0316632e1a7d4d6130608486612a7a565b6040518263ffffffff1660e01b815260040161307e91815260200190565b6020604051808303816000875af115801561309d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130c19190614446565b6040516370a0823160e01b815230600482015290915060009087906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa15801561312d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131519190614446565b61315b919061442f565b905081156131855761316d828b61442f565b9950613179828a614417565b9850613185858361289a565b6001600160a01b038516600090815260086020526040812060030180548392906131b090849061442f565b9250508190555080600c60008282546131c9919061442f565b909155505050505050505b600101612f4d565b506040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015613241573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132659190614446565b905080841115613273578093505b600f54612710906132848587614417565b61328e91906143b1565b61329891906143e6565b8311156132e75760405162461bcd60e51b815260206004820152601e60248201527f5769746864726177206c6f7373206578636565647320736c69707061676500006044820152606401610c9e565b5050505b61331f6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168483612a90565b60408051828152602081018690526001600160a01b03808516929086169133917ffbde797d201c681b91056529119e0b02407c7bb96a4a2c75c01fc9667232c8db910160405180910390a460016007559392505050565b6133808282611939565b6112e657613398816001600160a01b03166014613bb8565b6133a3836020613bb8565b6040516020016133b492919061465c565b60408051601f198184030181529082905262461bcd60e51b8252610c9e916004016140f7565b6133e48282612543565b600082815260066020526040902061131090826125c9565b6134068282613d54565b60008281526006602052604090206113109082613dbb565b6000600260075414156134735760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c9e565b6002600755600e5460ff16156134dc5760405162461bcd60e51b815260206004820152602860248201527f43616e6e6f74206465706f73697420647572696e6720656d657267656e63792060448201526739b43aba3237bbb760c11b6064820152608401610c9e565b8261351a5760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b6044820152606401610c9e565b6000613524611c1e565b600a549091506135348583614417565b11156135725760405162461bcd60e51b815260206004820152600d60248201526c15985d5b1d081a5cc8199d5b1b609a1b6044820152606401610c9e565b600061357c6126eb565b6040516370a0823160e01b81523060048201529091506000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa1580156135e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061360a9190614446565b90506136416001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333089612af3565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa1580156136a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136cc9190614446565b90506136d8828261442f565b96506136e360025490565b6136ef57869450613710565b826136f960025490565b61370390896143b1565b61370d91906143e6565b94505b61371a86866138b9565b60408051888152602081018790526001600160a01b0388169133917fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7910160405180910390a35050600160075550909392505050565b60006112c78383613dd0565b6000610abb825490565b60008181526001830160205260408120546137cd57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610abb565b506000610abb565b60408051600480825260a0820190925260609160009190602082016080803683370190505090506000801b81600081518110613813576138136145ac565b60200260200101818152505060008051602061476e83398151915281600181518110613841576138416145ac565b60200260200101818152505060008051602061474e8339815191528160028151811061386f5761386f6145ac565b60200260200101818152505060008051602061478e8339815191528160038151811061389d5761389d6145ac565b6020908102919091010152919050565b60006112c78383611939565b6001600160a01b03821661390f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610c9e565b80600260008282546139219190614417565b90915550506001600160a01b0382166000908152602081905260408120805483929061394e908490614417565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60006139ed826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316613dfa9092919063ffffffff16565b8051909150156113105780806020019051810190613a0b91906146e7565b6113105760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610c9e565b6001600160a01b038216613aca5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610c9e565b6001600160a01b03821660009081526020819052604090205481811015613b3e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610c9e565b6001600160a01b0383166000908152602081905260408120838303905560028054849290613b6d90849061442f565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b60606000613bc78360026143b1565b613bd2906002614417565b67ffffffffffffffff811115613bea57613bea6146d1565b6040519080825280601f01601f191660200182016040528015613c14576020820181803683370190505b509050600360fc1b81600081518110613c2f57613c2f6145ac565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110613c5e57613c5e6145ac565b60200101906001600160f81b031916908160001a9053506000613c828460026143b1565b613c8d906001614417565b90505b6001811115613d05576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110613cc157613cc16145ac565b1a60f81b828281518110613cd757613cd76145ac565b60200101906001600160f81b031916908160001a90535060049490941c93613cfe81614704565b9050613c90565b5083156112c75760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610c9e565b613d5e8282611939565b156112e65760008281526005602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006112c7836001600160a01b038416613e09565b6000826000018281548110613de757613de76145ac565b9060005260206000200154905092915050565b6060611ce98484600085613efc565b60008181526001830160205260408120548015613ef2576000613e2d60018361442f565b8554909150600090613e419060019061442f565b9050818114613ea6576000866000018281548110613e6157613e616145ac565b9060005260206000200154905080876000018481548110613e8457613e846145ac565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080613eb757613eb761471b565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610abb565b6000915050610abb565b606082471015613f5d5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610c9e565b6001600160a01b0385163b613fb45760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610c9e565b600080866001600160a01b03168587604051613fd09190614731565b60006040518083038185875af1925050503d806000811461400d576040519150601f19603f3d011682016040523d82523d6000602084013e614012565b606091505b50915091506112938282866060831561402c5750816112c7565b82511561403c5782518084602001fd5b8160405162461bcd60e51b8152600401610c9e91906140f7565b508054600082559060005260206000209081019061191e91905b808211156140845760008155600101614070565b5090565b60006020828403121561409a57600080fd5b5035919050565b6000602082840312156140b357600080fd5b81356001600160e01b0319811681146112c757600080fd5b60005b838110156140e65781810151838201526020016140ce565b83811115612b2b5750506000910152565b60208152600082518060208401526141168160408501602087016140cb565b601f01601f19169190910160400192915050565b6001600160a01b038116811461191e57600080fd5b6000806040838503121561415257600080fd5b823561415d8161412a565b946020939093013593505050565b6000806040838503121561417e57600080fd5b50508035926020909101359150565b801515811461191e57600080fd5b6000602082840312156141ad57600080fd5b81356112c78161418d565b6000806000606084860312156141cd57600080fd5b83356141d88161412a565b925060208401356141e88161412a565b929592945050506040919091013590565b6000806040838503121561420c57600080fd5b82359150602083013561421e8161412a565b809150509250929050565b60006020828403121561423b57600080fd5b81356112c78161412a565b6000806020838503121561425957600080fd5b823567ffffffffffffffff8082111561427157600080fd5b818501915085601f83011261428557600080fd5b81358181111561429457600080fd5b8660208260051b85010111156142a957600080fd5b60209290920196919550909350505050565b6000806000606084860312156142d057600080fd5b8335925060208401356142e28161412a565b915060408401356142f28161412a565b809150509250925092565b6000806040838503121561431057600080fd5b823561431b8161412a565b9150602083013561421e8161412a565b60008060006060848603121561434057600080fd5b833561434b8161412a565b95602085013595506040909401359392505050565b600181811c9082168061437457607f821691505b6020821081141561439557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156143cb576143cb61439b565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826143f5576143f56143d0565b500490565b6000600160ff1b8214156144105761441061439b565b5060000390565b6000821982111561442a5761442a61439b565b500190565b6000828210156144415761444161439b565b500390565b60006020828403121561445857600080fd5b5051919050565b60006020828403121561447157600080fd5b815160ff811681146112c757600080fd5b60208082526018908201527f496e76616c696420737472617465677920616464726573730000000000000000604082015260600190565b600181815b808511156144f45781600019048211156144da576144da61439b565b808516156144e757918102915b93841c93908002906144be565b509250929050565b60008261450b57506001610abb565b8161451857506000610abb565b816001811461452e576002811461453857614554565b6001915050610abb565b60ff8411156145495761454961439b565b50506001821b610abb565b5060208310610133831016604e8410600b8410161715614577575081810a610abb565b61458183836144b9565b80600019048211156145955761459561439b565b029392505050565b60006112c760ff8416836144fc565b634e487b7160e01b600052603260045260246000fd5b60208082528181018390526000908460408401835b868110156146055782356145ea8161412a565b6001600160a01b0316825291830191908301906001016145d7565b509695505050505050565b60006020828403121561462257600080fd5b81516112c78161412a565b60008261463c5761463c6143d0565b500690565b60006000198214156146555761465561439b565b5060010190565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516146948160178501602088016140cb565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516146c58160288401602088016140cb565b01602801949350505050565b634e487b7160e01b600052604160045260246000fd5b6000602082840312156146f957600080fd5b81516112c78161418d565b6000816147135761471361439b565b506000190190565b634e487b7160e01b600052603160045260246000fd5b600082516147438184602087016140cb565b919091019291505056fe8b5b16d04624687fcf0d0228f19993c9157c1ed07b41d8d430fd9100eb099fe8df8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42b17d0a42cc710456bf9c3efb785dcd0cb93a0ac358113307b5c64b285b516b5ca26469706673582212202e2188089920ff54af82bb05c926fc5e09e67201f8b87535992d3debdb6a5fa764736f6c634300080b003300000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c8300000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000010f0cf064dd592000000000000000000000000000000e7c5313e9bb80b654734d9b7ab1fb01468dee3b000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000000a5746544d20437279707400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000672665746544d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000001e71aee6081f62053123140aacc7a06021d7734800000000000000000000000081876677843d00a7d792e1617459ac2e932025760000000000000000000000001a20d7a31e5b3bc5f02c8a146ef6f394502a10c4000000000000000000000000000000000000000000000000000000000000000300000000000000000000000004c710a1e8a738cdf7cad3a52ba77a784c35d8ce000000000000000000000000539ef36c804e4d735d8cab69e8e441c12d4b88e0000000000000000000000000f20e25f2ab644c8ecbfc992a6829478a85a98f2c

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061043d5760003560e01c8063724c184c11610236578063b6b55f251161013b578063d250f088116100c3578063def68a9c11610087578063def68a9c146109ad578063ef8b30f7146109c0578063f06c5610146109d3578063fa34d611146109fa578063fc0c546a14610a0d57600080fd5b8063d250f08814610937578063d547741f14610946578063d905777e14610959578063dd62ed3e1461096c578063de5f6268146109a557600080fd5b8063c63d75b61161010a578063c63d75b6146108d8578063c6e6f592146108eb578063c822adda146108fe578063ca15c87314610911578063ce96cb771461092457600080fd5b8063b6b55f2514610896578063ba087652146108a9578063bb994d48146108bc578063c3535b52146108cf57600080fd5b806395d89b41116101be578063a9059cbb1161018d578063a9059cbb14610842578063ac579b7714610855578063b3d7f6b914610868578063b460af941461087b578063b69ef8a81461088e57600080fd5b806395d89b411461080a5780639cfdede314610812578063a217fddf14610827578063a457c2d71461082f57600080fd5b80637f51bb1f116102055780637f51bb1f146107b6578063853828b6146107c95780639010d07c146107d157806391d14854146107e457806394bf804d146107f757600080fd5b8063724c184c1461077357806377c7b8fc146107885780637a550365146107905780637d6205be146107a357600080fd5b80633403c2fc1161034757806345f7f249116102cf5780635f3d3a0e116102935780635f3d3a0e1461070857806361d027b31461071b5780636e553f651461072e5780636f9c94a81461074157806370a082311461074a57600080fd5b806345f7f249146106c7578063462f82f4146106d0578063483b6031146106e35780634870dd9a146106ec5780634cdad506146106f557600080fd5b806339ebf8231161031657806339ebf823146106195780633f23fa1a14610699578063402d267d146106a257806342232716146106b557806344b81396146106be57600080fd5b80633403c2fc146105ac57806336568abe146105b957806338d52e0f146105cc578063395093511461060657600080fd5b806318160ddd116103ca57806329b9d6941161039957806329b9d6941461054f5780632a0acc6a146105575780632e1a7d4d1461056c5780632f2ff15d1461057f578063313ce5671461059257600080fd5b806318160ddd14610509578063199cb7d81461051157806323b872dd14610519578063248a9ca31461052c57600080fd5b806307a2d13a1161041157806307a2d13a146104aa578063095ea7b3146104bd5780630a28a477146104d05780630f3d249d146104e357806314c64402146104f657600080fd5b8062272d811461044257806301e1d1141461045757806301ffc9a71461047257806306fdde0314610495575b600080fd5b610455610450366004614088565b610a34565b005b61045f610a87565b6040519081526020015b60405180910390f35b6104856104803660046140a1565b610a96565b6040519015158152602001610469565b61049d610ac1565b60405161046991906140f7565b61045f6104b8366004614088565b610b53565b6104856104cb36600461413f565b610b85565b61045f6104de366004614088565b610b9d565b61045f6104f136600461416b565b610be9565b61045561050436600461419b565b61105d565b60025461045f565b61045f6110d7565b6104856105273660046141b8565b6112a8565b61045f61053a366004614088565b60009081526005602052604090206001015490565b6104556112ce565b61045f60008051602061476e83398151915281565b61045561057a366004614088565b6112db565b61045561058d3660046141f9565b6112ea565b61059a611315565b60405160ff9091168152602001610469565b600e546104859060ff1681565b6104556105c73660046141f9565b611399565b7f00000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c835b6040516001600160a01b039091168152602001610469565b61048561061436600461413f565b611413565b610664610627366004614229565b6008602052600090815260409020805460018201546002830154600384015460048501546005860154600690960154949593949293919290919087565b604080519788526020880196909652948601939093526060850191909152608084015260a083015260c082015260e001610469565b61045f600a5481565b61045f6106b0366004614229565b611452565b61045f60105481565b61045f60115481565b61045f600c5481565b6104556106de366004614088565b6114a6565b61045f600f5481565b61045f61271081565b61045f610703366004614088565b611538565b61045561071636600461413f565b611543565b6012546105ee906001600160a01b031681565b61045f61073c3660046141f9565b611687565b61045f600b5481565b61045f610758366004614229565b6001600160a01b031660009081526020819052604090205490565b61045f60008051602061474e83398151915281565b61045f611693565b61045561079e366004614088565b6116e8565b6104556107b136600461413f565b611798565b6104556107c4366004614229565b611890565b610455611904565b6105ee6107df36600461416b565b611921565b6104856107f23660046141f9565b611939565b61045f6108053660046141f9565b611964565b61049d611982565b61045f60008051602061478e83398151915281565b61045f600081565b61048561083d36600461413f565b611991565b61048561085036600461413f565b611a2e565b610455610863366004614246565b611a3c565b61045f610876366004614088565b611bb3565b61045f6108893660046142bb565b611be3565b61045f611c1e565b6104556108a4366004614088565b611cb7565b61045f6108b73660046142bb565b611cc1565b6104556108ca366004614229565b611cf1565b61045f600d5481565b61045f6108e6366004614229565b611db6565b61045f6108f9366004614088565b611e0d565b6105ee61090c366004614088565b611e42565b61045f61091f366004614088565b611e6c565b61045f610932366004614229565b611e83565b61045f670de0b6b3a764000081565b6104556109543660046141f9565b611ea5565b61045f610967366004614229565b611ecb565b61045f61097a3660046142fd565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610455611ee9565b6104556109bb366004614229565b611f7b565b61045f6109ce366004614088565b6120c4565b61045f7f0000000000000000000000000000000000000000000000000000000063914d0481565b610455610a0836600461432b565b6120cf565b6105ee7f00000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c8381565b610a4b60008051602061476e8339815191526125de565b600a8190556040518181527f2923cecec41b7140eaf657a035af4abb23ed61d16b1fc20a986838eb3ad99bd0906020015b60405180910390a150565b6000610a91611c1e565b905090565b60006001600160e01b03198216635a05180f60e01b1480610abb5750610abb826126b6565b92915050565b606060038054610ad090614360565b80601f0160208091040260200160405190810160405280929190818152602001828054610afc90614360565b8015610b495780601f10610b1e57610100808354040283529160200191610b49565b820191906000526020600020905b815481529060010190602001808311610b2c57829003601f168201915b5050505050905090565b6000610b5e60025490565b610b66575090565b600254610b716126eb565b610b7b90846143b1565b610abb91906143e6565b600033610b93818585612707565b5060019392505050565b6000610ba860025490565b1580610bb95750610bb76126eb565b155b15610bc657506000919050565b610abb610bd260025490565b610bdc90846143b1565b610be46126eb565b61282b565b6000610c4a60405180610140016040528060006001600160a01b031681526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b3380825260009081526008602052604090208054610ca75760405162461bcd60e51b8152602060048201526015602482015274556e617574686f72697a656420737472617465677960581b60448201526064015b60405180910390fd5b6000851215610cd057610cb9856143fa565b602083018190528251610ccb9161289a565b610d10565b6000851315610d1057604082018590528151610cec90866129e1565b60608301526040820151600482018054600090610d0a908490614417565b90915550505b610d186110d7565b6080830181905260001315610daa578160800151610d35906143fa565b60a08301819052610d469085612a7a565b60e0830181905215610da5578160e00151816003016000828254610d6a919061442f565b909155505060e0820151600c8054600090610d8690849061442f565b909155505060e082015160a083018051610da190839061442f565b9052505b610df9565b600082608001511315610df957608082015160c08301819052600382018054600090610dd7908490614417565b909155505060c0820151600c8054600090610df3908490614417565b90915550505b838260400151610e099190614417565b610100830181905260c08301511115610e6d57815161010083015160c0840151610e689291610e379161442f565b6001600160a01b037f00000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c83169190612a90565b610ece565b8161010001518260c001511015610ece57610ece8260000151308460c00151856101000151610e9c919061442f565b6001600160a01b037f00000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c8316929190612af3565b81606001518260400151610ee0612b31565b610eea9190614417565b610ef4919061442f565b610120830181905260208301511015610f24578160200151826101200151610f1c919061442f565b601155610f2a565b60006011555b4260068201819055600d55815160408084015160208086015160e0808801516004880154600589015460038a015460c0808d015160028d01548b519a8b52988a0197909752888a01949094526060880192909252608087015260a086015284019190915282015290516001600160a01b03909216917f67f96d2854a335a4cadb49f84fd3ca6f990744ddb3feceeb4b349d2d53d32ad3918190036101000190a260028101541580610fdd5750600e5460ff165b156110515781600001516001600160a01b031663722713f76040518163ffffffff1660e01b8152600401602060405180830381865afa158015611024573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110489190614446565b92505050610abb565b5060a001519392505050565b801561107f5761107a60008051602061474e8339815191526125de565b611096565b61109660008051602061476e8339815191526125de565b600e805460ff19168215159081179091556040519081527fba40372a3a724dca3c57156128ef1e896724b65b37a17f190b1ad5de68f3a4f390602001610a7c565b600b54600090339015806110ed5750600e5460ff165b1561111d576001600160a01b038116600090815260086020526040902060030154611117906143fa565b91505090565b600061271061112a611c1e565b6001600160a01b03841660009081526008602052604090206002015461115091906143b1565b61115a91906143e6565b6001600160a01b0383166000908152600860205260409020600301549091508181111561119c5761118b828261442f565b611194906143fa565b935050505090565b8181101561129e5760006127106111b1611c1e565b600b546111be91906143b1565b6111c891906143e6565b600c549091508181106111e15760009550505050505090565b60006111ed848661442f565b9050611202816111fd848661442f565b612a7a565b6040516370a0823160e01b81523060048201529091506112939082906001600160a01b037f00000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c8316906370a0823190602401602060405180830381865afa15801561126f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111fd9190614446565b979650505050505050565b6000935050505090565b6000336112b6858285612b97565b6112c1858585612c23565b60019150505b9392505050565b6112d9600019610a34565b565b6112e6813333612df1565b5050565b6000828152600560205260409020600101546113068133613376565b61131083836133da565b505050565b60007f00000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c836001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015611375573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a91919061445f565b6001600160a01b03811633146114095760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610c9e565b6112e682826133fc565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909190610b93908290869061144d908790614417565b612707565b600e5460009060ff168061146f5750600a5461146c611c1e565b10155b1561147c57506000919050565b600019600a5414156114915750600019919050565b611499611c1e565b600a54610abb919061442f565b6114bd60008051602061478e8339815191526125de565b6127108111156115035760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964204250532076616c756560781b6044820152606401610c9e565b600f8190556040518181527f23e1382e62459214e4b3240fe95817b36865752f45f7569957018fe5a105f7b590602001610a7c565b6000610abb82610b53565b61155a60008051602061478e8339815191526125de565b6001600160a01b03821660009081526008602052604090205461158f5760405162461bcd60e51b8152600401610c9e90614482565b6001600160a01b038216600090815260086020526040812060020154600b8054919290916115be90849061442f565b90915550506001600160a01b0382166000908152600860205260408120600201829055600b80548392906115f3908490614417565b9091555050600b5461271010156116405760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964204250532076616c756560781b6044820152606401610c9e565b816001600160a01b03167f437afd93b1abdad7ff741b69dde7efdd15dba7fb6999ba3471db17fd029dced98260405161167b91815260200190565b60405180910390a25050565b60006112c7838361341e565b600061169e60025490565b156116d5576002546116ae611315565b6116b990600a61459d565b6116c16126eb565b6116cb91906143b1565b610a9191906143e6565b6116dd611315565b610a9190600a61459d565b6116ff60008051602061476e8339815191526125de565b670de0b6b3a76400008111156117635760405162461bcd60e51b8152602060048201526024808201527f4465677261646174696f6e2063616e6e6f74206265206d6f7265207468616e206044820152633130302560e01b6064820152608401610c9e565b60108190556040518181527f056863905a721211fc4dda1d688efc8f120b4b689d2e41da8249cf6eff20069190602001610a7c565b6117af60008051602061476e8339815191526125de565b6001600160a01b0382166000908152600860205260409020546117e45760405162461bcd60e51b8152600401610c9e90614482565b6117f160056127106143e6565b8111156118405760405162461bcd60e51b815260206004820181905260248201527f4665652063616e6e6f7420626520686967686572207468616e203230204250536044820152606401610c9e565b6001600160a01b03821660008181526008602052604090819020600101839055517f8281ff4064168f20aa9abde7f62b8b72efb10b48e7e838af54dcabff3131474a9061167b9084815260200190565b61189a60006125de565b6001600160a01b0381166118e25760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b6044820152606401610c9e565b601280546001600160a01b0319166001600160a01b0392909216919091179055565b3360008181526020819052604090205461191e9180612df1565b50565b60008281526006602052604081206112c79083613770565b60009182526005602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600061196f83611bb3565b905061197b818361341e565b5092915050565b606060048054610ad090614360565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919083811015611a165760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610c9e565b611a238286868403612707565b506001949350505050565b600033610b93818585612c23565b611a5360008051602061476e8339815191526125de565b8080611aa15760405162461bcd60e51b815260206004820152601760248201527f5175657565206d757374206e6f7420626520656d7074790000000000000000006044820152606401610c9e565b611aad60096000614056565b60005b81811015611b74576000848483818110611acc57611acc6145ac565b9050602002016020810190611ae19190614229565b6001600160a01b0381166000908152600860205260409020805491925090611b1b5760405162461bcd60e51b8152600401610c9e90614482565b5060098054600180820183556000929092527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0180546001600160a01b0319166001600160a01b03939093169290921790915501611ab0565b507fe159a1b5cb3e0bbe2f0caa53bcf2cd9ea0bc25a8c7b8302b1ac510f29cac8baa8383604051611ba69291906145c2565b60405180910390a1505050565b6000611bbe60025490565b611bc6575090565b610abb611bd16126eb565b611bdb90846143b1565b60025461282b565b6000611bee84610b9d565b9050336001600160a01b03831614611c0b57611c0b823383612b97565b611c16818484612df1565b509392505050565b600c546040516370a0823160e01b8152306004820152600091906001600160a01b037f00000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c8316906370a0823190602401602060405180830381865afa158015611c89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cad9190614446565b610a919190614417565b6112e6813361341e565b6000336001600160a01b03831614611cde57611cde823386612b97565b611ce9848484612df1565b949350505050565b336001600160a01b03821614611d1857611d1860008051602061474e8339815191526125de565b6001600160a01b038116600090815260086020526040902060020154611d3b5750565b6001600160a01b038116600090815260086020526040812060020154600b805491929091611d6a90849061442f565b90915550506001600160a01b038116600081815260086020526040808220600201829055517f4201c688d84c01154d321afa0c72f1bffe9eef53005c9de9d035074e71e9b32a9190a250565b600e5460009060ff1680611dd35750600a54611dd0611c1e565b10155b15611de057506000919050565b600019600a541415611df55750600019919050565b610abb611e00611c1e565b600a546108f9919061442f565b6000611e1860025490565b1580611e295750611e276126eb565b155b15611e32575090565b611e3a6126eb565b600254610b71565b60098181548110611e5257600080fd5b6000918252602090912001546001600160a01b0316905081565b6000818152600660205260408120610abb9061377c565b6001600160a01b038116600090815260208190526040812054610abb90610b53565b600082815260056020526040902060010154611ec18133613376565b61131083836133fc565b6001600160a01b038116600090815260208190526040812054610abb565b6040516370a0823160e01b815233600482015261191e907f00000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c836001600160a01b0316906370a0823190602401602060405180830381865afa158015611f51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f759190614446565b3361341e565b611f9260008051602061476e8339815191526125de565b7f00000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c836001600160a01b0316816001600160a01b03161415611ffd5760405162461bcd60e51b815260206004820152600660248201526510ba37b5b2b760d11b6044820152606401610c9e565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015612044573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120689190614446565b905061207e6001600160a01b0383163383612a90565b604080516001600160a01b0384168152602081018390527f741ee845808813887c0b0d54aa20a3d0f670bebce7b6a1face577afbc00d1d6c910160405180910390a15050565b6000610abb82611e0d565b6120d960006125de565b600e5460ff16156121425760405162461bcd60e51b815260206004820152602d60248201527f43616e6e6f742061646420737472617465677920647572696e6720656d65726760448201526c32b731bc9039b43aba3237bbb760991b6064820152608401610c9e565b6001600160a01b0383166121685760405162461bcd60e51b8152600401610c9e90614482565b6001600160a01b038316600090815260086020526040902054156121c75760405162461bcd60e51b815260206004820152601660248201527514dd1c985d1959de48185b1c9958591e48185919195960521b6044820152606401610c9e565b826001600160a01b031663fbfa77cf6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612205573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122299190614610565b6001600160a01b0316306001600160a01b0316146122895760405162461bcd60e51b815260206004820152601f60248201527f53747261746567792773207661756c7420646f6573206e6f74206d61746368006044820152606401610c9e565b826001600160a01b0316631f1fcd516040518163ffffffff1660e01b8152600401602060405180830381865afa1580156122c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122eb9190614610565b6001600160a01b03167f00000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c836001600160a01b03161461236b5760405162461bcd60e51b815260206004820152601e60248201527f537472617465677927732077616e7420646f6573206e6f74206d6174636800006044820152606401610c9e565b61237860056127106143e6565b8211156123c75760405162461bcd60e51b815260206004820181905260248201527f4665652063616e6e6f7420626520686967686572207468616e203230204250536044820152606401610c9e565b612710600b54826123d89190614417565b111561241f5760405162461bcd60e51b8152602060048201526016602482015275496e76616c696420616c6c6f634250532076616c756560501b6044820152606401610c9e565b6040805160e0810182524280825260208083018681528385018681526000606086018181526080870182815260a0880183815260c089019788526001600160a01b038d1684526008909652978220965187559251600187015590516002860155905160038501559351600484015551600583015551600690910155600b80548392906124ac908490614417565b9091555050600980546001810182556000919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0180546001600160a01b0319166001600160a01b03851690811790915560408051848152602081018490527f45bb3eed5cd098efb0a286413fb1f3c11841762610cefbabae6a772963e916ba910160405180910390a2505050565b60010190565b61254d8282611939565b6112e65760008281526005602090815260408083206001600160a01b03851684529091529020805460ff191660011790556125853390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006112c7836001600160a01b038416613786565b60006125e86137d5565b8051909150600080805b8381101561266257811580156126265750612626858281518110612618576126186145ac565b6020026020010151336138ad565b1561263057600191505b848181518110612642576126426145ac565b602002602001015186141561265a5760019250612662565b6001016125f2565b5081801561266d5750805b6126af5760405162461bcd60e51b8152602060048201526013602482015272556e617574686f72697a65642061636365737360681b6044820152606401610c9e565b5050505050565b60006001600160e01b03198216637965db0b60e01b1480610abb57506301ffc9a760e01b6001600160e01b0319831614610abb565b60006126f5612b31565b6126fd611c1e565b610a91919061442f565b6001600160a01b0383166127695760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610c9e565b6001600160a01b0382166127ca5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610c9e565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60008161286a5760405162461bcd60e51b815260206004820152600d60248201526c04469766973696f6e206279203609c1b6044820152606401610c9e565b600061287683856143e6565b9050612882838561462d565b156112c7578061289181614641565b95945050505050565b6001600160a01b038216600090815260086020526040902060038101548083111561291f5760405162461bcd60e51b815260206004820152602f60248201527f5374726174656779206c6f73732063616e6e6f7420626520677265617465722060448201526e3a3430b71030b63637b1b0ba34b7b760891b6064820152608401610c9e565b600b541561298e576000612951600c54600b548661293d91906143b1565b61294791906143e6565b8460020154612a7a565b9050801561298c578083600201600082825461296d919061442f565b9250508190555080600b6000828254612986919061442f565b90915550505b505b828260050160008282546129a29190614417565b92505081905550828260030160008282546129bd919061442f565b9250508190555082600c60008282546129d6919061442f565b909155505050505050565b6001600160a01b038216600090815260086020526040812060010154819061271090612a0d90856143b1565b612a1791906143e6565b905080156112c7576000612a2a60025490565b905060008115612a5557612a3c6126eb565b612a4683856143b1565b612a5091906143e6565b612a57565b825b601254909150612a70906001600160a01b0316826138b9565b5050905092915050565b6000818310612a8957816112c7565b5090919050565b6040516001600160a01b03831660248201526044810182905261131090849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152613998565b6040516001600160a01b0380851660248301528316604482015260648101829052612b2b9085906323b872dd60e01b90608401612abc565b50505050565b600080601054600d5442612b45919061442f565b612b4f91906143b1565b9050670de0b6b3a7640000811015612b8f57670de0b6b3a764000060115482612b7891906143b1565b612b8291906143e6565b601154611117919061442f565b600091505090565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114612b2b5781811015612c165760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610c9e565b612b2b8484848403612707565b6001600160a01b038316612c875760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610c9e565b6001600160a01b038216612ce95760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610c9e565b6001600160a01b03831660009081526020819052604090205481811015612d615760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610c9e565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290612d98908490614417565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612de491815260200190565b60405180910390a3612b2b565b600060026007541415612e465760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c9e565b600260075583612e895760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b6044820152606401610c9e565b60025484612e956126eb565b612e9f91906143b1565b612ea991906143e6565b9050612eb58285613a6a565b6040516370a0823160e01b81523060048201527f00000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c836001600160a01b0316906370a0823190602401602060405180830381865afa158015612f19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f3d9190614446565b8111156132eb5760095460009081805b828110156131dc576040516370a0823160e01b81523060048201527f00000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c836001600160a01b0316906370a0823190602401602060405180830381865afa158015612fb9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612fdd9190614446565b9150818511612feb576131dc565b600060098281548110613000576130006145ac565b60009182526020808320909101546001600160a01b03168083526008909152604090912060030154909150806130375750506131d4565b6000613043858961442f565b90506000836001600160a01b0316632e1a7d4d6130608486612a7a565b6040518263ffffffff1660e01b815260040161307e91815260200190565b6020604051808303816000875af115801561309d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130c19190614446565b6040516370a0823160e01b815230600482015290915060009087906001600160a01b037f00000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c8316906370a0823190602401602060405180830381865afa15801561312d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131519190614446565b61315b919061442f565b905081156131855761316d828b61442f565b9950613179828a614417565b9850613185858361289a565b6001600160a01b038516600090815260086020526040812060030180548392906131b090849061442f565b9250508190555080600c60008282546131c9919061442f565b909155505050505050505b600101612f4d565b506040516370a0823160e01b81523060048201527f00000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c836001600160a01b0316906370a0823190602401602060405180830381865afa158015613241573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132659190614446565b905080841115613273578093505b600f54612710906132848587614417565b61328e91906143b1565b61329891906143e6565b8311156132e75760405162461bcd60e51b815260206004820152601e60248201527f5769746864726177206c6f7373206578636565647320736c69707061676500006044820152606401610c9e565b5050505b61331f6001600160a01b037f00000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c83168483612a90565b60408051828152602081018690526001600160a01b03808516929086169133917ffbde797d201c681b91056529119e0b02407c7bb96a4a2c75c01fc9667232c8db910160405180910390a460016007559392505050565b6133808282611939565b6112e657613398816001600160a01b03166014613bb8565b6133a3836020613bb8565b6040516020016133b492919061465c565b60408051601f198184030181529082905262461bcd60e51b8252610c9e916004016140f7565b6133e48282612543565b600082815260066020526040902061131090826125c9565b6134068282613d54565b60008281526006602052604090206113109082613dbb565b6000600260075414156134735760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c9e565b6002600755600e5460ff16156134dc5760405162461bcd60e51b815260206004820152602860248201527f43616e6e6f74206465706f73697420647572696e6720656d657267656e63792060448201526739b43aba3237bbb760c11b6064820152608401610c9e565b8261351a5760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b6044820152606401610c9e565b6000613524611c1e565b600a549091506135348583614417565b11156135725760405162461bcd60e51b815260206004820152600d60248201526c15985d5b1d081a5cc8199d5b1b609a1b6044820152606401610c9e565b600061357c6126eb565b6040516370a0823160e01b81523060048201529091506000906001600160a01b037f00000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c8316906370a0823190602401602060405180830381865afa1580156135e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061360a9190614446565b90506136416001600160a01b037f00000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c8316333089612af3565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c836001600160a01b0316906370a0823190602401602060405180830381865afa1580156136a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136cc9190614446565b90506136d8828261442f565b96506136e360025490565b6136ef57869450613710565b826136f960025490565b61370390896143b1565b61370d91906143e6565b94505b61371a86866138b9565b60408051888152602081018790526001600160a01b0388169133917fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7910160405180910390a35050600160075550909392505050565b60006112c78383613dd0565b6000610abb825490565b60008181526001830160205260408120546137cd57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610abb565b506000610abb565b60408051600480825260a0820190925260609160009190602082016080803683370190505090506000801b81600081518110613813576138136145ac565b60200260200101818152505060008051602061476e83398151915281600181518110613841576138416145ac565b60200260200101818152505060008051602061474e8339815191528160028151811061386f5761386f6145ac565b60200260200101818152505060008051602061478e8339815191528160038151811061389d5761389d6145ac565b6020908102919091010152919050565b60006112c78383611939565b6001600160a01b03821661390f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610c9e565b80600260008282546139219190614417565b90915550506001600160a01b0382166000908152602081905260408120805483929061394e908490614417565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60006139ed826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316613dfa9092919063ffffffff16565b8051909150156113105780806020019051810190613a0b91906146e7565b6113105760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610c9e565b6001600160a01b038216613aca5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610c9e565b6001600160a01b03821660009081526020819052604090205481811015613b3e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610c9e565b6001600160a01b0383166000908152602081905260408120838303905560028054849290613b6d90849061442f565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b60606000613bc78360026143b1565b613bd2906002614417565b67ffffffffffffffff811115613bea57613bea6146d1565b6040519080825280601f01601f191660200182016040528015613c14576020820181803683370190505b509050600360fc1b81600081518110613c2f57613c2f6145ac565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110613c5e57613c5e6145ac565b60200101906001600160f81b031916908160001a9053506000613c828460026143b1565b613c8d906001614417565b90505b6001811115613d05576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110613cc157613cc16145ac565b1a60f81b828281518110613cd757613cd76145ac565b60200101906001600160f81b031916908160001a90535060049490941c93613cfe81614704565b9050613c90565b5083156112c75760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610c9e565b613d5e8282611939565b156112e65760008281526005602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006112c7836001600160a01b038416613e09565b6000826000018281548110613de757613de76145ac565b9060005260206000200154905092915050565b6060611ce98484600085613efc565b60008181526001830160205260408120548015613ef2576000613e2d60018361442f565b8554909150600090613e419060019061442f565b9050818114613ea6576000866000018281548110613e6157613e616145ac565b9060005260206000200154905080876000018481548110613e8457613e846145ac565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080613eb757613eb761471b565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610abb565b6000915050610abb565b606082471015613f5d5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610c9e565b6001600160a01b0385163b613fb45760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610c9e565b600080866001600160a01b03168587604051613fd09190614731565b60006040518083038185875af1925050503d806000811461400d576040519150601f19603f3d011682016040523d82523d6000602084013e614012565b606091505b50915091506112938282866060831561402c5750816112c7565b82511561403c5782518084602001fd5b8160405162461bcd60e51b8152600401610c9e91906140f7565b508054600082559060005260206000209081019061191e91905b808211156140845760008155600101614070565b5090565b60006020828403121561409a57600080fd5b5035919050565b6000602082840312156140b357600080fd5b81356001600160e01b0319811681146112c757600080fd5b60005b838110156140e65781810151838201526020016140ce565b83811115612b2b5750506000910152565b60208152600082518060208401526141168160408501602087016140cb565b601f01601f19169190910160400192915050565b6001600160a01b038116811461191e57600080fd5b6000806040838503121561415257600080fd5b823561415d8161412a565b946020939093013593505050565b6000806040838503121561417e57600080fd5b50508035926020909101359150565b801515811461191e57600080fd5b6000602082840312156141ad57600080fd5b81356112c78161418d565b6000806000606084860312156141cd57600080fd5b83356141d88161412a565b925060208401356141e88161412a565b929592945050506040919091013590565b6000806040838503121561420c57600080fd5b82359150602083013561421e8161412a565b809150509250929050565b60006020828403121561423b57600080fd5b81356112c78161412a565b6000806020838503121561425957600080fd5b823567ffffffffffffffff8082111561427157600080fd5b818501915085601f83011261428557600080fd5b81358181111561429457600080fd5b8660208260051b85010111156142a957600080fd5b60209290920196919550909350505050565b6000806000606084860312156142d057600080fd5b8335925060208401356142e28161412a565b915060408401356142f28161412a565b809150509250925092565b6000806040838503121561431057600080fd5b823561431b8161412a565b9150602083013561421e8161412a565b60008060006060848603121561434057600080fd5b833561434b8161412a565b95602085013595506040909401359392505050565b600181811c9082168061437457607f821691505b6020821081141561439557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156143cb576143cb61439b565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826143f5576143f56143d0565b500490565b6000600160ff1b8214156144105761441061439b565b5060000390565b6000821982111561442a5761442a61439b565b500190565b6000828210156144415761444161439b565b500390565b60006020828403121561445857600080fd5b5051919050565b60006020828403121561447157600080fd5b815160ff811681146112c757600080fd5b60208082526018908201527f496e76616c696420737472617465677920616464726573730000000000000000604082015260600190565b600181815b808511156144f45781600019048211156144da576144da61439b565b808516156144e757918102915b93841c93908002906144be565b509250929050565b60008261450b57506001610abb565b8161451857506000610abb565b816001811461452e576002811461453857614554565b6001915050610abb565b60ff8411156145495761454961439b565b50506001821b610abb565b5060208310610133831016604e8410600b8410161715614577575081810a610abb565b61458183836144b9565b80600019048211156145955761459561439b565b029392505050565b60006112c760ff8416836144fc565b634e487b7160e01b600052603260045260246000fd5b60208082528181018390526000908460408401835b868110156146055782356145ea8161412a565b6001600160a01b0316825291830191908301906001016145d7565b509695505050505050565b60006020828403121561462257600080fd5b81516112c78161412a565b60008261463c5761463c6143d0565b500690565b60006000198214156146555761465561439b565b5060010190565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516146948160178501602088016140cb565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516146c58160288401602088016140cb565b01602801949350505050565b634e487b7160e01b600052604160045260246000fd5b6000602082840312156146f957600080fd5b81516112c78161418d565b6000816147135761471361439b565b506000190190565b634e487b7160e01b600052603160045260246000fd5b600082516147438184602087016140cb565b919091019291505056fe8b5b16d04624687fcf0d0228f19993c9157c1ed07b41d8d430fd9100eb099fe8df8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42b17d0a42cc710456bf9c3efb785dcd0cb93a0ac358113307b5c64b285b516b5ca26469706673582212202e2188089920ff54af82bb05c926fc5e09e67201f8b87535992d3debdb6a5fa764736f6c634300080b0033

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

00000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c8300000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000010f0cf064dd592000000000000000000000000000000e7c5313e9bb80b654734d9b7ab1fb01468dee3b000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000000a5746544d20437279707400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000672665746544d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000001e71aee6081f62053123140aacc7a06021d7734800000000000000000000000081876677843d00a7d792e1617459ac2e932025760000000000000000000000001a20d7a31e5b3bc5f02c8a146ef6f394502a10c4000000000000000000000000000000000000000000000000000000000000000300000000000000000000000004c710a1e8a738cdf7cad3a52ba77a784c35d8ce000000000000000000000000539ef36c804e4d735d8cab69e8e441c12d4b88e0000000000000000000000000f20e25f2ab644c8ecbfc992a6829478a85a98f2c

-----Decoded View---------------
Arg [0] : _token (address): 0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83
Arg [1] : _name (string): WFTM Crypt
Arg [2] : _symbol (string): rfWFTM
Arg [3] : _tvlCap (uint256): 5000000000000000000000
Arg [4] : _treasury (address): 0x0e7c5313E9BB80b654734d9b7aB1FB01468deE3b
Arg [5] : _strategists (address[]): 0x1E71AEE6081f62053123140aacC7a06021D77348,0x81876677843D00a7D792E1617459aC2E93202576,0x1A20D7A31e5B3Bc5f02c8A146EF6f394502a10c4
Arg [6] : _multisigRoles (address[]): 0x04C710a1E8a738CDf7cAD3a52Ba77A784C35d8CE,0x539eF36C804e4D735d8cAb69e8e441c12d4B88E0,0xf20E25f2AB644C8ecBFc992a6829478a85A98F2c

-----Encoded View---------------
19 Constructor Arguments found :
Arg [0] : 00000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c83
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [3] : 00000000000000000000000000000000000000000000010f0cf064dd59200000
Arg [4] : 0000000000000000000000000e7c5313e9bb80b654734d9b7ab1fb01468dee3b
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [6] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [7] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [8] : 5746544d20437279707400000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [10] : 72665746544d0000000000000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [12] : 0000000000000000000000001e71aee6081f62053123140aacc7a06021d77348
Arg [13] : 00000000000000000000000081876677843d00a7d792e1617459ac2e93202576
Arg [14] : 0000000000000000000000001a20d7a31e5b3bc5f02c8a146ef6f394502a10c4
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [16] : 00000000000000000000000004c710a1e8a738cdf7cad3a52ba77a784c35d8ce
Arg [17] : 000000000000000000000000539ef36c804e4d735d8cab69e8e441c12d4b88e0
Arg [18] : 000000000000000000000000f20e25f2ab644c8ecbfc992a6829478a85a98f2c


Deployed Bytecode Sourcemap

386:16205:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23559:150:1;;;;;;:::i;:::-;;:::i;:::-;;1415:116:0;;;:::i;:::-;;;345:25:23;;;333:2;318:18;1415:116:0;;;;;;;;634:212:8;;;;;;:::i;:::-;;:::i;:::-;;;837:14:23;;830:22;812:41;;800:2;785:18;634:212:8;672:187:23;2156:98:12;;;:::i;:::-;;;;;;;:::i;3303:197:0:-;;;;;;:::i;:::-;;:::i;4433::12:-;;;;;;:::i;:::-;;:::i;11612:224:0:-;;;;;;:::i;:::-;;:::i;20354:2537:1:-;;;;;;:::i;:::-;;:::i;24368:257::-;;;;;;:::i;:::-;;:::i;3244:106:12:-;3331:12;;3244:106;;9644:1192:1;;;:::i;5192:286:12:-;;;;;;:::i;:::-;;:::i;4008:129:7:-;;;;;;:::i;:::-;4082:7;4108:12;;;:6;:12;;;;;:22;;;;4008:129;23777:81:1;;;:::i;3644:50::-;;-1:-1:-1;;;;;;;;;;;3644:50:1;;14905:103;;;;;;:::i;:::-;;:::i;4387:145:7:-;;;;;;:::i;:::-;;:::i;26018:97:1:-;;;:::i;:::-;;;4092:4:23;4080:17;;;4062:36;;4050:2;4035:18;26018:97:1;3920:184:23;2301:29:1;;;;;;;;;5404:214:7;;;;;;:::i;:::-;;:::i;1050:114:0:-;1151:5;1050:114;;;-1:-1:-1;;;;;4273:32:23;;;4255:51;;4243:2;4228:18;1050:114:0;4109:203:23;5873:236:12;;;;;;:::i;:::-;;:::i;1605:52:1:-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4884:25:23;;;4940:2;4925:18;;4918:34;;;;4968:18;;;4961:34;;;;5026:2;5011:18;;5004:34;;;;5069:3;5054:19;;5047:35;5113:3;5098:19;;5091:35;5157:3;5142:19;;5135:35;4871:3;4856:19;1605:52:1;4569:607:23;1952:21:1;;;;;;4243:253:0;;;;;;:::i;:::-;;:::i;2546:38:1:-;;;;;;2666:27;;;;;;2072:29;;;;;;23058:281;;;;;;:::i;:::-;;:::i;2506:34::-;;;;;;1899:47;;1941:5;1899:47;;14949:134:0;;;;;;:::i;:::-;;:::i;8352:481:1:-;;;;;;:::i;:::-;;:::i;3701:23::-;;;;;-1:-1:-1;;;;;3701:23:1;;;6439:146:0;;;;;;:::i;:::-;;:::i;1980:28:1:-;;;;;;3408:125:12;;;;;;:::i;:::-;-1:-1:-1;;;;;3508:18:12;3482:7;3508:18;;;;;;;;;;;;3408:125;3582:56:1;;-1:-1:-1;;;;;;;;;;;3582:56:1;;12595:171;;;:::i;24791:304::-;;;;;;:::i;:::-;;:::i;7767:384::-;;;;;;:::i;:::-;;:::i;25185:198::-;;;;;;:::i;:::-;;:::i;14513:105::-;;;:::i;1431:151:8:-;;;;;;:::i;:::-;;:::i;2909:145:7:-;;;;;;:::i;:::-;;:::i;9534:253:0:-;;;;;;:::i;:::-;;:::i;2367:102:12:-;;;:::i;3516:60:1:-;;-1:-1:-1;;;;;;;;;;;3516:60:1;;2027:49:7;;2072:4;2027:49;;6596:429:12;;;;;;:::i;:::-;;:::i;3729:189::-;;;;;;:::i;:::-;;:::i;11014:628:1:-;;;;;;:::i;:::-;;:::i;8629:204:0:-;;;;;;:::i;:::-;;:::i;12753:394::-;;;;;;:::i;:::-;;:::i;11864:120:1:-;;;:::i;13269:89::-;;;;;;:::i;:::-;;:::i;15991:275:0:-;;;;;;:::i;:::-;;:::i;8962:369:1:-;;;;;;:::i;:::-;;:::i;2170:25::-;;;;;;7298:267:0;;;;;;:::i;:::-;;:::i;2308:218::-;;;;;;:::i;:::-;;:::i;1750:32:1:-;;;;;;:::i;:::-;;:::i;:140:8:-;;;;;;:::i;:::-;;:::i;10338:144:0:-;;;;;;:::i;:::-;;:::i;1789:56:1:-;;1839:6;1789:56;;4766:147:7;;;;;;:::i;:::-;;:::i;13697:125:0:-;;;;;;:::i;:::-;;:::i;3976:149:12:-;;;;;;:::i;:::-;-1:-1:-1;;;;;4091:18:12;;;4065:7;4091:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;3976:149;12865:97:1;;;:::i;25526:341::-;;;;;;:::i;:::-;;:::i;5591:135:0:-;;;;;;:::i;:::-;;:::i;2254:41:1:-;;;;;6393:1186;;;;;;:::i;:::-;;:::i;2395:37::-;;;;;23559:150;23618:19;-1:-1:-1;;;;;;;;;;;23618:12:1;:19::i;:::-;23647:6;:19;;;23681:21;;345:25:23;;;23681:21:1;;333:2:23;318:18;23681:21:1;;;;;;;;23559:150;:::o;1415:116:0:-;1470:26;1515:9;:7;:9::i;:::-;1508:16;;1415:116;:::o;634:212:8:-;719:4;-1:-1:-1;;;;;;742:57:8;;-1:-1:-1;;;742:57:8;;:97;;;803:36;827:11;803:23;:36::i;:::-;735:104;634:212;-1:-1:-1;;634:212:8:o;2156:98:12:-;2210:13;2242:5;2235:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2156:98;:::o;3303:197:0:-;3374:14;3404:13;3331:12:12;;;3244:106;3404:13:0;3400:37;;-1:-1:-1;3431:6:0;3303:197::o;3400:37::-;3331:12:12;;3464::0;:10;:12::i;:::-;3455:21;;:6;:21;:::i;:::-;3454:39;;;;:::i;4433:197:12:-;4516:4;719:10:17;4570:32:12;719:10:17;4586:7:12;4595:6;4570:8;:32::i;:::-;-1:-1:-1;4619:4:12;;4433:197;-1:-1:-1;;;4433:197:12:o;11612:224:0:-;11683:14;11713:13;3331:12:12;;;3244:106;11713:13:0;:18;;:39;;;11735:12;:10;:12::i;:::-;:17;11713:39;11709:53;;;-1:-1:-1;11761:1:0;;11612:224;-1:-1:-1;11612:224:0:o;11709:53::-;11781:48;11801:13;3331:12:12;;;3244:106;11801:13:0;11792:22;;:6;:22;:::i;:::-;11816:12;:10;:12::i;:::-;11781:10;:48::i;20354:2537:1:-;20421:7;20440:33;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20440:33:1;20500:10;20483:27;;;:14;20554:26;;;:10;:26;;;;;20598:19;;20590:58;;;;-1:-1:-1;;;20590:58:1;;8996:2:23;20590:58:1;;;8978:21:23;9035:2;9015:18;;;9008:30;-1:-1:-1;;;9054:18:23;;;9047:51;9115:18;;20590:58:1;;;;;;;;;20670:1;20663:4;:8;20659:292;;;20707:5;20708:4;20707:5;:::i;:::-;20687:9;;;:26;;;20739:14;;20727:38;;:11;:38::i;:::-;20659:292;;;20793:1;20786:4;:8;20782:169;;;20810:9;;;:25;;;20873:14;;20861:38;;20830:4;20861:11;:38::i;:::-;20849:9;;;:50;20931:9;;;;20913:14;;;:27;;:14;;:27;;20931:9;;20913:27;:::i;:::-;;;;-1:-1:-1;;20782:169:1;20978:18;:16;:18::i;:::-;20961:14;;;:35;;;21027:1;-1:-1:-1;21006:570:1;;;21065:4;:14;;;21064:15;;;:::i;:::-;21044:9;;;:36;;;21113:31;;21133:10;21113:8;:31::i;:::-;21094:16;;;:50;;;21163:21;21159:225;;21226:4;:16;;;21204:8;:18;;;:38;;;;;;;:::i;:::-;;;;-1:-1:-1;;21278:16:1;;;;21260:14;:34;;:14;;:34;;21278:16;;21260:34;:::i;:::-;;;;-1:-1:-1;;21325:16:1;;;;21312:9;;;:29;;;;21325:16;;21312:29;:::i;:::-;;;-1:-1:-1;21159:225:1;21006:570;;;21421:1;21404:4;:14;;;:18;21400:176;;;21460:14;;;;21438:11;;;:37;;;21489:18;;;:33;;-1:-1:-1;;21489:33:1;;21460:14;;21489:33;:::i;:::-;;;;-1:-1:-1;;21554:11:1;;;;21536:14;:29;;:14;;:29;;21554:11;;21536:29;:::i;:::-;;;;-1:-1:-1;;21400:176:1;21621:10;21609:4;:9;;;:22;;;;:::i;:::-;21586:20;;;:45;;;21645:11;;;;:34;21641:295;;;21714:14;;21744:20;;;;21730:11;;;;21695:70;;21714:14;21730:34;;;:::i;:::-;-1:-1:-1;;;;;21695:5:1;:18;;:70;:18;:70::i;:::-;21641:295;;;21800:4;:20;;;21786:4;:11;;;:34;21782:154;;;21836:89;21859:4;:14;;;21883:4;21913;:11;;;21890:4;:20;;;:34;;;;:::i;:::-;-1:-1:-1;;;;;21836:5:1;:22;;:89;;:22;:89::i;:::-;22163:4;:9;;;22151:4;:9;;;22124:24;:22;:24::i;:::-;:36;;;;:::i;:::-;:48;;;;:::i;:::-;22094:27;;;:78;;;22216:9;;;;-1:-1:-1;22182:171:1;;;22286:4;:9;;;22256:4;:27;;;:39;;;;:::i;:::-;22241:12;:54;22182:171;;;22341:1;22326:12;:16;22182:171;22385:15;22363:19;;;:37;;;22410:10;:28;22484:14;;22512:9;;;;;22535;;;;;22558:16;;;;;22588:14;;;;22616:15;;;;22645:18;;;;22677:11;;;;;22702:17;;;;22454:275;;9891:25:23;;;9932:18;;;9925:34;;;;9975:18;;;9968:34;;;;10033:2;10018:18;;10011:34;;;;10076:3;10061:19;;10054:35;10120:3;10105:19;;10098:35;10149:19;;10142:35;;;;10193:19;;10186:35;22454:275:1;;-1:-1:-1;;;;;22454:275:1;;;;;;;;;9878:3:23;22454:275:1;;;22744:17;;;;:22;;:43;;-1:-1:-1;22770:17:1;;;;22744:43;22740:118;;;22820:4;:14;;;-1:-1:-1;;;;;22810:35:1;;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;22803:44;;;;;;22740:118;-1:-1:-1;22875:9:1;;;;20354:2537;-1:-1:-1;;;20354:2537:1:o;24368:257::-;24435:7;24431:110;;;24458:22;-1:-1:-1;;;;;;;;;;;24458:12:1;:22::i;:::-;24431:110;;;24511:19;-1:-1:-1;;;;;;;;;;;24511:12:1;:19::i;:::-;24550:17;:27;;-1:-1:-1;;24550:27:1;;;;;;;;;;24592:26;;812:41:23;;;24592:26:1;;800:2:23;785:18;24592:26:1;672:187:23;9644:1192:1;9755:13;;9693:6;;9731:10;;9755:18;;:39;;-1:-1:-1;9777:17:1;;;;9755:39;9751:117;;;-1:-1:-1;;;;;9825:21:1;;;;;;:10;:21;;;;;:31;;;9817:40;;;:::i;:::-;9810:47;;;9644:1192;:::o;9751:117::-;9878:26;1941:5;9941:9;:7;:9::i;:::-;-1:-1:-1;;;;;9908:21:1;;;;;;:10;:21;;;;;:30;;;:42;;;;:::i;:::-;9907:62;;;;:::i;:::-;-1:-1:-1;;;;;10012:21:1;;9979:30;10012:21;;;:10;:21;;;;;:31;;;9878:91;;-1:-1:-1;10058:43:1;;;10054:776;;;10132:43;10157:18;10132:22;:43;:::i;:::-;10124:52;;;:::i;:::-;10117:59;;;;;9644:1192;:::o;10054:776::-;10222:18;10197:22;:43;10193:637;;;10256:26;1941:5;10302:9;:7;:9::i;:::-;10286:13;;:25;;;;:::i;:::-;10285:45;;;;:::i;:::-;10377:14;;10256:74;;-1:-1:-1;10410:44:1;;;10406:91;;10481:1;10474:8;;;;;;;9644:1192;:::o;10406:91::-;10511:17;10531:43;10552:22;10531:18;:43;:::i;:::-;10511:63;-1:-1:-1;10600:64:1;10511:63;10620:43;10641:22;10620:18;:43;:::i;:::-;10600:8;:64::i;:::-;10710:30;;-1:-1:-1;;;10710:30:1;;10734:4;10710:30;;;4255:51:23;10588:76:1;;-1:-1:-1;10690:51:1;;10588:76;;-1:-1:-1;;;;;10710:5:1;:15;;;;4228:18:23;;10710:30:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;10690:51::-;10678:63;9644:1192;-1:-1:-1;;;;;;;9644:1192:1:o;10193:637::-;10818:1;10811:8;;;;;9644:1192;:::o;5192:286:12:-;5319:4;719:10:17;5375:38:12;5391:4;719:10:17;5406:6:12;5375:15;:38::i;:::-;5423:27;5433:4;5439:2;5443:6;5423:9;:27::i;:::-;5467:4;5460:11;;;5192:286;;;;;;:::o;23777:81:1:-;23820:31;-1:-1:-1;;23820:12:1;:31::i;:::-;23777:81::o;14905:103::-;14959:42;14969:7;14978:10;14990;14959:9;:42::i;:::-;;14905:103;:::o;4387:145:7:-;4082:7;4108:12;;;:6;:12;;;;;:22;;;2505:30;2516:4;719:10:17;2505::7;:30::i;:::-;4500:25:::1;4511:4;4517:7;4500:10;:25::i;:::-;4387:145:::0;;;:::o;26018:97:1:-;26068:5;26092;-1:-1:-1;;;;;26092:14:1;;:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;5404:214:7:-;-1:-1:-1;;;;;5499:23:7;;719:10:17;5499:23:7;5491:83;;;;-1:-1:-1;;;5491:83:7;;10901:2:23;5491:83:7;;;10883:21:23;10940:2;10920:18;;;10913:30;10979:34;10959:18;;;10952:62;-1:-1:-1;;;11030:18:23;;;11023:45;11085:19;;5491:83:7;10699:411:23;5491:83:7;5585:26;5597:4;5603:7;5585:11;:26::i;5873:236:12:-;719:10:17;5961:4:12;6040:18;;;:11;:18;;;;;;;;-1:-1:-1;;;;;6040:27:12;;;;;;;;;;5961:4;;719:10:17;6015:66:12;;719:10:17;;6040:27:12;;:40;;6070:10;;6040:40;:::i;:::-;6015:8;:66::i;4243:253:0:-;4337:17;;4304;;4337;;;:40;;;4371:6;;4358:9;:7;:9::i;:::-;:19;;4337:40;4333:54;;;-1:-1:-1;4386:1:0;;4243:253;-1:-1:-1;4243:253:0:o;4333:54::-;-1:-1:-1;;4401:6:0;;:27;4397:57;;;-1:-1:-1;;;4437:17:0;4243:253;-1:-1:-1;4243:253:0:o;4397:57::-;4480:9;:7;:9::i;:::-;4471:6;;:18;;;;:::i;23058:281:1:-;23134:24;-1:-1:-1;;;;;;;;;;;23134:12:1;:24::i;:::-;1941:5;23176:16;:35;;23168:65;;;;-1:-1:-1;;;23168:65:1;;11317:2:23;23168:65:1;;;11299:21:23;11356:2;11336:18;;;11329:30;-1:-1:-1;;;11375:18:23;;;11368:47;11432:18;;23168:65:1;11115:341:23;23168:65:1;23243:15;:34;;;23292:40;;345:25:23;;;23292:40:1;;333:2:23;318:18;23292:40:1;199:177:23;14949:134:0;15020:14;15053:23;15069:6;15053:15;:23::i;8352:481:1:-;8441:24;-1:-1:-1;;;;;;;;;;;8441:12:1;:24::i;:::-;-1:-1:-1;;;;;8483:21:1;;;;;;:10;:21;;;;;:32;8475:74;;;;-1:-1:-1;;;8475:74:1;;;;;;;:::i;:::-;-1:-1:-1;;;;;8576:21:1;;;;;;:10;:21;;;;;:30;;;8559:13;:47;;8576:30;;8559:13;;:47;;8576:30;;8559:47;:::i;:::-;;;;-1:-1:-1;;;;;;;8616:21:1;;;;;;:10;:21;;;;;:30;;:42;;;8668:13;:26;;8649:9;;8616:21;8668:26;;8649:9;;8668:26;:::i;:::-;;;;-1:-1:-1;;8712:13:1;;1941:5;-1:-1:-1;8712:32:1;8704:62;;;;-1:-1:-1;;;8704:62:1;;11317:2:23;8704:62:1;;;11299:21:23;11356:2;11336:18;;;11329:30;-1:-1:-1;;;11375:18:23;;;11368:47;11432:18;;8704:62:1;11115:341:23;8704:62:1;8805:9;-1:-1:-1;;;;;8781:45:1;;8816:9;8781:45;;;;345:25:23;;333:2;318:18;;199:177;8781:45:1;;;;;;;;8352:481;;:::o;6439:146:0:-;6517:14;6552:26;6561:6;6569:8;6552;:26::i;12595:171:1:-;12648:7;12674:13;3331:12:12;;;3244:106;12674:13:1;:18;:85;;3331:12:12;;12732:10:1;:8;:10::i;:::-;12728:14;;:2;:14;:::i;:::-;12713:12;:10;:12::i;:::-;:29;;;;:::i;:::-;12712:47;;;;:::i;12674:85::-;12699:10;:8;:10::i;:::-;12695:14;;:2;:14;:::i;24791:304::-;24867:19;-1:-1:-1;;;;;;;;;;;24867:12:1;:19::i;:::-;1839:6;24904:11;:38;;24896:87;;;;-1:-1:-1;;;24896:87:1;;13399:2:23;24896:87:1;;;13381:21:23;13438:2;13418:18;;;13411:30;13477:34;13457:18;;;13450:62;-1:-1:-1;;;13528:18:23;;;13521:34;13572:19;;24896:87:1;13197:400:23;24896:87:1;24993:23;:37;;;25045:43;;345:25:23;;;25045:43:1;;333:2:23;318:18;25045:43:1;199:177:23;7767:384:1;7852:19;-1:-1:-1;;;;;;;;;;;7852:12:1;:19::i;:::-;-1:-1:-1;;;;;7889:21:1;;;;;;:10;:21;;;;;:32;7881:74;;;;-1:-1:-1;;;7881:74:1;;;;;;;:::i;:::-;7984:19;8002:1;1941:5;7984:19;:::i;:::-;7973:7;:30;;7965:75;;;;-1:-1:-1;;;7965:75:1;;13804:2:23;7965:75:1;;;13786:21:23;;;13823:18;;;13816:30;13882:34;13862:18;;;13855:62;13934:18;;7965:75:1;13602:356:23;7965:75:1;-1:-1:-1;;;;;8050:21:1;;;;;;:10;:21;;;;;;;:28;;:38;;;8103:41;;;;;8081:7;345:25:23;;333:2;318:18;;199:177;25185:198:1;25249:32;2072:4:7;25249:12:1;:32::i;:::-;-1:-1:-1;;;;;25299:25:1;;25291:53;;;;-1:-1:-1;;;25291:53:1;;14165:2:23;25291:53:1;;;14147:21:23;14204:2;14184:18;;;14177:30;-1:-1:-1;;;14223:18:23;;;14216:45;14278:18;;25291:53:1;13963:339:23;25291:53:1;25354:8;:22;;-1:-1:-1;;;;;;25354:22:1;-1:-1:-1;;;;;25354:22:1;;;;;;;;;;25185:198::o;14513:105::-;14575:10;3482:7:12;3508:18;;;;;;;;;;;14555:56:1;;14575:10;14555:9;:56::i;:::-;;14513:105::o;1431:151:8:-;1521:7;1547:18;;;:12;:18;;;;;:28;;1569:5;1547:21;:28::i;2909:145:7:-;2995:4;3018:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;3018:29:7;;;;;;;;;;;;;;;2909:145::o;9534:253:0:-;9609:14;9644:19;9656:6;9644:11;:19::i;:::-;9635:28;;9754:26;9763:6;9771:8;9754;:26::i;:::-;;9534:253;;;;:::o;2367:102:12:-;2423:13;2455:7;2448:14;;;;;:::i;6596:429::-;719:10:17;6689:4:12;6770:18;;;:11;:18;;;;;;;;-1:-1:-1;;;;;6770:27:12;;;;;;;;;;6689:4;;719:10:17;6815:35:12;;;;6807:85;;;;-1:-1:-1;;;6807:85:12;;14509:2:23;6807:85:12;;;14491:21:23;14548:2;14528:18;;;14521:30;14587:34;14567:18;;;14560:62;-1:-1:-1;;;14638:18:23;;;14631:35;14683:19;;6807:85:12;14307:401:23;6807:85:12;6926:60;6935:5;6942:7;6970:15;6951:16;:34;6926:8;:60::i;:::-;-1:-1:-1;7014:4:12;;6596:429;-1:-1:-1;;;;6596:429:12:o;3729:189::-;3808:4;719:10:17;3862:28:12;719:10:17;3879:2:12;3883:6;3862:9;:28::i;11014:628:1:-;11098:19;-1:-1:-1;;;;;;;;;;;11098:12:1;:19::i;:::-;11149:16;11190;11182:52;;;;-1:-1:-1;;;11182:52:1;;14915:2:23;11182:52:1;;;14897:21:23;14954:2;14934:18;;;14927:30;14993:25;14973:18;;;14966:53;15036:18;;11182:52:1;14713:347:23;11182:52:1;11245:22;11252:15;;11245:22;:::i;:::-;11282:9;11277:305;11301:11;11297:1;:15;11277:305;;;11350:16;11369;;11386:1;11369:19;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;11434:20:1;;11402:29;11434:20;;;:10;:20;;;;;11476:17;;11350:38;;-1:-1:-1;11434:20:1;11468:59;;;;-1:-1:-1;;;11468:59:1;;;;;;;:::i;:::-;-1:-1:-1;11541:15:1;:30;;;;;;;;-1:-1:-1;11541:30:1;;;;;;;;-1:-1:-1;;;;;;11541:30:1;-1:-1:-1;;;;;11541:30:1;;;;;;;;;;;387:6:5;11277:305:1;;;;11596:39;11618:16;;11596:39;;;;;;;:::i;:::-;;;;;;;;11088:554;11014:628;;:::o;8629:204:0:-;8696:14;8726:13;3331:12:12;;;3244:106;8726:13:0;8722:37;;-1:-1:-1;8753:6:0;8629:204::o;8722:37::-;8778:48;8798:12;:10;:12::i;:::-;8789:21;;:6;:21;:::i;:::-;3331:12:12;;11781:10:0;:48::i;12753:394::-;12877:14;12912:23;12928:6;12912:15;:23::i;:::-;12903:32;-1:-1:-1;13033:10:0;-1:-1:-1;;;;;13033:19:0;;;13029:67;;13054:42;13070:5;13077:10;13089:6;13054:15;:42::i;:::-;13106:34;13116:6;13124:8;13134:5;13106:9;:34::i;:::-;;12753:394;;;;;:::o;11864:120:1:-;11963:14;;11930:30;;-1:-1:-1;;;11930:30:1;;11954:4;11930:30;;;4255:51:23;11904:7:1;;11963:14;-1:-1:-1;;;;;11930:5:1;:15;;;;4228:18:23;;11930:30:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:47;;;;:::i;13269:89::-;13322:29;13331:7;13340:10;13322:8;:29::i;15991:275:0:-;16113:14;16143:10;-1:-1:-1;;;;;16143:19:0;;;16139:67;;16164:42;16180:5;16187:10;16199:6;16164:15;:42::i;:::-;16225:34;16235:6;16243:8;16253:5;16225:9;:34::i;:::-;16216:43;15991:275;-1:-1:-1;;;;15991:275:0:o;8962:369:1:-;9028:10;-1:-1:-1;;;;;9028:23:1;;;9024:76;;9067:22;-1:-1:-1;;;;;;;;;;;9067:12:1;:22::i;:::-;-1:-1:-1;;;;;9114:21:1;;;;;;:10;:21;;;;;:30;;;9110:72;;8962:369;:::o;9110:72::-;-1:-1:-1;;;;;9209:21:1;;;;;;:10;:21;;;;;:30;;;9192:13;:47;;9209:30;;9192:13;;:47;;9209:30;;9192:47;:::i;:::-;;;;-1:-1:-1;;;;;;;9249:21:1;;9282:1;9249:21;;;:10;:21;;;;;;:30;;:34;;;9298:26;;;9282:1;9298:26;8962:369;:::o;7298:267:0:-;7389:17;;7356;;7389;;;:40;;;7423:6;;7410:9;:7;:9::i;:::-;:19;;7389:40;7385:54;;;-1:-1:-1;7438:1:0;;7298:267;-1:-1:-1;7298:267:0:o;7385:54::-;-1:-1:-1;;7453:6:0;;:27;7449:57;;;-1:-1:-1;;;7489:17:0;7298:267;-1:-1:-1;7298:267:0:o;7449:57::-;7523:35;7548:9;:7;:9::i;:::-;7539:6;;:18;;;;:::i;2308:218::-;2379:14;2409:13;3331:12:12;;;3244:106;2409:13:0;:18;;:39;;;2431:12;:10;:12::i;:::-;:17;2409:39;2405:58;;;-1:-1:-1;2457:6:0;2308:218::o;2405:58::-;2507:12;:10;:12::i;:::-;3331::12;;2490:13:0;3244:106:12;1750:32:1;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1750:32:1;;-1:-1:-1;1750:32:1;:::o;:140:8:-;1830:7;1856:18;;;:12;:18;;;;;:27;;:25;:27::i;10338:144:0:-;-1:-1:-1;;;;;3508:18:12;;10406:17:0;3508:18:12;;;;;;;;;;;10442:33:0;;3303:197;:::i;4766:147:7:-;4082:7;4108:12;;;:6;:12;;;;;:22;;;2505:30;2516:4;719:10:17;2505::7;:30::i;:::-;4880:26:::1;4892:4;4898:7;4880:11;:26::i;13697:125:0:-:0;-1:-1:-1;;;;;3508:18:12;;13763:17:0;3508:18:12;;;;;;;;;;;13799:16:0;3408:125:12;12865:97:1;12915:27;;-1:-1:-1;;;12915:27:1;;12931:10;12915:27;;;4255:51:23;12906:49:1;;12915:5;-1:-1:-1;;;;;12915:15:1;;;;4228:18:23;;12915:27:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;12944:10;12906:8;:49::i;25526:341::-;25591:19;-1:-1:-1;;;;;;;;;;;25591:12:1;:19::i;:::-;25646:5;-1:-1:-1;;;;;25628:24:1;:6;-1:-1:-1;;;;;25628:24:1;;;25620:43;;;;-1:-1:-1;;;25620:43:1;;16109:2:23;25620:43:1;;;16091:21:23;16148:1;16128:18;;;16121:29;-1:-1:-1;;;16166:18:23;;;16159:36;16212:18;;25620:43:1;15907:329:23;25620:43:1;25691:47;;-1:-1:-1;;;25691:47:1;;25732:4;25691:47;;;4255:51:23;25674:14:1;;-1:-1:-1;;;;;25691:32:1;;;;;4228:18:23;;25691:47:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;25674:64;-1:-1:-1;25748:55:1;-1:-1:-1;;;;;25748:35:1;;25784:10;25674:64;25748:35;:55::i;:::-;25818:42;;;-1:-1:-1;;;;;16433:32:23;;16415:51;;16497:2;16482:18;;16475:34;;;25818:42:1;;16388:18:23;25818:42:1;;;;;;;25581:286;25526:341;:::o;5591:135:0:-;5663:14;5696:23;5712:6;5696:15;:23::i;6393:1186:1:-;6518:32;2072:4:7;6518:12:1;:32::i;:::-;6569:17;;;;6568:18;6560:76;;;;-1:-1:-1;;;6560:76:1;;16722:2:23;6560:76:1;;;16704:21:23;16761:2;16741:18;;;16734:30;16800:34;16780:18;;;16773:62;-1:-1:-1;;;16851:18:23;;;16844:43;16904:19;;6560:76:1;16520:409:23;6560:76:1;-1:-1:-1;;;;;6654:23:1;;6646:60;;;;-1:-1:-1;;;6646:60:1;;;;;;;:::i;:::-;-1:-1:-1;;;;;6724:21:1;;;;;;:10;:21;;;;;:32;:37;6716:72;;;;-1:-1:-1;;;6716:72:1;;17136:2:23;6716:72:1;;;17118:21:23;17175:2;17155:18;;;17148:30;-1:-1:-1;;;17194:18:23;;;17187:52;17256:18;;6716:72:1;16934:346:23;6716:72:1;6833:9;-1:-1:-1;;;;;6823:26:1;;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;6806:45:1;6814:4;-1:-1:-1;;;;;6806:45:1;;6798:89;;;;-1:-1:-1;;;6798:89:1;;17743:2:23;6798:89:1;;;17725:21:23;17782:2;17762:18;;;17755:30;17821:33;17801:18;;;17794:61;17872:18;;6798:89:1;17541:355:23;6798:89:1;6933:9;-1:-1:-1;;;;;6923:25:1;;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;6905:45:1;6913:5;-1:-1:-1;;;;;6905:45:1;;6897:88;;;;-1:-1:-1;;;6897:88:1;;18103:2:23;6897:88:1;;;18085:21:23;18142:2;18122:18;;;18115:30;18181:32;18161:18;;;18154:60;18231:18;;6897:88:1;17901:354:23;6897:88:1;7014:19;7032:1;1941:5;7014:19;:::i;:::-;7003:7;:30;;6995:75;;;;-1:-1:-1;;;6995:75:1;;13804:2:23;6995:75:1;;;13786:21:23;;;13823:18;;;13816:30;13882:34;13862:18;;;13855:62;13934:18;;6995:75:1;13602:356:23;6995:75:1;1941:5;7100:13;;7088:9;:25;;;;:::i;:::-;:44;;7080:79;;;;-1:-1:-1;;;7080:79:1;;18462:2:23;7080:79:1;;;18444:21:23;18501:2;18481:18;;;18474:30;-1:-1:-1;;;18520:18:23;;;18513:52;18582:18;;7080:79:1;18260:346:23;7080:79:1;7194:241;;;;;;;;7235:15;7194:241;;;;;;;;;;;;;;;;-1:-1:-1;7194:241:1;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;7170:21:1;;;;:10;:21;;;;;;:265;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7446:13;:26;;7303:9;;-1:-1:-1;7446:26:1;;7303:9;;7446:26;:::i;:::-;;;;-1:-1:-1;;7482:15:1;:31;;;;;;;-1:-1:-1;7482:31:1;;;;;;;;-1:-1:-1;;;;;;7482:31:1;-1:-1:-1;;;;;7482:31:1;;;;;;;;7528:44;;;18785:25:23;;;18841:2;18826:18;;18819:34;;;7528:44:1;;18758:18:23;7528:44:1;;;;;;;6393:1186;;;:::o;280:130:5:-;392:1;387:6;;280:130::o;6861:233:7:-;6944:22;6952:4;6958:7;6944;:22::i;:::-;6939:149;;6982:12;;;;:6;:12;;;;;;;;-1:-1:-1;;;;;6982:29:7;;;;;;;;;:36;;-1:-1:-1;;6982:36:7;7014:4;6982:36;;;7064:12;719:10:17;;640:96;7064:12:7;-1:-1:-1;;;;;7037:40:7;7055:7;-1:-1:-1;;;;;7037:40:7;7049:4;7037:40;;;;;;;;;;6861:233;;:::o;7612:150:22:-;7682:4;7705:50;7710:3;-1:-1:-1;;;;;7730:23:22;;7705:4;:50::i;789:866:6:-;850:37;890:23;:21;:23::i;:::-;942:27;;850:63;;-1:-1:-1;923:16:6;;;1210:352;1234:8;1230:1;:12;1210:352;;;1285:22;1284:23;:72;;;;;1311:45;1320:20;1341:1;1320:23;;;;;;;;:::i;:::-;;;;;;;1345:10;1311:8;:45::i;:::-;1280:140;;;1401:4;1376:29;;1280:140;1446:20;1467:1;1446:23;;;;;;;;:::i;:::-;;;;;;;1437:5;:32;1433:119;;;1510:4;1489:25;;1532:5;;1433:119;392:1:5;387:6;1210:352:6;;;;1580:18;:44;;;;;1602:22;1580:44;1572:76;;;;-1:-1:-1;;;1572:76:6;;19066:2:23;1572:76:6;;;19048:21:23;19105:2;19085:18;;;19078:30;-1:-1:-1;;;19124:18:23;;;19117:49;19183:18;;1572:76:6;18864:343:23;1572:76:6;840:815;;;;789:866;:::o;2620:202:7:-;2705:4;-1:-1:-1;;;;;;2728:47:7;;-1:-1:-1;;;2728:47:7;;:87;;-1:-1:-1;;;;;;;;;;937:40:19;;;2779:36:7;829:155:19;12265:114:1;12310:7;12348:24;:22;:24::i;:::-;12336:9;:7;:9::i;:::-;:36;;;;:::i;10123:370:12:-;-1:-1:-1;;;;;10254:19:12;;10246:68;;;;-1:-1:-1;;;10246:68:12;;19414:2:23;10246:68:12;;;19396:21:23;19453:2;19433:18;;;19426:30;19492:34;19472:18;;;19465:62;-1:-1:-1;;;19543:18:23;;;19536:34;19587:19;;10246:68:12;19212:400:23;10246:68:12;-1:-1:-1;;;;;10332:21:12;;10324:68;;;;-1:-1:-1;;;10324:68:12;;19819:2:23;10324:68:12;;;19801:21:23;19858:2;19838:18;;;19831:30;19897:34;19877:18;;;19870:62;-1:-1:-1;;;19948:18:23;;;19941:32;19990:19;;10324:68:12;19617:398:23;10324:68:12;-1:-1:-1;;;;;10403:18:12;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;10454:32;;345:25:23;;;10454:32:12;;318:18:23;10454:32:12;;;;;;;10123:370;;;:::o;16391:198:0:-;16456:7;16483:6;16475:32;;;;-1:-1:-1;;;16475:32:0;;20222:2:23;16475:32:0;;;20204:21:23;20261:2;20241:18;;;20234:30;-1:-1:-1;;;20280:18:23;;;20273:43;20333:18;;16475:32:0;20020:337:23;16475:32:0;16518:9;16530:5;16534:1;16530;:5;:::i;:::-;16518:17;-1:-1:-1;16549:5:0;16553:1;16549;:5;:::i;:::-;:10;16545:19;;16561:3;;;;:::i;:::-;;16581:1;-1:-1:-1;;;;;16391:198:0:o;17902:943:1:-;-1:-1:-1;;;;;18011:20:1;;17974:34;18011:20;;;:10;:20;;;;;18141:21;;;;18180:18;;;;18172:78;;;;-1:-1:-1;;;18172:78:1;;20821:2:23;18172:78:1;;;20803:21:23;20860:2;20840:18;;;20833:30;20899:34;20879:18;;;20872:62;-1:-1:-1;;;20950:18:23;;;20943:45;21005:19;;18172:78:1;20619:411:23;18172:78:1;18265:13;;:18;18261:405;;18359:17;18379:71;18413:14;;18396:13;;18389:4;:20;;;;:::i;:::-;18388:39;;;;:::i;:::-;18429:11;:20;;;18379:8;:71::i;:::-;18359:91;-1:-1:-1;18530:14:1;;18526:130;;18588:9;18564:11;:20;;;:33;;;;;;;:::i;:::-;;;;;;;;18632:9;18615:13;;:26;;;;;;;:::i;:::-;;;;-1:-1:-1;;18526:130:1;18285:381;18261:405;18763:4;18741:11;:18;;;:26;;;;;;;:::i;:::-;;;;;;;;18802:4;18777:11;:21;;;:29;;;;;;;:::i;:::-;;;;;;;;18834:4;18816:14;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;17902:943:1:o;19190:435::-;-1:-1:-1;;;;;19313:20:1;;19261:7;19313:20;;;:10;:20;;;;;:27;;;19261:7;;1941:5;;19306:34;;:4;:34;:::i;:::-;19305:54;;;;:::i;:::-;19280:79;-1:-1:-1;19373:19:1;;19369:219;;19408:14;19425:13;3331:12:12;;;3244:106;19425:13:1;19408:30;-1:-1:-1;19452:14:1;19469:11;;:71;;19528:12;:10;:12::i;:::-;19501:23;19518:6;19501:14;:23;:::i;:::-;19500:40;;;;:::i;:::-;19469:71;;;19483:14;19469:71;19560:8;;19452:88;;-1:-1:-1;19554:23:1;;-1:-1:-1;;;;;19560:8:1;19452:88;19554:5;:23::i;:::-;19394:194;;19604:14;-1:-1:-1;19190:435:1;;;;:::o;461:104:21:-;519:7;549:1;545;:5;:13;;557:1;545:13;;;-1:-1:-1;553:1:21;;461:104;-1:-1:-1;461:104:21:o;701:205:15:-;840:58;;-1:-1:-1;;;;;16433:32:23;;840:58:15;;;16415:51:23;16482:18;;;16475:34;;;813:86:15;;833:5;;-1:-1:-1;;;863:23:15;16388:18:23;;840:58:15;;;;-1:-1:-1;;840:58:15;;;;;;;;;;;;;;-1:-1:-1;;;;;840:58:15;-1:-1:-1;;;;;;840:58:15;;;;;;;;;;813:19;:86::i;912:241::-;1077:68;;-1:-1:-1;;;;;21293:15:23;;;1077:68:15;;;21275:34:23;21345:15;;21325:18;;;21318:43;21377:18;;;21370:34;;;1050:96:15;;1070:5;;-1:-1:-1;;;1100:27:15;21210:18:23;;1077:68:15;21035:375:23;1050:96:15;912:241;;;;:::o;17365:350:1:-;17422:7;17441:24;17501:23;;17487:10;;17469:15;:28;;;;:::i;:::-;17468:56;;;;:::i;:::-;17441:83;;1839:6;17538:16;:42;17534:156;;;1839:6;17639:12;;17620:16;:31;;;;:::i;:::-;17619:59;;;;:::i;:::-;17603:12;;:76;;;;:::i;17534:156::-;17707:1;17700:8;;;17365:350;:::o;10770:441:12:-;-1:-1:-1;;;;;4091:18:12;;;10900:24;4091:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;-1:-1:-1;;10966:37:12;;10962:243;;11047:6;11027:16;:26;;11019:68;;;;-1:-1:-1;;;11019:68:12;;21617:2:23;11019:68:12;;;21599:21:23;21656:2;21636:18;;;21629:30;21695:31;21675:18;;;21668:59;21744:18;;11019:68:12;21415:353:23;11019:68:12;11129:51;11138:5;11145:7;11173:6;11154:16;:25;11129:8;:51::i;7488:651::-;-1:-1:-1;;;;;7614:18:12;;7606:68;;;;-1:-1:-1;;;7606:68:12;;21975:2:23;7606:68:12;;;21957:21:23;22014:2;21994:18;;;21987:30;22053:34;22033:18;;;22026:62;-1:-1:-1;;;22104:18:23;;;22097:35;22149:19;;7606:68:12;21773:401:23;7606:68:12;-1:-1:-1;;;;;7692:16:12;;7684:64;;;;-1:-1:-1;;;7684:64:12;;22381:2:23;7684:64:12;;;22363:21:23;22420:2;22400:18;;;22393:30;22459:34;22439:18;;;22432:62;-1:-1:-1;;;22510:18:23;;;22503:33;22553:19;;7684:64:12;22179:399:23;7684:64:12;-1:-1:-1;;;;;7830:15:12;;7808:19;7830:15;;;;;;;;;;;7863:21;;;;7855:72;;;;-1:-1:-1;;;7855:72:12;;22785:2:23;7855:72:12;;;22767:21:23;22824:2;22804:18;;;22797:30;22863:34;22843:18;;;22836:62;-1:-1:-1;;;22914:18:23;;;22907:36;22960:19;;7855:72:12;22583:402:23;7855:72:12;-1:-1:-1;;;;;7961:15:12;;;:9;:15;;;;;;;;;;;7979:20;;;7961:38;;8019:13;;;;;;;;:23;;7993:6;;7961:9;8019:23;;7993:6;;8019:23;:::i;:::-;;;;;;;;8073:2;-1:-1:-1;;;;;8058:26:12;8067:4;-1:-1:-1;;;;;8058:26:12;;8077:6;8058:26;;;;345:25:23;;333:2;318:18;;199:177;8058:26:12;;;;;;;;8095:37;4387:145:7;15206:2014:1;15338:13;1744:1:11;2325:7;;:19;;2317:63;;;;-1:-1:-1;;;2317:63:11;;23192:2:23;2317:63:11;;;23174:21:23;23231:2;23211:18;;;23204:30;23270:33;23250:18;;;23243:61;23321:18;;2317:63:11;22990:355:23;2317:63:11;1744:1;2455:7;:18;15371:12:1;15363:39:::1;;;::::0;-1:-1:-1;;;15363:39:1;;23552:2:23;15363:39:1::1;::::0;::::1;23534:21:23::0;23591:2;23571:18;;;23564:30;-1:-1:-1;;;23610:18:23;;;23603:44;23664:18;;15363:39:1::1;23350:338:23::0;15363:39:1::1;3331:12:12::0;;15436:7:1::1;15421:12;:10;:12::i;:::-;:22;;;;:::i;:::-;15420:40;;;;:::i;:::-;15412:48;;15470:22;15476:6;15484:7;15470:5;:22::i;:::-;15515:30;::::0;-1:-1:-1;;;15515:30:1;;15539:4:::1;15515:30;::::0;::::1;4255:51:23::0;15515:5:1::1;-1:-1:-1::0;;;;;15515:15:1::1;::::0;::::1;::::0;4228:18:23;;15515:30:1::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;15507:5;:38;15503:1594;;;15618:15;:22:::0;15561:17:::1;::::0;;;15692:1069:::1;15716:11;15712:1;:15;15692:1069;;;15784:30;::::0;-1:-1:-1;;;15784:30:1;;15808:4:::1;15784:30;::::0;::::1;4255:51:23::0;15784:5:1::1;-1:-1:-1::0;;;;;15784:15:1::1;::::0;::::1;::::0;4228:18:23;;15784:30:1::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;15769:45;;15845:12;15836:5;:21;15832:73;;15881:5;;15832:73;15923:17;15943:15;15959:1;15943:18;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;;;::::1;::::0;-1:-1:-1;;;;;15943:18:1::1;16001:21:::0;;;:10:::1;:21:::0;;;;;;;:31:::1;;::::0;15943:18;;-1:-1:-1;16054:16:1;16050:71:::1;;16094:8;;;;16050:71;16139:17;16159:20;16167:12:::0;16159:5;:20:::1;:::i;:::-;16139:40;;16197:12;16222:9;-1:-1:-1::0;;;;;16212:29:1::1;;16242:32;16251:9;16262:11;16242:8;:32::i;:::-;16212:63;;;;;;;;;;;;;345:25:23::0;;333:2;318:18;;199:177;16212:63:1::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;16319:30;::::0;-1:-1:-1;;;16319:30:1;;16343:4:::1;16319:30;::::0;::::1;4255:51:23::0;16197:78:1;;-1:-1:-1;16293:23:1::1;::::0;16352:12;;-1:-1:-1;;;;;16319:5:1::1;:15;::::0;::::1;::::0;4228:18:23;;16319:30:1::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:45;;;;:::i;:::-;16293:71:::0;-1:-1:-1;16473:9:1;;16469:158:::1;;16506:13;16515:4:::0;16506:13;::::1;:::i;:::-;::::0;-1:-1:-1;16541:17:1::1;16554:4:::0;16541:17;::::1;:::i;:::-;;;16580:28;16592:9;16603:4;16580:11;:28::i;:::-;-1:-1:-1::0;;;;;16645:21:1;::::1;;::::0;;;:10:::1;:21;::::0;;;;:31:::1;;:50:::0;;16680:15;;16645:21;:50:::1;::::0;16680:15;;16645:50:::1;:::i;:::-;;;;;;;;16731:15;16713:14;;:33;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;;;;;;15692:1069:1::1;392:1:5::0;387:6;15692:1069:1::1;;;-1:-1:-1::0;16790:30:1::1;::::0;-1:-1:-1;;;16790:30:1;;16814:4:::1;16790:30;::::0;::::1;4255:51:23::0;16790:5:1::1;-1:-1:-1::0;;;;;16790:15:1::1;::::0;::::1;::::0;4228:18:23;;16790:30:1::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;16775:45;;16846:12;16838:5;:20;16834:79;;;16886:12;16878:20;;16834:79;16988:15;::::0;1941:5:::1;::::0;16967:17:::1;16975:9:::0;16967:5;:17:::1;:::i;:::-;16966:37;;;;:::i;:::-;16965:57;;;;:::i;:::-;16952:9;:70;;16927:159;;;::::0;-1:-1:-1;;;16927:159:1;;23895:2:23;16927:159:1::1;::::0;::::1;23877:21:23::0;23934:2;23914:18;;;23907:30;23973:32;23953:18;;;23946:60;24023:18;;16927:159:1::1;23693:354:23::0;16927:159:1::1;15547:1550;;;15503:1594;17107:36;-1:-1:-1::0;;;;;17107:5:1::1;:18;17126:9:::0;17137:5;17107:18:::1;:36::i;:::-;17158:55;::::0;;18785:25:23;;;18841:2;18826:18;;18819:34;;;-1:-1:-1;;;;;17158:55:1;;::::1;::::0;;;::::1;::::0;17167:10:::1;::::0;17158:55:::1;::::0;18758:18:23;17158:55:1::1;;;;;;;1701:1:11::0;2628:7;:22;15206:2014:1;;-1:-1:-1;;;15206:2014:1:o;3335:492:7:-;3423:22;3431:4;3437:7;3423;:22::i;:::-;3418:403;;3606:41;3634:7;-1:-1:-1;;;;;3606:41:7;3644:2;3606:19;:41::i;:::-;3718:38;3746:4;3753:2;3718:19;:38::i;:::-;3513:265;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;3513:265:7;;;;;;;;;;-1:-1:-1;;;3461:349:7;;;;;;;:::i;1978:166:8:-;2065:31;2082:4;2088:7;2065:16;:31::i;:::-;2106:18;;;;:12;:18;;;;;:31;;2129:7;2106:22;:31::i;2233:171::-;2321:32;2339:4;2345:7;2321:17;:32::i;:::-;2363:18;;;;:12;:18;;;;;:34;;2389:7;2363:25;:34::i;13527:886:1:-;13612:14;1744:1:11;2325:7;;:19;;2317:63;;;;-1:-1:-1;;;2317:63:11;;23192:2:23;2317:63:11;;;23174:21:23;23231:2;23211:18;;;23204:30;23270:33;23250:18;;;23243:61;23321:18;;2317:63:11;22990:355:23;2317:63:11;1744:1;2455:7;:18;13647:17:1::1;::::0;::::1;;13646:18;13638:71;;;::::0;-1:-1:-1;;;13638:71:1;;25045:2:23;13638:71:1::1;::::0;::::1;25027:21:23::0;25084:2;25064:18;;;25057:30;25123:34;25103:18;;;25096:62;-1:-1:-1;;;25174:18:23;;;25167:38;25222:19;;13638:71:1::1;24843:404:23::0;13638:71:1::1;13727:12:::0;13719:39:::1;;;::::0;-1:-1:-1;;;13719:39:1;;23552:2:23;13719:39:1::1;::::0;::::1;23534:21:23::0;23591:2;23571:18;;;23564:30;-1:-1:-1;;;23610:18:23;;;23603:44;23664:18;;13719:39:1::1;23350:338:23::0;13719:39:1::1;13768:12;13783:9;:7;:9::i;:::-;13828:6;::::0;13768:24;;-1:-1:-1;13810:14:1::1;13817:7:::0;13768:24;13810:14:::1;:::i;:::-;:24;;13802:50;;;::::0;-1:-1:-1;;;13802:50:1;;25454:2:23;13802:50:1::1;::::0;::::1;25436:21:23::0;25493:2;25473:18;;;25466:30;-1:-1:-1;;;25512:18:23;;;25505:43;25565:18;;13802:50:1::1;25252:337:23::0;13802:50:1::1;13863:17;13883:12;:10;:12::i;:::-;13925:30;::::0;-1:-1:-1;;;13925:30:1;;13949:4:::1;13925:30;::::0;::::1;4255:51:23::0;13863:32:1;;-1:-1:-1;13905:17:1::1;::::0;-1:-1:-1;;;;;13925:5:1::1;:15;::::0;::::1;::::0;4228:18:23;;13925:30:1::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;13905:50:::0;-1:-1:-1;13965:58:1::1;-1:-1:-1::0;;;;;13965:5:1::1;:22;13988:10;14008:4;14015:7:::0;13965:22:::1;:58::i;:::-;14052:30;::::0;-1:-1:-1;;;14052:30:1;;14076:4:::1;14052:30;::::0;::::1;4255:51:23::0;14033:16:1::1;::::0;14052:5:::1;-1:-1:-1::0;;;;;14052:15:1::1;::::0;::::1;::::0;4228:18:23;;14052:30:1::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;14033:49:::0;-1:-1:-1;14102:20:1::1;14113:9:::0;14033:49;14102:20:::1;:::i;:::-;14092:30;;14136:13;3331:12:12::0;;;3244:106;14136:13:1::1;14132:179;;14179:7;14170:16;;14132:179;;;14254:9;14237:13;3331:12:12::0;;;3244:106;14237:13:1::1;14227:23;::::0;:7;:23:::1;:::i;:::-;14226:37;;;;:::i;:::-;14217:46;;14132:179;14320:24;14326:9;14337:6;14320:5;:24::i;:::-;14359:47;::::0;;18785:25:23;;;18841:2;18826:18;;18819:34;;;-1:-1:-1;;;;;14359:47:1;::::1;::::0;14367:10:::1;::::0;14359:47:::1;::::0;18758:18:23;14359:47:1::1;;;;;;;-1:-1:-1::0;;1701:1:11;2628:7;:22;-1:-1:-1;13527:886:1;;;-1:-1:-1;;;13527:886:1:o;8870:156:22:-;8944:7;8994:22;8998:3;9010:5;8994:3;:22::i;8413:115::-;8476:7;8502:19;8510:3;4028:18;;3946:107;1697:404;1760:4;3834:19;;;:12;;;:19;;;;;;1776:319;;-1:-1:-1;1818:23:22;;;;;;;;:11;:23;;;;;;;;;;;;;1998:18;;1976:19;;;:12;;;:19;;;;;;:40;;;;2030:11;;1776:319;-1:-1:-1;2079:5:22;2072:12;;26409:378:1;26542:16;;;26556:1;26542:16;;;;;;;;;26474;;26502:37;;26542:16;;;;;;;;;;;-1:-1:-1;26542:16:1;26502:56;;2072:4:7;26594:18:1;;26568:20;26589:1;26568:23;;;;;;;;:::i;:::-;;;;;;:44;;;;;-1:-1:-1;;;;;;;;;;;26622:20:1;26643:1;26622:23;;;;;;;;:::i;:::-;;;;;;:31;;;;;-1:-1:-1;;;;;;;;;;;26663:20:1;26684:1;26663:23;;;;;;;;:::i;:::-;;;;;;:34;;;;;-1:-1:-1;;;;;;;;;;;26707:20:1;26728:1;26707:23;;;;;;;;:::i;:::-;;;;;;;;;;:36;26760:20;26409:378;-1:-1:-1;26409:378:1:o;26968:137::-;27051:4;27074:24;27082:5;27089:8;27074:7;:24::i;8415:389:12:-;-1:-1:-1;;;;;8498:21:12;;8490:65;;;;-1:-1:-1;;;8490:65:12;;25928:2:23;8490:65:12;;;25910:21:23;25967:2;25947:18;;;25940:30;26006:33;25986:18;;;25979:61;26057:18;;8490:65:12;25726:355:23;8490:65:12;8642:6;8626:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;8658:18:12;;:9;:18;;;;;;;;;;:28;;8680:6;;8658:9;:28;;8680:6;;8658:28;:::i;:::-;;;;-1:-1:-1;;8701:37:12;;345:25:23;;;-1:-1:-1;;;;;8701:37:12;;;8718:1;;8701:37;;333:2:23;318:18;8701:37:12;;;;;;;14959:42:1;14905:103;:::o;3207:706:15:-;3626:23;3652:69;3680:4;3652:69;;;;;;;;;;;;;;;;;3660:5;-1:-1:-1;;;;;3652:27:15;;;:69;;;;;:::i;:::-;3735:17;;3626:95;;-1:-1:-1;3735:21:15;3731:176;;3830:10;3819:30;;;;;;;;;;;;:::i;:::-;3811:85;;;;-1:-1:-1;;;3811:85:15;;26538:2:23;3811:85:15;;;26520:21:23;26577:2;26557:18;;;26550:30;26616:34;26596:18;;;26589:62;-1:-1:-1;;;26667:18:23;;;26660:40;26717:19;;3811:85:15;26336:406:23;9124:576:12;-1:-1:-1;;;;;9207:21:12;;9199:67;;;;-1:-1:-1;;;9199:67:12;;26949:2:23;9199:67:12;;;26931:21:23;26988:2;26968:18;;;26961:30;27027:34;27007:18;;;27000:62;-1:-1:-1;;;27078:18:23;;;27071:31;27119:19;;9199:67:12;26747:397:23;9199:67:12;-1:-1:-1;;;;;9362:18:12;;9337:22;9362:18;;;;;;;;;;;9398:24;;;;9390:71;;;;-1:-1:-1;;;9390:71:12;;27351:2:23;9390:71:12;;;27333:21:23;27390:2;27370:18;;;27363:30;27429:34;27409:18;;;27402:62;-1:-1:-1;;;27480:18:23;;;27473:32;27522:19;;9390:71:12;27149:398:23;9390:71:12;-1:-1:-1;;;;;9495:18:12;;:9;:18;;;;;;;;;;9516:23;;;9495:44;;9559:12;:22;;9533:6;;9495:9;9559:22;;9533:6;;9559:22;:::i;:::-;;;;-1:-1:-1;;9597:37:12;;345:25:23;;;9623:1:12;;-1:-1:-1;;;;;9597:37:12;;;;;333:2:23;318:18;9597:37:12;;;;;;;4387:145:7;;;:::o;1588:441:18:-;1663:13;1688:19;1720:10;1724:6;1720:1;:10;:::i;:::-;:14;;1733:1;1720:14;:::i;:::-;1710:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1710:25:18;;1688:47;;-1:-1:-1;;;1745:6:18;1752:1;1745:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;1745:15:18;;;;;;;;;-1:-1:-1;;;1770:6:18;1777:1;1770:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;1770:15:18;;;;;;;;-1:-1:-1;1800:9:18;1812:10;1816:6;1812:1;:10;:::i;:::-;:14;;1825:1;1812:14;:::i;:::-;1800:26;;1795:132;1832:1;1828;:5;1795:132;;;-1:-1:-1;;;1879:5:18;1887:3;1879:11;1866:25;;;;;;;:::i;:::-;;;;1854:6;1861:1;1854:9;;;;;;;;:::i;:::-;;;;:37;-1:-1:-1;;;;;1854:37:18;;;;;;;;-1:-1:-1;1915:1:18;1905:11;;;;;1835:3;;;:::i;:::-;;;1795:132;;;-1:-1:-1;1944:10:18;;1936:55;;;;-1:-1:-1;;;1936:55:18;;27895:2:23;1936:55:18;;;27877:21:23;;;27914:18;;;27907:30;27973:34;27953:18;;;27946:62;28025:18;;1936:55:18;27693:356:23;7219:234:7;7302:22;7310:4;7316:7;7302;:22::i;:::-;7298:149;;;7372:5;7340:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;7340:29:7;;;;;;;;;;:37;;-1:-1:-1;;7340:37:7;;;7396:40;719:10:17;;7340:12:7;;7396:40;;7372:5;7396:40;7219:234;;:::o;7930:156:22:-;8003:4;8026:53;8034:3;-1:-1:-1;;;;;8054:23:22;;8026:7;:53::i;4395:118::-;4462:7;4488:3;:11;;4500:5;4488:18;;;;;;;;:::i;:::-;;;;;;;;;4481:25;;4395:118;;;;:::o;3861:223:16:-;3994:12;4025:52;4047:6;4055:4;4061:1;4064:12;4025:21;:52::i;2269:1388:22:-;2335:4;2472:19;;;:12;;;:19;;;;;;2506:15;;2502:1149;;2875:21;2899:14;2912:1;2899:10;:14;:::i;:::-;2947:18;;2875:38;;-1:-1:-1;2927:17:22;;2947:22;;2968:1;;2947:22;:::i;:::-;2927:42;;3001:13;2988:9;:26;2984:398;;3034:17;3054:3;:11;;3066:9;3054:22;;;;;;;;:::i;:::-;;;;;;;;;3034:42;;3205:9;3176:3;:11;;3188:13;3176:26;;;;;;;;:::i;:::-;;;;;;;;;;;;:38;;;;3288:23;;;:12;;;:23;;;;;:36;;;2984:398;3460:17;;:3;;:17;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;3552:3;:12;;:19;3565:5;3552:19;;;;;;;;;;;3545:26;;;3593:4;3586:11;;;;;;;2502:1149;3635:5;3628:12;;;;;4948:499:16;5113:12;5170:5;5145:21;:30;;5137:81;;;;-1:-1:-1;;;5137:81:16;;28388:2:23;5137:81:16;;;28370:21:23;28427:2;28407:18;;;28400:30;28466:34;28446:18;;;28439:62;-1:-1:-1;;;28517:18:23;;;28510:36;28563:19;;5137:81:16;28186:402:23;5137:81:16;-1:-1:-1;;;;;1465:19:16;;;5228:60;;;;-1:-1:-1;;;5228:60:16;;28795:2:23;5228:60:16;;;28777:21:23;28834:2;28814:18;;;28807:30;28873:31;28853:18;;;28846:59;28922:18;;5228:60:16;28593:353:23;5228:60:16;5300:12;5314:23;5341:6;-1:-1:-1;;;;;5341:11:16;5360:5;5367:4;5341:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5299:73;;;;5389:51;5406:7;5415:10;5427:12;7707;7735:7;7731:516;;;-1:-1:-1;7765:10:16;7758:17;;7731:516;7876:17;;:21;7872:365;;8070:10;8064:17;8130:15;8117:10;8113:2;8109:19;8102:44;7872:365;8209:12;8202:20;;-1:-1:-1;;;8202:20:16;;;;;;;;:::i;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;14:180:23:-;73:6;126:2;114:9;105:7;101:23;97:32;94:52;;;142:1;139;132:12;94:52;-1:-1:-1;165:23:23;;14:180;-1:-1:-1;14:180:23:o;381:286::-;439:6;492:2;480:9;471:7;467:23;463:32;460:52;;;508:1;505;498:12;460:52;534:23;;-1:-1:-1;;;;;;586:32:23;;576:43;;566:71;;633:1;630;623:12;864:258;936:1;946:113;960:6;957:1;954:13;946:113;;;1036:11;;;1030:18;1017:11;;;1010:39;982:2;975:10;946:113;;;1077:6;1074:1;1071:13;1068:48;;;-1:-1:-1;;1112:1:23;1094:16;;1087:27;864:258::o;1127:383::-;1276:2;1265:9;1258:21;1239:4;1308:6;1302:13;1351:6;1346:2;1335:9;1331:18;1324:34;1367:66;1426:6;1421:2;1410:9;1406:18;1401:2;1393:6;1389:15;1367:66;:::i;:::-;1494:2;1473:15;-1:-1:-1;;1469:29:23;1454:45;;;;1501:2;1450:54;;1127:383;-1:-1:-1;;1127:383:23:o;1515:131::-;-1:-1:-1;;;;;1590:31:23;;1580:42;;1570:70;;1636:1;1633;1626:12;1651:315;1719:6;1727;1780:2;1768:9;1759:7;1755:23;1751:32;1748:52;;;1796:1;1793;1786:12;1748:52;1835:9;1822:23;1854:31;1879:5;1854:31;:::i;:::-;1904:5;1956:2;1941:18;;;;1928:32;;-1:-1:-1;;;1651:315:23:o;1971:247::-;2038:6;2046;2099:2;2087:9;2078:7;2074:23;2070:32;2067:52;;;2115:1;2112;2105:12;2067:52;-1:-1:-1;;2138:23:23;;;2208:2;2193:18;;;2180:32;;-1:-1:-1;1971:247:23:o;2223:118::-;2309:5;2302:13;2295:21;2288:5;2285:32;2275:60;;2331:1;2328;2321:12;2346:241;2402:6;2455:2;2443:9;2434:7;2430:23;2426:32;2423:52;;;2471:1;2468;2461:12;2423:52;2510:9;2497:23;2529:28;2551:5;2529:28;:::i;2772:456::-;2849:6;2857;2865;2918:2;2906:9;2897:7;2893:23;2889:32;2886:52;;;2934:1;2931;2924:12;2886:52;2973:9;2960:23;2992:31;3017:5;2992:31;:::i;:::-;3042:5;-1:-1:-1;3099:2:23;3084:18;;3071:32;3112:33;3071:32;3112:33;:::i;:::-;2772:456;;3164:7;;-1:-1:-1;;;3218:2:23;3203:18;;;;3190:32;;2772:456::o;3600:315::-;3668:6;3676;3729:2;3717:9;3708:7;3704:23;3700:32;3697:52;;;3745:1;3742;3735:12;3697:52;3781:9;3768:23;3758:33;;3841:2;3830:9;3826:18;3813:32;3854:31;3879:5;3854:31;:::i;:::-;3904:5;3894:15;;;3600:315;;;;;:::o;4317:247::-;4376:6;4429:2;4417:9;4408:7;4404:23;4400:32;4397:52;;;4445:1;4442;4435:12;4397:52;4484:9;4471:23;4503:31;4528:5;4503:31;:::i;5754:615::-;5840:6;5848;5901:2;5889:9;5880:7;5876:23;5872:32;5869:52;;;5917:1;5914;5907:12;5869:52;5957:9;5944:23;5986:18;6027:2;6019:6;6016:14;6013:34;;;6043:1;6040;6033:12;6013:34;6081:6;6070:9;6066:22;6056:32;;6126:7;6119:4;6115:2;6111:13;6107:27;6097:55;;6148:1;6145;6138:12;6097:55;6188:2;6175:16;6214:2;6206:6;6203:14;6200:34;;;6230:1;6227;6220:12;6200:34;6283:7;6278:2;6268:6;6265:1;6261:14;6257:2;6253:23;6249:32;6246:45;6243:65;;;6304:1;6301;6294:12;6243:65;6335:2;6327:11;;;;;6357:6;;-1:-1:-1;5754:615:23;;-1:-1:-1;;;;5754:615:23:o;6374:456::-;6451:6;6459;6467;6520:2;6508:9;6499:7;6495:23;6491:32;6488:52;;;6536:1;6533;6526:12;6488:52;6572:9;6559:23;6549:33;;6632:2;6621:9;6617:18;6604:32;6645:31;6670:5;6645:31;:::i;:::-;6695:5;-1:-1:-1;6752:2:23;6737:18;;6724:32;6765:33;6724:32;6765:33;:::i;:::-;6817:7;6807:17;;;6374:456;;;;;:::o;6835:388::-;6903:6;6911;6964:2;6952:9;6943:7;6939:23;6935:32;6932:52;;;6980:1;6977;6970:12;6932:52;7019:9;7006:23;7038:31;7063:5;7038:31;:::i;:::-;7088:5;-1:-1:-1;7145:2:23;7130:18;;7117:32;7158:33;7117:32;7158:33;:::i;7228:383::-;7305:6;7313;7321;7374:2;7362:9;7353:7;7349:23;7345:32;7342:52;;;7390:1;7387;7380:12;7342:52;7429:9;7416:23;7448:31;7473:5;7448:31;:::i;:::-;7498:5;7550:2;7535:18;;7522:32;;-1:-1:-1;7601:2:23;7586:18;;;7573:32;;7228:383;-1:-1:-1;;;7228:383:23:o;7847:380::-;7926:1;7922:12;;;;7969;;;7990:61;;8044:4;8036:6;8032:17;8022:27;;7990:61;8097:2;8089:6;8086:14;8066:18;8063:38;8060:161;;;8143:10;8138:3;8134:20;8131:1;8124:31;8178:4;8175:1;8168:15;8206:4;8203:1;8196:15;8060:161;;7847:380;;;:::o;8232:127::-;8293:10;8288:3;8284:20;8281:1;8274:31;8324:4;8321:1;8314:15;8348:4;8345:1;8338:15;8364:168;8404:7;8470:1;8466;8462:6;8458:14;8455:1;8452:21;8447:1;8440:9;8433:17;8429:45;8426:71;;;8477:18;;:::i;:::-;-1:-1:-1;8517:9:23;;8364:168::o;8537:127::-;8598:10;8593:3;8589:20;8586:1;8579:31;8629:4;8626:1;8619:15;8653:4;8650:1;8643:15;8669:120;8709:1;8735;8725:35;;8740:18;;:::i;:::-;-1:-1:-1;8774:9:23;;8669:120::o;9144:136::-;9179:3;-1:-1:-1;;;9200:22:23;;9197:48;;;9225:18;;:::i;:::-;-1:-1:-1;9265:1:23;9261:13;;9144:136::o;9285:128::-;9325:3;9356:1;9352:6;9349:1;9346:13;9343:39;;;9362:18;;:::i;:::-;-1:-1:-1;9398:9:23;;9285:128::o;9418:125::-;9458:4;9486:1;9483;9480:8;9477:34;;;9491:18;;:::i;:::-;-1:-1:-1;9528:9:23;;9418:125::o;10232:184::-;10302:6;10355:2;10343:9;10334:7;10330:23;10326:32;10323:52;;;10371:1;10368;10361:12;10323:52;-1:-1:-1;10394:16:23;;10232:184;-1:-1:-1;10232:184:23:o;10421:273::-;10489:6;10542:2;10530:9;10521:7;10517:23;10513:32;10510:52;;;10558:1;10555;10548:12;10510:52;10590:9;10584:16;10640:4;10633:5;10629:16;10622:5;10619:27;10609:55;;10660:1;10657;10650:12;11461:348;11663:2;11645:21;;;11702:2;11682:18;;;11675:30;11741:26;11736:2;11721:18;;11714:54;11800:2;11785:18;;11461:348::o;11814:422::-;11903:1;11946:5;11903:1;11960:270;11981:7;11971:8;11968:21;11960:270;;;12040:4;12036:1;12032:6;12028:17;12022:4;12019:27;12016:53;;;12049:18;;:::i;:::-;12099:7;12089:8;12085:22;12082:55;;;12119:16;;;;12082:55;12198:22;;;;12158:15;;;;11960:270;;;11964:3;11814:422;;;;;:::o;12241:806::-;12290:5;12320:8;12310:80;;-1:-1:-1;12361:1:23;12375:5;;12310:80;12409:4;12399:76;;-1:-1:-1;12446:1:23;12460:5;;12399:76;12491:4;12509:1;12504:59;;;;12577:1;12572:130;;;;12484:218;;12504:59;12534:1;12525:10;;12548:5;;;12572:130;12609:3;12599:8;12596:17;12593:43;;;12616:18;;:::i;:::-;-1:-1:-1;;12672:1:23;12658:16;;12687:5;;12484:218;;12786:2;12776:8;12773:16;12767:3;12761:4;12758:13;12754:36;12748:2;12738:8;12735:16;12730:2;12724:4;12721:12;12717:35;12714:77;12711:159;;;-1:-1:-1;12823:19:23;;;12855:5;;12711:159;12902:34;12927:8;12921:4;12902:34;:::i;:::-;12972:6;12968:1;12964:6;12960:19;12951:7;12948:32;12945:58;;;12983:18;;:::i;:::-;13021:20;;12241:806;-1:-1:-1;;;12241:806:23:o;13052:140::-;13110:5;13139:47;13180:4;13170:8;13166:19;13160:4;13139:47;:::i;15065:127::-;15126:10;15121:3;15117:20;15114:1;15107:31;15157:4;15154:1;15147:15;15181:4;15178:1;15171:15;15197:705;15378:2;15430:21;;;15403:18;;;15486:22;;;15349:4;;15565:6;15539:2;15524:18;;15349:4;15599:277;15613:6;15610:1;15607:13;15599:277;;;15688:6;15675:20;15708:31;15733:5;15708:31;:::i;:::-;-1:-1:-1;;;;;15764:31:23;15752:44;;15851:15;;;;15816:12;;;;15792:1;15628:9;15599:277;;;-1:-1:-1;15893:3:23;15197:705;-1:-1:-1;;;;;;15197:705:23:o;17285:251::-;17355:6;17408:2;17396:9;17387:7;17383:23;17379:32;17376:52;;;17424:1;17421;17414:12;17376:52;17456:9;17450:16;17475:31;17500:5;17475:31;:::i;20362:112::-;20394:1;20420;20410:35;;20425:18;;:::i;:::-;-1:-1:-1;20459:9:23;;20362:112::o;20479:135::-;20518:3;-1:-1:-1;;20539:17:23;;20536:43;;;20559:18;;:::i;:::-;-1:-1:-1;20606:1:23;20595:13;;20479:135::o;24052:786::-;24463:25;24458:3;24451:38;24433:3;24518:6;24512:13;24534:62;24589:6;24584:2;24579:3;24575:12;24568:4;24560:6;24556:17;24534:62;:::i;:::-;-1:-1:-1;;;24655:2:23;24615:16;;;24647:11;;;24640:40;24705:13;;24727:63;24705:13;24776:2;24768:11;;24761:4;24749:17;;24727:63;:::i;:::-;24810:17;24829:2;24806:26;;24052:786;-1:-1:-1;;;;24052:786:23:o;25594:127::-;25655:10;25650:3;25646:20;25643:1;25636:31;25686:4;25683:1;25676:15;25710:4;25707:1;25700:15;26086:245;26153:6;26206:2;26194:9;26185:7;26181:23;26177:32;26174:52;;;26222:1;26219;26212:12;26174:52;26254:9;26248:16;26273:28;26295:5;26273:28;:::i;27552:136::-;27591:3;27619:5;27609:39;;27628:18;;:::i;:::-;-1:-1:-1;;;27664:18:23;;27552:136::o;28054:127::-;28115:10;28110:3;28106:20;28103:1;28096:31;28146:4;28143:1;28136:15;28170:4;28167:1;28160:15;28951:274;29080:3;29118:6;29112:13;29134:53;29180:6;29175:3;29168:4;29160:6;29156:17;29134:53;:::i;:::-;29203:16;;;;;28951:274;-1:-1:-1;;28951:274:23:o

Swarm Source

ipfs://2e2188089920ff54af82bb05c926fc5e09e67201f8b87535992d3debdb6a5fa7

Block Transaction Gas Used Reward
view all blocks produced

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

Validator Index Block Amount
View All Withdrawals

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

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