{"file_path":"src/sAID.sol","creation_status":"success","source_code":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.22;\n\nimport {ERC4626Upgradeable} from \"@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC4626Upgradeable.sol\";\nimport {UUPSUpgradeable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport {AccessControlUpgradeable} from \"@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol\";\nimport {PausableUpgradeable} from \"@openzeppelin/contracts-upgradeable/utils/PausableUpgradeable.sol\";\nimport {ReentrancyGuardUpgradeable} from \"@openzeppelin/contracts-upgradeable/utils/ReentrancyGuardUpgradeable.sol\";\nimport {Math} from \"@openzeppelin/contracts/utils/math/Math.sol\";\nimport {IERC20} from \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport {SafeERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IAccessControl} from \"@openzeppelin/contracts/access/IAccessControl.sol\";\n\n/// @title sAID - Staked AID Token Contract\n/// @dev ERC-4626 compliant vault that allows staking AID tokens to receive sAID shares\n/// @notice This contract implements a staking mechanism where users can stake AID tokens\n///         and receive sAID shares. The vault's total assets can be increased by admin\n///         sending AID tokens, which increases the value of sAID shares. Unstaking requires\n///         a cooldown period during which no interest accrues.\ncontract sAID is\n    UUPSUpgradeable,\n    ERC4626Upgradeable,\n    AccessControlUpgradeable,\n    PausableUpgradeable,\n    ReentrancyGuardUpgradeable\n{\n    using Math for uint256;\n    using SafeERC20 for IERC20;\n\n    // keccak256(abi.encode(uint256(keccak256(\"gaib.storage.sAID\")) - 1)) & ~bytes32(uint256(0xff));\n    bytes32 private constant SAID_STORAGE_LOCATION = 0xd197494adafa19d3a857aec5aa27953ad3ec7bcc987f02501e4ce68fa49d8500;\n\n    /// @notice Role identifier for rewarder who can send AID to increase vault assets\n    bytes32 public constant REWARDER_ROLE = keccak256(\"REWARDER_ROLE\");\n    /// @notice Role identifier for operator who manages liquidity accounting\n    bytes32 public constant OPERATOR_ROLE = keccak256(\"OPERATOR_ROLE\");\n\n    /// @custom:storage-location erc7201:gaib.storage.sAID\n    struct SAIDStorage {\n        /// @notice Cooldown period for unstaking in seconds\n        uint256 cooldownPeriod;\n        /// @notice The amount of the last asset distribution that is vesting\n        uint256 vestingAmount;\n        /// @notice The timestamp of the last rewards distribution\n        uint256 lastDistributionTimestamp;\n        /// @notice The vesting period in seconds for the last distribution\n        uint256 lastVestingPeriod;\n        /// @notice FIFO queue head index (inclusive)\n        uint256 queueHead;\n        /// @notice FIFO queue array of requests\n        QueueItem[] queue;\n        /// @notice Mapping of user to pending queue id (0 means none)\n        mapping(address => uint256) pendingRequestId;\n        /// @notice Operator-managed liquid AID available to pay queue\n        uint256 availableForUnstake;\n        /// @notice Total amount currently queued (sum of pending items)\n        uint256 queuedTotal;\n        /// @notice Internally tracked asset balance to prevent manipulation via direct transfers\n        uint256 trackedAssets;\n        /// @notice Unrealized loss due to deal execution\n        uint256 unrealizedLoss;\n    }\n\n    /// @notice Item in the FIFO unstake queue\n    struct QueueItem {\n        address user;\n        uint256 amount;\n        uint256 timestamp;\n    }\n\n    /// @notice Event emitted when a user is enqueued for unstake\n    /// @param user The address of the user\n    /// @param amount The amount of sAID shares being unstaked\n    /// @param queueId The index of the request in the queue\n    /// @param timestamp The timestamp when unstaking was initiated\n    event UnstakeEnqueued(address indexed user, uint256 amount, uint256 queueId, uint256 timestamp);\n    /// @notice Event emitted when operator adjusts availableForUnstake\n    event AvailableForUnstakeIncreased(uint256 amount, uint256 newAvailable);\n    event AvailableForUnstakeDecreased(uint256 amount, uint256 newAvailable);\n    /// @notice Events emitted for operator-managed liquidity actions\n    event LiquidityDeployed(uint256 amount, uint256 newAvailable);\n    event LiquidityRecalled(uint256 amount, uint256 newAvailable);\n\n    /// @notice Event emitted when a user claims their unstaked AID after cooldown\n    /// @param user The address of the user\n    /// @param amount The amount of AID tokens claimed\n    event UnstakeClaimed(address indexed user, uint256 amount);\n    /// @notice Event emitted when a user cancels their pending unstake request\n    /// @param user The address of the user\n    /// @param amount The amount that was cancelled\n    /// @param queueId The index of the cancelled request in the queue\n    event UnstakeRequestCancelled(address indexed user, uint256 indexed amount, uint256 indexed queueId);\n\n    /// @notice Event emitted when cooldown period is updated\n    /// @param oldCooldown The previous cooldown period\n    /// @param newCooldown The new cooldown period\n    event CooldownPeriodUpdated(uint256 oldCooldown, uint256 newCooldown);\n\n    /// @notice Event emitted when admin sends AID to increase vault assets\n    /// @param amount The amount of AID tokens sent\n    /// @param vestingPeriodSeconds The vesting period in seconds for this distribution\n    /// @param newTotalAssets The new total assets in the vault\n    event RewardsAdded(uint256 amount, uint256 vestingPeriodSeconds, uint256 newTotalAssets);\n    /// @notice Event emitted when accidental direct token transfers are reconciled\n    event AssetReconciled(uint256 surplus, address to);\n\n    /// @notice Custom error for when an address is zero\n    error ZeroAddress();\n    /// @notice Custom error for when unstaking is not available yet\n    /// @param user The address of the user\n    /// @param availableAt The timestamp when unstaking will be available\n    error OngoingPendingRequest(address user, uint256 availableAt);\n    /// @notice Custom error for when there is no pending request\n    error NoPendingRequest();\n    /// @notice Custom error for when cooldown period is not zero\n    error InstantWithdrawalDisabled();\n    /// @notice Custom error for when trying to unstake zero amount\n    error ZeroUnstakeAmount();\n    /// @notice Error when assets out is zero\n    error ZeroAssetsOut();\n    /// @notice Custom error for invalid queue identifiers\n    error InvalidQueueId(uint256 queueId);\n    /// @notice Custom error when queue item has already been processed or empty\n    error EmptyQueueItem(uint256 queueId);\n    /// @notice Error when attempting a new distribution while prior rewards still vesting\n    error StillVesting();\n    /// @notice Error when amount is zero\n    error InvalidAmount();\n    /// @notice Custom error for when a deny-listed address attempts a blocked operation\n    /// @param account The denied address\n    error AddressDenied(address account);\n\n    /// @notice Gets the sAID storage\n    /// @return $ The sAID storage\n    function _getSAIDStorage() private pure returns (SAIDStorage storage $) {\n        assembly {\n            $.slot := SAID_STORAGE_LOCATION\n        }\n    }\n\n    /// @notice Initializes the sAID contract\n    /// @param _asset The underlying AID token address\n    /// @param _name The name of the sAID token\n    /// @param _symbol The symbol of the sAID token\n    /// @param _admin The address that will be granted the ADMIN_ROLE\n    /// @param _cooldownPeriod The cooldown period for unstaking in seconds\n    /// @dev This function can only be called once during contract deployment\n    function initialize(\n        address _asset,\n        string memory _name,\n        string memory _symbol,\n        address _admin,\n        uint256 _cooldownPeriod\n    ) public initializer {\n        if (_admin == address(0)) {\n            revert ZeroAddress();\n        }\n        __ERC4626_init(IERC20(_asset));\n        __ERC20_init(_name, _symbol);\n        __AccessControl_init();\n        __Pausable_init();\n        __UUPSUpgradeable_init();\n        __ReentrancyGuard_init();\n\n        _grantRole(DEFAULT_ADMIN_ROLE, _admin);\n        _grantRole(REWARDER_ROLE, _admin);\n        _grantRole(OPERATOR_ROLE, _admin);\n\n        SAIDStorage storage $ = _getSAIDStorage();\n        $.cooldownPeriod = _cooldownPeriod;\n\n        // Push a dummy entry to the queue so valid IDs start from 1\n        // This prevents the issue where pendingRequestId[user] = 0 means \"no request\"\n        $.queue.push(QueueItem({user: address(0), amount: 0, timestamp: 0}));\n    }\n\n    /// @notice Authorizes contract upgrades\n    /// @param newImplementation The address of the new implementation contract\n    /// @dev Only accounts with DEFAULT_ADMIN_ROLE can authorize upgrades\n    function _authorizeUpgrade(address newImplementation) internal override onlyRole(DEFAULT_ADMIN_ROLE) {}\n\n    /// @dev Deposit/mint common workflow hook override\n    function _deposit(address caller, address receiver, uint256 assets, uint256 shares) internal override nonReentrant {\n        _requireNotPaused();\n        if (_isUserDenied(caller)) revert AddressDenied(caller);\n        super._deposit(caller, receiver, assets, shares);\n        SAIDStorage storage $ = _getSAIDStorage();\n        $.availableForUnstake += assets;\n        emit AvailableForUnstakeIncreased(assets, $.availableForUnstake);\n        $.trackedAssets += assets;\n    }\n\n    function _withdraw(address caller, address receiver, address owner, uint256 assets, uint256 shares)\n        internal\n        override\n        nonReentrant\n    {\n        _requireNotPaused();\n        if (_isUserDenied(owner)) revert AddressDenied(owner);\n        SAIDStorage storage $ = _getSAIDStorage();\n        if ($.cooldownPeriod > 0) {\n            revert InstantWithdrawalDisabled();\n        }\n        super._withdraw(caller, receiver, owner, assets, shares);\n        $.availableForUnstake -= assets;\n        emit AvailableForUnstakeDecreased(assets, $.availableForUnstake);\n        $.trackedAssets -= assets;\n    }\n\n    /// @notice Initiates unstaking of sAID shares\n    /// @param shares The amount of sAID shares to unstake\n    /// @dev Burns shares and enqueues a claim payable after cooldown in FIFO order\n    function unstake(uint256 shares) public whenNotPaused nonReentrant {\n        if (shares == 0) revert ZeroUnstakeAmount();\n\n        SAIDStorage storage $ = _getSAIDStorage();\n\n        // Check if user has a pending unstake request\n        if ($.pendingRequestId[msg.sender] != 0) {\n            uint256 existingId = $.pendingRequestId[msg.sender];\n            revert OngoingPendingRequest(msg.sender, $.queue[existingId].timestamp);\n        }\n\n        // Convert shares to assets immediately (user doesn't earn rewards during cooldown)\n        uint256 assets = convertToAssetsWithLoss(shares);\n        if (assets == 0) revert ZeroAssetsOut();\n\n        // Burn the sAID shares from user (ERC-4626 accounting)\n        _burn(msg.sender, shares);\n\n        // Reduce tracked assets to maintain correct exchange rate for remaining users\n        $.trackedAssets -= assets;\n\n        // Enqueue the request\n        uint256 id = $.queue.length;\n        $.queue.push(QueueItem({user: msg.sender, amount: assets, timestamp: block.timestamp}));\n        $.pendingRequestId[msg.sender] = id;\n        $.queuedTotal += assets;\n\n        emit UnstakeEnqueued(msg.sender, assets, id, block.timestamp);\n    }\n\n    /// @notice Internal function to cancel an unstake request\n    /// @param queueId The queue item identifier to cancel\n    /// @dev Handles all cancellation logic: converts assets to shares, restores tracked assets,\n    ///      clears queue item, updates pendingRequestId, updates queuedTotal, mints shares, and emits event\n    function _cancelUnstakeRequest(uint256 queueId) internal {\n        SAIDStorage storage $ = _getSAIDStorage();\n\n        if (queueId == 0 || queueId >= $.queue.length) {\n            revert InvalidQueueId(queueId);\n        }\n\n        QueueItem memory item = $.queue[queueId];\n        if (item.user == address(0)) {\n            revert EmptyQueueItem(queueId);\n        }\n\n        // Convert assets back to shares at current rate\n        uint256 shares = convertToSharesWithLoss(item.amount);\n\n        // Restore tracked assets to maintain correct exchange rate\n        $.trackedAssets += item.amount;\n\n        // Mark as processed\n        $.queue[queueId] = QueueItem({user: address(0), amount: 0, timestamp: 0});\n        $.queuedTotal -= item.amount;\n\n        // Clear pending request mapping if this was the user's pending request\n        if ($.pendingRequestId[item.user] == queueId) {\n            $.pendingRequestId[item.user] = 0;\n        }\n\n        // Advance queue head if needed\n        if ($.queueHead == queueId) {\n            $.queueHead = queueId + 1;\n        }\n\n        // Mint the sAID shares back to user (ERC-4626 accounting)\n        _mint(item.user, shares);\n\n        emit UnstakeRequestCancelled(item.user, item.amount, queueId);\n    }\n\n    /// @notice Cancels a pending unstake request and refunds the shares\n    /// @dev Restores the user's sAID shares and removes them from the queue\n    function cancelUnstakeRequest() public whenNotPaused nonReentrant {\n        // Denied users cannot cancel: their queued position must settle to frozen AID via processUnstakeQueue\n        if (_isUserDenied(msg.sender)) revert AddressDenied(msg.sender);\n\n        SAIDStorage storage $ = _getSAIDStorage();\n        uint256 id = $.pendingRequestId[msg.sender];\n\n        if (id == 0) {\n            revert NoPendingRequest();\n        }\n\n        _cancelUnstakeRequest(id);\n    }\n\n    /// @notice Admin cancels a specific unstake queue item and refunds the user\n    /// @param queueId The queue item identifier to cancel\n    function adminCancelUnstake(uint256 queueId) public whenNotPaused nonReentrant onlyRole(DEFAULT_ADMIN_ROLE) {\n        _cancelUnstakeRequest(queueId);\n    }\n\n    /// @notice Process the head of the queue if eligible and liquid\n    /// @dev Anyone can call to help advance the queue\n    function processUnstakeQueue(uint256 maxIterations) public whenNotPaused nonReentrant {\n        SAIDStorage storage $ = _getSAIDStorage();\n        uint256 iterations = 0;\n        while (iterations < maxIterations && $.queueHead < $.queue.length) {\n            uint256 id = $.queueHead;\n            QueueItem memory item = $.queue[id];\n            if (item.user == address(0)) {\n                // already processed, advance\n                $.queueHead = id + 1;\n                iterations++;\n                continue;\n            }\n\n            // Denied users are NOT auto-cancelled: their queued claim settles to AID via the normal\n            // path below, where AID's FROM-check freezes it at the denied address. They cannot\n            // cancel back to sAID (cancelUnstakeRequest reverts for denied addresses).\n\n            if (block.timestamp < item.timestamp + $.cooldownPeriod) {\n                break; // cooldown not over\n            }\n            uint256 liquid = $.availableForUnstake;\n            if (liquid == 0) {\n                break; // no liquidity\n            }\n            if (liquid < item.amount) {\n                // partial fill\n                $.queue[id].amount = item.amount - liquid;\n                $.availableForUnstake = 0;\n                $.queuedTotal -= liquid;\n                IERC20(asset()).safeTransfer(item.user, liquid);\n                emit UnstakeClaimed(item.user, liquid);\n                break;\n            } else {\n                // full fill\n                $.queue[id] = QueueItem({user: address(0), amount: 0, timestamp: 0});\n                $.queueHead = id + 1;\n                $.pendingRequestId[item.user] = 0;\n                $.availableForUnstake = liquid - item.amount;\n                $.queuedTotal -= item.amount;\n                // interactions\n                IERC20(asset()).safeTransfer(item.user, item.amount);\n                emit UnstakeClaimed(item.user, item.amount);\n                iterations++;\n            }\n        }\n    }\n\n    /// @notice Returns operator-managed liquid AID available to fulfill unstake requests\n    function availableForUnstake() public view returns (uint256) {\n        SAIDStorage storage $ = _getSAIDStorage();\n        return $.availableForUnstake;\n    }\n\n    /// @notice Checks if a user is on the deny list in the AID contract\n    /// @param user The address to check\n    /// @return True if the user is denied, false otherwise\n    function _isUserDenied(address user) internal view returns (bool) {\n        // DENIED_ADDRESS_ROLE = keccak256(\"DENIED_ADDRESS_ROLE\")\n        bytes32 DENIED_ADDRESS_ROLE = 0xb833cacb9268e2dd2e4059a2ccfb9eb32ddf1ee1d91a6d2307b0ad047ab00025;\n        return IAccessControl(asset()).hasRole(DENIED_ADDRESS_ROLE, user);\n    }\n\n    /// @notice Operator reduces available liquidity when deploying funds\n    function deploy(uint256 amount) public onlyRole(OPERATOR_ROLE) {\n        SAIDStorage storage $ = _getSAIDStorage();\n        $.availableForUnstake -= amount;\n        emit LiquidityDeployed(amount, $.availableForUnstake);\n    }\n\n    /// @notice Operator increases available liquidity when funds are recalled\n    function recall(uint256 amount) public onlyRole(OPERATOR_ROLE) {\n        SAIDStorage storage $ = _getSAIDStorage();\n        $.availableForUnstake += amount;\n        emit LiquidityRecalled(amount, $.availableForUnstake);\n    }\n\n    /// @notice Operator sets unrealized loss\n    /// @param loss The unrealized loss\n    function setUnrealizedLoss(uint256 loss) public onlyRole(OPERATOR_ROLE) {\n        SAIDStorage storage $ = _getSAIDStorage();\n        $.unrealizedLoss = loss;\n    }\n\n    /// @notice Reconcile unexpected direct transfers of the asset token by sweeping surplus\n    /// @dev Only admin can reconcile; sends (actual - trackedAssets) to `to` if positive\n    function reconcileAssetBalance(address to) public onlyRole(DEFAULT_ADMIN_ROLE) {\n        SAIDStorage storage $ = _getSAIDStorage();\n        uint256 actual = IERC20(asset()).balanceOf(address(this));\n        uint256 minNeeded = $.trackedAssets + $.queuedTotal;\n        if (actual <= minNeeded) {\n            return; // nothing to sweep\n        }\n        uint256 surplus = actual - minNeeded;\n        IERC20(asset()).safeTransfer(to, surplus);\n        emit AssetReconciled(surplus, to);\n    }\n\n    /// @notice Returns total amount currently queued for unstake\n    function totalQueuedAmount() public view returns (uint256) {\n        SAIDStorage storage $ = _getSAIDStorage();\n        return $.queuedTotal;\n    }\n\n    /// @notice Returns the current unvested rewards amount\n    function getUnvestedAmount() public view returns (uint256) {\n        SAIDStorage storage $ = _getSAIDStorage();\n        if ($.vestingAmount == 0) return 0;\n        uint256 period = $.lastVestingPeriod;\n        if (period == 0) return 0;\n        uint256 timeSince = block.timestamp - $.lastDistributionTimestamp;\n        if (timeSince >= period) return 0;\n        uint256 deltaT = period - timeSince;\n        return Math.mulDiv(deltaT, $.vestingAmount, period);\n    }\n\n    /// @notice Returns assets: trackedAssets minus currently unvested rewards (floored at 0).\n    function totalAssets() public view override returns (uint256) {\n        SAIDStorage storage $ = _getSAIDStorage();\n        uint256 bal = $.trackedAssets;\n        uint256 unvested = getUnvestedAmount();\n        if (bal <= unvested) return 0;\n        return bal - unvested;\n    }\n\n    /// @notice Sets the cooldown period for unstaking\n    /// @param _cooldownPeriod The new cooldown period in seconds\n    /// @dev Only accounts with DEFAULT_ADMIN_ROLE can set the cooldown period\n    function setCooldownPeriod(uint256 _cooldownPeriod) public onlyRole(DEFAULT_ADMIN_ROLE) {\n        SAIDStorage storage $ = _getSAIDStorage();\n        uint256 oldCooldown = $.cooldownPeriod;\n        $.cooldownPeriod = _cooldownPeriod;\n        emit CooldownPeriodUpdated(oldCooldown, _cooldownPeriod);\n    }\n\n    /// @notice Sends AID tokens to the vault and starts linear vesting\n    /// @param amount The amount of AID tokens to send\n    /// @param vestingPeriodSeconds The vesting period in seconds for this distribution\n    /// @dev Only accounts with REWARDER_ROLE can send AID tokens\n    function transferInRewards(uint256 amount, uint256 vestingPeriodSeconds)\n        public\n        onlyRole(REWARDER_ROLE)\n        nonReentrant\n        whenNotPaused\n    {\n        if (amount == 0) revert InvalidAmount();\n        _updateVestingAmount(amount, vestingPeriodSeconds);\n        IERC20(asset()).safeTransferFrom(msg.sender, address(this), amount);\n        SAIDStorage storage $ = _getSAIDStorage();\n        $.trackedAssets += amount;\n        emit RewardsAdded(amount, vestingPeriodSeconds, totalAssets());\n    }\n\n    /// @dev Updates vesting state; reverts if previous distribution still vesting\n    function _updateVestingAmount(uint256 newVestingAmount, uint256 vestingPeriodSeconds) internal {\n        SAIDStorage storage $ = _getSAIDStorage();\n        if (getUnvestedAmount() > 0) revert StillVesting();\n        $.vestingAmount = newVestingAmount;\n        $.lastDistributionTimestamp = block.timestamp;\n        $.lastVestingPeriod = vestingPeriodSeconds;\n    }\n\n    /// @notice Gets the cooldown period\n    /// @return The cooldown period in seconds\n    function getCooldownPeriod() public view returns (uint256) {\n        SAIDStorage storage $ = _getSAIDStorage();\n        return $.cooldownPeriod;\n    }\n\n    /// @notice Gets the unstake request details for a user\n    /// @param user The address of the user\n    /// @return requestTime The timestamp when unstaking was initiated\n    /// @return pendingAssets The amount of AID assets pending claim\n    function getUnstakeRequest(address user) public view returns (uint256 requestTime, uint256 pendingAssets) {\n        SAIDStorage storage $ = _getSAIDStorage();\n        uint256 id = $.pendingRequestId[user];\n        if (id == 0) {\n            return (0, 0);\n        }\n        QueueItem memory item = $.queue[id];\n        requestTime = item.timestamp;\n        pendingAssets = item.amount;\n    }\n\n    /// @notice Pauses all operations\n    /// @dev Only accounts with DEFAULT_ADMIN_ROLE can pause the contract\n    function pause() public onlyRole(DEFAULT_ADMIN_ROLE) {\n        _pause();\n    }\n\n    /// @notice Unpauses all operations\n    /// @dev Only accounts with DEFAULT_ADMIN_ROLE can unpause the contract\n    function unpause() public onlyRole(DEFAULT_ADMIN_ROLE) {\n        _unpause();\n    }\n\n    /// @notice Override of _update to enforce pause and deny list\n    /// @param from The address transferring tokens from\n    /// @param to The address transferring tokens to\n    /// @param amount The amount of tokens being transferred\n    /// @dev Reverts if paused (transfers only) or if the FROM address is on the AID deny list (transfers only).\n    ///      Burns (to == address(0)) are exempt so denied addresses can still initiate unstake requests.\n    ///      Mints (from == address(0)) are exempt so cancelled requests can return shares to denied addresses.\n    ///      The TO-check is intentionally omitted: denied addresses may receive sAID; they only cannot send it.\n    function _update(address from, address to, uint256 amount) internal override {\n        // Block transfers while paused, but allow mints (from == address(0)) and burns (to == address(0))\n        if (from != address(0) && to != address(0)) {\n            _requireNotPaused();\n        }\n        // Block transfers FROM a denied address only (mints/burns exempt; receiving allowed)\n        if (from != address(0) && to != address(0) && _isUserDenied(from)) {\n            revert AddressDenied(from);\n        }\n        super._update(from, to, amount);\n    }\n\n    /// @notice Returns 0 when paused, else type(uint256).max (denied receivers may still receive deposits)\n    function maxDeposit(address) public view override returns (uint256) {\n        return paused() ? 0 : type(uint256).max;\n    }\n\n    /// @notice Returns 0 when paused, else type(uint256).max (denied receivers may still receive mints)\n    function maxMint(address) public view override returns (uint256) {\n        return paused() ? 0 : type(uint256).max;\n    }\n\n    /// @notice Returns 0 when paused, cooldown is active, or owner is deny-listed; otherwise loss-adjusted assets\n    function maxWithdraw(address owner) public view override returns (uint256) {\n        SAIDStorage storage $ = _getSAIDStorage();\n        if (paused() || $.cooldownPeriod > 0 || _isUserDenied(owner)) return 0;\n        return _convertToAssetsWithLoss(balanceOf(owner), Math.Rounding.Floor);\n    }\n\n    /// @notice Returns 0 when paused, cooldown is active, or owner is deny-listed; otherwise share balance\n    function maxRedeem(address owner) public view override returns (uint256) {\n        SAIDStorage storage $ = _getSAIDStorage();\n        if (paused() || $.cooldownPeriod > 0 || _isUserDenied(owner)) return 0;\n        return balanceOf(owner);\n    }\n\n    /// @notice Returns total assets including unrealized loss (used for withdraw/redeem/unstake)\n    /// @return Total assets adjusted for unrealized loss\n    function totalAssetsWithLoss() public view returns (uint256) {\n        SAIDStorage storage $ = _getSAIDStorage();\n        uint256 loss = $.unrealizedLoss;\n        uint256 bal = $.trackedAssets;\n        uint256 unvested = getUnvestedAmount();\n        if (bal <= unvested + loss) return 0;\n        return bal - unvested - loss;\n    }\n\n    /// @notice Converts shares to assets using the loss-adjusted rate\n    /// @param shares The amount of shares to convert\n    /// @return The amount of assets after applying unrealized loss\n    function convertToAssetsWithLoss(uint256 shares) public view returns (uint256) {\n        return _convertToAssetsWithLoss(shares, Math.Rounding.Floor);\n    }\n\n    /// @notice Converts assets to shares using the loss-adjusted rate\n    /// @param assets The amount of assets to convert\n    /// @return The amount of shares after applying unrealized loss\n    function convertToSharesWithLoss(uint256 assets) public view returns (uint256) {\n        return _convertToSharesWithLoss(assets, Math.Rounding.Floor);\n    }\n\n    /// @dev Internal conversion function for assets to shares using loss-adjusted rate\n    function _convertToSharesWithLoss(uint256 assets, Math.Rounding rounding) internal view returns (uint256) {\n        uint256 assetsWithLoss = totalAssetsWithLoss();\n        return assets.mulDiv(totalSupply() + 10 ** _decimalsOffset(), assetsWithLoss + 1, rounding);\n    }\n\n    /// @dev Internal conversion function for shares to assets using loss-adjusted rate\n    function _convertToAssetsWithLoss(uint256 shares, Math.Rounding rounding) internal view returns (uint256) {\n        uint256 assetsWithLoss = totalAssetsWithLoss();\n        return shares.mulDiv(assetsWithLoss + 1, totalSupply() + 10 ** _decimalsOffset(), rounding);\n    }\n\n    /// @dev Uses loss-adjusted rate for withdrawals\n    function previewWithdraw(uint256 assets) public view virtual override returns (uint256) {\n        return _convertToSharesWithLoss(assets, Math.Rounding.Ceil);\n    }\n\n    /// @dev Uses loss-adjusted rate for redemptions\n    function previewRedeem(uint256 shares) public view virtual override returns (uint256) {\n        return _convertToAssetsWithLoss(shares, Math.Rounding.Floor);\n    }\n\n    /// @custom:oz-upgrades-unsafe-allow constructor\n    constructor() {\n        _disableInitializers();\n    }\n}\n","deployed_bytecode":"0x60806040526004361061037c575f3560e01c80637defd5b0116101d3578063ba087652116100fd578063d64983fa1161009d578063e542ded71161006d578063e542ded7146109df578063e7c2a608146109fe578063ef8b30f7146108fd578063f5b541a614610a12575f80fd5b8063d64983fa14610979578063d905777e1461098d578063dd62ed3e146109ac578063df0cc87c146109cb575f80fd5b8063c6e6f592116100d8578063c6e6f592146108fd578063ce96cb771461091c578063d2b8e9f61461093b578063d547741f1461095a575f80fd5b8063ba087652146108bf578063c63d75b6146105c9578063c6af2944146108de575f80fd5b80639615be7211610173578063ad3cb1cc11610143578063ad3cb1cc1461083d578063b2ad7e3c1461086d578063b3d7f6b914610881578063b460af94146108a0575f80fd5b80639615be72146107cd578063a217fddf146107ec578063a5e38751146107ff578063a9059cbb1461081e575f80fd5b80638580cf76116101ae5780638580cf761461074857806391d148541461077b57806394bf804d1461079a57806395d89b41146107b9575f80fd5b80637defd5b01461070157806380ea3de1146107155780638456cb5914610734575f80fd5b8063313ce567116102b457806352d1902d116102545780636e553f65116102245780636e553f651461068557806370a08231146106a457806375b30be6146106c35780637d32e793146106e2575f80fd5b806352d1902d146105fb5780635c975abb1461060f57806364a6c19414610632578063677b0cd214610666575f80fd5b80633f4ba83a1161028f5780633f4ba83a146105b5578063402d267d146105c95780634cdad506146104a95780634f1ef286146105e8575f80fd5b8063313ce5671461054457806336568abe1461056a57806338d52e0f14610589575f80fd5b80631815d9c71161031f57806323b872dd116102fa57806323b872dd146104c8578063248a9ca3146104e75780632e17de78146105065780632f2ff15d14610525575f80fd5b80631815d9c71461047557806318160ddd14610489578063227c27e6146104a9575f80fd5b80630706d5991161035a5780630706d599146103f757806307a2d13a14610418578063095ea7b3146104375780630a28a47714610456575f80fd5b806301e1d1141461038057806301ffc9a7146103a757806306fdde03146103d6575b5f80fd5b34801561038b575f80fd5b50610394610a32565b6040519081526020015b60405180910390f35b3480156103b2575f80fd5b506103c66103c13660046133b8565b610a71565b604051901515815260200161039e565b3480156103e1575f80fd5b506103ea610aa7565b60405161039e9190613401565b348015610402575f80fd5b50610416610411366004613433565b610b67565b005b348015610423575f80fd5b50610394610432366004613453565b610c73565b348015610442575f80fd5b506103c6610451366004613485565b610c7e565b348015610461575f80fd5b50610394610470366004613453565b610c95565b348015610480575f80fd5b50610394610ca1565b348015610494575f80fd5b505f80516020613aa583398151915254610394565b3480156104b4575f80fd5b506103946104c3366004613453565b610cb5565b3480156104d3575f80fd5b506103c66104e23660046134ad565b610cc0565b3480156104f2575f80fd5b50610394610501366004613453565b610ce5565b348015610511575f80fd5b50610416610520366004613453565b610d05565b348015610530575f80fd5b5061041661053f3660046134e6565b610f00565b34801561054f575f80fd5b50610558610f22565b60405160ff909116815260200161039e565b348015610575575f80fd5b506104166105843660046134e6565b610f64565b348015610594575f80fd5b5061059d610f97565b6040516001600160a01b03909116815260200161039e565b3480156105c0575f80fd5b50610416610fc5565b3480156105d4575f80fd5b506103946105e3366004613510565b610fd7565b6104166105f63660046135b0565b611002565b348015610606575f80fd5b50610394611021565b34801561061a575f80fd5b505f80516020613b258339815191525460ff166103c6565b34801561063d575f80fd5b5061065161064c366004613510565b61103c565b6040805192835260208301919091520161039e565b348015610671575f80fd5b50610416610680366004613453565b6110d6565b348015610690575f80fd5b5061039461069f3660046134e6565b611406565b3480156106af575f80fd5b506103946106be366004613510565b61145a565b3480156106ce575f80fd5b506104166106dd36600461362c565b611480565b3480156106ed575f80fd5b506104166106fc366004613453565b611692565b34801561070c575f80fd5b50610394611711565b348015610720575f80fd5b5061041661072f366004613453565b611722565b34801561073f575f80fd5b5061041661177e565b348015610753575f80fd5b506103947fbeec13769b5f410b0584f69811bfd923818456d5edcf426b0e31cf90eed7a3f681565b348015610786575f80fd5b506103c66107953660046134e6565b611790565b3480156107a5575f80fd5b506103946107b43660046134e6565b6117c6565b3480156107c4575f80fd5b506103ea611812565b3480156107d8575f80fd5b506104166107e7366004613453565b611850565b3480156107f7575f80fd5b506103945f81565b34801561080a575f80fd5b50610416610819366004613453565b61187b565b348015610829575f80fd5b506103c6610838366004613485565b6118f1565b348015610848575f80fd5b506103ea604051806040016040528060058152602001640352e302e360dc1b81525081565b348015610878575f80fd5b506104166118fe565b34801561088c575f80fd5b5061039461089b366004613453565b611997565b3480156108ab575f80fd5b506103946108ba3660046136b3565b6119a3565b3480156108ca575f80fd5b506103946108d93660046136b3565b6119f9565b3480156108e9575f80fd5b506104166108f8366004613510565b611a46565b348015610908575f80fd5b50610394610917366004613453565b611b56565b348015610927575f80fd5b50610394610936366004613510565b611b61565b348015610946575f80fd5b50610394610955366004613453565b611bbe565b348015610965575f80fd5b506104166109743660046134e6565b611bc9565b348015610984575f80fd5b50610394611be5565b348015610998575f80fd5b506103946109a7366004613510565b611c40565b3480156109b7575f80fd5b506103946109c63660046136ec565b611c94565b3480156109d6575f80fd5b50610394611cdd565b3480156109ea575f80fd5b506104166109f9366004613453565b611cf1565b348015610a09575f80fd5b50610394611d2b565b348015610a1d575f80fd5b506103945f80516020613ae583398151915281565b5f80610a3c611d9d565b60098101549091505f610a4d611d2b565b9050808211610a5f575f935050505090565b610a698183613728565b935050505090565b5f6001600160e01b03198216637965db0b60e01b1480610aa157506301ffc9a760e01b6001600160e01b03198316145b92915050565b7f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace0380546060915f80516020613a8583398151915291610ae59061373b565b80601f0160208091040260200160405190810160405280929190818152602001828054610b119061373b565b8015610b5c5780601f10610b3357610100808354040283529160200191610b5c565b820191905f5260205f20905b815481529060010190602001808311610b3f57829003601f168201915b505050505091505090565b7fbeec13769b5f410b0584f69811bfd923818456d5edcf426b0e31cf90eed7a3f6610b9181611dc1565b610b99611dcb565b610ba1611e02565b825f03610bc15760405163162908e360e11b815260040160405180910390fd5b610bcb8383611e32565b610bea333085610bd9610f97565b6001600160a01b0316929190611e7a565b5f610bf3611d9d565b905083816009015f828254610c089190613773565b909155507fbff8d5ced955e6f69a19ecc71d313996f6ddfed652cdb458859af89e2f07683590508484610c39610a32565b6040805193845260208401929092529082015260600160405180910390a150610c6e60015f80516020613b4583398151915255565b505050565b5f610aa1825f611ef4565b5f33610c8b818585611f38565b5060019392505050565b5f610aa1826001611f45565b5f80610cab611d9d565b6007015492915050565b5f610aa1825f611f8c565b5f33610ccd858285611fca565b610cd8858585612015565b60019150505b9392505050565b5f9081525f80516020613b05833981519152602052604090206001015490565b610d0d611e02565b610d15611dcb565b805f03610d3557604051632d3087f960e01b815260040160405180910390fd5b5f610d3e611d9d565b335f90815260068201602052604090205490915015610dc357335f81815260068301602052604090205460058301805491929183908110610d8157610d81613786565b5f91825260209091206002600390920201015460405163d5010b9360e01b81526001600160a01b03909216600483015260248201526044015b60405180910390fd5b5f610dcd83610cb5565b9050805f03610def576040516367ca182760e01b815260040160405180910390fd5b610df93384612072565b80826009015f828254610e0c9190613728565b90915550506005820180546040805160608101825233808252602080830187815242848601908152600180880189555f98895283892095516003890290960180546001600160a01b0319166001600160a01b03909716969096178655915191850191909155516002909301929092558452600686019052822081905560088401805491928492610e9d908490613773565b909155505060408051838152602081018390524281830152905133917fd1a1f4806d0cddf35cd7b6c09d7273c40e2f170b2bc8ea39b15e34da0ed12d37919081900360600190a2505050610efd60015f80516020613b4583398151915255565b50565b610f0982610ce5565b610f1281611dc1565b610f1c83836120a6565b50505050565b5f807f0773e532dfede91f04b12a73d3d2acd361424f41f76b4fb79f090161e36b4e0090505f8154610f5e9190600160a01b900460ff1661379a565b91505090565b6001600160a01b0381163314610f8d5760405163334bd91960e11b815260040160405180910390fd5b610c6e8282612147565b7f0773e532dfede91f04b12a73d3d2acd361424f41f76b4fb79f090161e36b4e00546001600160a01b031690565b5f610fcf81611dc1565b610efd6121c0565b5f610ff05f80516020613b258339815191525460ff1690565b610ffb575f19610aa1565b5f92915050565b61100a61221f565b611013826122c3565b61101d82826122cd565b5050565b5f61102a612389565b505f80516020613ac583398151915290565b5f805f611047611d9d565b6001600160a01b0385165f90815260068201602052604081205491925081900361107757505f9485945092505050565b5f82600501828154811061108d5761108d613786565b5f91825260209182902060408051606081018252600390930290910180546001600160a01b03168352600181015493830184905260020154910181905297909650945050505050565b6110de611e02565b6110e6611dcb565b5f6110ef611d9d565b90505f5b8281108015611109575060058201546004830154105b156113ee575f826004015490505f83600501828154811061112c5761112c613786565b5f91825260209182902060408051606081018252600390930290910180546001600160a01b0316808452600182015494840194909452600201549082015291506111945761117b826001613773565b60048501558261118a816137b3565b93505050506110f3565b835460408201516111a59190613773565b4210156111b35750506113ee565b60078401545f8190036111c8575050506113ee565b816020015181101561129a578082602001516111e49190613728565b8560050184815481106111f9576111f9613786565b905f5260205f209060030201600101819055505f856007018190555080856008015f8282546112289190613728565b9091555050815161124c908261123c610f97565b6001600160a01b031691906123d2565b815f01516001600160a01b03167fcb15bbbdc28223e1198be8308a502cd2706d6c42b33d19f96c1589dd5e241ae48260405161128a91815260200190565b60405180910390a25050506113ee565b60405180606001604052805f6001600160a01b031681526020015f81526020015f8152508560050184815481106112d3576112d3613786565b5f91825260209182902083516003929092020180546001600160a01b0319166001600160a01b0390921691909117815590820151600180830191909155604090920151600290910155611327908490613773565b600486015581516001600160a01b03165f90815260068601602090815260408220919091558201516113599082613728565b600786015560208201516008860180545f90611376908490613728565b90915550508151602083015161138f919061123c610f97565b815f01516001600160a01b03167fcb15bbbdc28223e1198be8308a502cd2706d6c42b33d19f96c1589dd5e241ae483602001516040516113d191815260200190565b60405180910390a2836113e3816137b3565b9450505050506110f3565b5050610efd60015f80516020613b4583398151915255565b5f8061141183610fd7565b90508084111561143a57828482604051633c8097d960e11b8152600401610dba939291906137cb565b5f61144485611b56565b905061145233858784612403565b949350505050565b6001600160a01b03165f9081525f80516020613a85833981519152602052604090205490565b5f6114896124e2565b805490915060ff600160401b820416159067ffffffffffffffff165f811580156114b05750825b90505f8267ffffffffffffffff1660011480156114cc5750303b155b9050811580156114da575080155b156114f85760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561152257845460ff60401b1916600160401b1785555b6001600160a01b0387166115495760405163d92e233d60e01b815260040160405180910390fd5b6115528a61250a565b61155c898961251b565b61156461252d565b61156c61252d565b61157461252d565b61157c612535565b6115865f886120a6565b506115b17fbeec13769b5f410b0584f69811bfd923818456d5edcf426b0e31cf90eed7a3f6886120a6565b506115c95f80516020613ae5833981519152886120a6565b505f6115d3611d9d565b878155604080516060810182525f80825260208083018281529383018281526005909501805460018082018355918452919092209251600390910290920180546001600160a01b0319166001600160a01b03909316929092178255915191810191909155905160029091015550831561168657845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050505050565b5f80516020613ae58339815191526116a981611dc1565b5f6116b2611d9d565b905082816007015f8282546116c79190613773565b909155505060078101546040805185815260208101929092527fc7765bcbabebbcf3fdd598f7e1f6abce75732aa5fed92139402c3a44fedc0ad791015b60405180910390a1505050565b5f8061171b611d9d565b5492915050565b5f61172c81611dc1565b5f611735611d9d565b8054848255604080518281526020810187905292935090917f98eaabfe135a9c40c420208962bf81e7926b4d6df3e23502164c0554b7b35224910160405180910390a150505050565b5f61178881611dc1565b610efd612545565b5f9182525f80516020613b05833981519152602090815260408084206001600160a01b0393909316845291905290205460ff1690565b5f806117d183610fd7565b9050808411156117fa5782848260405163284ff66760e01b8152600401610dba939291906137cb565b5f61180485611997565b905061145233858388612403565b7f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace0480546060915f80516020613a8583398151915291610ae59061373b565b5f80516020613ae583398151915261186781611dc1565b5f611870611d9d565b600a01929092555050565b5f80516020613ae583398151915261189281611dc1565b5f61189b611d9d565b905082816007015f8282546118b09190613728565b909155505060078101546040805185815260208101929092527fcd9786339b2475ad263433c45f6538d0c19eb978a2e5cd7c621a24ee4c4e29c69101611704565b5f33610c8b818585612015565b611906611e02565b61190e611dcb565b6119173361258d565b156119375760405163365c832d60e11b8152336004820152602401610dba565b5f611940611d9d565b335f9081526006820160205260408120549192508190036119745760405163198580dd60e31b815260040160405180910390fd5b61197d81612628565b505061199560015f80516020613b4583398151915255565b565b5f610aa1826001611ef4565b5f806119ae83611b61565b9050808511156119d757828582604051633fa733bb60e21b8152600401610dba939291906137cb565b5f6119e186610c95565b90506119f0338686898561284c565b95945050505050565b5f80611a0483611c40565b905080851115611a2d57828582604051632e52afbb60e21b8152600401610dba939291906137cb565b5f611a3786610cb5565b90506119f0338686848a61284c565b5f611a5081611dc1565b5f611a59611d9d565b90505f611a64610f97565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa158015611aa8573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611acc91906137ec565b90505f82600801548360090154611ae39190613773565b9050808211611af3575050505050565b5f611afe8284613728565b9050611b0d868261123c610f97565b604080518281526001600160a01b03881660208201527fca31200dccab6f14415ae72fd39890c5663b96b7152c02bacd042fb760ce8d4c910160405180910390a1505050505050565b5f610aa1825f612950565b5f80611b6b611d9d565b9050611b855f80516020613b258339815191525460ff1690565b80611b905750805415155b80611b9f5750611b9f8361258d565b15611bac57505f92915050565b610cde611bb88461145a565b5f611f8c565b5f610aa1825f611f45565b611bd282610ce5565b611bdb81611dc1565b610f1c8383612147565b5f80611bef611d9d565b600a8101546009820154919250905f611c06611d2b565b9050611c128382613773565b8211611c22575f94505050505090565b82611c2d8284613728565b611c379190613728565b94505050505090565b5f80611c4a611d9d565b9050611c645f80516020613b258339815191525460ff1690565b80611c6f5750805415155b80611c7e5750611c7e8361258d565b15611c8b57505f92915050565b610cde8361145a565b6001600160a01b039182165f9081527f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace016020908152604080832093909416825291909152205490565b5f80611ce7611d9d565b6008015492915050565b611cf9611e02565b611d01611dcb565b5f611d0b81611dc1565b611d1482612628565b50610efd60015f80516020613b4583398151915255565b5f80611d35611d9d565b905080600101545f03611d49575f91505090565b60038101545f819003611d5e575f9250505090565b5f826002015442611d6f9190613728565b9050818110611d81575f935050505090565b5f611d8c8284613728565b9050611c378185600101548561298b565b7fd197494adafa19d3a857aec5aa27953ad3ec7bcc987f02501e4ce68fa49d850090565b610efd8133612a4a565b5f80516020613b45833981519152805460011901611dfc57604051633ee5aeb560e01b815260040160405180910390fd5b60029055565b5f80516020613b258339815191525460ff16156119955760405163d93c066560e01b815260040160405180910390fd5b5f611e3b611d9d565b90505f611e46611d2b565b1115611e6457604051628099ef60e11b815260040160405180910390fd5b6001810192909255426002830155600390910155565b6040516001600160a01b038481166024830152838116604483015260648201839052610f1c9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050612a83565b60015f80516020613b4583398151915255565b5f610cde611f00610a32565b611f0b906001613773565b611f165f600a6138e3565b5f80516020613aa583398151915254611f2f9190613773565b85919085612ae4565b610c6e8383836001612b31565b5f80611f4f611be5565b9050611452611f5f5f600a6138e3565b5f80516020613aa583398151915254611f789190613773565b611f83836001613773565b86919086612ae4565b5f80611f96611be5565b9050611452611fa6826001613773565b611fb15f600a6138e3565b5f80516020613aa583398151915254611f839190613773565b5f611fd58484611c94565b90505f19811015610f1c578181101561200757828183604051637dc7a0d960e11b8152600401610dba939291906137cb565b610f1c84848484035f612b31565b6001600160a01b03831661203e57604051634b637e8f60e11b81525f6004820152602401610dba565b6001600160a01b0382166120675760405163ec442f0560e01b81525f6004820152602401610dba565b610c6e838383612c14565b6001600160a01b03821661209b57604051634b637e8f60e11b81525f6004820152602401610dba565b61101d825f83612c14565b5f5f80516020613b058339815191526120bf8484611790565b61213e575f848152602082815260408083206001600160a01b03871684529091529020805460ff191660011790556120f43390565b6001600160a01b0316836001600160a01b0316857f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a46001915050610aa1565b5f915050610aa1565b5f5f80516020613b058339815191526121608484611790565b1561213e575f848152602082815260408083206001600160a01b0387168085529252808320805460ff1916905551339287917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a46001915050610aa1565b6121c8612ca5565b5f80516020613b25833981519152805460ff191681557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a150565b306001600160a01b037f000000000000000000000000e2986b3e5b3e77896ae0509f6740d1106273374d1614806122a557507f000000000000000000000000e2986b3e5b3e77896ae0509f6740d1106273374d6001600160a01b03166122995f80516020613ac5833981519152546001600160a01b031690565b6001600160a01b031614155b156119955760405163703e46dd60e11b815260040160405180910390fd5b5f61101d81611dc1565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015612327575060408051601f3d908101601f19168201909252612324918101906137ec565b60015b61234f57604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610dba565b5f80516020613ac5833981519152811461237f57604051632a87526960e21b815260048101829052602401610dba565b610c6e8383612cd4565b306001600160a01b037f000000000000000000000000e2986b3e5b3e77896ae0509f6740d1106273374d16146119955760405163703e46dd60e11b815260040160405180910390fd5b6040516001600160a01b03838116602483015260448201839052610c6e91859182169063a9059cbb90606401611eaf565b61240b611dcb565b612413611e02565b61241c8461258d565b156124455760405163365c832d60e11b81526001600160a01b0385166004820152602401610dba565b61245184848484612d29565b5f61245a611d9d565b905082816007015f82825461246f9190613773565b909155505060078101546040805185815260208101929092527f539cd65b5baf2745975c0304ded2966812ba91ccb991fd0d3a8af3d378d96871910160405180910390a182816009015f8282546124c69190613773565b909155505060015f80516020613b458339815191525550610f1c565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00610aa1565b612512612da2565b610efd81612dc7565b612523612da2565b61101d8282612e4a565b611995612da2565b61253d612da2565b611995612e9a565b61254d611e02565b5f80516020613b25833981519152805460ff191660011781557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25833612201565b5f7fb833cacb9268e2dd2e4059a2ccfb9eb32ddf1ee1d91a6d2307b0ad047ab000256125b7610f97565b604051632474521560e21b8152600481018390526001600160a01b03858116602483015291909116906391d1485490604401602060405180830381865afa158015612604573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cde91906138f1565b5f612631611d9d565b9050811580612644575060058101548210155b1561266557604051637892d0a360e01b815260048101839052602401610dba565b5f81600501838154811061267b5761267b613786565b5f91825260209182902060408051606081018252600390930290910180546001600160a01b0316808452600182015494840194909452600201549082015291506126db5760405163b80378fb60e01b815260048101849052602401610dba565b5f6126e98260200151611bbe565b90508160200151836009015f8282546127029190613773565b9250508190555060405180606001604052805f6001600160a01b031681526020015f81526020015f81525083600501858154811061274257612742613786565b5f918252602080832084516003939093020180546001600160a01b0319166001600160a01b03909316929092178255838101516001830155604090930151600290910155908301516008850180549192909161279f908490613728565b909155505081516001600160a01b03165f9081526006840160205260409020548490036127e25781516001600160a01b03165f9081526006840160205260408120555b838360040154036127fe576127f8846001613773565b60048401555b815161280a9082612ea2565b602082015182516040518692916001600160a01b0316907fb8e4dceea536b6e6de2800876d709ca86533d9ac00cc7a9830206a84be9aef75905f90a450505050565b612854611dcb565b61285c611e02565b6128658361258d565b1561288e5760405163365c832d60e11b81526001600160a01b0384166004820152602401610dba565b5f612897611d9d565b8054909150156128ba576040516326ccc67760e01b815260040160405180910390fd5b6128c78686868686612ed6565b82816007015f8282546128da9190613728565b909155505060078101546040805185815260208101929092527f10b541bb92da9e37064bbb118fd7684af219783a2dc0681e238328510110671f910160405180910390a182816009015f8282546129319190613728565b909155505060015f80516020613b4583398151915255505b5050505050565b5f610cde61295f82600a6138e3565b5f80516020613aa5833981519152546129789190613773565b612980610a32565b611f2f906001613773565b5f838302815f1985870982811083820303915050805f036129bf578382816129b5576129b5613910565b0492505050610cde565b8084116129df5760405163227bc15360e01b815260040160405180910390fd5b5f848688095f868103871696879004966002600389028118808a02820302808a02820302808a02820302808a02820302808a02820302808a02909103029181900381900460010186841190950394909402919094039290920491909117919091029150509392505050565b612a548282611790565b61101d5760405163e2517d3f60e01b81526001600160a01b038216600482015260248101839052604401610dba565b5f612a976001600160a01b03841683612f7d565b905080515f14158015612abb575080806020019051810190612ab991906138f1565b155b15610c6e57604051635274afe760e01b81526001600160a01b0384166004820152602401610dba565b5f80612af186868661298b565b9050612afc83612f8a565b8015612b1757505f8480612b1257612b12613910565b868809115b156119f057612b27600182613773565b9695505050505050565b5f80516020613a858339815191526001600160a01b038516612b685760405163e602df0560e01b81525f6004820152602401610dba565b6001600160a01b038416612b9157604051634a1406b160e11b81525f6004820152602401610dba565b6001600160a01b038086165f9081526001830160209081526040808320938816835292905220839055811561294957836001600160a01b0316856001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92585604051612c0591815260200190565b60405180910390a35050505050565b6001600160a01b03831615801590612c3457506001600160a01b03821615155b15612c4157612c41611e02565b6001600160a01b03831615801590612c6157506001600160a01b03821615155b8015612c715750612c718361258d565b15612c9a5760405163365c832d60e11b81526001600160a01b0384166004820152602401610dba565b610c6e838383612fb6565b5f80516020613b258339815191525460ff1661199557604051638dfc202b60e01b815260040160405180910390fd5b612cdd826130ce565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115612d2157610c6e8282613131565b61101d61319a565b612d3c612d34610f97565b853085611e7a565b612d468382612ea2565b826001600160a01b0316846001600160a01b03167fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d78484604051612d94929190918252602082015260400190565b60405180910390a350505050565b612daa6131b9565b61199557604051631afcd79f60e31b815260040160405180910390fd5b612dcf612da2565b7f0773e532dfede91f04b12a73d3d2acd361424f41f76b4fb79f090161e36b4e005f80612dfb846131d2565b9150915081612e0b576012612e0d565b805b83546001600160a81b031916600160a01b60ff92909216919091026001600160a01b031916176001600160a01b0394909416939093179091555050565b612e52612da2565b5f80516020613a858339815191527f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace03612e8b8482613968565b5060048101610f1c8382613968565b611ee1612da2565b6001600160a01b038216612ecb5760405163ec442f0560e01b81525f6004820152602401610dba565b61101d5f8383612c14565b826001600160a01b0316856001600160a01b031614612efa57612efa838683611fca565b612f048382612072565b612f16612f0f610f97565b85846123d2565b826001600160a01b0316846001600160a01b0316866001600160a01b03167ffbde797d201c681b91056529119e0b02407c7bb96a4a2c75c01fc9667232c8db8585604051612f6e929190918252602082015260400190565b60405180910390a45050505050565b6060610cde83835f6132a8565b5f6002826003811115612f9f57612f9f613a28565b612fa99190613a3c565b60ff166001149050919050565b5f80516020613a858339815191526001600160a01b038416612ff05781816002015f828254612fe59190613773565b9091555061304d9050565b6001600160a01b0384165f908152602082905260409020548281101561302f5784818460405163391434e360e21b8152600401610dba939291906137cb565b6001600160a01b0385165f9081526020839052604090209083900390555b6001600160a01b03831661306b576002810180548390039055613089565b6001600160a01b0383165f9081526020829052604090208054830190555b826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612d9491815260200190565b806001600160a01b03163b5f0361310357604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610dba565b5f80516020613ac583398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f80846001600160a01b03168460405161314d9190613a69565b5f60405180830381855af49150503d805f8114613185576040519150601f19603f3d011682016040523d82523d5f602084013e61318a565b606091505b50915091506119f0858383613333565b34156119955760405163b398979f60e01b815260040160405180910390fd5b5f6131c26124e2565b54600160401b900460ff16919050565b60408051600481526024810182526020810180516001600160e01b031663313ce56760e01b17905290515f918291829182916001600160a01b0387169161321891613a69565b5f60405180830381855afa9150503d805f8114613250576040519150601f19603f3d011682016040523d82523d5f602084013e613255565b606091505b509150915081801561326957506020815110155b1561329c575f8180602001905181019061328391906137ec565b905060ff811161329a576001969095509350505050565b505b505f9485945092505050565b6060814710156132cd5760405163cd78605960e01b8152306004820152602401610dba565b5f80856001600160a01b031684866040516132e89190613a69565b5f6040518083038185875af1925050503d805f8114613322576040519150601f19603f3d011682016040523d82523d5f602084013e613327565b606091505b5091509150612b278683835b606082613348576133438261338f565b610cde565b815115801561335f57506001600160a01b0384163b155b1561338857604051639996b31560e01b81526001600160a01b0385166004820152602401610dba565b5080610cde565b80511561339f5780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b5f602082840312156133c8575f80fd5b81356001600160e01b031981168114610cde575f80fd5b5f5b838110156133f95781810151838201526020016133e1565b50505f910152565b602081525f825180602084015261341f8160408501602087016133df565b601f01601f19169190910160400192915050565b5f8060408385031215613444575f80fd5b50508035926020909101359150565b5f60208284031215613463575f80fd5b5035919050565b80356001600160a01b0381168114613480575f80fd5b919050565b5f8060408385031215613496575f80fd5b61349f8361346a565b946020939093013593505050565b5f805f606084860312156134bf575f80fd5b6134c88461346a565b92506134d66020850161346a565b9150604084013590509250925092565b5f80604083850312156134f7575f80fd5b823591506135076020840161346a565b90509250929050565b5f60208284031215613520575f80fd5b610cde8261346a565b634e487b7160e01b5f52604160045260245ffd5b5f67ffffffffffffffff8084111561355757613557613529565b604051601f8501601f19908116603f0116810190828211818310171561357f5761357f613529565b81604052809350858152868686011115613597575f80fd5b858560208301375f602087830101525050509392505050565b5f80604083850312156135c1575f80fd5b6135ca8361346a565b9150602083013567ffffffffffffffff8111156135e5575f80fd5b8301601f810185136135f5575f80fd5b6136048582356020840161353d565b9150509250929050565b5f82601f83011261361d575f80fd5b610cde8383356020850161353d565b5f805f805f60a08688031215613640575f80fd5b6136498661346a565b9450602086013567ffffffffffffffff80821115613665575f80fd5b61367189838a0161360e565b95506040880135915080821115613686575f80fd5b506136938882890161360e565b9350506136a26060870161346a565b949793965091946080013592915050565b5f805f606084860312156136c5575f80fd5b833592506136d56020850161346a565b91506136e36040850161346a565b90509250925092565b5f80604083850312156136fd575f80fd5b6137068361346a565b91506135076020840161346a565b634e487b7160e01b5f52601160045260245ffd5b81810381811115610aa157610aa1613714565b600181811c9082168061374f57607f821691505b60208210810361376d57634e487b7160e01b5f52602260045260245ffd5b50919050565b80820180821115610aa157610aa1613714565b634e487b7160e01b5f52603260045260245ffd5b60ff8181168382160190811115610aa157610aa1613714565b5f600182016137c4576137c4613714565b5060010190565b6001600160a01b039390931683526020830191909152604082015260600190565b5f602082840312156137fc575f80fd5b5051919050565b600181815b8085111561383d57815f190482111561382357613823613714565b8085161561383057918102915b93841c9390800290613808565b509250929050565b5f8261385357506001610aa1565b8161385f57505f610aa1565b8160018114613875576002811461387f5761389b565b6001915050610aa1565b60ff84111561389057613890613714565b50506001821b610aa1565b5060208310610133831016604e8410600b84101617156138be575081810a610aa1565b6138c88383613803565b805f19048211156138db576138db613714565b029392505050565b5f610cde60ff841683613845565b5f60208284031215613901575f80fd5b81518015158114610cde575f80fd5b634e487b7160e01b5f52601260045260245ffd5b601f821115610c6e57805f5260205f20601f840160051c810160208510156139495750805b601f840160051c820191505b81811015612949575f8155600101613955565b815167ffffffffffffffff81111561398257613982613529565b61399681613990845461373b565b84613924565b602080601f8311600181146139c9575f84156139b25750858301515b5f19600386901b1c1916600185901b178555613a20565b5f85815260208120601f198616915b828110156139f7578886015182559484019460019091019084016139d8565b5085821015613a1457878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b634e487b7160e01b5f52602160045260245ffd5b5f60ff831680613a5a57634e487b7160e01b5f52601260045260245ffd5b8060ff84160691505092915050565b5f8251613a7a8184602087016133df565b919091019291505056fe52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace0052c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace02360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b92902dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b626800cd5ed15c6e187e77e9aee88184c21f4f2182ab5827cb3b7e07fbedcd63f033009b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00a2646970667358221220012816295f627250fc8f2864ff52534ba4a27cd377c4a450e0cf6e56451b945964736f6c63430008160033","optimization_enabled":true,"verified_twin_address_hash":null,"is_verified":true,"compiler_settings":{"evmVersion":"shanghai","libraries":{},"metadata":{"appendCBOR":true,"bytecodeHash":"ipfs","useLiteralContent":false},"optimizer":{"enabled":true,"runs":200},"outputSelection":{"*":{"":["*"],"*":["*"]}},"remappings":["@layerzerolabs/oft-evm/=lib/devtools/packages/oft-evm/","@layerzerolabs/oft-evm-upgradeable/=lib/devtools/packages/oft-evm-upgradeable/","@layerzerolabs/oapp-evm/=lib/devtools/packages/oapp-evm/","@layerzerolabs/oapp-evm-upgradeable/=lib/devtools/packages/oapp-evm-upgradeable/","@layerzerolabs/lz-evm-protocol-v2/=lib/LayerZero-v2/packages/layerzero-v2/evm/protocol/","@layerzerolabs/lz-evm-messagelib-v2/=lib/LayerZero-v2/packages/layerzero-v2/evm/messagelib/","@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/","@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/","solidity-bytes-utils/=lib/solidity-bytes-utils/","LayerZero-v2/=lib/LayerZero-v2/","devtools/=lib/devtools/packages/toolbox-foundry/src/","ds-test/=lib/solidity-bytes-utils/lib/forge-std/lib/ds-test/src/","erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/","forge-std/=lib/forge-std/src/","halmos-cheatcodes/=lib/openzeppelin-contracts-upgradeable/lib/halmos-cheatcodes/src/","openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/","openzeppelin-contracts/=lib/openzeppelin-contracts/"],"viaIR":false},"optimization_runs":200,"sourcify_repo_url":null,"decoded_constructor_args":null,"compiler_version":"v0.8.22+commit.4fc1097e","is_verified_via_verifier_alliance":false,"verified_at":"2026-06-29T04:16:07.842358Z","implementations":[],"proxy_type":null,"external_libraries":[],"creation_bytecode":"0x60a06040523060805234801562000014575f80fd5b506200001f62000025565b620000d9565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff1615620000765760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b0390811614620000d65780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051613b9a620001005f395f818161222a0152818161225301526123940152613b9a5ff3fe60806040526004361061037c575f3560e01c80637defd5b0116101d3578063ba087652116100fd578063d64983fa1161009d578063e542ded71161006d578063e542ded7146109df578063e7c2a608146109fe578063ef8b30f7146108fd578063f5b541a614610a12575f80fd5b8063d64983fa14610979578063d905777e1461098d578063dd62ed3e146109ac578063df0cc87c146109cb575f80fd5b8063c6e6f592116100d8578063c6e6f592146108fd578063ce96cb771461091c578063d2b8e9f61461093b578063d547741f1461095a575f80fd5b8063ba087652146108bf578063c63d75b6146105c9578063c6af2944146108de575f80fd5b80639615be7211610173578063ad3cb1cc11610143578063ad3cb1cc1461083d578063b2ad7e3c1461086d578063b3d7f6b914610881578063b460af94146108a0575f80fd5b80639615be72146107cd578063a217fddf146107ec578063a5e38751146107ff578063a9059cbb1461081e575f80fd5b80638580cf76116101ae5780638580cf761461074857806391d148541461077b57806394bf804d1461079a57806395d89b41146107b9575f80fd5b80637defd5b01461070157806380ea3de1146107155780638456cb5914610734575f80fd5b8063313ce567116102b457806352d1902d116102545780636e553f65116102245780636e553f651461068557806370a08231146106a457806375b30be6146106c35780637d32e793146106e2575f80fd5b806352d1902d146105fb5780635c975abb1461060f57806364a6c19414610632578063677b0cd214610666575f80fd5b80633f4ba83a1161028f5780633f4ba83a146105b5578063402d267d146105c95780634cdad506146104a95780634f1ef286146105e8575f80fd5b8063313ce5671461054457806336568abe1461056a57806338d52e0f14610589575f80fd5b80631815d9c71161031f57806323b872dd116102fa57806323b872dd146104c8578063248a9ca3146104e75780632e17de78146105065780632f2ff15d14610525575f80fd5b80631815d9c71461047557806318160ddd14610489578063227c27e6146104a9575f80fd5b80630706d5991161035a5780630706d599146103f757806307a2d13a14610418578063095ea7b3146104375780630a28a47714610456575f80fd5b806301e1d1141461038057806301ffc9a7146103a757806306fdde03146103d6575b5f80fd5b34801561038b575f80fd5b50610394610a32565b6040519081526020015b60405180910390f35b3480156103b2575f80fd5b506103c66103c13660046133b8565b610a71565b604051901515815260200161039e565b3480156103e1575f80fd5b506103ea610aa7565b60405161039e9190613401565b348015610402575f80fd5b50610416610411366004613433565b610b67565b005b348015610423575f80fd5b50610394610432366004613453565b610c73565b348015610442575f80fd5b506103c6610451366004613485565b610c7e565b348015610461575f80fd5b50610394610470366004613453565b610c95565b348015610480575f80fd5b50610394610ca1565b348015610494575f80fd5b505f80516020613aa583398151915254610394565b3480156104b4575f80fd5b506103946104c3366004613453565b610cb5565b3480156104d3575f80fd5b506103c66104e23660046134ad565b610cc0565b3480156104f2575f80fd5b50610394610501366004613453565b610ce5565b348015610511575f80fd5b50610416610520366004613453565b610d05565b348015610530575f80fd5b5061041661053f3660046134e6565b610f00565b34801561054f575f80fd5b50610558610f22565b60405160ff909116815260200161039e565b348015610575575f80fd5b506104166105843660046134e6565b610f64565b348015610594575f80fd5b5061059d610f97565b6040516001600160a01b03909116815260200161039e565b3480156105c0575f80fd5b50610416610fc5565b3480156105d4575f80fd5b506103946105e3366004613510565b610fd7565b6104166105f63660046135b0565b611002565b348015610606575f80fd5b50610394611021565b34801561061a575f80fd5b505f80516020613b258339815191525460ff166103c6565b34801561063d575f80fd5b5061065161064c366004613510565b61103c565b6040805192835260208301919091520161039e565b348015610671575f80fd5b50610416610680366004613453565b6110d6565b348015610690575f80fd5b5061039461069f3660046134e6565b611406565b3480156106af575f80fd5b506103946106be366004613510565b61145a565b3480156106ce575f80fd5b506104166106dd36600461362c565b611480565b3480156106ed575f80fd5b506104166106fc366004613453565b611692565b34801561070c575f80fd5b50610394611711565b348015610720575f80fd5b5061041661072f366004613453565b611722565b34801561073f575f80fd5b5061041661177e565b348015610753575f80fd5b506103947fbeec13769b5f410b0584f69811bfd923818456d5edcf426b0e31cf90eed7a3f681565b348015610786575f80fd5b506103c66107953660046134e6565b611790565b3480156107a5575f80fd5b506103946107b43660046134e6565b6117c6565b3480156107c4575f80fd5b506103ea611812565b3480156107d8575f80fd5b506104166107e7366004613453565b611850565b3480156107f7575f80fd5b506103945f81565b34801561080a575f80fd5b50610416610819366004613453565b61187b565b348015610829575f80fd5b506103c6610838366004613485565b6118f1565b348015610848575f80fd5b506103ea604051806040016040528060058152602001640352e302e360dc1b81525081565b348015610878575f80fd5b506104166118fe565b34801561088c575f80fd5b5061039461089b366004613453565b611997565b3480156108ab575f80fd5b506103946108ba3660046136b3565b6119a3565b3480156108ca575f80fd5b506103946108d93660046136b3565b6119f9565b3480156108e9575f80fd5b506104166108f8366004613510565b611a46565b348015610908575f80fd5b50610394610917366004613453565b611b56565b348015610927575f80fd5b50610394610936366004613510565b611b61565b348015610946575f80fd5b50610394610955366004613453565b611bbe565b348015610965575f80fd5b506104166109743660046134e6565b611bc9565b348015610984575f80fd5b50610394611be5565b348015610998575f80fd5b506103946109a7366004613510565b611c40565b3480156109b7575f80fd5b506103946109c63660046136ec565b611c94565b3480156109d6575f80fd5b50610394611cdd565b3480156109ea575f80fd5b506104166109f9366004613453565b611cf1565b348015610a09575f80fd5b50610394611d2b565b348015610a1d575f80fd5b506103945f80516020613ae583398151915281565b5f80610a3c611d9d565b60098101549091505f610a4d611d2b565b9050808211610a5f575f935050505090565b610a698183613728565b935050505090565b5f6001600160e01b03198216637965db0b60e01b1480610aa157506301ffc9a760e01b6001600160e01b03198316145b92915050565b7f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace0380546060915f80516020613a8583398151915291610ae59061373b565b80601f0160208091040260200160405190810160405280929190818152602001828054610b119061373b565b8015610b5c5780601f10610b3357610100808354040283529160200191610b5c565b820191905f5260205f20905b815481529060010190602001808311610b3f57829003601f168201915b505050505091505090565b7fbeec13769b5f410b0584f69811bfd923818456d5edcf426b0e31cf90eed7a3f6610b9181611dc1565b610b99611dcb565b610ba1611e02565b825f03610bc15760405163162908e360e11b815260040160405180910390fd5b610bcb8383611e32565b610bea333085610bd9610f97565b6001600160a01b0316929190611e7a565b5f610bf3611d9d565b905083816009015f828254610c089190613773565b909155507fbff8d5ced955e6f69a19ecc71d313996f6ddfed652cdb458859af89e2f07683590508484610c39610a32565b6040805193845260208401929092529082015260600160405180910390a150610c6e60015f80516020613b4583398151915255565b505050565b5f610aa1825f611ef4565b5f33610c8b818585611f38565b5060019392505050565b5f610aa1826001611f45565b5f80610cab611d9d565b6007015492915050565b5f610aa1825f611f8c565b5f33610ccd858285611fca565b610cd8858585612015565b60019150505b9392505050565b5f9081525f80516020613b05833981519152602052604090206001015490565b610d0d611e02565b610d15611dcb565b805f03610d3557604051632d3087f960e01b815260040160405180910390fd5b5f610d3e611d9d565b335f90815260068201602052604090205490915015610dc357335f81815260068301602052604090205460058301805491929183908110610d8157610d81613786565b5f91825260209091206002600390920201015460405163d5010b9360e01b81526001600160a01b03909216600483015260248201526044015b60405180910390fd5b5f610dcd83610cb5565b9050805f03610def576040516367ca182760e01b815260040160405180910390fd5b610df93384612072565b80826009015f828254610e0c9190613728565b90915550506005820180546040805160608101825233808252602080830187815242848601908152600180880189555f98895283892095516003890290960180546001600160a01b0319166001600160a01b03909716969096178655915191850191909155516002909301929092558452600686019052822081905560088401805491928492610e9d908490613773565b909155505060408051838152602081018390524281830152905133917fd1a1f4806d0cddf35cd7b6c09d7273c40e2f170b2bc8ea39b15e34da0ed12d37919081900360600190a2505050610efd60015f80516020613b4583398151915255565b50565b610f0982610ce5565b610f1281611dc1565b610f1c83836120a6565b50505050565b5f807f0773e532dfede91f04b12a73d3d2acd361424f41f76b4fb79f090161e36b4e0090505f8154610f5e9190600160a01b900460ff1661379a565b91505090565b6001600160a01b0381163314610f8d5760405163334bd91960e11b815260040160405180910390fd5b610c6e8282612147565b7f0773e532dfede91f04b12a73d3d2acd361424f41f76b4fb79f090161e36b4e00546001600160a01b031690565b5f610fcf81611dc1565b610efd6121c0565b5f610ff05f80516020613b258339815191525460ff1690565b610ffb575f19610aa1565b5f92915050565b61100a61221f565b611013826122c3565b61101d82826122cd565b5050565b5f61102a612389565b505f80516020613ac583398151915290565b5f805f611047611d9d565b6001600160a01b0385165f90815260068201602052604081205491925081900361107757505f9485945092505050565b5f82600501828154811061108d5761108d613786565b5f91825260209182902060408051606081018252600390930290910180546001600160a01b03168352600181015493830184905260020154910181905297909650945050505050565b6110de611e02565b6110e6611dcb565b5f6110ef611d9d565b90505f5b8281108015611109575060058201546004830154105b156113ee575f826004015490505f83600501828154811061112c5761112c613786565b5f91825260209182902060408051606081018252600390930290910180546001600160a01b0316808452600182015494840194909452600201549082015291506111945761117b826001613773565b60048501558261118a816137b3565b93505050506110f3565b835460408201516111a59190613773565b4210156111b35750506113ee565b60078401545f8190036111c8575050506113ee565b816020015181101561129a578082602001516111e49190613728565b8560050184815481106111f9576111f9613786565b905f5260205f209060030201600101819055505f856007018190555080856008015f8282546112289190613728565b9091555050815161124c908261123c610f97565b6001600160a01b031691906123d2565b815f01516001600160a01b03167fcb15bbbdc28223e1198be8308a502cd2706d6c42b33d19f96c1589dd5e241ae48260405161128a91815260200190565b60405180910390a25050506113ee565b60405180606001604052805f6001600160a01b031681526020015f81526020015f8152508560050184815481106112d3576112d3613786565b5f91825260209182902083516003929092020180546001600160a01b0319166001600160a01b0390921691909117815590820151600180830191909155604090920151600290910155611327908490613773565b600486015581516001600160a01b03165f90815260068601602090815260408220919091558201516113599082613728565b600786015560208201516008860180545f90611376908490613728565b90915550508151602083015161138f919061123c610f97565b815f01516001600160a01b03167fcb15bbbdc28223e1198be8308a502cd2706d6c42b33d19f96c1589dd5e241ae483602001516040516113d191815260200190565b60405180910390a2836113e3816137b3565b9450505050506110f3565b5050610efd60015f80516020613b4583398151915255565b5f8061141183610fd7565b90508084111561143a57828482604051633c8097d960e11b8152600401610dba939291906137cb565b5f61144485611b56565b905061145233858784612403565b949350505050565b6001600160a01b03165f9081525f80516020613a85833981519152602052604090205490565b5f6114896124e2565b805490915060ff600160401b820416159067ffffffffffffffff165f811580156114b05750825b90505f8267ffffffffffffffff1660011480156114cc5750303b155b9050811580156114da575080155b156114f85760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561152257845460ff60401b1916600160401b1785555b6001600160a01b0387166115495760405163d92e233d60e01b815260040160405180910390fd5b6115528a61250a565b61155c898961251b565b61156461252d565b61156c61252d565b61157461252d565b61157c612535565b6115865f886120a6565b506115b17fbeec13769b5f410b0584f69811bfd923818456d5edcf426b0e31cf90eed7a3f6886120a6565b506115c95f80516020613ae5833981519152886120a6565b505f6115d3611d9d565b878155604080516060810182525f80825260208083018281529383018281526005909501805460018082018355918452919092209251600390910290920180546001600160a01b0319166001600160a01b03909316929092178255915191810191909155905160029091015550831561168657845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050505050565b5f80516020613ae58339815191526116a981611dc1565b5f6116b2611d9d565b905082816007015f8282546116c79190613773565b909155505060078101546040805185815260208101929092527fc7765bcbabebbcf3fdd598f7e1f6abce75732aa5fed92139402c3a44fedc0ad791015b60405180910390a1505050565b5f8061171b611d9d565b5492915050565b5f61172c81611dc1565b5f611735611d9d565b8054848255604080518281526020810187905292935090917f98eaabfe135a9c40c420208962bf81e7926b4d6df3e23502164c0554b7b35224910160405180910390a150505050565b5f61178881611dc1565b610efd612545565b5f9182525f80516020613b05833981519152602090815260408084206001600160a01b0393909316845291905290205460ff1690565b5f806117d183610fd7565b9050808411156117fa5782848260405163284ff66760e01b8152600401610dba939291906137cb565b5f61180485611997565b905061145233858388612403565b7f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace0480546060915f80516020613a8583398151915291610ae59061373b565b5f80516020613ae583398151915261186781611dc1565b5f611870611d9d565b600a01929092555050565b5f80516020613ae583398151915261189281611dc1565b5f61189b611d9d565b905082816007015f8282546118b09190613728565b909155505060078101546040805185815260208101929092527fcd9786339b2475ad263433c45f6538d0c19eb978a2e5cd7c621a24ee4c4e29c69101611704565b5f33610c8b818585612015565b611906611e02565b61190e611dcb565b6119173361258d565b156119375760405163365c832d60e11b8152336004820152602401610dba565b5f611940611d9d565b335f9081526006820160205260408120549192508190036119745760405163198580dd60e31b815260040160405180910390fd5b61197d81612628565b505061199560015f80516020613b4583398151915255565b565b5f610aa1826001611ef4565b5f806119ae83611b61565b9050808511156119d757828582604051633fa733bb60e21b8152600401610dba939291906137cb565b5f6119e186610c95565b90506119f0338686898561284c565b95945050505050565b5f80611a0483611c40565b905080851115611a2d57828582604051632e52afbb60e21b8152600401610dba939291906137cb565b5f611a3786610cb5565b90506119f0338686848a61284c565b5f611a5081611dc1565b5f611a59611d9d565b90505f611a64610f97565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa158015611aa8573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611acc91906137ec565b90505f82600801548360090154611ae39190613773565b9050808211611af3575050505050565b5f611afe8284613728565b9050611b0d868261123c610f97565b604080518281526001600160a01b03881660208201527fca31200dccab6f14415ae72fd39890c5663b96b7152c02bacd042fb760ce8d4c910160405180910390a1505050505050565b5f610aa1825f612950565b5f80611b6b611d9d565b9050611b855f80516020613b258339815191525460ff1690565b80611b905750805415155b80611b9f5750611b9f8361258d565b15611bac57505f92915050565b610cde611bb88461145a565b5f611f8c565b5f610aa1825f611f45565b611bd282610ce5565b611bdb81611dc1565b610f1c8383612147565b5f80611bef611d9d565b600a8101546009820154919250905f611c06611d2b565b9050611c128382613773565b8211611c22575f94505050505090565b82611c2d8284613728565b611c379190613728565b94505050505090565b5f80611c4a611d9d565b9050611c645f80516020613b258339815191525460ff1690565b80611c6f5750805415155b80611c7e5750611c7e8361258d565b15611c8b57505f92915050565b610cde8361145a565b6001600160a01b039182165f9081527f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace016020908152604080832093909416825291909152205490565b5f80611ce7611d9d565b6008015492915050565b611cf9611e02565b611d01611dcb565b5f611d0b81611dc1565b611d1482612628565b50610efd60015f80516020613b4583398151915255565b5f80611d35611d9d565b905080600101545f03611d49575f91505090565b60038101545f819003611d5e575f9250505090565b5f826002015442611d6f9190613728565b9050818110611d81575f935050505090565b5f611d8c8284613728565b9050611c378185600101548561298b565b7fd197494adafa19d3a857aec5aa27953ad3ec7bcc987f02501e4ce68fa49d850090565b610efd8133612a4a565b5f80516020613b45833981519152805460011901611dfc57604051633ee5aeb560e01b815260040160405180910390fd5b60029055565b5f80516020613b258339815191525460ff16156119955760405163d93c066560e01b815260040160405180910390fd5b5f611e3b611d9d565b90505f611e46611d2b565b1115611e6457604051628099ef60e11b815260040160405180910390fd5b6001810192909255426002830155600390910155565b6040516001600160a01b038481166024830152838116604483015260648201839052610f1c9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050612a83565b60015f80516020613b4583398151915255565b5f610cde611f00610a32565b611f0b906001613773565b611f165f600a6138e3565b5f80516020613aa583398151915254611f2f9190613773565b85919085612ae4565b610c6e8383836001612b31565b5f80611f4f611be5565b9050611452611f5f5f600a6138e3565b5f80516020613aa583398151915254611f789190613773565b611f83836001613773565b86919086612ae4565b5f80611f96611be5565b9050611452611fa6826001613773565b611fb15f600a6138e3565b5f80516020613aa583398151915254611f839190613773565b5f611fd58484611c94565b90505f19811015610f1c578181101561200757828183604051637dc7a0d960e11b8152600401610dba939291906137cb565b610f1c84848484035f612b31565b6001600160a01b03831661203e57604051634b637e8f60e11b81525f6004820152602401610dba565b6001600160a01b0382166120675760405163ec442f0560e01b81525f6004820152602401610dba565b610c6e838383612c14565b6001600160a01b03821661209b57604051634b637e8f60e11b81525f6004820152602401610dba565b61101d825f83612c14565b5f5f80516020613b058339815191526120bf8484611790565b61213e575f848152602082815260408083206001600160a01b03871684529091529020805460ff191660011790556120f43390565b6001600160a01b0316836001600160a01b0316857f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a46001915050610aa1565b5f915050610aa1565b5f5f80516020613b058339815191526121608484611790565b1561213e575f848152602082815260408083206001600160a01b0387168085529252808320805460ff1916905551339287917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a46001915050610aa1565b6121c8612ca5565b5f80516020613b25833981519152805460ff191681557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a150565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806122a557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166122995f80516020613ac5833981519152546001600160a01b031690565b6001600160a01b031614155b156119955760405163703e46dd60e11b815260040160405180910390fd5b5f61101d81611dc1565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015612327575060408051601f3d908101601f19168201909252612324918101906137ec565b60015b61234f57604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610dba565b5f80516020613ac5833981519152811461237f57604051632a87526960e21b815260048101829052602401610dba565b610c6e8383612cd4565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146119955760405163703e46dd60e11b815260040160405180910390fd5b6040516001600160a01b03838116602483015260448201839052610c6e91859182169063a9059cbb90606401611eaf565b61240b611dcb565b612413611e02565b61241c8461258d565b156124455760405163365c832d60e11b81526001600160a01b0385166004820152602401610dba565b61245184848484612d29565b5f61245a611d9d565b905082816007015f82825461246f9190613773565b909155505060078101546040805185815260208101929092527f539cd65b5baf2745975c0304ded2966812ba91ccb991fd0d3a8af3d378d96871910160405180910390a182816009015f8282546124c69190613773565b909155505060015f80516020613b458339815191525550610f1c565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00610aa1565b612512612da2565b610efd81612dc7565b612523612da2565b61101d8282612e4a565b611995612da2565b61253d612da2565b611995612e9a565b61254d611e02565b5f80516020613b25833981519152805460ff191660011781557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25833612201565b5f7fb833cacb9268e2dd2e4059a2ccfb9eb32ddf1ee1d91a6d2307b0ad047ab000256125b7610f97565b604051632474521560e21b8152600481018390526001600160a01b03858116602483015291909116906391d1485490604401602060405180830381865afa158015612604573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cde91906138f1565b5f612631611d9d565b9050811580612644575060058101548210155b1561266557604051637892d0a360e01b815260048101839052602401610dba565b5f81600501838154811061267b5761267b613786565b5f91825260209182902060408051606081018252600390930290910180546001600160a01b0316808452600182015494840194909452600201549082015291506126db5760405163b80378fb60e01b815260048101849052602401610dba565b5f6126e98260200151611bbe565b90508160200151836009015f8282546127029190613773565b9250508190555060405180606001604052805f6001600160a01b031681526020015f81526020015f81525083600501858154811061274257612742613786565b5f918252602080832084516003939093020180546001600160a01b0319166001600160a01b03909316929092178255838101516001830155604090930151600290910155908301516008850180549192909161279f908490613728565b909155505081516001600160a01b03165f9081526006840160205260409020548490036127e25781516001600160a01b03165f9081526006840160205260408120555b838360040154036127fe576127f8846001613773565b60048401555b815161280a9082612ea2565b602082015182516040518692916001600160a01b0316907fb8e4dceea536b6e6de2800876d709ca86533d9ac00cc7a9830206a84be9aef75905f90a450505050565b612854611dcb565b61285c611e02565b6128658361258d565b1561288e5760405163365c832d60e11b81526001600160a01b0384166004820152602401610dba565b5f612897611d9d565b8054909150156128ba576040516326ccc67760e01b815260040160405180910390fd5b6128c78686868686612ed6565b82816007015f8282546128da9190613728565b909155505060078101546040805185815260208101929092527f10b541bb92da9e37064bbb118fd7684af219783a2dc0681e238328510110671f910160405180910390a182816009015f8282546129319190613728565b909155505060015f80516020613b4583398151915255505b5050505050565b5f610cde61295f82600a6138e3565b5f80516020613aa5833981519152546129789190613773565b612980610a32565b611f2f906001613773565b5f838302815f1985870982811083820303915050805f036129bf578382816129b5576129b5613910565b0492505050610cde565b8084116129df5760405163227bc15360e01b815260040160405180910390fd5b5f848688095f868103871696879004966002600389028118808a02820302808a02820302808a02820302808a02820302808a02820302808a02909103029181900381900460010186841190950394909402919094039290920491909117919091029150509392505050565b612a548282611790565b61101d5760405163e2517d3f60e01b81526001600160a01b038216600482015260248101839052604401610dba565b5f612a976001600160a01b03841683612f7d565b905080515f14158015612abb575080806020019051810190612ab991906138f1565b155b15610c6e57604051635274afe760e01b81526001600160a01b0384166004820152602401610dba565b5f80612af186868661298b565b9050612afc83612f8a565b8015612b1757505f8480612b1257612b12613910565b868809115b156119f057612b27600182613773565b9695505050505050565b5f80516020613a858339815191526001600160a01b038516612b685760405163e602df0560e01b81525f6004820152602401610dba565b6001600160a01b038416612b9157604051634a1406b160e11b81525f6004820152602401610dba565b6001600160a01b038086165f9081526001830160209081526040808320938816835292905220839055811561294957836001600160a01b0316856001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92585604051612c0591815260200190565b60405180910390a35050505050565b6001600160a01b03831615801590612c3457506001600160a01b03821615155b15612c4157612c41611e02565b6001600160a01b03831615801590612c6157506001600160a01b03821615155b8015612c715750612c718361258d565b15612c9a5760405163365c832d60e11b81526001600160a01b0384166004820152602401610dba565b610c6e838383612fb6565b5f80516020613b258339815191525460ff1661199557604051638dfc202b60e01b815260040160405180910390fd5b612cdd826130ce565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115612d2157610c6e8282613131565b61101d61319a565b612d3c612d34610f97565b853085611e7a565b612d468382612ea2565b826001600160a01b0316846001600160a01b03167fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d78484604051612d94929190918252602082015260400190565b60405180910390a350505050565b612daa6131b9565b61199557604051631afcd79f60e31b815260040160405180910390fd5b612dcf612da2565b7f0773e532dfede91f04b12a73d3d2acd361424f41f76b4fb79f090161e36b4e005f80612dfb846131d2565b9150915081612e0b576012612e0d565b805b83546001600160a81b031916600160a01b60ff92909216919091026001600160a01b031916176001600160a01b0394909416939093179091555050565b612e52612da2565b5f80516020613a858339815191527f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace03612e8b8482613968565b5060048101610f1c8382613968565b611ee1612da2565b6001600160a01b038216612ecb5760405163ec442f0560e01b81525f6004820152602401610dba565b61101d5f8383612c14565b826001600160a01b0316856001600160a01b031614612efa57612efa838683611fca565b612f048382612072565b612f16612f0f610f97565b85846123d2565b826001600160a01b0316846001600160a01b0316866001600160a01b03167ffbde797d201c681b91056529119e0b02407c7bb96a4a2c75c01fc9667232c8db8585604051612f6e929190918252602082015260400190565b60405180910390a45050505050565b6060610cde83835f6132a8565b5f6002826003811115612f9f57612f9f613a28565b612fa99190613a3c565b60ff166001149050919050565b5f80516020613a858339815191526001600160a01b038416612ff05781816002015f828254612fe59190613773565b9091555061304d9050565b6001600160a01b0384165f908152602082905260409020548281101561302f5784818460405163391434e360e21b8152600401610dba939291906137cb565b6001600160a01b0385165f9081526020839052604090209083900390555b6001600160a01b03831661306b576002810180548390039055613089565b6001600160a01b0383165f9081526020829052604090208054830190555b826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612d9491815260200190565b806001600160a01b03163b5f0361310357604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610dba565b5f80516020613ac583398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f80846001600160a01b03168460405161314d9190613a69565b5f60405180830381855af49150503d805f8114613185576040519150601f19603f3d011682016040523d82523d5f602084013e61318a565b606091505b50915091506119f0858383613333565b34156119955760405163b398979f60e01b815260040160405180910390fd5b5f6131c26124e2565b54600160401b900460ff16919050565b60408051600481526024810182526020810180516001600160e01b031663313ce56760e01b17905290515f918291829182916001600160a01b0387169161321891613a69565b5f60405180830381855afa9150503d805f8114613250576040519150601f19603f3d011682016040523d82523d5f602084013e613255565b606091505b509150915081801561326957506020815110155b1561329c575f8180602001905181019061328391906137ec565b905060ff811161329a576001969095509350505050565b505b505f9485945092505050565b6060814710156132cd5760405163cd78605960e01b8152306004820152602401610dba565b5f80856001600160a01b031684866040516132e89190613a69565b5f6040518083038185875af1925050503d805f8114613322576040519150601f19603f3d011682016040523d82523d5f602084013e613327565b606091505b5091509150612b278683835b606082613348576133438261338f565b610cde565b815115801561335f57506001600160a01b0384163b155b1561338857604051639996b31560e01b81526001600160a01b0385166004820152602401610dba565b5080610cde565b80511561339f5780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b5f602082840312156133c8575f80fd5b81356001600160e01b031981168114610cde575f80fd5b5f5b838110156133f95781810151838201526020016133e1565b50505f910152565b602081525f825180602084015261341f8160408501602087016133df565b601f01601f19169190910160400192915050565b5f8060408385031215613444575f80fd5b50508035926020909101359150565b5f60208284031215613463575f80fd5b5035919050565b80356001600160a01b0381168114613480575f80fd5b919050565b5f8060408385031215613496575f80fd5b61349f8361346a565b946020939093013593505050565b5f805f606084860312156134bf575f80fd5b6134c88461346a565b92506134d66020850161346a565b9150604084013590509250925092565b5f80604083850312156134f7575f80fd5b823591506135076020840161346a565b90509250929050565b5f60208284031215613520575f80fd5b610cde8261346a565b634e487b7160e01b5f52604160045260245ffd5b5f67ffffffffffffffff8084111561355757613557613529565b604051601f8501601f19908116603f0116810190828211818310171561357f5761357f613529565b81604052809350858152868686011115613597575f80fd5b858560208301375f602087830101525050509392505050565b5f80604083850312156135c1575f80fd5b6135ca8361346a565b9150602083013567ffffffffffffffff8111156135e5575f80fd5b8301601f810185136135f5575f80fd5b6136048582356020840161353d565b9150509250929050565b5f82601f83011261361d575f80fd5b610cde8383356020850161353d565b5f805f805f60a08688031215613640575f80fd5b6136498661346a565b9450602086013567ffffffffffffffff80821115613665575f80fd5b61367189838a0161360e565b95506040880135915080821115613686575f80fd5b506136938882890161360e565b9350506136a26060870161346a565b949793965091946080013592915050565b5f805f606084860312156136c5575f80fd5b833592506136d56020850161346a565b91506136e36040850161346a565b90509250925092565b5f80604083850312156136fd575f80fd5b6137068361346a565b91506135076020840161346a565b634e487b7160e01b5f52601160045260245ffd5b81810381811115610aa157610aa1613714565b600181811c9082168061374f57607f821691505b60208210810361376d57634e487b7160e01b5f52602260045260245ffd5b50919050565b80820180821115610aa157610aa1613714565b634e487b7160e01b5f52603260045260245ffd5b60ff8181168382160190811115610aa157610aa1613714565b5f600182016137c4576137c4613714565b5060010190565b6001600160a01b039390931683526020830191909152604082015260600190565b5f602082840312156137fc575f80fd5b5051919050565b600181815b8085111561383d57815f190482111561382357613823613714565b8085161561383057918102915b93841c9390800290613808565b509250929050565b5f8261385357506001610aa1565b8161385f57505f610aa1565b8160018114613875576002811461387f5761389b565b6001915050610aa1565b60ff84111561389057613890613714565b50506001821b610aa1565b5060208310610133831016604e8410600b84101617156138be575081810a610aa1565b6138c88383613803565b805f19048211156138db576138db613714565b029392505050565b5f610cde60ff841683613845565b5f60208284031215613901575f80fd5b81518015158114610cde575f80fd5b634e487b7160e01b5f52601260045260245ffd5b601f821115610c6e57805f5260205f20601f840160051c810160208510156139495750805b601f840160051c820191505b81811015612949575f8155600101613955565b815167ffffffffffffffff81111561398257613982613529565b61399681613990845461373b565b84613924565b602080601f8311600181146139c9575f84156139b25750858301515b5f19600386901b1c1916600185901b178555613a20565b5f85815260208120601f198616915b828110156139f7578886015182559484019460019091019084016139d8565b5085821015613a1457878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b634e487b7160e01b5f52602160045260245ffd5b5f60ff831680613a5a57634e487b7160e01b5f52601260045260245ffd5b8060ff84160691505092915050565b5f8251613a7a8184602087016133df565b919091019291505056fe52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace0052c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace02360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b92902dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b626800cd5ed15c6e187e77e9aee88184c21f4f2182ab5827cb3b7e07fbedcd63f033009b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00a2646970667358221220012816295f627250fc8f2864ff52534ba4a27cd377c4a450e0cf6e56451b945964736f6c63430008160033","name":"sAID","is_blueprint":false,"license_type":"none","is_fully_verified":true,"is_verified_via_eth_bytecode_db":false,"language":"solidity","evm_version":"shanghai","can_be_visualized_via_sol2uml":true,"is_verified_via_sourcify":false,"additional_sources":[{"file_path":"lib/openzeppelin-contracts-upgradeable/contracts/access/AccessControlUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (access/AccessControl.sol)\n\npragma solidity ^0.8.20;\n\nimport {IAccessControl} from \"@openzeppelin/contracts/access/IAccessControl.sol\";\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {IERC165} from \"@openzeppelin/contracts/utils/introspection/IERC165.sol\";\nimport {ERC165Upgradeable} from \"../utils/introspection/ERC165Upgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Contract module that allows children to implement role-based access\n * control mechanisms. This is a lightweight version that doesn't allow enumerating role\n * members except through off-chain means by accessing the contract event logs. Some\n * applications may benefit from on-chain enumerability, for those cases see\n * {AccessControlEnumerable}.\n *\n * Roles are referred to by their `bytes32` identifier. These should be exposed\n * in the external API and be unique. The best way to achieve this is by\n * using `public constant` hash digests:\n *\n * ```solidity\n * bytes32 public constant MY_ROLE = keccak256(\"MY_ROLE\");\n * ```\n *\n * Roles can be used to represent a set of permissions. To restrict access to a\n * function call, use {hasRole}:\n *\n * ```solidity\n * function foo() public {\n *     require(hasRole(MY_ROLE, msg.sender));\n *     ...\n * }\n * ```\n *\n * Roles can be granted and revoked dynamically via the {grantRole} and\n * {revokeRole} functions. Each role has an associated admin role, and only\n * accounts that have a role's admin role can call {grantRole} and {revokeRole}.\n *\n * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means\n * that only accounts with this role will be able to grant or revoke other\n * roles. More complex role relationships can be created by using\n * {_setRoleAdmin}.\n *\n * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to\n * grant and revoke this role. Extra precautions should be taken to secure\n * accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules}\n * to enforce additional security measures for this role.\n */\nabstract contract AccessControlUpgradeable is Initializable, ContextUpgradeable, IAccessControl, ERC165Upgradeable {\n    struct RoleData {\n        mapping(address account => bool) hasRole;\n        bytes32 adminRole;\n    }\n\n    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;\n\n\n    /// @custom:storage-location erc7201:openzeppelin.storage.AccessControl\n    struct AccessControlStorage {\n        mapping(bytes32 role => RoleData) _roles;\n    }\n\n    // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.AccessControl\")) - 1)) & ~bytes32(uint256(0xff))\n    bytes32 private constant AccessControlStorageLocation = 0x02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b626800;\n\n    function _getAccessControlStorage() private pure returns (AccessControlStorage storage $) {\n        assembly {\n            $.slot := AccessControlStorageLocation\n        }\n    }\n\n    /**\n     * @dev Modifier that checks that an account has a specific role. Reverts\n     * with an {AccessControlUnauthorizedAccount} error including the required role.\n     */\n    modifier onlyRole(bytes32 role) {\n        _checkRole(role);\n        _;\n    }\n\n    function __AccessControl_init() internal onlyInitializing {\n    }\n\n    function __AccessControl_init_unchained() internal onlyInitializing {\n    }\n    /// @inheritdoc IERC165\n    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);\n    }\n\n    /**\n     * @dev Returns `true` if `account` has been granted `role`.\n     */\n    function hasRole(bytes32 role, address account) public view virtual returns (bool) {\n        AccessControlStorage storage $ = _getAccessControlStorage();\n        return $._roles[role].hasRole[account];\n    }\n\n    /**\n     * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()`\n     * is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier.\n     */\n    function _checkRole(bytes32 role) internal view virtual {\n        _checkRole(role, _msgSender());\n    }\n\n    /**\n     * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account`\n     * is missing `role`.\n     */\n    function _checkRole(bytes32 role, address account) internal view virtual {\n        if (!hasRole(role, account)) {\n            revert AccessControlUnauthorizedAccount(account, role);\n        }\n    }\n\n    /**\n     * @dev Returns the admin role that controls `role`. See {grantRole} and\n     * {revokeRole}.\n     *\n     * To change a role's admin, use {_setRoleAdmin}.\n     */\n    function getRoleAdmin(bytes32 role) public view virtual returns (bytes32) {\n        AccessControlStorage storage $ = _getAccessControlStorage();\n        return $._roles[role].adminRole;\n    }\n\n    /**\n     * @dev Grants `role` to `account`.\n     *\n     * If `account` had not been already granted `role`, emits a {RoleGranted}\n     * event.\n     *\n     * Requirements:\n     *\n     * - the caller must have ``role``'s admin role.\n     *\n     * May emit a {RoleGranted} event.\n     */\n    function grantRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) {\n        _grantRole(role, account);\n    }\n\n    /**\n     * @dev Revokes `role` from `account`.\n     *\n     * If `account` had been granted `role`, emits a {RoleRevoked} event.\n     *\n     * Requirements:\n     *\n     * - the caller must have ``role``'s admin role.\n     *\n     * May emit a {RoleRevoked} event.\n     */\n    function revokeRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) {\n        _revokeRole(role, account);\n    }\n\n    /**\n     * @dev Revokes `role` from the calling account.\n     *\n     * Roles are often managed via {grantRole} and {revokeRole}: this function's\n     * purpose is to provide a mechanism for accounts to lose their privileges\n     * if they are compromised (such as when a trusted device is misplaced).\n     *\n     * If the calling account had been revoked `role`, emits a {RoleRevoked}\n     * event.\n     *\n     * Requirements:\n     *\n     * - the caller must be `callerConfirmation`.\n     *\n     * May emit a {RoleRevoked} event.\n     */\n    function renounceRole(bytes32 role, address callerConfirmation) public virtual {\n        if (callerConfirmation != _msgSender()) {\n            revert AccessControlBadConfirmation();\n        }\n\n        _revokeRole(role, callerConfirmation);\n    }\n\n    /**\n     * @dev Sets `adminRole` as ``role``'s admin role.\n     *\n     * Emits a {RoleAdminChanged} event.\n     */\n    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {\n        AccessControlStorage storage $ = _getAccessControlStorage();\n        bytes32 previousAdminRole = getRoleAdmin(role);\n        $._roles[role].adminRole = adminRole;\n        emit RoleAdminChanged(role, previousAdminRole, adminRole);\n    }\n\n    /**\n     * @dev Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted.\n     *\n     * Internal function without access restriction.\n     *\n     * May emit a {RoleGranted} event.\n     */\n    function _grantRole(bytes32 role, address account) internal virtual returns (bool) {\n        AccessControlStorage storage $ = _getAccessControlStorage();\n        if (!hasRole(role, account)) {\n            $._roles[role].hasRole[account] = true;\n            emit RoleGranted(role, account, _msgSender());\n            return true;\n        } else {\n            return false;\n        }\n    }\n\n    /**\n     * @dev Attempts to revoke `role` from `account` and returns a boolean indicating if `role` was revoked.\n     *\n     * Internal function without access restriction.\n     *\n     * May emit a {RoleRevoked} event.\n     */\n    function _revokeRole(bytes32 role, address account) internal virtual returns (bool) {\n        AccessControlStorage storage $ = _getAccessControlStorage();\n        if (hasRole(role, account)) {\n            $._roles[role].hasRole[account] = false;\n            emit RoleRevoked(role, account, _msgSender());\n            return true;\n        } else {\n            return false;\n        }\n    }\n}\n"},{"file_path":"lib/openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n *     function initialize() initializer public {\n *         __ERC20_init(\"MyToken\", \"MTK\");\n *     }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n *     function initializeV2() reinitializer(2) public {\n *         __ERC20Permit_init(\"MyToken\");\n *     }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n *     _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n    /**\n     * @dev Storage of the initializable contract.\n     *\n     * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n     * when using with upgradeable contracts.\n     *\n     * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n     */\n    struct InitializableStorage {\n        /**\n         * @dev Indicates that the contract has been initialized.\n         */\n        uint64 _initialized;\n        /**\n         * @dev Indicates that the contract is in the process of being initialized.\n         */\n        bool _initializing;\n    }\n\n    // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n    bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n    /**\n     * @dev The contract is already initialized.\n     */\n    error InvalidInitialization();\n\n    /**\n     * @dev The contract is not initializing.\n     */\n    error NotInitializing();\n\n    /**\n     * @dev Triggered when the contract has been initialized or reinitialized.\n     */\n    event Initialized(uint64 version);\n\n    /**\n     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n     * `onlyInitializing` functions can be used to initialize parent contracts.\n     *\n     * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n     * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n     * production.\n     *\n     * Emits an {Initialized} event.\n     */\n    modifier initializer() {\n        // solhint-disable-next-line var-name-mixedcase\n        InitializableStorage storage $ = _getInitializableStorage();\n\n        // Cache values to avoid duplicated sloads\n        bool isTopLevelCall = !$._initializing;\n        uint64 initialized = $._initialized;\n\n        // Allowed calls:\n        // - initialSetup: the contract is not in the initializing state and no previous version was\n        //                 initialized\n        // - construction: the contract is initialized at version 1 (no reinitialization) and the\n        //                 current contract is just being deployed\n        bool initialSetup = initialized == 0 && isTopLevelCall;\n        bool construction = initialized == 1 && address(this).code.length == 0;\n\n        if (!initialSetup && !construction) {\n            revert InvalidInitialization();\n        }\n        $._initialized = 1;\n        if (isTopLevelCall) {\n            $._initializing = true;\n        }\n        _;\n        if (isTopLevelCall) {\n            $._initializing = false;\n            emit Initialized(1);\n        }\n    }\n\n    /**\n     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n     * used to initialize parent contracts.\n     *\n     * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n     * are added through upgrades and that require initialization.\n     *\n     * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n     * cannot be nested. If one is invoked in the context of another, execution will revert.\n     *\n     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n     * a contract, executing them in the right order is up to the developer or operator.\n     *\n     * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n     *\n     * Emits an {Initialized} event.\n     */\n    modifier reinitializer(uint64 version) {\n        // solhint-disable-next-line var-name-mixedcase\n        InitializableStorage storage $ = _getInitializableStorage();\n\n        if ($._initializing || $._initialized >= version) {\n            revert InvalidInitialization();\n        }\n        $._initialized = version;\n        $._initializing = true;\n        _;\n        $._initializing = false;\n        emit Initialized(version);\n    }\n\n    /**\n     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n     * {initializer} and {reinitializer} modifiers, directly or indirectly.\n     */\n    modifier onlyInitializing() {\n        _checkInitializing();\n        _;\n    }\n\n    /**\n     * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n     */\n    function _checkInitializing() internal view virtual {\n        if (!_isInitializing()) {\n            revert NotInitializing();\n        }\n    }\n\n    /**\n     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n     * through proxies.\n     *\n     * Emits an {Initialized} event the first time it is successfully executed.\n     */\n    function _disableInitializers() internal virtual {\n        // solhint-disable-next-line var-name-mixedcase\n        InitializableStorage storage $ = _getInitializableStorage();\n\n        if ($._initializing) {\n            revert InvalidInitialization();\n        }\n        if ($._initialized != type(uint64).max) {\n            $._initialized = type(uint64).max;\n            emit Initialized(type(uint64).max);\n        }\n    }\n\n    /**\n     * @dev Returns the highest version that has been initialized. See {reinitializer}.\n     */\n    function _getInitializedVersion() internal view returns (uint64) {\n        return _getInitializableStorage()._initialized;\n    }\n\n    /**\n     * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n     */\n    function _isInitializing() internal view returns (bool) {\n        return _getInitializableStorage()._initializing;\n    }\n\n    /**\n     * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n     *\n     * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n     */\n    function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n        return INITIALIZABLE_STORAGE;\n    }\n\n    /**\n     * @dev Returns a pointer to the storage namespace.\n     */\n    // solhint-disable-next-line var-name-mixedcase\n    function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n        bytes32 slot = _initializableStorageSlot();\n        assembly {\n            $.slot := slot\n        }\n    }\n}\n"},{"file_path":"lib/openzeppelin-contracts-upgradeable/contracts/proxy/utils/UUPSUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n    /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n    address private immutable __self = address(this);\n\n    /**\n     * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n     * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n     * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n     * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n     * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n     * during an upgrade.\n     */\n    string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n    /**\n     * @dev The call is from an unauthorized context.\n     */\n    error UUPSUnauthorizedCallContext();\n\n    /**\n     * @dev The storage `slot` is unsupported as a UUID.\n     */\n    error UUPSUnsupportedProxiableUUID(bytes32 slot);\n\n    /**\n     * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\n     * a proxy contract with an implementation (as defined in ERC-1967) pointing to self. This should only be the case\n     * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\n     * function through ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n     * fail.\n     */\n    modifier onlyProxy() {\n        _checkProxy();\n        _;\n    }\n\n    /**\n     * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n     * callable on the implementing contract but not through proxies.\n     */\n    modifier notDelegated() {\n        _checkNotDelegated();\n        _;\n    }\n\n    function __UUPSUpgradeable_init() internal onlyInitializing {\n    }\n\n    function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n    }\n    /**\n     * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n     * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n     *\n     * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n     * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n     * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n     */\n    function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n        return ERC1967Utils.IMPLEMENTATION_SLOT;\n    }\n\n    /**\n     * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\n     * encoded in `data`.\n     *\n     * Calls {_authorizeUpgrade}.\n     *\n     * Emits an {Upgraded} event.\n     *\n     * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n     */\n    function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n        _authorizeUpgrade(newImplementation);\n        _upgradeToAndCallUUPS(newImplementation, data);\n    }\n\n    /**\n     * @dev Reverts if the execution is not performed via delegatecall or the execution\n     * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n     */\n    function _checkProxy() internal view virtual {\n        if (\n            address(this) == __self || // Must be called through delegatecall\n            ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n        ) {\n            revert UUPSUnauthorizedCallContext();\n        }\n    }\n\n    /**\n     * @dev Reverts if the execution is performed via delegatecall.\n     * See {notDelegated}.\n     */\n    function _checkNotDelegated() internal view virtual {\n        if (address(this) != __self) {\n            // Must not be called through delegatecall\n            revert UUPSUnauthorizedCallContext();\n        }\n    }\n\n    /**\n     * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n     * {upgradeToAndCall}.\n     *\n     * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\n     *\n     * ```solidity\n     * function _authorizeUpgrade(address) internal onlyOwner {}\n     * ```\n     */\n    function _authorizeUpgrade(address newImplementation) internal virtual;\n\n    /**\n     * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n     *\n     * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n     * is expected to be the implementation slot in ERC-1967.\n     *\n     * Emits an {IERC1967-Upgraded} event.\n     */\n    function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n        try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n            if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n                revert UUPSUnsupportedProxiableUUID(slot);\n            }\n            ERC1967Utils.upgradeToAndCall(newImplementation, data);\n        } catch {\n            // The implementation is not UUPS\n            revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n        }\n    }\n}\n"},{"file_path":"lib/openzeppelin-contracts-upgradeable/contracts/token/ERC20/ERC20Upgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/ERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport {IERC20Metadata} from \"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol\";\nimport {ContextUpgradeable} from \"../../utils/ContextUpgradeable.sol\";\nimport {IERC20Errors} from \"@openzeppelin/contracts/interfaces/draft-IERC6093.sol\";\nimport {Initializable} from \"../../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Implementation of the {IERC20} interface.\n *\n * This implementation is agnostic to the way tokens are created. This means\n * that a supply mechanism has to be added in a derived contract using {_mint}.\n *\n * TIP: For a detailed writeup see our guide\n * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How\n * to implement supply mechanisms].\n *\n * The default value of {decimals} is 18. To change this, you should override\n * this function so it returns a different value.\n *\n * We have followed general OpenZeppelin Contracts guidelines: functions revert\n * instead returning `false` on failure. This behavior is nonetheless\n * conventional and does not conflict with the expectations of ERC-20\n * applications.\n */\nabstract contract ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20, IERC20Metadata, IERC20Errors {\n    /// @custom:storage-location erc7201:openzeppelin.storage.ERC20\n    struct ERC20Storage {\n        mapping(address account => uint256) _balances;\n\n        mapping(address account => mapping(address spender => uint256)) _allowances;\n\n        uint256 _totalSupply;\n\n        string _name;\n        string _symbol;\n    }\n\n    // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.ERC20\")) - 1)) & ~bytes32(uint256(0xff))\n    bytes32 private constant ERC20StorageLocation = 0x52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace00;\n\n    function _getERC20Storage() private pure returns (ERC20Storage storage $) {\n        assembly {\n            $.slot := ERC20StorageLocation\n        }\n    }\n\n    /**\n     * @dev Sets the values for {name} and {symbol}.\n     *\n     * Both values are immutable: they can only be set once during construction.\n     */\n    function __ERC20_init(string memory name_, string memory symbol_) internal onlyInitializing {\n        __ERC20_init_unchained(name_, symbol_);\n    }\n\n    function __ERC20_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing {\n        ERC20Storage storage $ = _getERC20Storage();\n        $._name = name_;\n        $._symbol = symbol_;\n    }\n\n    /**\n     * @dev Returns the name of the token.\n     */\n    function name() public view virtual returns (string memory) {\n        ERC20Storage storage $ = _getERC20Storage();\n        return $._name;\n    }\n\n    /**\n     * @dev Returns the symbol of the token, usually a shorter version of the\n     * name.\n     */\n    function symbol() public view virtual returns (string memory) {\n        ERC20Storage storage $ = _getERC20Storage();\n        return $._symbol;\n    }\n\n    /**\n     * @dev Returns the number of decimals used to get its user representation.\n     * For example, if `decimals` equals `2`, a balance of `505` tokens should\n     * be displayed to a user as `5.05` (`505 / 10 ** 2`).\n     *\n     * Tokens usually opt for a value of 18, imitating the relationship between\n     * Ether and Wei. This is the default value returned by this function, unless\n     * it's overridden.\n     *\n     * NOTE: This information is only used for _display_ purposes: it in\n     * no way affects any of the arithmetic of the contract, including\n     * {IERC20-balanceOf} and {IERC20-transfer}.\n     */\n    function decimals() public view virtual returns (uint8) {\n        return 18;\n    }\n\n    /// @inheritdoc IERC20\n    function totalSupply() public view virtual returns (uint256) {\n        ERC20Storage storage $ = _getERC20Storage();\n        return $._totalSupply;\n    }\n\n    /// @inheritdoc IERC20\n    function balanceOf(address account) public view virtual returns (uint256) {\n        ERC20Storage storage $ = _getERC20Storage();\n        return $._balances[account];\n    }\n\n    /**\n     * @dev See {IERC20-transfer}.\n     *\n     * Requirements:\n     *\n     * - `to` cannot be the zero address.\n     * - the caller must have a balance of at least `value`.\n     */\n    function transfer(address to, uint256 value) public virtual returns (bool) {\n        address owner = _msgSender();\n        _transfer(owner, to, value);\n        return true;\n    }\n\n    /// @inheritdoc IERC20\n    function allowance(address owner, address spender) public view virtual returns (uint256) {\n        ERC20Storage storage $ = _getERC20Storage();\n        return $._allowances[owner][spender];\n    }\n\n    /**\n     * @dev See {IERC20-approve}.\n     *\n     * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on\n     * `transferFrom`. This is semantically equivalent to an infinite approval.\n     *\n     * Requirements:\n     *\n     * - `spender` cannot be the zero address.\n     */\n    function approve(address spender, uint256 value) public virtual returns (bool) {\n        address owner = _msgSender();\n        _approve(owner, spender, value);\n        return true;\n    }\n\n    /**\n     * @dev See {IERC20-transferFrom}.\n     *\n     * Skips emitting an {Approval} event indicating an allowance update. This is not\n     * required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve].\n     *\n     * NOTE: Does not update the allowance if the current allowance\n     * is the maximum `uint256`.\n     *\n     * Requirements:\n     *\n     * - `from` and `to` cannot be the zero address.\n     * - `from` must have a balance of at least `value`.\n     * - the caller must have allowance for ``from``'s tokens of at least\n     * `value`.\n     */\n    function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {\n        address spender = _msgSender();\n        _spendAllowance(from, spender, value);\n        _transfer(from, to, value);\n        return true;\n    }\n\n    /**\n     * @dev Moves a `value` amount of tokens from `from` to `to`.\n     *\n     * This internal function is equivalent to {transfer}, and can be used to\n     * e.g. implement automatic token fees, slashing mechanisms, etc.\n     *\n     * Emits a {Transfer} event.\n     *\n     * NOTE: This function is not virtual, {_update} should be overridden instead.\n     */\n    function _transfer(address from, address to, uint256 value) internal {\n        if (from == address(0)) {\n            revert ERC20InvalidSender(address(0));\n        }\n        if (to == address(0)) {\n            revert ERC20InvalidReceiver(address(0));\n        }\n        _update(from, to, value);\n    }\n\n    /**\n     * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`\n     * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding\n     * this function.\n     *\n     * Emits a {Transfer} event.\n     */\n    function _update(address from, address to, uint256 value) internal virtual {\n        ERC20Storage storage $ = _getERC20Storage();\n        if (from == address(0)) {\n            // Overflow check required: The rest of the code assumes that totalSupply never overflows\n            $._totalSupply += value;\n        } else {\n            uint256 fromBalance = $._balances[from];\n            if (fromBalance < value) {\n                revert ERC20InsufficientBalance(from, fromBalance, value);\n            }\n            unchecked {\n                // Overflow not possible: value <= fromBalance <= totalSupply.\n                $._balances[from] = fromBalance - value;\n            }\n        }\n\n        if (to == address(0)) {\n            unchecked {\n                // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.\n                $._totalSupply -= value;\n            }\n        } else {\n            unchecked {\n                // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.\n                $._balances[to] += value;\n            }\n        }\n\n        emit Transfer(from, to, value);\n    }\n\n    /**\n     * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).\n     * Relies on the `_update` mechanism\n     *\n     * Emits a {Transfer} event with `from` set to the zero address.\n     *\n     * NOTE: This function is not virtual, {_update} should be overridden instead.\n     */\n    function _mint(address account, uint256 value) internal {\n        if (account == address(0)) {\n            revert ERC20InvalidReceiver(address(0));\n        }\n        _update(address(0), account, value);\n    }\n\n    /**\n     * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.\n     * Relies on the `_update` mechanism.\n     *\n     * Emits a {Transfer} event with `to` set to the zero address.\n     *\n     * NOTE: This function is not virtual, {_update} should be overridden instead\n     */\n    function _burn(address account, uint256 value) internal {\n        if (account == address(0)) {\n            revert ERC20InvalidSender(address(0));\n        }\n        _update(account, address(0), value);\n    }\n\n    /**\n     * @dev Sets `value` as the allowance of `spender` over the `owner`'s tokens.\n     *\n     * This internal function is equivalent to `approve`, and can be used to\n     * e.g. set automatic allowances for certain subsystems, etc.\n     *\n     * Emits an {Approval} event.\n     *\n     * Requirements:\n     *\n     * - `owner` cannot be the zero address.\n     * - `spender` cannot be the zero address.\n     *\n     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.\n     */\n    function _approve(address owner, address spender, uint256 value) internal {\n        _approve(owner, spender, value, true);\n    }\n\n    /**\n     * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.\n     *\n     * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by\n     * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any\n     * `Approval` event during `transferFrom` operations.\n     *\n     * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to\n     * true using the following override:\n     *\n     * ```solidity\n     * function _approve(address owner, address spender, uint256 value, bool) internal virtual override {\n     *     super._approve(owner, spender, value, true);\n     * }\n     * ```\n     *\n     * Requirements are the same as {_approve}.\n     */\n    function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {\n        ERC20Storage storage $ = _getERC20Storage();\n        if (owner == address(0)) {\n            revert ERC20InvalidApprover(address(0));\n        }\n        if (spender == address(0)) {\n            revert ERC20InvalidSpender(address(0));\n        }\n        $._allowances[owner][spender] = value;\n        if (emitEvent) {\n            emit Approval(owner, spender, value);\n        }\n    }\n\n    /**\n     * @dev Updates `owner`'s allowance for `spender` based on spent `value`.\n     *\n     * Does not update the allowance value in case of infinite allowance.\n     * Revert if not enough allowance is available.\n     *\n     * Does not emit an {Approval} event.\n     */\n    function _spendAllowance(address owner, address spender, uint256 value) internal virtual {\n        uint256 currentAllowance = allowance(owner, spender);\n        if (currentAllowance < type(uint256).max) {\n            if (currentAllowance < value) {\n                revert ERC20InsufficientAllowance(spender, currentAllowance, value);\n            }\n            unchecked {\n                _approve(owner, spender, currentAllowance - value, false);\n            }\n        }\n    }\n}\n"},{"file_path":"lib/openzeppelin-contracts-upgradeable/contracts/token/ERC20/extensions/ERC4626Upgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/extensions/ERC4626.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport {IERC20Metadata} from \"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol\";\nimport {ERC20Upgradeable} from \"../ERC20Upgradeable.sol\";\nimport {SafeERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IERC4626} from \"@openzeppelin/contracts/interfaces/IERC4626.sol\";\nimport {Math} from \"@openzeppelin/contracts/utils/math/Math.sol\";\nimport {Initializable} from \"../../../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Implementation of the ERC-4626 \"Tokenized Vault Standard\" as defined in\n * https://eips.ethereum.org/EIPS/eip-4626[ERC-4626].\n *\n * This extension allows the minting and burning of \"shares\" (represented using the ERC-20 inheritance) in exchange for\n * underlying \"assets\" through standardized {deposit}, {mint}, {redeem} and {burn} workflows. This contract extends\n * the ERC-20 standard. Any additional extensions included along it would affect the \"shares\" token represented by this\n * contract and not the \"assets\" token which is an independent contract.\n *\n * [CAUTION]\n * ====\n * In empty (or nearly empty) ERC-4626 vaults, deposits are at high risk of being stolen through frontrunning\n * with a \"donation\" to the vault that inflates the price of a share. This is variously known as a donation or inflation\n * attack and is essentially a problem of slippage. Vault deployers can protect against this attack by making an initial\n * deposit of a non-trivial amount of the asset, such that price manipulation becomes infeasible. Withdrawals may\n * similarly be affected by slippage. Users can protect against this attack as well as unexpected slippage in general by\n * verifying the amount received is as expected, using a wrapper that performs these checks such as\n * https://github.com/fei-protocol/ERC4626#erc4626router-and-base[ERC4626Router].\n *\n * Since v4.9, this implementation introduces configurable virtual assets and shares to help developers mitigate that risk.\n * The `_decimalsOffset()` corresponds to an offset in the decimal representation between the underlying asset's decimals\n * and the vault decimals. This offset also determines the rate of virtual shares to virtual assets in the vault, which\n * itself determines the initial exchange rate. While not fully preventing the attack, analysis shows that the default\n * offset (0) makes it non-profitable even if an attacker is able to capture value from multiple user deposits, as a result\n * of the value being captured by the virtual shares (out of the attacker's donation) matching the attacker's expected gains.\n * With a larger offset, the attack becomes orders of magnitude more expensive than it is profitable. More details about the\n * underlying math can be found xref:ROOT:erc4626.adoc#inflation-attack[here].\n *\n * The drawback of this approach is that the virtual shares do capture (a very small) part of the value being accrued\n * to the vault. Also, if the vault experiences losses, the users try to exit the vault, the virtual shares and assets\n * will cause the first user to exit to experience reduced losses in detriment to the last users that will experience\n * bigger losses. Developers willing to revert back to the pre-v4.9 behavior just need to override the\n * `_convertToShares` and `_convertToAssets` functions.\n *\n * To learn more, check out our xref:ROOT:erc4626.adoc[ERC-4626 guide].\n * ====\n */\nabstract contract ERC4626Upgradeable is Initializable, ERC20Upgradeable, IERC4626 {\n    using Math for uint256;\n\n    /// @custom:storage-location erc7201:openzeppelin.storage.ERC4626\n    struct ERC4626Storage {\n        IERC20 _asset;\n        uint8 _underlyingDecimals;\n    }\n\n    // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.ERC4626\")) - 1)) & ~bytes32(uint256(0xff))\n    bytes32 private constant ERC4626StorageLocation = 0x0773e532dfede91f04b12a73d3d2acd361424f41f76b4fb79f090161e36b4e00;\n\n    function _getERC4626Storage() private pure returns (ERC4626Storage storage $) {\n        assembly {\n            $.slot := ERC4626StorageLocation\n        }\n    }\n\n    /**\n     * @dev Attempted to deposit more assets than the max amount for `receiver`.\n     */\n    error ERC4626ExceededMaxDeposit(address receiver, uint256 assets, uint256 max);\n\n    /**\n     * @dev Attempted to mint more shares than the max amount for `receiver`.\n     */\n    error ERC4626ExceededMaxMint(address receiver, uint256 shares, uint256 max);\n\n    /**\n     * @dev Attempted to withdraw more assets than the max amount for `receiver`.\n     */\n    error ERC4626ExceededMaxWithdraw(address owner, uint256 assets, uint256 max);\n\n    /**\n     * @dev Attempted to redeem more shares than the max amount for `receiver`.\n     */\n    error ERC4626ExceededMaxRedeem(address owner, uint256 shares, uint256 max);\n\n    /**\n     * @dev Set the underlying asset contract. This must be an ERC20-compatible contract (ERC-20 or ERC-777).\n     */\n    function __ERC4626_init(IERC20 asset_) internal onlyInitializing {\n        __ERC4626_init_unchained(asset_);\n    }\n\n    function __ERC4626_init_unchained(IERC20 asset_) internal onlyInitializing {\n        ERC4626Storage storage $ = _getERC4626Storage();\n        (bool success, uint8 assetDecimals) = _tryGetAssetDecimals(asset_);\n        $._underlyingDecimals = success ? assetDecimals : 18;\n        $._asset = asset_;\n    }\n\n    /**\n     * @dev Attempts to fetch the asset decimals. A return value of false indicates that the attempt failed in some way.\n     */\n    function _tryGetAssetDecimals(IERC20 asset_) private view returns (bool ok, uint8 assetDecimals) {\n        (bool success, bytes memory encodedDecimals) = address(asset_).staticcall(\n            abi.encodeCall(IERC20Metadata.decimals, ())\n        );\n        if (success && encodedDecimals.length >= 32) {\n            uint256 returnedDecimals = abi.decode(encodedDecimals, (uint256));\n            if (returnedDecimals <= type(uint8).max) {\n                return (true, uint8(returnedDecimals));\n            }\n        }\n        return (false, 0);\n    }\n\n    /**\n     * @dev Decimals are computed by adding the decimal offset on top of the underlying asset's decimals. This\n     * \"original\" value is cached during construction of the vault contract. If this read operation fails (e.g., the\n     * asset has not been created yet), a default of 18 is used to represent the underlying asset's decimals.\n     *\n     * See {IERC20Metadata-decimals}.\n     */\n    function decimals() public view virtual override(IERC20Metadata, ERC20Upgradeable) returns (uint8) {\n        ERC4626Storage storage $ = _getERC4626Storage();\n        return $._underlyingDecimals + _decimalsOffset();\n    }\n\n    /// @inheritdoc IERC4626\n    function asset() public view virtual returns (address) {\n        ERC4626Storage storage $ = _getERC4626Storage();\n        return address($._asset);\n    }\n\n    /// @inheritdoc IERC4626\n    function totalAssets() public view virtual returns (uint256) {\n        return IERC20(asset()).balanceOf(address(this));\n    }\n\n    /// @inheritdoc IERC4626\n    function convertToShares(uint256 assets) public view virtual returns (uint256) {\n        return _convertToShares(assets, Math.Rounding.Floor);\n    }\n\n    /// @inheritdoc IERC4626\n    function convertToAssets(uint256 shares) public view virtual returns (uint256) {\n        return _convertToAssets(shares, Math.Rounding.Floor);\n    }\n\n    /// @inheritdoc IERC4626\n    function maxDeposit(address) public view virtual returns (uint256) {\n        return type(uint256).max;\n    }\n\n    /// @inheritdoc IERC4626\n    function maxMint(address) public view virtual returns (uint256) {\n        return type(uint256).max;\n    }\n\n    /// @inheritdoc IERC4626\n    function maxWithdraw(address owner) public view virtual returns (uint256) {\n        return _convertToAssets(balanceOf(owner), Math.Rounding.Floor);\n    }\n\n    /// @inheritdoc IERC4626\n    function maxRedeem(address owner) public view virtual returns (uint256) {\n        return balanceOf(owner);\n    }\n\n    /// @inheritdoc IERC4626\n    function previewDeposit(uint256 assets) public view virtual returns (uint256) {\n        return _convertToShares(assets, Math.Rounding.Floor);\n    }\n\n    /// @inheritdoc IERC4626\n    function previewMint(uint256 shares) public view virtual returns (uint256) {\n        return _convertToAssets(shares, Math.Rounding.Ceil);\n    }\n\n    /// @inheritdoc IERC4626\n    function previewWithdraw(uint256 assets) public view virtual returns (uint256) {\n        return _convertToShares(assets, Math.Rounding.Ceil);\n    }\n\n    /// @inheritdoc IERC4626\n    function previewRedeem(uint256 shares) public view virtual returns (uint256) {\n        return _convertToAssets(shares, Math.Rounding.Floor);\n    }\n\n    /// @inheritdoc IERC4626\n    function deposit(uint256 assets, address receiver) public virtual returns (uint256) {\n        uint256 maxAssets = maxDeposit(receiver);\n        if (assets > maxAssets) {\n            revert ERC4626ExceededMaxDeposit(receiver, assets, maxAssets);\n        }\n\n        uint256 shares = previewDeposit(assets);\n        _deposit(_msgSender(), receiver, assets, shares);\n\n        return shares;\n    }\n\n    /// @inheritdoc IERC4626\n    function mint(uint256 shares, address receiver) public virtual returns (uint256) {\n        uint256 maxShares = maxMint(receiver);\n        if (shares > maxShares) {\n            revert ERC4626ExceededMaxMint(receiver, shares, maxShares);\n        }\n\n        uint256 assets = previewMint(shares);\n        _deposit(_msgSender(), receiver, assets, shares);\n\n        return assets;\n    }\n\n    /// @inheritdoc IERC4626\n    function withdraw(uint256 assets, address receiver, address owner) public virtual returns (uint256) {\n        uint256 maxAssets = maxWithdraw(owner);\n        if (assets > maxAssets) {\n            revert ERC4626ExceededMaxWithdraw(owner, assets, maxAssets);\n        }\n\n        uint256 shares = previewWithdraw(assets);\n        _withdraw(_msgSender(), receiver, owner, assets, shares);\n\n        return shares;\n    }\n\n    /// @inheritdoc IERC4626\n    function redeem(uint256 shares, address receiver, address owner) public virtual returns (uint256) {\n        uint256 maxShares = maxRedeem(owner);\n        if (shares > maxShares) {\n            revert ERC4626ExceededMaxRedeem(owner, shares, maxShares);\n        }\n\n        uint256 assets = previewRedeem(shares);\n        _withdraw(_msgSender(), receiver, owner, assets, shares);\n\n        return assets;\n    }\n\n    /**\n     * @dev Internal conversion function (from assets to shares) with support for rounding direction.\n     */\n    function _convertToShares(uint256 assets, Math.Rounding rounding) internal view virtual returns (uint256) {\n        return assets.mulDiv(totalSupply() + 10 ** _decimalsOffset(), totalAssets() + 1, rounding);\n    }\n\n    /**\n     * @dev Internal conversion function (from shares to assets) with support for rounding direction.\n     */\n    function _convertToAssets(uint256 shares, Math.Rounding rounding) internal view virtual returns (uint256) {\n        return shares.mulDiv(totalAssets() + 1, totalSupply() + 10 ** _decimalsOffset(), rounding);\n    }\n\n    /**\n     * @dev Deposit/mint common workflow.\n     */\n    function _deposit(address caller, address receiver, uint256 assets, uint256 shares) internal virtual {\n        // If asset() is ERC-777, `transferFrom` can trigger a reentrancy BEFORE the transfer happens through the\n        // `tokensToSend` hook. On the other hand, the `tokenReceived` hook, that is triggered after the transfer,\n        // calls the vault, which is assumed not malicious.\n        //\n        // Conclusion: we need to do the transfer before we mint so that any reentrancy would happen before the\n        // assets are transferred and before the shares are minted, which is a valid state.\n        // slither-disable-next-line reentrancy-no-eth\n        SafeERC20.safeTransferFrom(IERC20(asset()), caller, address(this), assets);\n        _mint(receiver, shares);\n\n        emit Deposit(caller, receiver, assets, shares);\n    }\n\n    /**\n     * @dev Withdraw/redeem common workflow.\n     */\n    function _withdraw(\n        address caller,\n        address receiver,\n        address owner,\n        uint256 assets,\n        uint256 shares\n    ) internal virtual {\n        if (caller != owner) {\n            _spendAllowance(owner, caller, shares);\n        }\n\n        // If asset() is ERC-777, `transfer` can trigger a reentrancy AFTER the transfer happens through the\n        // `tokensReceived` hook. On the other hand, the `tokensToSend` hook, that is triggered before the transfer,\n        // calls the vault, which is assumed not malicious.\n        //\n        // Conclusion: we need to do the transfer after the burn so that any reentrancy would happen after the\n        // shares are burned and after the assets are transferred, which is a valid state.\n        _burn(owner, shares);\n        SafeERC20.safeTransfer(IERC20(asset()), receiver, assets);\n\n        emit Withdraw(caller, receiver, owner, assets, shares);\n    }\n\n    function _decimalsOffset() internal view virtual returns (uint8) {\n        return 0;\n    }\n}\n"},{"file_path":"lib/openzeppelin-contracts-upgradeable/contracts/utils/ContextUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n    function __Context_init() internal onlyInitializing {\n    }\n\n    function __Context_init_unchained() internal onlyInitializing {\n    }\n    function _msgSender() internal view virtual returns (address) {\n        return msg.sender;\n    }\n\n    function _msgData() internal view virtual returns (bytes calldata) {\n        return msg.data;\n    }\n\n    function _contextSuffixLength() internal view virtual returns (uint256) {\n        return 0;\n    }\n}\n"},{"file_path":"lib/openzeppelin-contracts-upgradeable/contracts/utils/PausableUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/Pausable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Contract module which allows children to implement an emergency stop\n * mechanism that can be triggered by an authorized account.\n *\n * This module is used through inheritance. It will make available the\n * modifiers `whenNotPaused` and `whenPaused`, which can be applied to\n * the functions of your contract. Note that they will not be pausable by\n * simply including this module, only once the modifiers are put in place.\n */\nabstract contract PausableUpgradeable is Initializable, ContextUpgradeable {\n    /// @custom:storage-location erc7201:openzeppelin.storage.Pausable\n    struct PausableStorage {\n        bool _paused;\n    }\n\n    // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Pausable\")) - 1)) & ~bytes32(uint256(0xff))\n    bytes32 private constant PausableStorageLocation = 0xcd5ed15c6e187e77e9aee88184c21f4f2182ab5827cb3b7e07fbedcd63f03300;\n\n    function _getPausableStorage() private pure returns (PausableStorage storage $) {\n        assembly {\n            $.slot := PausableStorageLocation\n        }\n    }\n\n    /**\n     * @dev Emitted when the pause is triggered by `account`.\n     */\n    event Paused(address account);\n\n    /**\n     * @dev Emitted when the pause is lifted by `account`.\n     */\n    event Unpaused(address account);\n\n    /**\n     * @dev The operation failed because the contract is paused.\n     */\n    error EnforcedPause();\n\n    /**\n     * @dev The operation failed because the contract is not paused.\n     */\n    error ExpectedPause();\n\n    /**\n     * @dev Modifier to make a function callable only when the contract is not paused.\n     *\n     * Requirements:\n     *\n     * - The contract must not be paused.\n     */\n    modifier whenNotPaused() {\n        _requireNotPaused();\n        _;\n    }\n\n    /**\n     * @dev Modifier to make a function callable only when the contract is paused.\n     *\n     * Requirements:\n     *\n     * - The contract must be paused.\n     */\n    modifier whenPaused() {\n        _requirePaused();\n        _;\n    }\n\n    function __Pausable_init() internal onlyInitializing {\n    }\n\n    function __Pausable_init_unchained() internal onlyInitializing {\n    }\n    /**\n     * @dev Returns true if the contract is paused, and false otherwise.\n     */\n    function paused() public view virtual returns (bool) {\n        PausableStorage storage $ = _getPausableStorage();\n        return $._paused;\n    }\n\n    /**\n     * @dev Throws if the contract is paused.\n     */\n    function _requireNotPaused() internal view virtual {\n        if (paused()) {\n            revert EnforcedPause();\n        }\n    }\n\n    /**\n     * @dev Throws if the contract is not paused.\n     */\n    function _requirePaused() internal view virtual {\n        if (!paused()) {\n            revert ExpectedPause();\n        }\n    }\n\n    /**\n     * @dev Triggers stopped state.\n     *\n     * Requirements:\n     *\n     * - The contract must not be paused.\n     */\n    function _pause() internal virtual whenNotPaused {\n        PausableStorage storage $ = _getPausableStorage();\n        $._paused = true;\n        emit Paused(_msgSender());\n    }\n\n    /**\n     * @dev Returns to normal state.\n     *\n     * Requirements:\n     *\n     * - The contract must be paused.\n     */\n    function _unpause() internal virtual whenPaused {\n        PausableStorage storage $ = _getPausableStorage();\n        $._paused = false;\n        emit Unpaused(_msgSender());\n    }\n}\n"},{"file_path":"lib/openzeppelin-contracts-upgradeable/contracts/utils/ReentrancyGuardUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuard.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Contract module that helps prevent reentrant calls to a function.\n *\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\n * available, which can be applied to functions to make sure there are no nested\n * (reentrant) calls to them.\n *\n * Note that because there is a single `nonReentrant` guard, functions marked as\n * `nonReentrant` may not call one another. This can be worked around by making\n * those functions `private`, and then adding `external` `nonReentrant` entry\n * points to them.\n *\n * TIP: If EIP-1153 (transient storage) is available on the chain you're deploying at,\n * consider using {ReentrancyGuardTransient} instead.\n *\n * TIP: If you would like to learn more about reentrancy and alternative ways\n * to protect against it, check out our blog post\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\n */\nabstract contract ReentrancyGuardUpgradeable is Initializable {\n    // Booleans are more expensive than uint256 or any type that takes up a full\n    // word because each write operation emits an extra SLOAD to first read the\n    // slot's contents, replace the bits taken up by the boolean, and then write\n    // back. This is the compiler's defense against contract upgrades and\n    // pointer aliasing, and it cannot be disabled.\n\n    // The values being non-zero value makes deployment a bit more expensive,\n    // but in exchange the refund on every call to nonReentrant will be lower in\n    // amount. Since refunds are capped to a percentage of the total\n    // transaction's gas, it is best to keep them low in cases like this one, to\n    // increase the likelihood of the full refund coming into effect.\n    uint256 private constant NOT_ENTERED = 1;\n    uint256 private constant ENTERED = 2;\n\n    /// @custom:storage-location erc7201:openzeppelin.storage.ReentrancyGuard\n    struct ReentrancyGuardStorage {\n        uint256 _status;\n    }\n\n    // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.ReentrancyGuard\")) - 1)) & ~bytes32(uint256(0xff))\n    bytes32 private constant ReentrancyGuardStorageLocation = 0x9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00;\n\n    function _getReentrancyGuardStorage() private pure returns (ReentrancyGuardStorage storage $) {\n        assembly {\n            $.slot := ReentrancyGuardStorageLocation\n        }\n    }\n\n    /**\n     * @dev Unauthorized reentrant call.\n     */\n    error ReentrancyGuardReentrantCall();\n\n    function __ReentrancyGuard_init() internal onlyInitializing {\n        __ReentrancyGuard_init_unchained();\n    }\n\n    function __ReentrancyGuard_init_unchained() internal onlyInitializing {\n        ReentrancyGuardStorage storage $ = _getReentrancyGuardStorage();\n        $._status = NOT_ENTERED;\n    }\n\n    /**\n     * @dev Prevents a contract from calling itself, directly or indirectly.\n     * Calling a `nonReentrant` function from another `nonReentrant`\n     * function is not supported. It is possible to prevent this from happening\n     * by making the `nonReentrant` function external, and making it call a\n     * `private` function that does the actual work.\n     */\n    modifier nonReentrant() {\n        _nonReentrantBefore();\n        _;\n        _nonReentrantAfter();\n    }\n\n    function _nonReentrantBefore() private {\n        ReentrancyGuardStorage storage $ = _getReentrancyGuardStorage();\n        // On the first call to nonReentrant, _status will be NOT_ENTERED\n        if ($._status == ENTERED) {\n            revert ReentrancyGuardReentrantCall();\n        }\n\n        // Any calls to nonReentrant after this point will fail\n        $._status = ENTERED;\n    }\n\n    function _nonReentrantAfter() private {\n        ReentrancyGuardStorage storage $ = _getReentrancyGuardStorage();\n        // By storing the original value once again, a refund is triggered (see\n        // https://eips.ethereum.org/EIPS/eip-2200)\n        $._status = NOT_ENTERED;\n    }\n\n    /**\n     * @dev Returns true if the reentrancy guard is currently set to \"entered\", which indicates there is a\n     * `nonReentrant` function in the call stack.\n     */\n    function _reentrancyGuardEntered() internal view returns (bool) {\n        ReentrancyGuardStorage storage $ = _getReentrancyGuardStorage();\n        return $._status == ENTERED;\n    }\n}\n"},{"file_path":"lib/openzeppelin-contracts-upgradeable/contracts/utils/introspection/ERC165Upgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/ERC165.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC165} from \"@openzeppelin/contracts/utils/introspection/IERC165.sol\";\nimport {Initializable} from \"../../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Implementation of the {IERC165} interface.\n *\n * Contracts that want to implement ERC-165 should inherit from this contract and override {supportsInterface} to check\n * for the additional interface id that will be supported. For example:\n *\n * ```solidity\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\n * }\n * ```\n */\nabstract contract ERC165Upgradeable is Initializable, IERC165 {\n    function __ERC165_init() internal onlyInitializing {\n    }\n\n    function __ERC165_init_unchained() internal onlyInitializing {\n    }\n    /// @inheritdoc IERC165\n    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {\n        return interfaceId == type(IERC165).interfaceId;\n    }\n}\n"},{"file_path":"lib/openzeppelin-contracts/contracts/access/IAccessControl.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/IAccessControl.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev External interface of AccessControl declared to support ERC165 detection.\n */\ninterface IAccessControl {\n    /**\n     * @dev The `account` is missing a role.\n     */\n    error AccessControlUnauthorizedAccount(address account, bytes32 neededRole);\n\n    /**\n     * @dev The caller of a function is not the expected one.\n     *\n     * NOTE: Don't confuse with {AccessControlUnauthorizedAccount}.\n     */\n    error AccessControlBadConfirmation();\n\n    /**\n     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\n     *\n     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\n     * {RoleAdminChanged} not being emitted signaling this.\n     */\n    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\n\n    /**\n     * @dev Emitted when `account` is granted `role`.\n     *\n     * `sender` is the account that originated the contract call, an admin role\n     * bearer except when using {AccessControl-_setupRole}.\n     */\n    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\n\n    /**\n     * @dev Emitted when `account` is revoked `role`.\n     *\n     * `sender` is the account that originated the contract call:\n     *   - if using `revokeRole`, it is the admin role bearer\n     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)\n     */\n    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\n\n    /**\n     * @dev Returns `true` if `account` has been granted `role`.\n     */\n    function hasRole(bytes32 role, address account) external view returns (bool);\n\n    /**\n     * @dev Returns the admin role that controls `role`. See {grantRole} and\n     * {revokeRole}.\n     *\n     * To change a role's admin, use {AccessControl-_setRoleAdmin}.\n     */\n    function getRoleAdmin(bytes32 role) external view returns (bytes32);\n\n    /**\n     * @dev Grants `role` to `account`.\n     *\n     * If `account` had not been already granted `role`, emits a {RoleGranted}\n     * event.\n     *\n     * Requirements:\n     *\n     * - the caller must have ``role``'s admin role.\n     */\n    function grantRole(bytes32 role, address account) external;\n\n    /**\n     * @dev Revokes `role` from `account`.\n     *\n     * If `account` had been granted `role`, emits a {RoleRevoked} event.\n     *\n     * Requirements:\n     *\n     * - the caller must have ``role``'s admin role.\n     */\n    function revokeRole(bytes32 role, address account) external;\n\n    /**\n     * @dev Revokes `role` from the calling account.\n     *\n     * Roles are often managed via {grantRole} and {revokeRole}: this function's\n     * purpose is to provide a mechanism for accounts to lose their privileges\n     * if they are compromised (such as when a trusted device is misplaced).\n     *\n     * If the calling account had been granted `role`, emits a {RoleRevoked}\n     * event.\n     *\n     * Requirements:\n     *\n     * - the caller must be `callerConfirmation`.\n     */\n    function renounceRole(bytes32 role, address callerConfirmation) external;\n}\n"},{"file_path":"lib/openzeppelin-contracts/contracts/interfaces/IERC4626.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC4626.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\nimport {IERC20Metadata} from \"../token/ERC20/extensions/IERC20Metadata.sol\";\n\n/**\n * @dev Interface of the ERC4626 \"Tokenized Vault Standard\", as defined in\n * https://eips.ethereum.org/EIPS/eip-4626[ERC-4626].\n */\ninterface IERC4626 is IERC20, IERC20Metadata {\n    event Deposit(address indexed sender, address indexed owner, uint256 assets, uint256 shares);\n\n    event Withdraw(\n        address indexed sender,\n        address indexed receiver,\n        address indexed owner,\n        uint256 assets,\n        uint256 shares\n    );\n\n    /**\n     * @dev Returns the address of the underlying token used for the Vault for accounting, depositing, and withdrawing.\n     *\n     * - MUST be an ERC-20 token contract.\n     * - MUST NOT revert.\n     */\n    function asset() external view returns (address assetTokenAddress);\n\n    /**\n     * @dev Returns the total amount of the underlying asset that is “managed” by Vault.\n     *\n     * - SHOULD include any compounding that occurs from yield.\n     * - MUST be inclusive of any fees that are charged against assets in the Vault.\n     * - MUST NOT revert.\n     */\n    function totalAssets() external view returns (uint256 totalManagedAssets);\n\n    /**\n     * @dev Returns the amount of shares that the Vault would exchange for the amount of assets provided, in an ideal\n     * scenario where all the conditions are met.\n     *\n     * - MUST NOT be inclusive of any fees that are charged against assets in the Vault.\n     * - MUST NOT show any variations depending on the caller.\n     * - MUST NOT reflect slippage or other on-chain conditions, when performing the actual exchange.\n     * - MUST NOT revert.\n     *\n     * NOTE: This calculation MAY NOT reflect the “per-user” price-per-share, and instead should reflect the\n     * “average-user’s” price-per-share, meaning what the average user should expect to see when exchanging to and\n     * from.\n     */\n    function convertToShares(uint256 assets) external view returns (uint256 shares);\n\n    /**\n     * @dev Returns the amount of assets that the Vault would exchange for the amount of shares provided, in an ideal\n     * scenario where all the conditions are met.\n     *\n     * - MUST NOT be inclusive of any fees that are charged against assets in the Vault.\n     * - MUST NOT show any variations depending on the caller.\n     * - MUST NOT reflect slippage or other on-chain conditions, when performing the actual exchange.\n     * - MUST NOT revert.\n     *\n     * NOTE: This calculation MAY NOT reflect the “per-user” price-per-share, and instead should reflect the\n     * “average-user’s” price-per-share, meaning what the average user should expect to see when exchanging to and\n     * from.\n     */\n    function convertToAssets(uint256 shares) external view returns (uint256 assets);\n\n    /**\n     * @dev Returns the maximum amount of the underlying asset that can be deposited into the Vault for the receiver,\n     * through a deposit call.\n     *\n     * - MUST return a limited value if receiver is subject to some deposit limit.\n     * - MUST return 2 ** 256 - 1 if there is no limit on the maximum amount of assets that may be deposited.\n     * - MUST NOT revert.\n     */\n    function maxDeposit(address receiver) external view returns (uint256 maxAssets);\n\n    /**\n     * @dev Allows an on-chain or off-chain user to simulate the effects of their deposit at the current block, given\n     * current on-chain conditions.\n     *\n     * - MUST return as close to and no more than the exact amount of Vault shares that would be minted in a deposit\n     *   call in the same transaction. I.e. deposit should return the same or more shares as previewDeposit if called\n     *   in the same transaction.\n     * - MUST NOT account for deposit limits like those returned from maxDeposit and should always act as though the\n     *   deposit would be accepted, regardless if the user has enough tokens approved, etc.\n     * - MUST be inclusive of deposit fees. Integrators should be aware of the existence of deposit fees.\n     * - MUST NOT revert.\n     *\n     * NOTE: any unfavorable discrepancy between convertToShares and previewDeposit SHOULD be considered slippage in\n     * share price or some other type of condition, meaning the depositor will lose assets by depositing.\n     */\n    function previewDeposit(uint256 assets) external view returns (uint256 shares);\n\n    /**\n     * @dev Mints shares Vault shares to receiver by depositing exactly amount of underlying tokens.\n     *\n     * - MUST emit the Deposit event.\n     * - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the\n     *   deposit execution, and are accounted for during deposit.\n     * - MUST revert if all of assets cannot be deposited (due to deposit limit being reached, slippage, the user not\n     *   approving enough underlying tokens to the Vault contract, etc).\n     *\n     * NOTE: most implementations will require pre-approval of the Vault with the Vault’s underlying asset token.\n     */\n    function deposit(uint256 assets, address receiver) external returns (uint256 shares);\n\n    /**\n     * @dev Returns the maximum amount of the Vault shares that can be minted for the receiver, through a mint call.\n     * - MUST return a limited value if receiver is subject to some mint limit.\n     * - MUST return 2 ** 256 - 1 if there is no limit on the maximum amount of shares that may be minted.\n     * - MUST NOT revert.\n     */\n    function maxMint(address receiver) external view returns (uint256 maxShares);\n\n    /**\n     * @dev Allows an on-chain or off-chain user to simulate the effects of their mint at the current block, given\n     * current on-chain conditions.\n     *\n     * - MUST return as close to and no fewer than the exact amount of assets that would be deposited in a mint call\n     *   in the same transaction. I.e. mint should return the same or fewer assets as previewMint if called in the\n     *   same transaction.\n     * - MUST NOT account for mint limits like those returned from maxMint and should always act as though the mint\n     *   would be accepted, regardless if the user has enough tokens approved, etc.\n     * - MUST be inclusive of deposit fees. Integrators should be aware of the existence of deposit fees.\n     * - MUST NOT revert.\n     *\n     * NOTE: any unfavorable discrepancy between convertToAssets and previewMint SHOULD be considered slippage in\n     * share price or some other type of condition, meaning the depositor will lose assets by minting.\n     */\n    function previewMint(uint256 shares) external view returns (uint256 assets);\n\n    /**\n     * @dev Mints exactly shares Vault shares to receiver by depositing amount of underlying tokens.\n     *\n     * - MUST emit the Deposit event.\n     * - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the mint\n     *   execution, and are accounted for during mint.\n     * - MUST revert if all of shares cannot be minted (due to deposit limit being reached, slippage, the user not\n     *   approving enough underlying tokens to the Vault contract, etc).\n     *\n     * NOTE: most implementations will require pre-approval of the Vault with the Vault’s underlying asset token.\n     */\n    function mint(uint256 shares, address receiver) external returns (uint256 assets);\n\n    /**\n     * @dev Returns the maximum amount of the underlying asset that can be withdrawn from the owner balance in the\n     * Vault, through a withdraw call.\n     *\n     * - MUST return a limited value if owner is subject to some withdrawal limit or timelock.\n     * - MUST NOT revert.\n     */\n    function maxWithdraw(address owner) external view returns (uint256 maxAssets);\n\n    /**\n     * @dev Allows an on-chain or off-chain user to simulate the effects of their withdrawal at the current block,\n     * given current on-chain conditions.\n     *\n     * - MUST return as close to and no fewer than the exact amount of Vault shares that would be burned in a withdraw\n     *   call in the same transaction. I.e. withdraw should return the same or fewer shares as previewWithdraw if\n     *   called\n     *   in the same transaction.\n     * - MUST NOT account for withdrawal limits like those returned from maxWithdraw and should always act as though\n     *   the withdrawal would be accepted, regardless if the user has enough shares, etc.\n     * - MUST be inclusive of withdrawal fees. Integrators should be aware of the existence of withdrawal fees.\n     * - MUST NOT revert.\n     *\n     * NOTE: any unfavorable discrepancy between convertToShares and previewWithdraw SHOULD be considered slippage in\n     * share price or some other type of condition, meaning the depositor will lose assets by depositing.\n     */\n    function previewWithdraw(uint256 assets) external view returns (uint256 shares);\n\n    /**\n     * @dev Burns shares from owner and sends exactly assets of underlying tokens to receiver.\n     *\n     * - MUST emit the Withdraw event.\n     * - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the\n     *   withdraw execution, and are accounted for during withdraw.\n     * - MUST revert if all of assets cannot be withdrawn (due to withdrawal limit being reached, slippage, the owner\n     *   not having enough shares, etc).\n     *\n     * Note that some implementations will require pre-requesting to the Vault before a withdrawal may be performed.\n     * Those methods should be performed separately.\n     */\n    function withdraw(uint256 assets, address receiver, address owner) external returns (uint256 shares);\n\n    /**\n     * @dev Returns the maximum amount of Vault shares that can be redeemed from the owner balance in the Vault,\n     * through a redeem call.\n     *\n     * - MUST return a limited value if owner is subject to some withdrawal limit or timelock.\n     * - MUST return balanceOf(owner) if owner is not subject to any withdrawal limit or timelock.\n     * - MUST NOT revert.\n     */\n    function maxRedeem(address owner) external view returns (uint256 maxShares);\n\n    /**\n     * @dev Allows an on-chain or off-chain user to simulate the effects of their redeemption at the current block,\n     * given current on-chain conditions.\n     *\n     * - MUST return as close to and no more than the exact amount of assets that would be withdrawn in a redeem call\n     *   in the same transaction. I.e. redeem should return the same or more assets as previewRedeem if called in the\n     *   same transaction.\n     * - MUST NOT account for redemption limits like those returned from maxRedeem and should always act as though the\n     *   redemption would be accepted, regardless if the user has enough shares, etc.\n     * - MUST be inclusive of withdrawal fees. Integrators should be aware of the existence of withdrawal fees.\n     * - MUST NOT revert.\n     *\n     * NOTE: any unfavorable discrepancy between convertToAssets and previewRedeem SHOULD be considered slippage in\n     * share price or some other type of condition, meaning the depositor will lose assets by redeeming.\n     */\n    function previewRedeem(uint256 shares) external view returns (uint256 assets);\n\n    /**\n     * @dev Burns exactly shares from owner and sends assets of underlying tokens to receiver.\n     *\n     * - MUST emit the Withdraw event.\n     * - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the\n     *   redeem execution, and are accounted for during redeem.\n     * - MUST revert if all of shares cannot be redeemed (due to withdrawal limit being reached, slippage, the owner\n     *   not having enough shares, etc).\n     *\n     * NOTE: some implementations will require pre-requesting to the Vault before a withdrawal may be performed.\n     * Those methods should be performed separately.\n     */\n    function redeem(uint256 shares, address receiver, address owner) external returns (uint256 assets);\n}\n"},{"file_path":"lib/openzeppelin-contracts/contracts/interfaces/draft-IERC1822.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n    /**\n     * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n     * address.\n     *\n     * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n     * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n     * function revert if invoked through a proxy.\n     */\n    function proxiableUUID() external view returns (bytes32);\n}\n"},{"file_path":"lib/openzeppelin-contracts/contracts/interfaces/draft-IERC6093.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)\npragma solidity ^0.8.20;\n\n/**\n * @dev Standard ERC20 Errors\n * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.\n */\ninterface IERC20Errors {\n    /**\n     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     * @param balance Current balance for the interacting account.\n     * @param needed Minimum amount required to perform a transfer.\n     */\n    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);\n\n    /**\n     * @dev Indicates a failure with the token `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     */\n    error ERC20InvalidSender(address sender);\n\n    /**\n     * @dev Indicates a failure with the token `receiver`. Used in transfers.\n     * @param receiver Address to which tokens are being transferred.\n     */\n    error ERC20InvalidReceiver(address receiver);\n\n    /**\n     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.\n     * @param spender Address that may be allowed to operate on tokens without being their owner.\n     * @param allowance Amount of tokens a `spender` is allowed to operate with.\n     * @param needed Minimum amount required to perform a transfer.\n     */\n    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);\n\n    /**\n     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.\n     * @param approver Address initiating an approval operation.\n     */\n    error ERC20InvalidApprover(address approver);\n\n    /**\n     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.\n     * @param spender Address that may be allowed to operate on tokens without being their owner.\n     */\n    error ERC20InvalidSpender(address spender);\n}\n\n/**\n * @dev Standard ERC721 Errors\n * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.\n */\ninterface IERC721Errors {\n    /**\n     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.\n     * Used in balance queries.\n     * @param owner Address of the current owner of a token.\n     */\n    error ERC721InvalidOwner(address owner);\n\n    /**\n     * @dev Indicates a `tokenId` whose `owner` is the zero address.\n     * @param tokenId Identifier number of a token.\n     */\n    error ERC721NonexistentToken(uint256 tokenId);\n\n    /**\n     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     * @param tokenId Identifier number of a token.\n     * @param owner Address of the current owner of a token.\n     */\n    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);\n\n    /**\n     * @dev Indicates a failure with the token `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     */\n    error ERC721InvalidSender(address sender);\n\n    /**\n     * @dev Indicates a failure with the token `receiver`. Used in transfers.\n     * @param receiver Address to which tokens are being transferred.\n     */\n    error ERC721InvalidReceiver(address receiver);\n\n    /**\n     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.\n     * @param operator Address that may be allowed to operate on tokens without being their owner.\n     * @param tokenId Identifier number of a token.\n     */\n    error ERC721InsufficientApproval(address operator, uint256 tokenId);\n\n    /**\n     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.\n     * @param approver Address initiating an approval operation.\n     */\n    error ERC721InvalidApprover(address approver);\n\n    /**\n     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.\n     * @param operator Address that may be allowed to operate on tokens without being their owner.\n     */\n    error ERC721InvalidOperator(address operator);\n}\n\n/**\n * @dev Standard ERC1155 Errors\n * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.\n */\ninterface IERC1155Errors {\n    /**\n     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     * @param balance Current balance for the interacting account.\n     * @param needed Minimum amount required to perform a transfer.\n     * @param tokenId Identifier number of a token.\n     */\n    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);\n\n    /**\n     * @dev Indicates a failure with the token `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     */\n    error ERC1155InvalidSender(address sender);\n\n    /**\n     * @dev Indicates a failure with the token `receiver`. Used in transfers.\n     * @param receiver Address to which tokens are being transferred.\n     */\n    error ERC1155InvalidReceiver(address receiver);\n\n    /**\n     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.\n     * @param operator Address that may be allowed to operate on tokens without being their owner.\n     * @param owner Address of the current owner of a token.\n     */\n    error ERC1155MissingApprovalForAll(address operator, address owner);\n\n    /**\n     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.\n     * @param approver Address initiating an approval operation.\n     */\n    error ERC1155InvalidApprover(address approver);\n\n    /**\n     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.\n     * @param operator Address that may be allowed to operate on tokens without being their owner.\n     */\n    error ERC1155InvalidOperator(address operator);\n\n    /**\n     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.\n     * Used in batch transfers.\n     * @param idsLength Length of the array of token identifiers\n     * @param valuesLength Length of the array of token amounts\n     */\n    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);\n}\n"},{"file_path":"lib/openzeppelin-contracts/contracts/proxy/ERC1967/ERC1967Utils.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.20;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This abstract contract provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\n */\nlibrary ERC1967Utils {\n    // We re-declare ERC-1967 events here because they can't be used directly from IERC1967.\n    // This will be fixed in Solidity 0.8.21. At that point we should remove these events.\n    /**\n     * @dev Emitted when the implementation is upgraded.\n     */\n    event Upgraded(address indexed implementation);\n\n    /**\n     * @dev Emitted when the admin account has changed.\n     */\n    event AdminChanged(address previousAdmin, address newAdmin);\n\n    /**\n     * @dev Emitted when the beacon is changed.\n     */\n    event BeaconUpgraded(address indexed beacon);\n\n    /**\n     * @dev Storage slot with the address of the current implementation.\n     * This is the keccak-256 hash of \"eip1967.proxy.implementation\" subtracted by 1.\n     */\n    // solhint-disable-next-line private-vars-leading-underscore\n    bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n    /**\n     * @dev The `implementation` of the proxy is invalid.\n     */\n    error ERC1967InvalidImplementation(address implementation);\n\n    /**\n     * @dev The `admin` of the proxy is invalid.\n     */\n    error ERC1967InvalidAdmin(address admin);\n\n    /**\n     * @dev The `beacon` of the proxy is invalid.\n     */\n    error ERC1967InvalidBeacon(address beacon);\n\n    /**\n     * @dev An upgrade function sees `msg.value > 0` that may be lost.\n     */\n    error ERC1967NonPayable();\n\n    /**\n     * @dev Returns the current implementation address.\n     */\n    function getImplementation() internal view returns (address) {\n        return StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value;\n    }\n\n    /**\n     * @dev Stores a new address in the EIP1967 implementation slot.\n     */\n    function _setImplementation(address newImplementation) private {\n        if (newImplementation.code.length == 0) {\n            revert ERC1967InvalidImplementation(newImplementation);\n        }\n        StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n    }\n\n    /**\n     * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n     * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n     * to avoid stuck value in the contract.\n     *\n     * Emits an {IERC1967-Upgraded} event.\n     */\n    function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n        _setImplementation(newImplementation);\n        emit Upgraded(newImplementation);\n\n        if (data.length > 0) {\n            Address.functionDelegateCall(newImplementation, data);\n        } else {\n            _checkNonPayable();\n        }\n    }\n\n    /**\n     * @dev Storage slot with the admin of the contract.\n     * This is the keccak-256 hash of \"eip1967.proxy.admin\" subtracted by 1.\n     */\n    // solhint-disable-next-line private-vars-leading-underscore\n    bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n    /**\n     * @dev Returns the current admin.\n     *\n     * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using\n     * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n     * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\n     */\n    function getAdmin() internal view returns (address) {\n        return StorageSlot.getAddressSlot(ADMIN_SLOT).value;\n    }\n\n    /**\n     * @dev Stores a new address in the EIP1967 admin slot.\n     */\n    function _setAdmin(address newAdmin) private {\n        if (newAdmin == address(0)) {\n            revert ERC1967InvalidAdmin(address(0));\n        }\n        StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n    }\n\n    /**\n     * @dev Changes the admin of the proxy.\n     *\n     * Emits an {IERC1967-AdminChanged} event.\n     */\n    function changeAdmin(address newAdmin) internal {\n        emit AdminChanged(getAdmin(), newAdmin);\n        _setAdmin(newAdmin);\n    }\n\n    /**\n     * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\n     * This is the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n     */\n    // solhint-disable-next-line private-vars-leading-underscore\n    bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\n\n    /**\n     * @dev Returns the current beacon.\n     */\n    function getBeacon() internal view returns (address) {\n        return StorageSlot.getAddressSlot(BEACON_SLOT).value;\n    }\n\n    /**\n     * @dev Stores a new beacon in the EIP1967 beacon slot.\n     */\n    function _setBeacon(address newBeacon) private {\n        if (newBeacon.code.length == 0) {\n            revert ERC1967InvalidBeacon(newBeacon);\n        }\n\n        StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n        address beaconImplementation = IBeacon(newBeacon).implementation();\n        if (beaconImplementation.code.length == 0) {\n            revert ERC1967InvalidImplementation(beaconImplementation);\n        }\n    }\n\n    /**\n     * @dev Change the beacon and trigger a setup call if data is nonempty.\n     * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n     * to avoid stuck value in the contract.\n     *\n     * Emits an {IERC1967-BeaconUpgraded} event.\n     *\n     * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n     * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n     * efficiency.\n     */\n    function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n        _setBeacon(newBeacon);\n        emit BeaconUpgraded(newBeacon);\n\n        if (data.length > 0) {\n            Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n        } else {\n            _checkNonPayable();\n        }\n    }\n\n    /**\n     * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n     * if an upgrade doesn't perform an initialization call.\n     */\n    function _checkNonPayable() private {\n        if (msg.value > 0) {\n            revert ERC1967NonPayable();\n        }\n    }\n}\n"},{"file_path":"lib/openzeppelin-contracts/contracts/proxy/beacon/IBeacon.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\n */\ninterface IBeacon {\n    /**\n     * @dev Must return an address that can be used as a delegate call target.\n     *\n     * {UpgradeableBeacon} will check that this address is a contract.\n     */\n    function implementation() external view returns (address);\n}\n"},{"file_path":"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Interface of the ERC20 standard as defined in the EIP.\n */\ninterface IERC20 {\n    /**\n     * @dev Emitted when `value` tokens are moved from one account (`from`) to\n     * another (`to`).\n     *\n     * Note that `value` may be zero.\n     */\n    event Transfer(address indexed from, address indexed to, uint256 value);\n\n    /**\n     * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n     * a call to {approve}. `value` is the new allowance.\n     */\n    event Approval(address indexed owner, address indexed spender, uint256 value);\n\n    /**\n     * @dev Returns the value of tokens in existence.\n     */\n    function totalSupply() external view returns (uint256);\n\n    /**\n     * @dev Returns the value of tokens owned by `account`.\n     */\n    function balanceOf(address account) external view returns (uint256);\n\n    /**\n     * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transfer(address to, uint256 value) external returns (bool);\n\n    /**\n     * @dev Returns the remaining number of tokens that `spender` will be\n     * allowed to spend on behalf of `owner` through {transferFrom}. This is\n     * zero by default.\n     *\n     * This value changes when {approve} or {transferFrom} are called.\n     */\n    function allowance(address owner, address spender) external view returns (uint256);\n\n    /**\n     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n     * caller's tokens.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * IMPORTANT: Beware that changing an allowance with this method brings the risk\n     * that someone may use both the old and the new allowance by unfortunate\n     * transaction ordering. One possible solution to mitigate this race\n     * condition is to first reduce the spender's allowance to 0 and set the\n     * desired value afterwards:\n     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n     *\n     * Emits an {Approval} event.\n     */\n    function approve(address spender, uint256 value) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from `from` to `to` using the\n     * allowance mechanism. `value` is then deducted from the caller's\n     * allowance.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transferFrom(address from, address to, uint256 value) external returns (bool);\n}\n"},{"file_path":"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\n\n/**\n * @dev Interface for the optional metadata functions from the ERC20 standard.\n */\ninterface IERC20Metadata is IERC20 {\n    /**\n     * @dev Returns the name of the token.\n     */\n    function name() external view returns (string memory);\n\n    /**\n     * @dev Returns the symbol of the token.\n     */\n    function symbol() external view returns (string memory);\n\n    /**\n     * @dev Returns the decimals places of the token.\n     */\n    function decimals() external view returns (uint8);\n}\n"},{"file_path":"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Permit.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\n *\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\n * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't\n * need to send a transaction, and thus is not required to hold Ether at all.\n *\n * ==== Security Considerations\n *\n * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature\n * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be\n * considered as an intention to spend the allowance in any specific way. The second is that because permits have\n * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should\n * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be\n * generally recommended is:\n *\n * ```solidity\n * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {\n *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}\n *     doThing(..., value);\n * }\n *\n * function doThing(..., uint256 value) public {\n *     token.safeTransferFrom(msg.sender, address(this), value);\n *     ...\n * }\n * ```\n *\n * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of\n * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also\n * {SafeERC20-safeTransferFrom}).\n *\n * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so\n * contracts should have entry points that don't rely on permit.\n */\ninterface IERC20Permit {\n    /**\n     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,\n     * given ``owner``'s signed approval.\n     *\n     * IMPORTANT: The same issues {IERC20-approve} has related to transaction\n     * ordering also apply here.\n     *\n     * Emits an {Approval} event.\n     *\n     * Requirements:\n     *\n     * - `spender` cannot be the zero address.\n     * - `deadline` must be a timestamp in the future.\n     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`\n     * over the EIP712-formatted function arguments.\n     * - the signature must use ``owner``'s current nonce (see {nonces}).\n     *\n     * For more information on the signature format, see the\n     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP\n     * section].\n     *\n     * CAUTION: See Security Considerations above.\n     */\n    function permit(\n        address owner,\n        address spender,\n        uint256 value,\n        uint256 deadline,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) external;\n\n    /**\n     * @dev Returns the current nonce for `owner`. This value must be\n     * included whenever a signature is generated for {permit}.\n     *\n     * Every successful call to {permit} increases ``owner``'s nonce by one. This\n     * prevents a signature from being used multiple times.\n     */\n    function nonces(address owner) external view returns (uint256);\n\n    /**\n     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.\n     */\n    // solhint-disable-next-line func-name-mixedcase\n    function DOMAIN_SEPARATOR() external view returns (bytes32);\n}\n"},{"file_path":"lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC20Permit} from \"../extensions/IERC20Permit.sol\";\nimport {Address} from \"../../../utils/Address.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\n * contract returns false). Tokens that return no value (and instead revert or\n * throw on failure) are also supported, non-reverting calls are assumed to be\n * successful.\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\n */\nlibrary SafeERC20 {\n    using Address for address;\n\n    /**\n     * @dev An operation with an ERC20 token failed.\n     */\n    error SafeERC20FailedOperation(address token);\n\n    /**\n     * @dev Indicates a failed `decreaseAllowance` request.\n     */\n    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n    /**\n     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     */\n    function safeTransfer(IERC20 token, address to, uint256 value) internal {\n        _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n    }\n\n    /**\n     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n     */\n    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n        _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n    }\n\n    /**\n     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     */\n    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n        uint256 oldAllowance = token.allowance(address(this), spender);\n        forceApprove(token, spender, oldAllowance + value);\n    }\n\n    /**\n     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n     * value, non-reverting calls are assumed to be successful.\n     */\n    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n        unchecked {\n            uint256 currentAllowance = token.allowance(address(this), spender);\n            if (currentAllowance < requestedDecrease) {\n                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n            }\n            forceApprove(token, spender, currentAllowance - requestedDecrease);\n        }\n    }\n\n    /**\n     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n     * to be set to zero before setting it to a non-zero value, such as USDT.\n     */\n    function forceApprove(IERC20 token, address spender, uint256 value) internal {\n        bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n        if (!_callOptionalReturnBool(token, approvalCall)) {\n            _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n            _callOptionalReturn(token, approvalCall);\n        }\n    }\n\n    /**\n     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n     * on the return value: the return value is optional (but if data is returned, it must not be false).\n     * @param token The token targeted by the call.\n     * @param data The call data (encoded using abi.encode or one of its variants).\n     */\n    function _callOptionalReturn(IERC20 token, bytes memory data) private {\n        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\n        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that\n        // the target address contains contract code and also asserts for success in the low-level call.\n\n        bytes memory returndata = address(token).functionCall(data);\n        if (returndata.length != 0 && !abi.decode(returndata, (bool))) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n     * on the return value: the return value is optional (but if data is returned, it must not be false).\n     * @param token The token targeted by the call.\n     * @param data The call data (encoded using abi.encode or one of its variants).\n     *\n     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.\n     */\n    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\n        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false\n        // and not revert is the subcall reverts.\n\n        (bool success, bytes memory returndata) = address(token).call(data);\n        return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0;\n    }\n}\n"},{"file_path":"lib/openzeppelin-contracts/contracts/utils/Address.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n    /**\n     * @dev The ETH balance of the account is not enough to perform the operation.\n     */\n    error AddressInsufficientBalance(address account);\n\n    /**\n     * @dev There's no code at `target` (it is not a contract).\n     */\n    error AddressEmptyCode(address target);\n\n    /**\n     * @dev A call to an address target failed. The target may have reverted.\n     */\n    error FailedInnerCall();\n\n    /**\n     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\n     * `recipient`, forwarding all available gas and reverting on errors.\n     *\n     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\n     * of certain opcodes, possibly making contracts go over the 2300 gas limit\n     * imposed by `transfer`, making them unable to receive funds via\n     * `transfer`. {sendValue} removes this limitation.\n     *\n     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\n     *\n     * IMPORTANT: because control is transferred to `recipient`, care must be\n     * taken to not create reentrancy vulnerabilities. Consider using\n     * {ReentrancyGuard} or the\n     * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n     */\n    function sendValue(address payable recipient, uint256 amount) internal {\n        if (address(this).balance < amount) {\n            revert AddressInsufficientBalance(address(this));\n        }\n\n        (bool success, ) = recipient.call{value: amount}(\"\");\n        if (!success) {\n            revert FailedInnerCall();\n        }\n    }\n\n    /**\n     * @dev Performs a Solidity function call using a low level `call`. A\n     * plain `call` is an unsafe replacement for a function call: use this\n     * function instead.\n     *\n     * If `target` reverts with a revert reason or custom error, it is bubbled\n     * up by this function (like regular Solidity function calls). However, if\n     * the call reverted with no returned reason, this function reverts with a\n     * {FailedInnerCall} error.\n     *\n     * Returns the raw returned data. To convert to the expected return value,\n     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\n     *\n     * Requirements:\n     *\n     * - `target` must be a contract.\n     * - calling `target` with `data` must not revert.\n     */\n    function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n        return functionCallWithValue(target, data, 0);\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n     * but also transferring `value` wei to `target`.\n     *\n     * Requirements:\n     *\n     * - the calling contract must have an ETH balance of at least `value`.\n     * - the called Solidity function must be `payable`.\n     */\n    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n        if (address(this).balance < value) {\n            revert AddressInsufficientBalance(address(this));\n        }\n        (bool success, bytes memory returndata) = target.call{value: value}(data);\n        return verifyCallResultFromTarget(target, success, returndata);\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n     * but performing a static call.\n     */\n    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n        (bool success, bytes memory returndata) = target.staticcall(data);\n        return verifyCallResultFromTarget(target, success, returndata);\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n     * but performing a delegate call.\n     */\n    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n        (bool success, bytes memory returndata) = target.delegatecall(data);\n        return verifyCallResultFromTarget(target, success, returndata);\n    }\n\n    /**\n     * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n     * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an\n     * unsuccessful call.\n     */\n    function verifyCallResultFromTarget(\n        address target,\n        bool success,\n        bytes memory returndata\n    ) internal view returns (bytes memory) {\n        if (!success) {\n            _revert(returndata);\n        } else {\n            // only check if target is a contract if the call was successful and the return data is empty\n            // otherwise we already know that it was a contract\n            if (returndata.length == 0 && target.code.length == 0) {\n                revert AddressEmptyCode(target);\n            }\n            return returndata;\n        }\n    }\n\n    /**\n     * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n     * revert reason or with a default {FailedInnerCall} error.\n     */\n    function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n        if (!success) {\n            _revert(returndata);\n        } else {\n            return returndata;\n        }\n    }\n\n    /**\n     * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.\n     */\n    function _revert(bytes memory returndata) private pure {\n        // Look for revert reason and bubble it up if present\n        if (returndata.length > 0) {\n            // The easiest way to bubble the revert reason is using memory via assembly\n            /// @solidity memory-safe-assembly\n            assembly {\n                let returndata_size := mload(returndata)\n                revert(add(32, returndata), returndata_size)\n            }\n        } else {\n            revert FailedInnerCall();\n        }\n    }\n}\n"},{"file_path":"lib/openzeppelin-contracts/contracts/utils/StorageSlot.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Library for reading and writing primitive types to specific storage slots.\n *\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\n * This library helps with reading and writing to such slots without the need for inline assembly.\n *\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\n *\n * Example usage to set ERC1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n *\n *     function _getImplementation() internal view returns (address) {\n *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\n *     }\n *\n *     function _setImplementation(address newImplementation) internal {\n *         require(newImplementation.code.length > 0);\n *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n *     }\n * }\n * ```\n */\nlibrary StorageSlot {\n    struct AddressSlot {\n        address value;\n    }\n\n    struct BooleanSlot {\n        bool value;\n    }\n\n    struct Bytes32Slot {\n        bytes32 value;\n    }\n\n    struct Uint256Slot {\n        uint256 value;\n    }\n\n    struct StringSlot {\n        string value;\n    }\n\n    struct BytesSlot {\n        bytes value;\n    }\n\n    /**\n     * @dev Returns an `AddressSlot` with member `value` located at `slot`.\n     */\n    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\n     */\n    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\n     */\n    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\n     */\n    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns an `StringSlot` with member `value` located at `slot`.\n     */\n    function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n     */\n    function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            r.slot := store.slot\n        }\n    }\n\n    /**\n     * @dev Returns an `BytesSlot` with member `value` located at `slot`.\n     */\n    function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n     */\n    function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            r.slot := store.slot\n        }\n    }\n}\n"},{"file_path":"lib/openzeppelin-contracts/contracts/utils/introspection/IERC165.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Interface of the ERC165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\n *\n * Implementers can declare support of contract interfaces, which can then be\n * queried by others ({ERC165Checker}).\n *\n * For an implementation, see {ERC165}.\n */\ninterface IERC165 {\n    /**\n     * @dev Returns true if this contract implements the interface defined by\n     * `interfaceId`. See the corresponding\n     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\n     * to learn more about how these ids are created.\n     *\n     * This function call must use less than 30 000 gas.\n     */\n    function supportsInterface(bytes4 interfaceId) external view returns (bool);\n}\n"},{"file_path":"lib/openzeppelin-contracts/contracts/utils/math/Math.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n    /**\n     * @dev Muldiv operation overflow.\n     */\n    error MathOverflowedMulDiv();\n\n    enum Rounding {\n        Floor, // Toward negative infinity\n        Ceil, // Toward positive infinity\n        Trunc, // Toward zero\n        Expand // Away from zero\n    }\n\n    /**\n     * @dev Returns the addition of two unsigned integers, with an overflow flag.\n     */\n    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {\n        unchecked {\n            uint256 c = a + b;\n            if (c < a) return (false, 0);\n            return (true, c);\n        }\n    }\n\n    /**\n     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.\n     */\n    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {\n        unchecked {\n            if (b > a) return (false, 0);\n            return (true, a - b);\n        }\n    }\n\n    /**\n     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.\n     */\n    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {\n        unchecked {\n            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\n            // benefit is lost if 'b' is also tested.\n            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\n            if (a == 0) return (true, 0);\n            uint256 c = a * b;\n            if (c / a != b) return (false, 0);\n            return (true, c);\n        }\n    }\n\n    /**\n     * @dev Returns the division of two unsigned integers, with a division by zero flag.\n     */\n    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {\n        unchecked {\n            if (b == 0) return (false, 0);\n            return (true, a / b);\n        }\n    }\n\n    /**\n     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.\n     */\n    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {\n        unchecked {\n            if (b == 0) return (false, 0);\n            return (true, a % b);\n        }\n    }\n\n    /**\n     * @dev Returns the largest of two numbers.\n     */\n    function max(uint256 a, uint256 b) internal pure returns (uint256) {\n        return a > b ? a : b;\n    }\n\n    /**\n     * @dev Returns the smallest of two numbers.\n     */\n    function min(uint256 a, uint256 b) internal pure returns (uint256) {\n        return a < b ? a : b;\n    }\n\n    /**\n     * @dev Returns the average of two numbers. The result is rounded towards\n     * zero.\n     */\n    function average(uint256 a, uint256 b) internal pure returns (uint256) {\n        // (a + b) / 2 can overflow.\n        return (a & b) + (a ^ b) / 2;\n    }\n\n    /**\n     * @dev Returns the ceiling of the division of two numbers.\n     *\n     * This differs from standard division with `/` in that it rounds towards infinity instead\n     * of rounding towards zero.\n     */\n    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n        if (b == 0) {\n            // Guarantee the same behavior as in a regular Solidity division.\n            return a / b;\n        }\n\n        // (a + b - 1) / b can overflow on addition, so we distribute.\n        return a == 0 ? 0 : (a - 1) / b + 1;\n    }\n\n    /**\n     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\n     * denominator == 0.\n     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\n     * Uniswap Labs also under MIT license.\n     */\n    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n        unchecked {\n            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\n            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n            // variables such that product = prod1 * 2^256 + prod0.\n            uint256 prod0 = x * y; // Least significant 256 bits of the product\n            uint256 prod1; // Most significant 256 bits of the product\n            assembly {\n                let mm := mulmod(x, y, not(0))\n                prod1 := sub(sub(mm, prod0), lt(mm, prod0))\n            }\n\n            // Handle non-overflow cases, 256 by 256 division.\n            if (prod1 == 0) {\n                // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n                // The surrounding unchecked block does not change this fact.\n                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n                return prod0 / denominator;\n            }\n\n            // Make sure the result is less than 2^256. Also prevents denominator == 0.\n            if (denominator <= prod1) {\n                revert MathOverflowedMulDiv();\n            }\n\n            ///////////////////////////////////////////////\n            // 512 by 256 division.\n            ///////////////////////////////////////////////\n\n            // Make division exact by subtracting the remainder from [prod1 prod0].\n            uint256 remainder;\n            assembly {\n                // Compute remainder using mulmod.\n                remainder := mulmod(x, y, denominator)\n\n                // Subtract 256 bit number from 512 bit number.\n                prod1 := sub(prod1, gt(remainder, prod0))\n                prod0 := sub(prod0, remainder)\n            }\n\n            // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\n            // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\n\n            uint256 twos = denominator & (0 - denominator);\n            assembly {\n                // Divide denominator by twos.\n                denominator := div(denominator, twos)\n\n                // Divide [prod1 prod0] by twos.\n                prod0 := div(prod0, twos)\n\n                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\n                twos := add(div(sub(0, twos), twos), 1)\n            }\n\n            // Shift in bits from prod1 into prod0.\n            prod0 |= prod1 * twos;\n\n            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\n            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\n            // four bits. That is, denominator * inv = 1 mod 2^4.\n            uint256 inverse = (3 * denominator) ^ 2;\n\n            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\n            // works in modular arithmetic, doubling the correct bits in each step.\n            inverse *= 2 - denominator * inverse; // inverse mod 2^8\n            inverse *= 2 - denominator * inverse; // inverse mod 2^16\n            inverse *= 2 - denominator * inverse; // inverse mod 2^32\n            inverse *= 2 - denominator * inverse; // inverse mod 2^64\n            inverse *= 2 - denominator * inverse; // inverse mod 2^128\n            inverse *= 2 - denominator * inverse; // inverse mod 2^256\n\n            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\n            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\n            // is no longer required.\n            result = prod0 * inverse;\n            return result;\n        }\n    }\n\n    /**\n     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\n     */\n    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n        uint256 result = mulDiv(x, y, denominator);\n        if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {\n            result += 1;\n        }\n        return result;\n    }\n\n    /**\n     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\n     * towards zero.\n     *\n     * Inspired by Henry S. Warren, Jr.'s \"Hacker's Delight\" (Chapter 11).\n     */\n    function sqrt(uint256 a) internal pure returns (uint256) {\n        if (a == 0) {\n            return 0;\n        }\n\n        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\n        //\n        // We know that the \"msb\" (most significant bit) of our target number `a` is a power of 2 such that we have\n        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\n        //\n        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\n        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\n        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\n        //\n        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\n        uint256 result = 1 << (log2(a) >> 1);\n\n        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\n        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\n        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\n        // into the expected uint128 result.\n        unchecked {\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            return min(result, a / result);\n        }\n    }\n\n    /**\n     * @notice Calculates sqrt(a), following the selected rounding direction.\n     */\n    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = sqrt(a);\n            return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 2 of a positive value rounded towards zero.\n     * Returns 0 if given 0.\n     */\n    function log2(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >> 128 > 0) {\n                value >>= 128;\n                result += 128;\n            }\n            if (value >> 64 > 0) {\n                value >>= 64;\n                result += 64;\n            }\n            if (value >> 32 > 0) {\n                value >>= 32;\n                result += 32;\n            }\n            if (value >> 16 > 0) {\n                value >>= 16;\n                result += 16;\n            }\n            if (value >> 8 > 0) {\n                value >>= 8;\n                result += 8;\n            }\n            if (value >> 4 > 0) {\n                value >>= 4;\n                result += 4;\n            }\n            if (value >> 2 > 0) {\n                value >>= 2;\n                result += 2;\n            }\n            if (value >> 1 > 0) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log2(value);\n            return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 10 of a positive value rounded towards zero.\n     * Returns 0 if given 0.\n     */\n    function log10(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >= 10 ** 64) {\n                value /= 10 ** 64;\n                result += 64;\n            }\n            if (value >= 10 ** 32) {\n                value /= 10 ** 32;\n                result += 32;\n            }\n            if (value >= 10 ** 16) {\n                value /= 10 ** 16;\n                result += 16;\n            }\n            if (value >= 10 ** 8) {\n                value /= 10 ** 8;\n                result += 8;\n            }\n            if (value >= 10 ** 4) {\n                value /= 10 ** 4;\n                result += 4;\n            }\n            if (value >= 10 ** 2) {\n                value /= 10 ** 2;\n                result += 2;\n            }\n            if (value >= 10 ** 1) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log10(value);\n            return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 256 of a positive value rounded towards zero.\n     * Returns 0 if given 0.\n     *\n     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n     */\n    function log256(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >> 128 > 0) {\n                value >>= 128;\n                result += 16;\n            }\n            if (value >> 64 > 0) {\n                value >>= 64;\n                result += 8;\n            }\n            if (value >> 32 > 0) {\n                value >>= 32;\n                result += 4;\n            }\n            if (value >> 16 > 0) {\n                value >>= 16;\n                result += 2;\n            }\n            if (value >> 8 > 0) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log256(value);\n            return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\n     */\n    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\n        return uint8(rounding) % 2 == 1;\n    }\n}\n"}],"certified":false,"conflicting_implementations":null,"abi":[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessControlBadConfirmation","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"neededRole","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressDenied","type":"error"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"implementation","type":"address"}],"name":"ERC1967InvalidImplementation","type":"error"},{"inputs":[],"name":"ERC1967NonPayable","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"assets","type":"uint256"},{"internalType":"uint256","name":"max","type":"uint256"}],"name":"ERC4626ExceededMaxDeposit","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"uint256","name":"max","type":"uint256"}],"name":"ERC4626ExceededMaxMint","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"uint256","name":"max","type":"uint256"}],"name":"ERC4626ExceededMaxRedeem","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"assets","type":"uint256"},{"internalType":"uint256","name":"max","type":"uint256"}],"name":"ERC4626ExceededMaxWithdraw","type":"error"},{"inputs":[{"internalType":"uint256","name":"queueId","type":"uint256"}],"name":"EmptyQueueItem","type":"error"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[],"name":"InstantWithdrawalDisabled","type":"error"},{"inputs":[],"name":"InvalidAmount","type":"error"},{"inputs":[],"name":"InvalidInitialization","type":"error"},{"inputs":[{"internalType":"uint256","name":"queueId","type":"uint256"}],"name":"InvalidQueueId","type":"error"},{"inputs":[],"name":"MathOverflowedMulDiv","type":"error"},{"inputs":[],"name":"NoPendingRequest","type":"error"},{"inputs":[],"name":"NotInitializing","type":"error"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"availableAt","type":"uint256"}],"name":"OngoingPendingRequest","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[],"name":"StillVesting","type":"error"},{"inputs":[],"name":"UUPSUnauthorizedCallContext","type":"error"},{"inputs":[{"internalType":"bytes32","name":"slot","type":"bytes32"}],"name":"UUPSUnsupportedProxiableUUID","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"inputs":[],"name":"ZeroAssetsOut","type":"error"},{"inputs":[],"name":"ZeroUnstakeAmount","type":"error"},{"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":false,"internalType":"uint256","name":"surplus","type":"uint256"},{"indexed":false,"internalType":"address","name":"to","type":"address"}],"name":"AssetReconciled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newAvailable","type":"uint256"}],"name":"AvailableForUnstakeDecreased","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newAvailable","type":"uint256"}],"name":"AvailableForUnstakeIncreased","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldCooldown","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newCooldown","type":"uint256"}],"name":"CooldownPeriodUpdated","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":"uint64","name":"version","type":"uint64"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newAvailable","type":"uint256"}],"name":"LiquidityDeployed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newAvailable","type":"uint256"}],"name":"LiquidityRecalled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"vestingPeriodSeconds","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newTotalAssets","type":"uint256"}],"name":"RewardsAdded","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"UnstakeClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"queueId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"UnstakeEnqueued","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"queueId","type":"uint256"}],"name":"UnstakeRequestCancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","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"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REWARDER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UPGRADE_INTERFACE_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"queueId","type":"uint256"}],"name":"adminCancelUnstake","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":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"asset","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"availableForUnstake","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":"cancelUnstakeRequest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"convertToAssets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"convertToAssetsWithLoss","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"name":"convertToShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"name":"convertToSharesWithLoss","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deploy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"deposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getCooldownPeriod","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":"address","name":"user","type":"address"}],"name":"getUnstakeRequest","outputs":[{"internalType":"uint256","name":"requestTime","type":"uint256"},{"internalType":"uint256","name":"pendingAssets","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getUnvestedAmount","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":"_asset","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_admin","type":"address"},{"internalType":"uint256","name":"_cooldownPeriod","type":"uint256"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"maxDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"maxMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"maxRedeem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"maxWithdraw","outputs":[{"internalType":"uint256","name":"","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":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"name":"previewDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"previewMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"previewRedeem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"name":"previewWithdraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxIterations","type":"uint256"}],"name":"processUnstakeQueue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"recall","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"reconcileAssetBalance","outputs":[],"stateMutability":"nonpayable","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":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"callerConfirmation","type":"address"}],"name":"renounceRole","outputs":[],"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":"uint256","name":"_cooldownPeriod","type":"uint256"}],"name":"setCooldownPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"loss","type":"uint256"}],"name":"setUnrealizedLoss","outputs":[],"stateMutability":"nonpayable","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":"totalAssets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAssetsWithLoss","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalQueuedAmount","outputs":[{"internalType":"uint256","name":"","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":"value","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":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"vestingPeriodSeconds","type":"uint256"}],"name":"transferInRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}],"is_changed_bytecode":false,"is_partially_verified":false,"constructor_args":null}