{"file_path":"src/UsdcDepositManager.sol","creation_status":"success","source_code":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.27;\n\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {UUPSUpgradeable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport {AccessControlUpgradeable} from \"@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol\";\nimport {ReentrancyGuardUpgradeable} from \"@openzeppelin/contracts-upgradeable/utils/ReentrancyGuardUpgradeable.sol\";\nimport {Math} from \"@openzeppelin/contracts/utils/math/Math.sol\";\nimport {SignedMath} from \"@openzeppelin/contracts/utils/math/SignedMath.sol\";\n\nimport {IERC20, SafeERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPool} from \"@src/interfaces/external/IPool.sol\";\nimport {IAggregatorV3} from \"@src/interfaces/external/IAggregatorV3.sol\";\nimport {IERC20MintableBurnable} from \"@src/interfaces/external/IERC20MintableBurnable.sol\";\nimport {IERC20PermitMinimal} from \"@src/interfaces/external/IERC20PermitMinimal.sol\";\nimport {IDepositManager} from \"@src/interfaces/internal/IDepositManager.sol\";\nimport {IPyth} from \"@src/interfaces/external/IPyth.sol\";\n\nimport {PythUtils} from \"@src/libraries/PythUtils.sol\";\n\nimport {EXCHANGE_RATE_SCALE, ONE_HUNDRED_PERCENT_IN_BP, MIN_COOLDOWN_BLOCKS, MAX_COOLDOWN_BLOCKS, MIN_PROTOCOL_FEE_BPS, MAX_PROTOCOL_FEE_BPS} from \"@src/constants/NumericConstants.sol\";\nimport {OPERATOR_ROLE, UPGRADER_ROLE} from \"@src/constants/RoleConstants.sol\";\n\n/**\n * @title UsdcDepositManager\n * @notice Manages deposits, withdrawals, and exchange between deposit tokens and JPY tokens\n */\ncontract UsdcDepositManager is\n    IDepositManager,\n    Initializable,\n    UUPSUpgradeable,\n    AccessControlUpgradeable,\n    ReentrancyGuardUpgradeable\n{\n    using SafeERC20 for IERC20;\n\n    /// @notice The cooldown period in blocks that must pass before a withdrawal can be executed\n    uint256 public cooldownBlocks;\n\n    /// @notice The protocol fee in basis points\n    uint256 public protocolFeeBps;\n\n    /// @notice The total amount of fees collected in form of deposit token\n    uint256 public totalFeeAmount;\n\n    /// @notice The Aave Pool contract used for depositing and withdrawing tokens\n    IPool public aavePool;\n\n    // @notice The Pyth contract used for fetching the price feed\n    IPyth public pyth;\n    // @notice The ID of the USD/JPY price feed from Pyth\n    bytes32 public pythUsdJpyPriceId;\n    // @notice The period (in seconds) that a price feed is considered valid since its publish time\n    uint256 public pythValidTimePeriod;\n\n    // @notice The token used for deposits (e.g., USDC)\n    IERC20 public depositToken;\n\n    /// @notice The Aave wrapped version of the deposit token (aToken)\n    IERC20 public aaveWrappedDepositToken;\n\n    /// @notice The JPY token contract\n    IERC20MintableBurnable public jpyToken;\n\n    /// @notice The total amount of deposit tokens currently managed by this contract\n    uint256 public totalDepositToken;\n\n    /// @notice The total amount of JPY tokens currently minted by this contract\n    uint256 public totalMintedJpy;\n\n    /// @notice Mapping of token addresses to their corresponding PriceFeedInfo\n    mapping(address => PriceFeedInfo) public tokenUsdPriceFeeds;\n\n    /// @notice Mapping of user addresses to their withdrawal requests\n    mapping(address => WithdrawalRequest) public withdrawalRequests;\n\n    /// @custom:oz-upgrades-unsafe-allow constructor\n    constructor() {\n        _disableInitializers();\n    }\n\n    /**\n     * @notice Initializes the DepositManager contract\n     * @param defaultAdmin Address of the default admin\n     * @param operator Address with operator role\n     * @param aavePoolAddress Address of the Aave pool\n     * @param pythAddress // Address of the Pyth price feed\n     * @param usdJpyPriceId // ID of the USD/JPY price feed from Pyth\n     * @param validTimePeriod // Period (in seconds) that a price feed is considered valid since its publish time\n     * @param depositTokenAddress Address of the deposit token\n     * @param depositTokenUsdPriceFeedAddress Address of the deposit token USD price feed(Using Chainlink Price Feed)\n     * @param jpyTokenAddress Address of the JPY token\n     * @param initialCooldownBlocks Initial cooldown period in blocks\n     */\n    function initialize(\n        address defaultAdmin,\n        address operator,\n        address aavePoolAddress,\n        address pythAddress,\n        bytes32 usdJpyPriceId,\n        uint256 validTimePeriod,\n        address depositTokenAddress,\n        address depositTokenUsdPriceFeedAddress,\n        address jpyTokenAddress,\n        uint256 initialCooldownBlocks\n    ) public initializer {\n        __AccessControl_init();\n        __UUPSUpgradeable_init();\n        __ReentrancyGuard_init();\n\n        _grantRole(DEFAULT_ADMIN_ROLE, defaultAdmin);\n        _grantRole(OPERATOR_ROLE, operator);\n\n        _setCooldownBlocks(initialCooldownBlocks);\n        _setPriceFeed(depositTokenAddress, depositTokenUsdPriceFeedAddress);\n        _setPythValidTimePeriod(validTimePeriod);\n\n        // these variables must be immutable\n        aavePool = IPool(aavePoolAddress);\n\n        pyth = IPyth(pythAddress);\n        pythUsdJpyPriceId = usdJpyPriceId;\n\n        depositToken = IERC20(depositTokenAddress);\n        jpyToken = IERC20MintableBurnable(jpyTokenAddress);\n        aaveWrappedDepositToken = IERC20(\n            IPool(aavePoolAddress)\n                .getReserveData(depositTokenAddress)\n                .aTokenAddress\n        );\n    }\n\n    /**\n     * @notice Get the current profit generated from Aave deposits\n     * @dev This function calculates the profit by comparing the current balance of Aave wrapped tokens\n     *      with the total amount of deposit tokens. The profit is generated because the Aave wrapped token\n     *      (aToken) is a yield-bearing token, meaning its balance increases over time as it accrues interest.\n     *\n     * @return uint256 The current profit in terms of the deposit token\n     *\n     * @notice The profit is calculated as follows:\n     * 1. The balance of aTokens increases automatically as interest accrues.\n     * 2. The `totalDepositToken` remains constant unless new deposits or withdrawals occur.\n     * 3. The difference between the current aToken balance and `totalDepositToken` represents the profit.\n     *\n     * @notice This profit calculation assumes:\n     * - The aToken/deposit token exchange rate is 1:1 (which is true for Aave v3).\n     */\n    function getCurrentAaveProfit() public view returns (uint256) {\n        return\n            aaveWrappedDepositToken.balanceOf(address(this)) -\n            totalDepositToken;\n    }\n\n    /**\n     * @notice Get the USD rate for a given token\n     * @dev This function retrieves the latest price data from a Chainlink price feed for the specified token\n     * @param token The address of the token for which to get the USD rate\n     * @return uint256 The current price of the token in USD, scaled by the price feed's decimal places\n     * @return uint8 The number of decimal places used in the price feed\n     *\n     * @notice Important considerations:\n     * - This function assumes that the price feed returns the token's price in USD\n     * - The returned price is a fixed-point number; use the returned decimals to interpret it correctly\n     * - This function reverts if no price feed is set for the token or if the price feed returns an invalid price\n     *\n     * @notice Example:\n     * If the function returns (100000000, 8) for USDC, it means 1 USDC = 1.00 USD\n     */\n    function getTokenUsdRate(\n        address token\n    ) public view returns (uint256, uint8) {\n        PriceFeedInfo memory priceFeedInfo = tokenUsdPriceFeeds[token];\n        if (address(priceFeedInfo.priceFeed) == address(0)) {\n            revert PriceFeedNotSet(token);\n        }\n\n        (, int256 price, , , ) = priceFeedInfo.priceFeed.latestRoundData();\n\n        if (price <= 0) {\n            revert InvalidPrice(token);\n        }\n\n        return (uint256(price), priceFeedInfo.decimals);\n    }\n\n    /**\n     * @notice Get the USD/JPY rate from Pyth price feed\n     * @dev This function retrieves the latest price data from a Pyth price feed for the pair USD/JPY\n     * @return uint256 The current price of USD in JPY, scaled by the price feed's decimal places\n     * @return uint8 The number of decimal places used in the price feed\n     *\n     * @notice Example:\n     * If the function returns (100000, 3), it means 1 USD = 100.00 JPY\n     */\n    function getUsdJpyRate() public view returns (uint256, uint8) {\n        IPyth.Price memory usdJpyPrice = pyth.getPriceNoOlderThan(\n            pythUsdJpyPriceId,\n            pythValidTimePeriod\n        );\n\n        uint8 priceDecimals = uint8(SignedMath.abs(usdJpyPrice.expo));\n        uint256 scaledUsdJpyPrice = PythUtils.convertToUint(\n            usdJpyPrice.price,\n            usdJpyPrice.expo,\n            priceDecimals\n        );\n\n        return (scaledUsdJpyPrice, priceDecimals);\n    }\n\n    /**\n     * @notice Calculate the current deposit rate\n     * @dev This function calculates how many deposit tokens (e.g., USDC) you get for 1 JPY\n     * @return The deposit rate as a fixed-point number with 8 decimal places\n     * For example, if 1 JPY = 0.007 USDC, this function will return 700000 (0.00700000)\n     */\n    function getDepositRate() public view returns (uint256) {\n        // Use 1e6 as the base amount (assuming 6 decimal places for the deposit token)\n        uint256 depositBaseAmount = 1e6;\n\n        // Apply the protocol fee to the deposit amount\n        (uint256 amountAfterFee, ) = _applyProtocolFee(depositBaseAmount);\n\n        // Convert the amount after fee to JPY\n        uint256 jpyAmount = _convertToJpy(amountAfterFee);\n\n        // return the rate with 8 decimal places\n        return\n            Math.mulDiv(\n                depositBaseAmount,\n                EXCHANGE_RATE_SCALE,\n                jpyAmount,\n                Math.Rounding.Floor\n            );\n    }\n\n    /**\n     * @notice Get the average exchange rate between deposit tokens and JPY tokens\n     * @dev Calculates the rate based on total deposit tokens and total minted JPY\n     * @return The average exchange rate as a fixed-point number with 8 decimal places\n     *\n     * @notice Important considerations:\n     * - Assumes the deposit token is pegged to USD (e.g., USDC)\n     * - This rate represents an average over all deposits and mints, not the current market rate\n     * - This rate may differ from the current market rate or the rate returned by getTokenUsdRate()\n     * - The returned value is scaled by 1e8 for precision (8 decimal places)\n     *\n     * @notice Example:\n     * If the function returns 73000000, it means the average rate is 1 JPY = 0.00730000 USD\n     * (or approximately 136.99 JPY = 1 USD)\n     */\n    function getDepositTokenToJpyAverageRate() public view returns (uint256) {\n        if (totalMintedJpy == 0) {\n            return 0;\n        }\n        return\n            Math.mulDiv(\n                totalDepositToken,\n                EXCHANGE_RATE_SCALE,\n                totalMintedJpy,\n                Math.Rounding.Floor\n            );\n    }\n\n    /**\n     * @inheritdoc IDepositManager\n     */\n    function deposit(\n        address to,\n        uint256 depositAmount\n    ) external override nonReentrant {\n        _deposit(to, depositAmount);\n    }\n\n    /**\n     * @inheritdoc IDepositManager\n     */\n    function depositWithPermit(\n        address to,\n        uint256 depositAmount,\n        uint256 deadline,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) external override nonReentrant {\n        address sender = _msgSender();\n\n        _trustlessPermit(\n            address(depositToken),\n            sender,\n            address(this),\n            depositAmount,\n            deadline,\n            v,\n            r,\n            s\n        );\n\n        _deposit(to, depositAmount);\n    }\n\n    /**\n     * @inheritdoc IDepositManager\n     */\n    function requestWithdrawal(\n        uint256 jpyAmount\n    ) external override nonReentrant {\n        address sender = _msgSender();\n\n        if (withdrawalRequests[sender].jpyAmount > 0) {\n            revert WithdrawalRequestPending();\n        }\n\n        _requestWithdrawal(sender, jpyAmount);\n    }\n\n    /**\n     * @inheritdoc IDepositManager\n     */\n    function requestWithdrawalWithPermit(\n        uint256 jpyAmount,\n        uint256 deadline,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) external override nonReentrant {\n        address sender = _msgSender();\n\n        if (withdrawalRequests[sender].jpyAmount > 0) {\n            revert WithdrawalRequestPending();\n        }\n\n        _trustlessPermit(\n            address(jpyToken),\n            sender,\n            address(this),\n            jpyAmount,\n            deadline,\n            v,\n            r,\n            s\n        );\n\n        _requestWithdrawal(sender, jpyAmount);\n    }\n\n    /**\n     * @inheritdoc IDepositManager\n     */\n    function executeWithdrawal() external override nonReentrant {\n        address sender = _msgSender();\n\n        WithdrawalRequest memory request = withdrawalRequests[sender];\n\n        if (request.tokenAmount == 0) {\n            revert NoWithdrawalRequest();\n        }\n\n        if (block.number < request.requestBlock + cooldownBlocks) {\n            revert CooldownPeriodNotMet();\n        }\n\n        uint256 amount = request.tokenAmount;\n        delete withdrawalRequests[sender];\n\n        depositToken.safeTransfer(sender, amount);\n\n        emit WithdrawalExecuted(sender, amount);\n    }\n\n    /**\n     * @inheritdoc IDepositManager\n     */\n    function setPriceFeed(\n        address token,\n        address priceFeedAddress\n    ) external override onlyRole(OPERATOR_ROLE) {\n        _setPriceFeed(token, priceFeedAddress);\n    }\n\n    /**\n     * @inheritdoc IDepositManager\n     */\n    function setPythValidTimePeriod(\n        uint256 newPythValidTimePeriod\n    ) external override onlyRole(OPERATOR_ROLE) {\n        _setPythValidTimePeriod(newPythValidTimePeriod);\n    }\n\n    /**\n     * @inheritdoc IDepositManager\n     */\n    function setCooldownBlocks(\n        uint256 newCooldownBlocks\n    ) external override onlyRole(OPERATOR_ROLE) {\n        _setCooldownBlocks(newCooldownBlocks);\n    }\n\n    /**\n     * @inheritdoc IDepositManager\n     */\n    function setProtocolFeeBps(\n        uint256 newFeeBps\n    ) external override onlyRole(OPERATOR_ROLE) {\n        _setProtocolFeeBps(newFeeBps);\n    }\n\n    /**\n     * @inheritdoc IDepositManager\n     */\n    function withdrawFeeAmount() external override onlyRole(OPERATOR_ROLE) {\n        if (totalFeeAmount == 0) {\n            return;\n        }\n\n        address to = _msgSender();\n\n        depositToken.safeTransfer(to, totalFeeAmount);\n\n        emit FeeWithdrawn(to, totalFeeAmount);\n\n        totalFeeAmount = 0;\n    }\n\n    /**\n     * @inheritdoc IDepositManager\n     */\n    function withdrawAaveProfit() external onlyRole(OPERATOR_ROLE) {\n        uint256 profit = getCurrentAaveProfit();\n        aavePool.withdraw(address(depositToken), profit, _msgSender());\n        emit AaveProfitWithdrawn(profit);\n    }\n\n    // Internal administrative functions\n    function _setPriceFeed(address token, address priceFeedAddress) internal {\n        if (token == address(0)) {\n            revert ZeroTokenAddress();\n        }\n\n        if (priceFeedAddress == address(0)) {\n            revert ZeroPriceFeedAddress();\n        }\n\n        IAggregatorV3 priceFeed = IAggregatorV3(priceFeedAddress);\n        uint8 decimals = priceFeed.decimals();\n\n        if (decimals == 0) {\n            revert InvalidPriceFeedDecimals(decimals);\n        }\n\n        tokenUsdPriceFeeds[token] = PriceFeedInfo(priceFeed, decimals);\n\n        emit PriceFeedUpdated(token, priceFeedAddress, decimals);\n    }\n\n    function _setPythValidTimePeriod(uint256 newPythValidTimePeriod) internal {\n        if (newPythValidTimePeriod == 0) {\n            revert ZeroPythValidTimePeriod();\n        }\n        pythValidTimePeriod = newPythValidTimePeriod;\n        emit PythValidTimePeriodUpdated(newPythValidTimePeriod);\n    }\n\n    function _setCooldownBlocks(uint256 newCooldownBlocks) internal {\n        if (\n            newCooldownBlocks < MIN_COOLDOWN_BLOCKS ||\n            newCooldownBlocks > MAX_COOLDOWN_BLOCKS\n        ) {\n            revert CooldownBlocksOutOfRange(\n                newCooldownBlocks,\n                MIN_COOLDOWN_BLOCKS,\n                MAX_COOLDOWN_BLOCKS\n            );\n        }\n        cooldownBlocks = newCooldownBlocks;\n        emit CooldownBlocksUpdated(newCooldownBlocks);\n    }\n\n    function _setProtocolFeeBps(uint256 newFeeBps) internal {\n        if (\n            newFeeBps < MIN_PROTOCOL_FEE_BPS || newFeeBps > MAX_PROTOCOL_FEE_BPS\n        ) {\n            revert ProtocolFeeOutOfRange(\n                newFeeBps,\n                MIN_PROTOCOL_FEE_BPS,\n                MAX_PROTOCOL_FEE_BPS\n            );\n        }\n        protocolFeeBps = newFeeBps;\n        emit ProtocolFeeUpdated(newFeeBps);\n    }\n\n    /**\n     * @dev Handles the deposit process\n     * @param recipient Address to receive minted JPY tokens\n     * @param depositAmount Amount of deposit tokens to be deposited\n     * @notice Transfers deposit tokens, applies fee, supplies to Aave, updates totalDepositToken, totalMintedJpy, and\n     * totalFeeAmount and mints JPY tokens\n     */\n    function _deposit(address recipient, uint256 depositAmount) internal {\n        address sender = _msgSender();\n        address proxy = address(this);\n\n        depositToken.safeTransferFrom(sender, proxy, depositAmount);\n\n        (uint256 amountAfterFee, uint256 feeAmount) = _applyProtocolFee(\n            depositAmount\n        );\n\n        depositToken.safeIncreaseAllowance(address(aavePool), amountAfterFee);\n        aavePool.supply(address(depositToken), amountAfterFee, proxy, 0);\n\n        uint256 jpyAmount = _convertToJpy(amountAfterFee);\n\n        totalFeeAmount += feeAmount;\n        totalDepositToken += amountAfterFee;\n        totalMintedJpy += jpyAmount;\n\n        jpyToken.mint(recipient, jpyAmount);\n\n        emit Deposited(recipient, depositAmount, jpyAmount);\n    }\n\n    /**\n     * @dev Handles the withdrawal request process\n     * @param recipient Address requesting withdrawal\n     * @param jpyAmount Amount of JPY tokens to withdraw\n     * @notice Burns JPY tokens, calculates average JPY/deposit token rate, converts JPY to deposit token amount, and\n     * requests withdrawal\n     */\n    function _requestWithdrawal(address recipient, uint256 jpyAmount) internal {\n        jpyToken.burnFrom(recipient, jpyAmount);\n\n        uint256 currentRate = getJpyToDepositTokenAverageRate();\n\n        // Convert JPY to deposit token amount\n\n        uint256 tokenAmount = Math.mulDiv(\n            jpyAmount,\n            EXCHANGE_RATE_SCALE,\n            currentRate,\n            Math.Rounding.Floor\n        );\n        withdrawalRequests[recipient] = WithdrawalRequest({\n            jpyAmount: jpyAmount,\n            tokenAmount: tokenAmount,\n            requestBlock: block.number\n        });\n\n        totalMintedJpy -= jpyAmount;\n        totalDepositToken -= tokenAmount;\n\n        // withdraw from Aave, and store the deposit token in contract\n        aavePool.withdraw(address(depositToken), tokenAmount, address(this));\n\n        emit WithdrawalRequested(recipient, jpyAmount, tokenAmount);\n    }\n\n    /**\n     * @notice Get the average JPY to deposit token exchange rate\n     * @dev Calculates the average rate based on total minted JPY and total deposit tokens\n     * @return uint256 The average JPY/deposit token rate as a fixed-point number with 8 decimal places\n     *\n     * @notice Important considerations:\n     * - This rate represents an average over all mints and deposits, not necessarily the current market rate\n     * - The returned value is scaled by EXCHANGE_RATE_SCALE for precision (8 decimal places)\n     * - This rate is the inverse of the deposit token to JPY rate (as returned by getDepositTokenToJpyAverageRate)\n     *\n     * @notice Example:\n     * If the function returns 13699000000, it means the average rate is 1 deposit token = 136.99 JPY\n     */\n    function getJpyToDepositTokenAverageRate() public view returns (uint256) {\n        if (totalDepositToken == 0) {\n            return 0;\n        }\n        return\n            Math.mulDiv(\n                totalMintedJpy,\n                EXCHANGE_RATE_SCALE,\n                totalDepositToken,\n                Math.Rounding.Ceil\n            );\n    }\n\n    /**\n     * @notice Apply protocol fee to an amount\n     * @param amount The amount to apply the fee to\n     * @return The amount after applying the fee and the fee amount\n     */\n    function _applyProtocolFee(\n        uint256 amount\n    ) internal view returns (uint256, uint256) {\n        uint256 feeAmount = Math.mulDiv(\n            amount,\n            protocolFeeBps,\n            ONE_HUNDRED_PERCENT_IN_BP,\n            Math.Rounding.Ceil\n        );\n        uint256 amountAfterFee = amount - feeAmount;\n        return (amountAfterFee, feeAmount);\n    }\n\n    /**\n     * @notice Convert an amount from deposit token to JPY\n     * @param amount The amount in deposit token to convert. It is the 6 decimals amount, same as jpyToken.\n     * @return The equivalent amount in JPY\n     */\n    function _convertToJpy(uint256 amount) internal view returns (uint256) {\n        (\n            uint256 depositTokenUsdRate,\n            uint8 depositTokenRateDecimals\n        ) = getTokenUsdRate(address(depositToken));\n        (uint256 usdJpyRate, uint8 usdRateDecimals) = getUsdJpyRate();\n\n        // Convert deposit token to USD.\n        uint256 usdAmount = Math.mulDiv(\n            amount,\n            depositTokenUsdRate,\n            10 ** depositTokenRateDecimals,\n            Math.Rounding.Floor\n        );\n\n        // Then convert USD to JPY\n        return\n            Math.mulDiv(\n                usdAmount,\n                usdJpyRate,\n                10 ** usdRateDecimals,\n                Math.Rounding.Floor\n            );\n    }\n\n    /**\n     * @notice Executes a permit operation or checks for sufficient allowance\n     * @dev This function implements a mitigation for the EIP-2612 frontrunning vulnerability\n     * @param token The address of the token contract\n     * @param owner The address of the token owner\n     * @param spender The address of the spender\n     * @param value The amount of tokens to be approved\n     * @param deadline The deadline for the permit\n     * @param v The v component of the signature\n     * @param r The r component of the signature\n     * @param s The s component of the signature\n     * @notice This implementation addresses the vulnerability described in:\n     * https://www.trust-security.xyz/post/permission-denied\n     */\n    function _trustlessPermit(\n        address token,\n        address owner,\n        address spender,\n        uint256 value,\n        uint256 deadline,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) internal {\n        // Try permit() before allowance check to advance nonce if possible\n        try\n            IERC20PermitMinimal(token).permit(\n                owner,\n                spender,\n                value,\n                deadline,\n                v,\n                r,\n                s\n            )\n        {\n            return;\n        } catch {\n            // Permit potentially got frontran. Continue anyways if allowance is sufficient.\n            if (IERC20(token).allowance(owner, spender) >= value) {\n                return;\n            }\n        }\n        revert(\"Permit failure\");\n    }\n\n    /*\n     * @notice Authorize the upgrade of the implementation contract\n     * @dev Only callable by UPGRADER_ROLE\n     * @param newImplementation The address of the new implementation contract\n     */\n    function _authorizeUpgrade(\n        address newImplementation\n    ) internal override onlyRole(UPGRADER_ROLE) {}\n}\n","deployed_bytecode":"0x60806040526004361015610011575f80fd5b5f3560e01c806301668dbc14611d2757806301ffc9a714611c6857806303b0f9a314611c265780630818a5b314611bf05780630baa9ed614611bb6578063105075f814611b6257806311bbfb5914611b2757806312a62cff14611a9c57806314626dc614611a5a57806319c1f06814611a1f578063248a9ca3146119b7578063254e46de146118aa57806327b380f31461182b5780632f2ff15d146117b057806335659fb81461177557806336568abe146116ed57806347e7ef24146116a25780634d7709591461166a5780634f1ef286146112b157806352d1902d146111f45780635eadce70146111a3578063628a9c96146111205780636e199d57146110e8578063707451691461109757806376e112861461104c5780638f5f6c2a14610fb857806391d1485414610f245780639652171614610ee95780639ee679e814610e47578063a03e4bc314610df6578063a217fddf14610dbe578063ad3cb1cc14610cf1578063b790634e14610c0b578063c0417e5814610b64578063c89039c514610b13578063d4df964214610ad8578063d547741f14610a58578063e4f0929c14610418578063f8899328146103dd578063f98d06f01461038c578063fa45aa001461022b5763fac9b99c146101e7575f80fd5b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102275761021d6122b7565b610225612253565b005b5f80fd5b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610227576102616125d6565b335f52600d60205260405f2060405161027981611da5565b815481526001820154604060026020840194838652015492019182521561036457515f546102a691612246565b431061033c5751335f52600d6020525f60026040822082815582600182015501556102ea813373ffffffffffffffffffffffffffffffffffffffff60075416613550565b6040519081527f1131c2afe9ce72c59360d085f89bfdd088fcf4a3c93eec6cc5ff42f5d6b0801f60203392a260017f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f0055005b7f5ec622ea000000000000000000000000000000000000000000000000000000005f5260045ffd5b7fa07ef183000000000000000000000000000000000000000000000000000000005f5260045ffd5b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022757602073ffffffffffffffffffffffffffffffffffffffff60045416604051908152f35b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610227576020600654604051908152f35b34610227576101407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022757610450611d5f565b610458611d82565b6044359073ffffffffffffffffffffffffffffffffffffffff82168092036102275760643573ffffffffffffffffffffffffffffffffffffffff81168091036102275760c43573ffffffffffffffffffffffffffffffffffffffff8116918282036102275760e4359173ffffffffffffffffffffffffffffffffffffffff8316830361022757610104359273ffffffffffffffffffffffffffffffffffffffff8416809403610227577ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00549160ff8360401c16159867ffffffffffffffff841680159081610a50575b6001149081610a46575b159081610a3d575b50610a15576101e0976105ff61060592868d60017fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000006106179a16177ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00556109c0575b506105be613702565b6105c6613702565b6105ce613702565b6105d6613702565b60017f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f0055612ced565b50612dcf565b5061061261012435612c6f565b6130ed565b61062260a4356123c5565b847fffffffffffffffffffffffff000000000000000000000000000000000000000060035416176003557fffffffffffffffffffffffff00000000000000000000000000000000000000006004541617600455608435600555817fffffffffffffffffffffffff000000000000000000000000000000000000000060075416176007557fffffffffffffffffffffffff000000000000000000000000000000000000000060095416176009556024604051809481937f35ea6a7500000000000000000000000000000000000000000000000000000000835260048301525afa9081156109b5575f916107ee575b5061010073ffffffffffffffffffffffffffffffffffffffff910151167fffffffffffffffffffffffff0000000000000000000000000000000000000000600854161760085561075b57005b7fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054167ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00557fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602060405160018152a1005b8091506101e03d81116109ae575b6108068183611ddd565b8101036101e0811261022757604051906101e082019082821067ffffffffffffffff8311176109815760209160405212610227576040516020810181811067ffffffffffffffff8211176109815760405282518152815261086960208301612208565b602082015261087a60408301612208565b604082015261088b60608301612208565b606082015261089c60808301612208565b60808201526108ad60a08301612208565b60a082015260c082015164ffffffffff811681036102275760c082015260e08201519061ffff82168203610227576109746101c073ffffffffffffffffffffffffffffffffffffffff946101009460e085015261090b858201612225565b8585015261091c6101208201612225565b61012085015261092f6101408201612225565b6101408501526109426101608201612225565b6101608501526109556101808201612208565b6101808501526109686101a08201612208565b6101a085015201612208565b6101c0820152915061070f565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b503d6107fc565b6040513d5f823e3d90fd5b7fffffffffffffffffffffffffffffffffffffffffffffff0000000000000000001668010000000000000001177ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00558d6105b5565b7ff92ee8a9000000000000000000000000000000000000000000000000000000005f5260045ffd5b9050158b610553565b303b15915061054b565b8b9150610541565b346102275760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022757610225600435610a95611d82565b90610ad3610ace825f527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b626800602052600160405f20015490565b61233f565b612fe5565b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610227576020600b54604051908152f35b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022757602073ffffffffffffffffffffffffffffffffffffffff60075416604051908152f35b346102275760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022757600435610b9e6122b7565b60648111610bd7576020817fd10d75876659a287a59a6ccfa2e3fff42f84d94b542837acd30bc184d562de4092600155604051908152a1005b7f35d85a67000000000000000000000000000000000000000000000000000000005f526004525f602452606460445260645ffd5b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022757600154612710610c4d8183620f42406135e9565b91620f424009610cb8575b620f424003620f42408111610c8b57610c83610c75602092613504565b6305f5e100620f42406135e9565b604051908152f35b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b6001810180911115610c58577f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610227576040805190610d2e8183611ddd565b600582527f352e302e30000000000000000000000000000000000000000000000000000000602083015280518092602082528051908160208401525f5b828110610da75750505f828201840152601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168101030190f35b602082820181015187830187015286945001610d6b565b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102275760206040515f8152f35b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022757602073ffffffffffffffffffffffffffffffffffffffff60035416604051908152f35b346102275760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022757610e7e6125d6565b335f52600d60205260405f2054610ec157610e9b600435336132f6565b60017f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f0055005b7f73ae972d000000000000000000000000000000000000000000000000000000005f5260045ffd5b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610227576020600254604051908152f35b346102275760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022757610f5b611d82565b6004355f527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b62680060205273ffffffffffffffffffffffffffffffffffffffff60405f2091165f52602052602060ff60405f2054166040519015158152f35b346102275760a07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102275760443560043560ff8216820361022757610fff6125d6565b335f52600d60205260405f2054610ec157611046610e9b9273ffffffffffffffffffffffffffffffffffffffff60095416608435916064359185602435913090339061264d565b336132f6565b346102275760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022757610225611086611d5f565b61108e611d82565b906106126122b7565b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022757602073ffffffffffffffffffffffffffffffffffffffff60085416604051908152f35b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610227576020610c836121d4565b346102275760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102275773ffffffffffffffffffffffffffffffffffffffff61116c611d5f565b165f52600c6020526040805f205460ff82519173ffffffffffffffffffffffffffffffffffffffff8116835260a01c166020820152f35b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022757602073ffffffffffffffffffffffffffffffffffffffff60095416604051908152f35b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102275773ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000f3b4eaaa9660143712fa3b3ebf5f460e3e8ea2cb1630036112895760206040517f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8152f35b7fe07c8dba000000000000000000000000000000000000000000000000000000005f5260045ffd5b60407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610227576112e3611d5f565b6024359067ffffffffffffffff821161022757366023830112156102275781600401359061131082611e1e565b9161131e6040519384611ddd565b8083526020830193366024838301011161022757815f9260246020930187378401015273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000f3b4eaaa9660143712fa3b3ebf5f460e3e8ea2cb16803014908115611628575b5061128957335f9081527fab71e3f32666744d246edff3f96e4bdafee2e9867098cdd118a979a7464786a8602052604090205460ff16156115d85773ffffffffffffffffffffffffffffffffffffffff8116926040517f52d1902d000000000000000000000000000000000000000000000000000000008152602081600481885afa5f91816115a4575b5061143e57847f4c9c8ce3000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8692036115795750823b1561154e57807fffffffffffffffffffffffff00000000000000000000000000000000000000007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5416177f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc557fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b5f80a282511561151c575f8091610225945190845af4611516613803565b91613832565b5050503461152657005b7fb398979f000000000000000000000000000000000000000000000000000000005f5260045ffd5b7f4c9c8ce3000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b7faa1d49a4000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b9091506020813d6020116115d0575b816115c060209383611ddd565b810103126102275751908661140d565b3d91506115b3565b7fe2517d3f000000000000000000000000000000000000000000000000000000005f52336004527f189ab7a9244df0848122154315af71fe140f3db0fe014031783b0946b8c9d2e360245260445ffd5b905073ffffffffffffffffffffffffffffffffffffffff7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5416141584611383565b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610227576020610c83612136565b346102275760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022757610e9b6116dc611d5f565b6116e46125d6565b6024359061282c565b346102275760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022757611724611d82565b3373ffffffffffffffffffffffffffffffffffffffff82160361174d5761022590600435612fe5565b7f6697b232000000000000000000000000000000000000000000000000000000005f5260045ffd5b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610227576020600154604051908152f35b346102275760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610227576102256004356117ed611d82565b90611826610ace825f527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b626800602052600160405f20015490565b612ed3565b346102275760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102275773ffffffffffffffffffffffffffffffffffffffff611877611d5f565b165f52600d60205260405f2080549060026001820154910154906040519283526020830152604082015260608180030190f35b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610227576118e06122b7565b6118e8612136565b6003546007546040517f69328dec00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff91821660048201526024810184905233604482015291602091839160649183915f91165af180156109b557611986575b7f2a373f93838a714842acaa2dccec074e1d04744cea98d98ceef290aa0c31fff2602083604051908152a1005b6020813d6020116119af575b8161199f60209383611ddd565b8101031261022757506020611959565b3d9150611992565b346102275760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610227576020610c836004355f527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b626800602052600160405f20015490565b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610227576020600a54604051908152f35b346102275760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022757611a916122b7565b610225600435612c6f565b346102275760c07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022757611ad3611d5f565b6024356064359160ff8316830361022757611b22610e9b93611af36125d6565b73ffffffffffffffffffffffffffffffffffffffff6007541660a435916084359186604435913090339061264d565b61282c565b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610227576020600554604051908152f35b346102275760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022757611ba1611b9c611d5f565b611fbd565b6040805192835260ff91909116602083015290f35b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102275760205f54604051908152f35b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022757611ba1611e7a565b346102275760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022757611c5d6122b7565b6102256004356123c5565b346102275760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610227576004357fffffffff00000000000000000000000000000000000000000000000000000000811680910361022757807f7965db0b0000000000000000000000000000000000000000000000000000000060209214908115611cfd575b506040519015158152f35b7f01ffc9a70000000000000000000000000000000000000000000000000000000091501482611cf2565b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610227576020610c83611e58565b6004359073ffffffffffffffffffffffffffffffffffffffff8216820361022757565b6024359073ffffffffffffffffffffffffffffffffffffffff8216820361022757565b6060810190811067ffffffffffffffff82111761098157604052565b6040810190811067ffffffffffffffff82111761098157604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff82111761098157604052565b67ffffffffffffffff811161098157601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b600b548015611e7557611e72906305f5e100600a546135e9565b90565b505f90565b73ffffffffffffffffffffffffffffffffffffffff6004541690608060055460446006549160405195869384927fa4ae35e0000000000000000000000000000000000000000000000000000000008452600484015260248301525afa9182156109b5575f92611f0d575b50611f09604083015160030b9260ff611efc85612424565b169384915160070b612433565b9190565b9091506080813d608011611f9e575b81611f2960809383611ddd565b8101031261022757604051906080820182811067ffffffffffffffff8211176109815760405280518060070b8103610227578252602081015167ffffffffffffffff811681036102275760208301526040810151908160030b820361022757606091604084015201516060820152905f611ee4565b3d9150611f1c565b519069ffffffffffffffffffff8216820361022757565b73ffffffffffffffffffffffffffffffffffffffff1690815f52600c60205260405f2060405190611fed82611dc1565b549073ffffffffffffffffffffffffffffffffffffffff821680825260ff602083019360a01c168352156120fd579260a073ffffffffffffffffffffffffffffffffffffffff6004955116604051958680927ffeaf968c0000000000000000000000000000000000000000000000000000000082525afa9384156109b5575f946120ae575b505f84131561208357505160ff1690565b7fcd215006000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b90935060a0813d60a0116120f5575b816120ca60a09383611ddd565b81010312610227576120db81611fa6565b506120ed608060208301519201611fa6565b50925f612072565b3d91506120bd565b837f8a7a791d000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b91908203918211610c8b57565b6024602073ffffffffffffffffffffffffffffffffffffffff60085416604051928380927f70a082310000000000000000000000000000000000000000000000000000000082523060048301525afa80156109b5575f906121a0575b611e729150600a5490612129565b506020813d6020116121cc575b816121ba60209383611ddd565b8101031261022757611e729051612192565b3d91506121ad565b600a548015611e7557600b54906305f5e1006121f18282856135e9565b92096121fa5790565b60018101809111610c8b5790565b51906fffffffffffffffffffffffffffffffff8216820361022757565b519073ffffffffffffffffffffffffffffffffffffffff8216820361022757565b91908201809211610c8b57565b60025480156122b45761227f903373ffffffffffffffffffffffffffffffffffffffff60075416613550565b6002546040519081527f78473f3f373f7673597f4f0fa5873cb4d375fea6d4339ad6b56dbd411513cb3f60203392a25f600255565b50565b335f9081527f448256db8f8fb95ee3eaaf89c1051414494e85cebb6057fcf996cc3d0ccfb456602052604090205460ff16156122ef57565b7fe2517d3f000000000000000000000000000000000000000000000000000000005f52336004527f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b92960245260445ffd5b805f527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b62680060205260405f2073ffffffffffffffffffffffffffffffffffffffff33165f5260205260ff60405f205416156123965750565b7fe2517d3f000000000000000000000000000000000000000000000000000000005f523360045260245260445ffd5b80156123fc576020817f484576fb79a61bb6e9db4751071c81373565e33fe9a223e05300c84731c23e3892600655604051908152a1565b7f5ad5cb18000000000000000000000000000000000000000000000000000000005f5260045ffd5b5f811261242e5790565b5f0390565b91905f8360070b126125ae5760030b907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0182126125865760ff1660030b017fffffffffffffffffffffffffffffffffffffffffffffffffffffffff800000008112637fffffff821317610c8b578060030b91603a8313801561255d575b6125355767ffffffffffffffff16915f811315612515575063ffffffff1690604d8211610c8b576124e491600a0a906136d2565b90156124ed5790565b7f30442cd8000000000000000000000000000000000000000000000000000000005f5260045ffd5b61251f9150612424565b90604d8211610c8b576124e491600a0a906136b5565b7f96c1d04c000000000000000000000000000000000000000000000000000000005f5260045ffd5b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc683126124b0565b7f6a345a28000000000000000000000000000000000000000000000000000000005f5260045ffd5b7f4db089c0000000000000000000000000000000000000000000000000000000005f5260045ffd5b60027f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f0054146126255760027f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f0055565b7f3ee5aeb5000000000000000000000000000000000000000000000000000000005f5260045ffd5b73ffffffffffffffffffffffffffffffffffffffff9097919496959293971694853b156102275760ff604051937fd505accf0000000000000000000000000000000000000000000000000000000085525f9873ffffffffffffffffffffffffffffffffffffffff8816600487015273ffffffffffffffffffffffffffffffffffffffff871660248701528a6044870152606486015216608484015260a483015260c48201525f8160e48183885af19081612817575b50612810576040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff92831660048201529116602482015290602090829060449082905afa91821561280457916127d2575b5010156127d05760646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f5065726d6974206661696c7572650000000000000000000000000000000000006044820152fd5b565b90506020813d6020116127fc575b816127ed60209383611ddd565b8101031261022757515f61276b565b3d91506127e0565b604051903d90823e3d90fd5b5050505050565b6128249195505f90611ddd565b5f935f612702565b60075461289a5f9173ffffffffffffffffffffffffffffffffffffffff604051917f23b872dd00000000000000000000000000000000000000000000000000000000602084015233602484015230604484015286606484015260648352612894608484611ddd565b16613771565b600154906127106128ac8184876135e9565b928509612c5d575b6128be8285612129565b6007546003546040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff91821660248201819052929190911690602081604481855afa80156109b55784905f90612c27575b6129379250612246565b6040517f095ea7b3000000000000000000000000000000000000000000000000000000006020820190815273ffffffffffffffffffffffffffffffffffffffff8516602483015260448083019390935291815291905f90819061299b606486611ddd565b84519082855af16129aa613803565b81612bf8575b5080612bee575b15612b90575b50505073ffffffffffffffffffffffffffffffffffffffff6003541673ffffffffffffffffffffffffffffffffffffffff60075416813b15610227575f916084839260405194859384927f617ba03700000000000000000000000000000000000000000000000000000000845260048401528760248401523060448401528160648401525af180156109b557612b79575b5080612a68612a5f612a7393613504565b94600254612246565b600255600a54612246565b600a55612a8282600b54612246565b600b5573ffffffffffffffffffffffffffffffffffffffff60095416803b15612b75576040517f40c10f1900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85166004820152602481018490529082908290604490829084905af18015612b6a57612b52575b505073ffffffffffffffffffffffffffffffffffffffff7f73a19dd210f1a7f902193214c0ee91dd35ee5b4d920cba8d519eca65a7b488ca92604092835195865260208601521692a2565b612b5d828092611ddd565b612b675780612b07565b80fd5b6040513d84823e3d90fd5b5080fd5b612b869192505f90611ddd565b5f90612a73612a4e565b612be1612be693604051907f095ea7b300000000000000000000000000000000000000000000000000000000602083015260248201525f604482015260448152612bdb606482611ddd565b82613771565b613771565b5f80806129bd565b50803b15156129b7565b8051801592508215612c0d575b50505f6129b0565b612c209250602080918301019101613759565b5f80612c05565b50506020813d602011612c55575b81612c4260209383611ddd565b810103126102275783612937915161292d565b3d9150612c35565b9060018101809111610c8b57906128b4565b600181108015612ce3575b612cae576020817fb1e2f430dc5da940dc67b06611f06bd0cbc10e01bfd30db3db6e50e5938341c6925f55604051908152a1565b7f411489e3000000000000000000000000000000000000000000000000000000005f526004526001602452606460445260645ffd5b5060648111612c7a565b73ffffffffffffffffffffffffffffffffffffffff81165f9081527fb7db2dd08fcb62d0c9e08c51941cae53c267786a0b75803fb7960902fc8ef97d602052604090205460ff16611e755773ffffffffffffffffffffffffffffffffffffffff165f8181527fb7db2dd08fcb62d0c9e08c51941cae53c267786a0b75803fb7960902fc8ef97d6020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790553391907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d8180a4600190565b73ffffffffffffffffffffffffffffffffffffffff81165f9081527f448256db8f8fb95ee3eaaf89c1051414494e85cebb6057fcf996cc3d0ccfb456602052604090205460ff16611e755773ffffffffffffffffffffffffffffffffffffffff165f8181527f448256db8f8fb95ee3eaaf89c1051414494e85cebb6057fcf996cc3d0ccfb4566020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790553391907f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b929907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9080a4600190565b805f527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b62680060205260405f2073ffffffffffffffffffffffffffffffffffffffff83165f5260205260ff60405f205416155f14612fdf57805f527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b62680060205260405f2073ffffffffffffffffffffffffffffffffffffffff83165f5260205260405f2060017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0082541617905573ffffffffffffffffffffffffffffffffffffffff339216907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d5f80a4600190565b50505f90565b805f527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b62680060205260405f2073ffffffffffffffffffffffffffffffffffffffff83165f5260205260ff60405f2054165f14612fdf57805f527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b62680060205260405f2073ffffffffffffffffffffffffffffffffffffffff83165f5260205260405f207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00815416905573ffffffffffffffffffffffffffffffffffffffff339216907ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b5f80a4600190565b73ffffffffffffffffffffffffffffffffffffffff169081156132ce5773ffffffffffffffffffffffffffffffffffffffff169081156132a6576040517f313ce567000000000000000000000000000000000000000000000000000000008152602081600481865afa80156109b5575f90613269575b60ff915016801561323e5760207fd03dd51ffcbea74995df602bf6be1a03953e508c61930600b4d5f77038261aa79160405161319e81611dc1565b858152828101828152855f52600c845273ffffffffffffffffffffffffffffffffffffffff60405f209251167fffffffffffffffffffffffff0000000000000000000000000000000000000000835416178255517fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff74ff000000000000000000000000000000000000000083549260a01b169116179055604051908152a3565b7fec18ce9b000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b506020813d60201161329e575b8161328360209383611ddd565b81010312610227575160ff811681036102275760ff90613163565b3d9150613276565b7f3bd9d9fd000000000000000000000000000000000000000000000000000000005f5260045ffd5b7f6b093aad000000000000000000000000000000000000000000000000000000005f5260045ffd5b906009549073ffffffffffffffffffffffffffffffffffffffff5f9216803b15610227576040517f79cc679000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8516600482015260248101839052905f908290604490829084905af180156109b5576134de575b506133936133886121d4565b6305f5e100836135e9565b916040516133a081611da5565b8281526002602082019585875273ffffffffffffffffffffffffffffffffffffffff60408401914383521696878552600d6020526040852093518455516001840155519101556133f282600b54612129565b600b5561340183600a54612129565b600a556003546007546040517f69328dec00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9182166004820152602481018690523060448201529291602091849160649183918691165af190811561280457506134ab575b506040907f24b91f4f47caf44230a57777a9be744924e82bf666f2d5702faf97df35e60f9f9282519182526020820152a2565b906020823d6020116134d6575b816134c560209383611ddd565b810103126102275790506040613478565b3d91506134b8565b6134eb9192505f90611ddd565b5f905f61337c565b60ff16604d8111610c8b57600a0a90565b613544611e729161354461354a61353273ffffffffffffffffffffffffffffffffffffffff60075416611fbd565b939061353c611e7a565b9690956134f3565b916135e9565b926134f3565b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000602082015273ffffffffffffffffffffffffffffffffffffffff9290921660248301526044808301939093529181526127d091612be1606483611ddd565b81156135bc570490565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b9091828202917fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff848209938380861095039480860395146136a8578483111561368057829109815f0382168092046002816003021880820260020302808202600203028082026002030280820260020302808202600203028091026002030293600183805f03040190848311900302920304170290565b7f227bc153000000000000000000000000000000000000000000000000000000005f5260045ffd5b505090611e7292506135b2565b9080156136ca576136c5916135b2565b600191565b50505f905f90565b919082156136f9576136e781840293846135b2565b036136f25760019190565b5f91508190565b50600191505f90565b60ff7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005460401c161561373157565b7fd7e6bcf8000000000000000000000000000000000000000000000000000000005f5260045ffd5b90816020910312610227575180151581036102275790565b5f8073ffffffffffffffffffffffffffffffffffffffff6137a793169360208151910182865af16137a0613803565b9083613832565b80519081151591826137e8575b50506137bd5750565b7f5274afe7000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b6137fb9250602080918301019101613759565b155f806137b4565b3d1561382d573d9061381482611e1e565b916138226040519384611ddd565b82523d5f602084013e565b606090565b9061386f575080511561384757805190602001fd5b7f1425ea42000000000000000000000000000000000000000000000000000000005f5260045ffd5b815115806138c2575b613880575090565b73ffffffffffffffffffffffffffffffffffffffff907f9996b315000000000000000000000000000000000000000000000000000000005f521660045260245ffd5b50803b1561387856fea164736f6c634300081b000a","optimization_enabled":true,"verified_twin_address_hash":null,"is_verified":true,"compiler_settings":{"evmVersion":"shanghai","libraries":{},"metadata":{"appendCBOR":true,"bytecodeHash":"none","useLiteralContent":false},"optimizer":{"enabled":true,"runs":1000000},"outputSelection":{"*":{"":["*"],"*":["*"]}},"remappings":["@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/","@openzeppelin/contracts/=lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/","ds-test/=lib/openzeppelin-contracts-upgradeable/lib/forge-std/lib/ds-test/src/","erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/","forge-std/=lib/forge-std/src/","openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/","openzeppelin-contracts/=lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/","openzeppelin-foundry-upgrades/=lib/openzeppelin-foundry-upgrades/src/","solidity-stringutils/=lib/openzeppelin-foundry-upgrades/lib/solidity-stringutils/","@src/=src/","@test/=test/","@script/=script/"],"viaIR":true},"optimization_runs":1000000,"sourcify_repo_url":null,"decoded_constructor_args":null,"compiler_version":"v0.8.27+commit.40a35a09","is_verified_via_verifier_alliance":false,"verified_at":"2025-11-21T12:48:18.998609Z","implementations":[],"proxy_type":null,"external_libraries":[],"creation_bytecode":"0x60a080604052346100c257306080525f51602061399f5f395f51905f525460ff8160401c166100b3576002600160401b03196001600160401b03821601610060575b6040516138d890816100c7823960805181818161123901526113580152f35b6001600160401b0319166001600160401b039081175f51602061399f5f395f51905f525581527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d290602090a15f80610041565b63f92ee8a960e01b5f5260045ffd5b5f80fdfe60806040526004361015610011575f80fd5b5f3560e01c806301668dbc14611d2757806301ffc9a714611c6857806303b0f9a314611c265780630818a5b314611bf05780630baa9ed614611bb6578063105075f814611b6257806311bbfb5914611b2757806312a62cff14611a9c57806314626dc614611a5a57806319c1f06814611a1f578063248a9ca3146119b7578063254e46de146118aa57806327b380f31461182b5780632f2ff15d146117b057806335659fb81461177557806336568abe146116ed57806347e7ef24146116a25780634d7709591461166a5780634f1ef286146112b157806352d1902d146111f45780635eadce70146111a3578063628a9c96146111205780636e199d57146110e8578063707451691461109757806376e112861461104c5780638f5f6c2a14610fb857806391d1485414610f245780639652171614610ee95780639ee679e814610e47578063a03e4bc314610df6578063a217fddf14610dbe578063ad3cb1cc14610cf1578063b790634e14610c0b578063c0417e5814610b64578063c89039c514610b13578063d4df964214610ad8578063d547741f14610a58578063e4f0929c14610418578063f8899328146103dd578063f98d06f01461038c578063fa45aa001461022b5763fac9b99c146101e7575f80fd5b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102275761021d6122b7565b610225612253565b005b5f80fd5b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610227576102616125d6565b335f52600d60205260405f2060405161027981611da5565b815481526001820154604060026020840194838652015492019182521561036457515f546102a691612246565b431061033c5751335f52600d6020525f60026040822082815582600182015501556102ea813373ffffffffffffffffffffffffffffffffffffffff60075416613550565b6040519081527f1131c2afe9ce72c59360d085f89bfdd088fcf4a3c93eec6cc5ff42f5d6b0801f60203392a260017f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f0055005b7f5ec622ea000000000000000000000000000000000000000000000000000000005f5260045ffd5b7fa07ef183000000000000000000000000000000000000000000000000000000005f5260045ffd5b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022757602073ffffffffffffffffffffffffffffffffffffffff60045416604051908152f35b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610227576020600654604051908152f35b34610227576101407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022757610450611d5f565b610458611d82565b6044359073ffffffffffffffffffffffffffffffffffffffff82168092036102275760643573ffffffffffffffffffffffffffffffffffffffff81168091036102275760c43573ffffffffffffffffffffffffffffffffffffffff8116918282036102275760e4359173ffffffffffffffffffffffffffffffffffffffff8316830361022757610104359273ffffffffffffffffffffffffffffffffffffffff8416809403610227577ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00549160ff8360401c16159867ffffffffffffffff841680159081610a50575b6001149081610a46575b159081610a3d575b50610a15576101e0976105ff61060592868d60017fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000006106179a16177ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00556109c0575b506105be613702565b6105c6613702565b6105ce613702565b6105d6613702565b60017f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f0055612ced565b50612dcf565b5061061261012435612c6f565b6130ed565b61062260a4356123c5565b847fffffffffffffffffffffffff000000000000000000000000000000000000000060035416176003557fffffffffffffffffffffffff00000000000000000000000000000000000000006004541617600455608435600555817fffffffffffffffffffffffff000000000000000000000000000000000000000060075416176007557fffffffffffffffffffffffff000000000000000000000000000000000000000060095416176009556024604051809481937f35ea6a7500000000000000000000000000000000000000000000000000000000835260048301525afa9081156109b5575f916107ee575b5061010073ffffffffffffffffffffffffffffffffffffffff910151167fffffffffffffffffffffffff0000000000000000000000000000000000000000600854161760085561075b57005b7fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054167ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00557fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602060405160018152a1005b8091506101e03d81116109ae575b6108068183611ddd565b8101036101e0811261022757604051906101e082019082821067ffffffffffffffff8311176109815760209160405212610227576040516020810181811067ffffffffffffffff8211176109815760405282518152815261086960208301612208565b602082015261087a60408301612208565b604082015261088b60608301612208565b606082015261089c60808301612208565b60808201526108ad60a08301612208565b60a082015260c082015164ffffffffff811681036102275760c082015260e08201519061ffff82168203610227576109746101c073ffffffffffffffffffffffffffffffffffffffff946101009460e085015261090b858201612225565b8585015261091c6101208201612225565b61012085015261092f6101408201612225565b6101408501526109426101608201612225565b6101608501526109556101808201612208565b6101808501526109686101a08201612208565b6101a085015201612208565b6101c0820152915061070f565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b503d6107fc565b6040513d5f823e3d90fd5b7fffffffffffffffffffffffffffffffffffffffffffffff0000000000000000001668010000000000000001177ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00558d6105b5565b7ff92ee8a9000000000000000000000000000000000000000000000000000000005f5260045ffd5b9050158b610553565b303b15915061054b565b8b9150610541565b346102275760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022757610225600435610a95611d82565b90610ad3610ace825f527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b626800602052600160405f20015490565b61233f565b612fe5565b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610227576020600b54604051908152f35b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022757602073ffffffffffffffffffffffffffffffffffffffff60075416604051908152f35b346102275760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022757600435610b9e6122b7565b60648111610bd7576020817fd10d75876659a287a59a6ccfa2e3fff42f84d94b542837acd30bc184d562de4092600155604051908152a1005b7f35d85a67000000000000000000000000000000000000000000000000000000005f526004525f602452606460445260645ffd5b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022757600154612710610c4d8183620f42406135e9565b91620f424009610cb8575b620f424003620f42408111610c8b57610c83610c75602092613504565b6305f5e100620f42406135e9565b604051908152f35b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b6001810180911115610c58577f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610227576040805190610d2e8183611ddd565b600582527f352e302e30000000000000000000000000000000000000000000000000000000602083015280518092602082528051908160208401525f5b828110610da75750505f828201840152601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168101030190f35b602082820181015187830187015286945001610d6b565b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102275760206040515f8152f35b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022757602073ffffffffffffffffffffffffffffffffffffffff60035416604051908152f35b346102275760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022757610e7e6125d6565b335f52600d60205260405f2054610ec157610e9b600435336132f6565b60017f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f0055005b7f73ae972d000000000000000000000000000000000000000000000000000000005f5260045ffd5b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610227576020600254604051908152f35b346102275760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022757610f5b611d82565b6004355f527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b62680060205273ffffffffffffffffffffffffffffffffffffffff60405f2091165f52602052602060ff60405f2054166040519015158152f35b346102275760a07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102275760443560043560ff8216820361022757610fff6125d6565b335f52600d60205260405f2054610ec157611046610e9b9273ffffffffffffffffffffffffffffffffffffffff60095416608435916064359185602435913090339061264d565b336132f6565b346102275760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022757610225611086611d5f565b61108e611d82565b906106126122b7565b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022757602073ffffffffffffffffffffffffffffffffffffffff60085416604051908152f35b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610227576020610c836121d4565b346102275760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102275773ffffffffffffffffffffffffffffffffffffffff61116c611d5f565b165f52600c6020526040805f205460ff82519173ffffffffffffffffffffffffffffffffffffffff8116835260a01c166020820152f35b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022757602073ffffffffffffffffffffffffffffffffffffffff60095416604051908152f35b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102275773ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001630036112895760206040517f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8152f35b7fe07c8dba000000000000000000000000000000000000000000000000000000005f5260045ffd5b60407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610227576112e3611d5f565b6024359067ffffffffffffffff821161022757366023830112156102275781600401359061131082611e1e565b9161131e6040519384611ddd565b8083526020830193366024838301011161022757815f9260246020930187378401015273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016803014908115611628575b5061128957335f9081527fab71e3f32666744d246edff3f96e4bdafee2e9867098cdd118a979a7464786a8602052604090205460ff16156115d85773ffffffffffffffffffffffffffffffffffffffff8116926040517f52d1902d000000000000000000000000000000000000000000000000000000008152602081600481885afa5f91816115a4575b5061143e57847f4c9c8ce3000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8692036115795750823b1561154e57807fffffffffffffffffffffffff00000000000000000000000000000000000000007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5416177f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc557fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b5f80a282511561151c575f8091610225945190845af4611516613803565b91613832565b5050503461152657005b7fb398979f000000000000000000000000000000000000000000000000000000005f5260045ffd5b7f4c9c8ce3000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b7faa1d49a4000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b9091506020813d6020116115d0575b816115c060209383611ddd565b810103126102275751908661140d565b3d91506115b3565b7fe2517d3f000000000000000000000000000000000000000000000000000000005f52336004527f189ab7a9244df0848122154315af71fe140f3db0fe014031783b0946b8c9d2e360245260445ffd5b905073ffffffffffffffffffffffffffffffffffffffff7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5416141584611383565b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610227576020610c83612136565b346102275760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022757610e9b6116dc611d5f565b6116e46125d6565b6024359061282c565b346102275760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022757611724611d82565b3373ffffffffffffffffffffffffffffffffffffffff82160361174d5761022590600435612fe5565b7f6697b232000000000000000000000000000000000000000000000000000000005f5260045ffd5b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610227576020600154604051908152f35b346102275760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610227576102256004356117ed611d82565b90611826610ace825f527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b626800602052600160405f20015490565b612ed3565b346102275760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102275773ffffffffffffffffffffffffffffffffffffffff611877611d5f565b165f52600d60205260405f2080549060026001820154910154906040519283526020830152604082015260608180030190f35b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610227576118e06122b7565b6118e8612136565b6003546007546040517f69328dec00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff91821660048201526024810184905233604482015291602091839160649183915f91165af180156109b557611986575b7f2a373f93838a714842acaa2dccec074e1d04744cea98d98ceef290aa0c31fff2602083604051908152a1005b6020813d6020116119af575b8161199f60209383611ddd565b8101031261022757506020611959565b3d9150611992565b346102275760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610227576020610c836004355f527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b626800602052600160405f20015490565b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610227576020600a54604051908152f35b346102275760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022757611a916122b7565b610225600435612c6f565b346102275760c07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022757611ad3611d5f565b6024356064359160ff8316830361022757611b22610e9b93611af36125d6565b73ffffffffffffffffffffffffffffffffffffffff6007541660a435916084359186604435913090339061264d565b61282c565b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610227576020600554604051908152f35b346102275760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022757611ba1611b9c611d5f565b611fbd565b6040805192835260ff91909116602083015290f35b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102275760205f54604051908152f35b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022757611ba1611e7a565b346102275760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261022757611c5d6122b7565b6102256004356123c5565b346102275760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610227576004357fffffffff00000000000000000000000000000000000000000000000000000000811680910361022757807f7965db0b0000000000000000000000000000000000000000000000000000000060209214908115611cfd575b506040519015158152f35b7f01ffc9a70000000000000000000000000000000000000000000000000000000091501482611cf2565b34610227575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610227576020610c83611e58565b6004359073ffffffffffffffffffffffffffffffffffffffff8216820361022757565b6024359073ffffffffffffffffffffffffffffffffffffffff8216820361022757565b6060810190811067ffffffffffffffff82111761098157604052565b6040810190811067ffffffffffffffff82111761098157604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff82111761098157604052565b67ffffffffffffffff811161098157601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b600b548015611e7557611e72906305f5e100600a546135e9565b90565b505f90565b73ffffffffffffffffffffffffffffffffffffffff6004541690608060055460446006549160405195869384927fa4ae35e0000000000000000000000000000000000000000000000000000000008452600484015260248301525afa9182156109b5575f92611f0d575b50611f09604083015160030b9260ff611efc85612424565b169384915160070b612433565b9190565b9091506080813d608011611f9e575b81611f2960809383611ddd565b8101031261022757604051906080820182811067ffffffffffffffff8211176109815760405280518060070b8103610227578252602081015167ffffffffffffffff811681036102275760208301526040810151908160030b820361022757606091604084015201516060820152905f611ee4565b3d9150611f1c565b519069ffffffffffffffffffff8216820361022757565b73ffffffffffffffffffffffffffffffffffffffff1690815f52600c60205260405f2060405190611fed82611dc1565b549073ffffffffffffffffffffffffffffffffffffffff821680825260ff602083019360a01c168352156120fd579260a073ffffffffffffffffffffffffffffffffffffffff6004955116604051958680927ffeaf968c0000000000000000000000000000000000000000000000000000000082525afa9384156109b5575f946120ae575b505f84131561208357505160ff1690565b7fcd215006000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b90935060a0813d60a0116120f5575b816120ca60a09383611ddd565b81010312610227576120db81611fa6565b506120ed608060208301519201611fa6565b50925f612072565b3d91506120bd565b837f8a7a791d000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b91908203918211610c8b57565b6024602073ffffffffffffffffffffffffffffffffffffffff60085416604051928380927f70a082310000000000000000000000000000000000000000000000000000000082523060048301525afa80156109b5575f906121a0575b611e729150600a5490612129565b506020813d6020116121cc575b816121ba60209383611ddd565b8101031261022757611e729051612192565b3d91506121ad565b600a548015611e7557600b54906305f5e1006121f18282856135e9565b92096121fa5790565b60018101809111610c8b5790565b51906fffffffffffffffffffffffffffffffff8216820361022757565b519073ffffffffffffffffffffffffffffffffffffffff8216820361022757565b91908201809211610c8b57565b60025480156122b45761227f903373ffffffffffffffffffffffffffffffffffffffff60075416613550565b6002546040519081527f78473f3f373f7673597f4f0fa5873cb4d375fea6d4339ad6b56dbd411513cb3f60203392a25f600255565b50565b335f9081527f448256db8f8fb95ee3eaaf89c1051414494e85cebb6057fcf996cc3d0ccfb456602052604090205460ff16156122ef57565b7fe2517d3f000000000000000000000000000000000000000000000000000000005f52336004527f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b92960245260445ffd5b805f527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b62680060205260405f2073ffffffffffffffffffffffffffffffffffffffff33165f5260205260ff60405f205416156123965750565b7fe2517d3f000000000000000000000000000000000000000000000000000000005f523360045260245260445ffd5b80156123fc576020817f484576fb79a61bb6e9db4751071c81373565e33fe9a223e05300c84731c23e3892600655604051908152a1565b7f5ad5cb18000000000000000000000000000000000000000000000000000000005f5260045ffd5b5f811261242e5790565b5f0390565b91905f8360070b126125ae5760030b907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0182126125865760ff1660030b017fffffffffffffffffffffffffffffffffffffffffffffffffffffffff800000008112637fffffff821317610c8b578060030b91603a8313801561255d575b6125355767ffffffffffffffff16915f811315612515575063ffffffff1690604d8211610c8b576124e491600a0a906136d2565b90156124ed5790565b7f30442cd8000000000000000000000000000000000000000000000000000000005f5260045ffd5b61251f9150612424565b90604d8211610c8b576124e491600a0a906136b5565b7f96c1d04c000000000000000000000000000000000000000000000000000000005f5260045ffd5b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc683126124b0565b7f6a345a28000000000000000000000000000000000000000000000000000000005f5260045ffd5b7f4db089c0000000000000000000000000000000000000000000000000000000005f5260045ffd5b60027f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f0054146126255760027f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f0055565b7f3ee5aeb5000000000000000000000000000000000000000000000000000000005f5260045ffd5b73ffffffffffffffffffffffffffffffffffffffff9097919496959293971694853b156102275760ff604051937fd505accf0000000000000000000000000000000000000000000000000000000085525f9873ffffffffffffffffffffffffffffffffffffffff8816600487015273ffffffffffffffffffffffffffffffffffffffff871660248701528a6044870152606486015216608484015260a483015260c48201525f8160e48183885af19081612817575b50612810576040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff92831660048201529116602482015290602090829060449082905afa91821561280457916127d2575b5010156127d05760646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f5065726d6974206661696c7572650000000000000000000000000000000000006044820152fd5b565b90506020813d6020116127fc575b816127ed60209383611ddd565b8101031261022757515f61276b565b3d91506127e0565b604051903d90823e3d90fd5b5050505050565b6128249195505f90611ddd565b5f935f612702565b60075461289a5f9173ffffffffffffffffffffffffffffffffffffffff604051917f23b872dd00000000000000000000000000000000000000000000000000000000602084015233602484015230604484015286606484015260648352612894608484611ddd565b16613771565b600154906127106128ac8184876135e9565b928509612c5d575b6128be8285612129565b6007546003546040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff91821660248201819052929190911690602081604481855afa80156109b55784905f90612c27575b6129379250612246565b6040517f095ea7b3000000000000000000000000000000000000000000000000000000006020820190815273ffffffffffffffffffffffffffffffffffffffff8516602483015260448083019390935291815291905f90819061299b606486611ddd565b84519082855af16129aa613803565b81612bf8575b5080612bee575b15612b90575b50505073ffffffffffffffffffffffffffffffffffffffff6003541673ffffffffffffffffffffffffffffffffffffffff60075416813b15610227575f916084839260405194859384927f617ba03700000000000000000000000000000000000000000000000000000000845260048401528760248401523060448401528160648401525af180156109b557612b79575b5080612a68612a5f612a7393613504565b94600254612246565b600255600a54612246565b600a55612a8282600b54612246565b600b5573ffffffffffffffffffffffffffffffffffffffff60095416803b15612b75576040517f40c10f1900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85166004820152602481018490529082908290604490829084905af18015612b6a57612b52575b505073ffffffffffffffffffffffffffffffffffffffff7f73a19dd210f1a7f902193214c0ee91dd35ee5b4d920cba8d519eca65a7b488ca92604092835195865260208601521692a2565b612b5d828092611ddd565b612b675780612b07565b80fd5b6040513d84823e3d90fd5b5080fd5b612b869192505f90611ddd565b5f90612a73612a4e565b612be1612be693604051907f095ea7b300000000000000000000000000000000000000000000000000000000602083015260248201525f604482015260448152612bdb606482611ddd565b82613771565b613771565b5f80806129bd565b50803b15156129b7565b8051801592508215612c0d575b50505f6129b0565b612c209250602080918301019101613759565b5f80612c05565b50506020813d602011612c55575b81612c4260209383611ddd565b810103126102275783612937915161292d565b3d9150612c35565b9060018101809111610c8b57906128b4565b600181108015612ce3575b612cae576020817fb1e2f430dc5da940dc67b06611f06bd0cbc10e01bfd30db3db6e50e5938341c6925f55604051908152a1565b7f411489e3000000000000000000000000000000000000000000000000000000005f526004526001602452606460445260645ffd5b5060648111612c7a565b73ffffffffffffffffffffffffffffffffffffffff81165f9081527fb7db2dd08fcb62d0c9e08c51941cae53c267786a0b75803fb7960902fc8ef97d602052604090205460ff16611e755773ffffffffffffffffffffffffffffffffffffffff165f8181527fb7db2dd08fcb62d0c9e08c51941cae53c267786a0b75803fb7960902fc8ef97d6020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790553391907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d8180a4600190565b73ffffffffffffffffffffffffffffffffffffffff81165f9081527f448256db8f8fb95ee3eaaf89c1051414494e85cebb6057fcf996cc3d0ccfb456602052604090205460ff16611e755773ffffffffffffffffffffffffffffffffffffffff165f8181527f448256db8f8fb95ee3eaaf89c1051414494e85cebb6057fcf996cc3d0ccfb4566020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790553391907f97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b929907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9080a4600190565b805f527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b62680060205260405f2073ffffffffffffffffffffffffffffffffffffffff83165f5260205260ff60405f205416155f14612fdf57805f527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b62680060205260405f2073ffffffffffffffffffffffffffffffffffffffff83165f5260205260405f2060017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0082541617905573ffffffffffffffffffffffffffffffffffffffff339216907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d5f80a4600190565b50505f90565b805f527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b62680060205260405f2073ffffffffffffffffffffffffffffffffffffffff83165f5260205260ff60405f2054165f14612fdf57805f527f02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b62680060205260405f2073ffffffffffffffffffffffffffffffffffffffff83165f5260205260405f207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00815416905573ffffffffffffffffffffffffffffffffffffffff339216907ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b5f80a4600190565b73ffffffffffffffffffffffffffffffffffffffff169081156132ce5773ffffffffffffffffffffffffffffffffffffffff169081156132a6576040517f313ce567000000000000000000000000000000000000000000000000000000008152602081600481865afa80156109b5575f90613269575b60ff915016801561323e5760207fd03dd51ffcbea74995df602bf6be1a03953e508c61930600b4d5f77038261aa79160405161319e81611dc1565b858152828101828152855f52600c845273ffffffffffffffffffffffffffffffffffffffff60405f209251167fffffffffffffffffffffffff0000000000000000000000000000000000000000835416178255517fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff74ff000000000000000000000000000000000000000083549260a01b169116179055604051908152a3565b7fec18ce9b000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b506020813d60201161329e575b8161328360209383611ddd565b81010312610227575160ff811681036102275760ff90613163565b3d9150613276565b7f3bd9d9fd000000000000000000000000000000000000000000000000000000005f5260045ffd5b7f6b093aad000000000000000000000000000000000000000000000000000000005f5260045ffd5b906009549073ffffffffffffffffffffffffffffffffffffffff5f9216803b15610227576040517f79cc679000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8516600482015260248101839052905f908290604490829084905af180156109b5576134de575b506133936133886121d4565b6305f5e100836135e9565b916040516133a081611da5565b8281526002602082019585875273ffffffffffffffffffffffffffffffffffffffff60408401914383521696878552600d6020526040852093518455516001840155519101556133f282600b54612129565b600b5561340183600a54612129565b600a556003546007546040517f69328dec00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9182166004820152602481018690523060448201529291602091849160649183918691165af190811561280457506134ab575b506040907f24b91f4f47caf44230a57777a9be744924e82bf666f2d5702faf97df35e60f9f9282519182526020820152a2565b906020823d6020116134d6575b816134c560209383611ddd565b810103126102275790506040613478565b3d91506134b8565b6134eb9192505f90611ddd565b5f905f61337c565b60ff16604d8111610c8b57600a0a90565b613544611e729161354461354a61353273ffffffffffffffffffffffffffffffffffffffff60075416611fbd565b939061353c611e7a565b9690956134f3565b916135e9565b926134f3565b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000602082015273ffffffffffffffffffffffffffffffffffffffff9290921660248301526044808301939093529181526127d091612be1606483611ddd565b81156135bc570490565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b9091828202917fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff848209938380861095039480860395146136a8578483111561368057829109815f0382168092046002816003021880820260020302808202600203028082026002030280820260020302808202600203028091026002030293600183805f03040190848311900302920304170290565b7f227bc153000000000000000000000000000000000000000000000000000000005f5260045ffd5b505090611e7292506135b2565b9080156136ca576136c5916135b2565b600191565b50505f905f90565b919082156136f9576136e781840293846135b2565b036136f25760019190565b5f91508190565b50600191505f90565b60ff7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005460401c161561373157565b7fd7e6bcf8000000000000000000000000000000000000000000000000000000005f5260045ffd5b90816020910312610227575180151581036102275790565b5f8073ffffffffffffffffffffffffffffffffffffffff6137a793169360208151910182865af16137a0613803565b9083613832565b80519081151591826137e8575b50506137bd5750565b7f5274afe7000000000000000000000000000000000000000000000000000000005f5260045260245ffd5b6137fb9250602080918301019101613759565b155f806137b4565b3d1561382d573d9061381482611e1e565b916138226040519384611ddd565b82523d5f602084013e565b606090565b9061386f575080511561384757805190602001fd5b7f1425ea42000000000000000000000000000000000000000000000000000000005f5260045ffd5b815115806138c2575b613880575090565b73ffffffffffffffffffffffffffffffffffffffff907f9996b315000000000000000000000000000000000000000000000000000000005f521660045260245ffd5b50803b1561387856fea164736f6c634300081b000af0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00","name":"UsdcDepositManager","is_blueprint":false,"license_type":"none","is_fully_verified":false,"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.0.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 {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    /**\n     * @dev See {IERC165-supportsInterface}.\n     */\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` to `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.0.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 reininitialization) 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 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        assembly {\n            $.slot := INITIALIZABLE_STORAGE\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.0.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.20;\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 ERC1967) 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 ERC1167 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 ERC1822 {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 ERC1967-compliant implementation pointing to self.\n     * See {_onlyProxy}.\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 ERC1967.\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/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/ReentrancyGuardUpgradeable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.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 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.0.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 ERC165 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    /**\n     * @dev See {IERC165-supportsInterface}.\n     */\n    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {\n        return interfaceId == type(IERC165).interfaceId;\n    }\n}\n"},{"file_path":"lib/openzeppelin-contracts-upgradeable/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-upgradeable/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-upgradeable/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-upgradeable/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-upgradeable/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-upgradeable/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-upgradeable/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-upgradeable/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-upgradeable/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-upgradeable/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-upgradeable/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"},{"file_path":"lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/utils/math/SignedMath.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMath {\n    /**\n     * @dev Returns the largest of two signed numbers.\n     */\n    function max(int256 a, int256 b) internal pure returns (int256) {\n        return a > b ? a : b;\n    }\n\n    /**\n     * @dev Returns the smallest of two signed numbers.\n     */\n    function min(int256 a, int256 b) internal pure returns (int256) {\n        return a < b ? a : b;\n    }\n\n    /**\n     * @dev Returns the average of two signed numbers without overflow.\n     * The result is rounded towards zero.\n     */\n    function average(int256 a, int256 b) internal pure returns (int256) {\n        // Formula from the book \"Hacker's Delight\"\n        int256 x = (a & b) + ((a ^ b) >> 1);\n        return x + (int256(uint256(x) >> 255) & (a ^ b));\n    }\n\n    /**\n     * @dev Returns the absolute unsigned value of a signed value.\n     */\n    function abs(int256 n) internal pure returns (uint256) {\n        unchecked {\n            // must be unchecked in order to support `n = type(int256).min`\n            return uint256(n >= 0 ? n : -n);\n        }\n    }\n}\n"},{"file_path":"src/constants/NumericConstants.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.27;\n\n/**\n * @dev Represents 100% in basis points\n * Used for percentage calculations throughout the contract\n * 10,000 basis points = 100%\n */\nuint256 constant ONE_HUNDRED_PERCENT_IN_BP = 10_000;\n\n/**\n * @dev Minimum number of blocks for the cooldown period\n * Sets a lower bound for the withdrawal cooldown to prevent instant withdrawals\n */\nuint256 constant MIN_COOLDOWN_BLOCKS = 1; // 1 block\n\n/**\n * @dev Maximum number of blocks for the cooldown period\n * Sets an upper bound for the withdrawal cooldown to ensure withdrawals are not excessively delayed\n */\nuint256 constant MAX_COOLDOWN_BLOCKS = 100; // 100 blocks\n\n/**\n * @dev Minimum protocol fee in basis points\n * Allows setting the protocol fee to 0% if desired\n */\nuint256 constant MIN_PROTOCOL_FEE_BPS = 0; // 0%\n\n/**\n * @dev Maximum protocol fee in basis points\n * Caps the protocol fee at 1% to protect users from excessive fees\n */\nuint256 constant MAX_PROTOCOL_FEE_BPS = 100; // 1%\n\n/**\n * @dev Number of decimal places for the exchange rate\n * Used to represent the exchange rate as a fixed-point number\n */\nuint256 constant EXCHANGE_RATE_DECIMALS = 8;\n\n/**\n * @dev Scaling factor for the exchange rate calculations\n * Equal to 10^EXCHANGE_RATE_DECIMALS\n */\nuint256 constant EXCHANGE_RATE_SCALE = 10 ** EXCHANGE_RATE_DECIMALS;\n"},{"file_path":"src/constants/RoleConstants.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.27;\n\n/// @dev value is equal to keccak256(\"OPERATOR_ROLE\")\nbytes32 constant OPERATOR_ROLE = 0x97667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b929;\n\n/// @dev value is equal to keccak256(\"UPGRADER_ROLE\")\nbytes32 constant UPGRADER_ROLE = 0x189ab7a9244df0848122154315af71fe140f3db0fe014031783b0946b8c9d2e3;\n"},{"file_path":"src/interfaces/external/IAggregatorV3.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.27;\n\n/// @title Chainlink AggregatorV3 Interface\n/// @notice Interface for fetching the latest round data from a Chainlink price feed\ninterface IAggregatorV3 {\n    /// @notice Get the latest round data from the price feed\n    /// @return roundId The round ID\n    /// @return answer The price answer for the round\n    /// @return startedAt Timestamp when the round started\n    /// @return updatedAt Timestamp when the round was last updated\n    /// @return answeredInRound (Deprecated) - Previously used when answers could take multiple rounds to be computed\n    function latestRoundData()\n        external\n        view\n        returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);\n\n    /// @notice Get the number of decimals for the price feed\n    /// @return decimals The number of decimals\n    function decimals() external view returns (uint8);\n}\n"},{"file_path":"src/interfaces/external/IERC20MintableBurnable.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.27;\n\n/// @title Minimal ERC20 interface for MintableBurnable\ninterface IERC20MintableBurnable {\n    /// @notice Returns the balance of a token\n    /// @param account The account for which to look up the number of tokens it has, i.e. its balance\n    /// @return The number of tokens held by the account\n    function balanceOf(address account) external view returns (uint256);\n\n    /// @notice Transfers the amount of token from the `msg.sender` to the recipient\n    /// @param recipient The account that will receive the amount transferred\n    /// @param amount The number of tokens to send from the sender to the recipient\n    /// @return Returns true for a successful transfer, false for an unsuccessful transfer\n    function transfer(address recipient, uint256 amount) external returns (bool);\n\n    /// @notice Returns the current allowance given to a spender by an owner\n    /// @param owner The account of the token owner\n    /// @param spender The account of the token spender\n    /// @return The current allowance granted by `owner` to `spender`\n    function allowance(address owner, address spender) external view returns (uint256);\n\n    /// @notice Sets the allowance of a spender from the `msg.sender` to the value `amount`\n    /// @param spender The account which will be allowed to spend a given amount of the owners tokens\n    /// @param amount The amount of tokens allowed to be used by `spender`\n    /// @return Returns true for a successful approval, false for unsuccessful\n    function approve(address spender, uint256 amount) external returns (bool);\n\n    /// @notice Transfers `amount` tokens from `sender` to `recipient` up to the allowance given to the `msg.sender`\n    /// @param sender The account from which the transfer will be initiated\n    /// @param recipient The recipient of the transfer\n    /// @param amount The amount of the transfer\n    /// @return Returns true for a successful transfer, false for unsuccessful\n    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);\n\n    /// @notice Mint tokens to the specified address\n    /// @param to The address to mint tokens to\n    /// @param amount The amount of tokens to mint\n    function mint(address to, uint256 amount) external;\n\n    /// @notice Burn tokens from the specified address\n    /// @param amount The amount of tokens to burn\n    function burn(uint256 amount) external;\n\n    /// @notice Burn tokens from the specified address\n    /// @param from The address to burn tokens from\n    /// @param amount The amount of tokens to burn\n    function burnFrom(address from, uint256 amount) external;\n}\n"},{"file_path":"src/interfaces/external/IERC20PermitMinimal.sol","source_code":"// SPDX-License-Identifier: MIT\n\npragma solidity 0.8.27;\n\n/**\n * @dev Interface of the ERC-20 Permit extension allowing approvals to be made via signatures, as defined in\n * https://eips.ethereum.org/EIPS/eip-2612[ERC-2612].\n *\n * Adds the {permit} method, which can be used to change an account's ERC-20 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 IERC20PermitMinimal {\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    )\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    function DOMAIN_SEPARATOR() external view returns (bytes32);\n}\n"},{"file_path":"src/interfaces/external/IPool.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.27;\n\n/**\n * @title IPool\n * @author Aave\n * @notice Defines the basic interface for an Aave Pool.\n */\ninterface IPool {\n    struct ReserveData {\n        //stores the reserve configuration\n        ReserveConfigurationMap configuration;\n        //the liquidity index. Expressed in ray\n        uint128 liquidityIndex;\n        //the current supply rate. Expressed in ray\n        uint128 currentLiquidityRate;\n        //variable borrow index. Expressed in ray\n        uint128 variableBorrowIndex;\n        //the current variable borrow rate. Expressed in ray\n        uint128 currentVariableBorrowRate;\n        //the current stable borrow rate. Expressed in ray\n        uint128 currentStableBorrowRate;\n        //timestamp of last update\n        uint40 lastUpdateTimestamp;\n        //the id of the reserve. Represents the position in the list of the active reserves\n        uint16 id;\n        //aToken address\n        address aTokenAddress;\n        //stableDebtToken address\n        address stableDebtTokenAddress;\n        //variableDebtToken address\n        address variableDebtTokenAddress;\n        //address of the interest rate strategy\n        address interestRateStrategyAddress;\n        //the current treasury balance, scaled\n        uint128 accruedToTreasury;\n        //the outstanding unbacked aTokens minted through the bridging feature\n        uint128 unbacked;\n        //the outstanding debt borrowed against this asset in isolation mode\n        uint128 isolationModeTotalDebt;\n    }\n\n    struct ReserveConfigurationMap {\n        //bit 0-15: LTV\n        //bit 16-31: Liq. threshold\n        //bit 32-47: Liq. bonus\n        //bit 48-55: Decimals\n        //bit 56: reserve is active\n        //bit 57: reserve is frozen\n        //bit 58: borrowing is enabled\n        //bit 59: stable rate borrowing enabled\n        //bit 60: asset is paused\n        //bit 61: borrowing in isolation mode is enabled\n        //bit 62: siloed borrowing enabled\n        //bit 63: flashloaning enabled\n        //bit 64-79: reserve factor\n        //bit 80-115 borrow cap in whole tokens, borrowCap == 0 => no cap\n        //bit 116-151 supply cap in whole tokens, supplyCap == 0 => no cap\n        //bit 152-167 liquidation protocol fee\n        //bit 168-175 eMode category\n        //bit 176-211 unbacked mint cap in whole tokens, unbackedMintCap == 0 => minting disabled\n        //bit 212-251 debt ceiling for isolation mode with (ReserveConfiguration::DEBT_CEILING_DECIMALS) decimals\n        //bit 252-255 unused\n        uint256 data;\n    }\n\n    /**\n     * @notice Supplies an `amount` of underlying asset into the reserve, receiving in return overlying aTokens.\n     * - E.g. User supplies 100 USDC and gets in return 100 aUSDC\n     * @param asset The address of the underlying asset to supply\n     * @param amount The amount to be supplied\n     * @param onBehalfOf The address that will receive the aTokens, same as msg.sender if the user\n     *   wants to receive them on his own wallet, or a different address if the beneficiary of aTokens\n     *   is a different wallet\n     * @param referralCode Code used to register the integrator originating the operation, for potential rewards.\n     *   0 if the action is executed directly by the user, without any middle-man\n     */\n    function supply(address asset, uint256 amount, address onBehalfOf, uint16 referralCode) external;\n\n    /**\n     * @notice Withdraws an `amount` of underlying asset from the reserve, burning the equivalent aTokens owned\n     * E.g. User has 100 aUSDC, calls withdraw() and receives 100 USDC, burning the 100 aUSDC\n     * @param asset The address of the underlying asset to withdraw\n     * @param amount The underlying amount to be withdrawn\n     *   - Send the value type(uint256).max in order to withdraw the whole aToken balance\n     * @param to The address that will receive the underlying, same as msg.sender if the user\n     *   wants to receive it on his own wallet, or a different address if the beneficiary is a\n     *   different wallet\n     * @return The final amount withdrawn\n     */\n    function withdraw(address asset, uint256 amount, address to) external returns (uint256);\n\n    /**\n     * @notice Returns the state and configuration of the reserve\n     * @param asset The address of the underlying asset of the reserve\n     * @return The state and configuration data of the reserve\n     */\n    function getReserveData(address asset) external view returns (ReserveData memory);\n}\n"},{"file_path":"src/interfaces/external/IPyth.sol","source_code":"// SPDX-License-Identifier: Apache-2.0\npragma solidity 0.8.27;\n\n/// @title Consume prices from the Pyth Network (https://pyth.network/).\n/// @dev Please refer to the guidance at https://docs.pyth.network/consumers/best-practices for how to consume prices safely.\n/// @author Pyth Data Association\ninterface IPyth {\n    // A price with a degree of uncertainty, represented as a price +- a confidence interval.\n    //\n    // The confidence interval roughly corresponds to the standard error of a normal distribution.\n    // Both the price and confidence are stored in a fixed-point numeric representation,\n    // `x * (10^expo)`, where `expo` is the exponent.\n    //\n    // Please refer to the documentation at https://docs.pyth.network/consumers/best-practices for how\n    // to how this price safely.\n    struct Price {\n        // Price\n        int64 price;\n        // Confidence interval around the price\n        uint64 conf;\n        // Price exponent\n        int32 expo;\n        // Unix timestamp describing when the price was published\n        uint256 publishTime;\n    }\n\n    /// @notice Returns the price that is no older than `age` seconds of the current time.\n    /// @dev This function is a sanity-checked version of `getPriceUnsafe` which is useful in\n    /// applications that require a sufficiently-recent price. Reverts if the price wasn't updated sufficiently\n    /// recently.\n    /// @return price - please read the documentation of PythStructs.Price to understand how to use this safely.\n    function getPriceNoOlderThan(\n        bytes32 id,\n        uint256 age\n    ) external view returns (Price memory price);\n}\n"},{"file_path":"src/interfaces/internal/IDepositManager.sol","source_code":"// SPDX-License-Identifier: AGPL-3.0\npragma solidity 0.8.27;\n\nimport {IAggregatorV3} from \"@src/interfaces/external/IAggregatorV3.sol\";\n\n/**\n * @title IDepositManager\n * @notice Interface for managing deposits, withdrawals, and related operations\n * @dev This interface interacts with Aave's IPool for supplying and withdrawing assets\n */\ninterface IDepositManager {\n    /**\n     * @notice Struct to store price feed information\n     * @param priceFeed The price feed contract for USD conversion\n     * @param decimals The number of decimals used in the price feed\n     */\n    struct PriceFeedInfo {\n        IAggregatorV3 priceFeed;\n        uint8 decimals;\n    }\n\n    /**\n     * @notice Struct to store withdrawal request information\n     * @param jpyAmount The amount of JPY tokens requested for withdrawal\n     * @param tokenAmount The equivalent amount of deposit tokens to be withdrawn\n     * @param requestBlock The block number when the withdrawal request was made\n     */\n    struct WithdrawalRequest {\n        uint256 jpyAmount;\n        uint256 tokenAmount;\n        uint256 requestBlock;\n    }\n\n    /**\n     * @notice Thrown when the token address provided is zero\n     */\n    error ZeroTokenAddress();\n\n    /**\n     * @notice Thrown when the price feed address provided is zero\n     */\n    error ZeroPriceFeedAddress();\n\n    /**\n     * @notice Thrown when the Pyth valid time period provided is zero\n     */\n    error ZeroPythValidTimePeriod();\n\n    /**\n     * @notice Thrown when the price feed has invalid decimals\n     * @param decimals The invalid decimals value\n     */\n    error InvalidPriceFeedDecimals(uint8 decimals);\n\n    /*\n     * @notice Thrown when a withdrawal request is already pending\n     */\n    error WithdrawalRequestPending();\n\n    /*\n     * @notice Thrown when the cooldown period for withdrawal has not been met\n     */\n    error CooldownPeriodNotMet();\n\n    /*\n     * @notice Thrown when trying to execute a withdrawal without an existing request\n     */\n    error NoWithdrawalRequest();\n\n    /*\n     * @notice Thrown when the withdrawn amount is less than requested\n     * @param requested The requested amount\n     * @param withdrawn The actually withdrawn amount\n     */\n    error InsufficientWithdrawn(uint256 requested, uint256 withdrawn);\n\n    /*\n     * @notice Thrown when the new cooldown blocks are out of the allowed range\n     * @param newCooldownBlocks The proposed new cooldown blocks\n     * @param minBlocks The minimum allowed cooldown blocks\n     * @param maxBlocks The maximum allowed cooldown blocks\n     */\n    error CooldownBlocksOutOfRange(\n        uint256 newCooldownBlocks,\n        uint256 minBlocks,\n        uint256 maxBlocks\n    );\n\n    /*\n     * @notice Thrown when the new protocol fee is out of the allowed range\n     * @param newFeeBps The proposed new fee in basis points\n     * @param minFeeBps The minimum allowed fee in basis points\n     * @param maxFeeBps The maximum allowed fee in basis points\n     */\n    error ProtocolFeeOutOfRange(\n        uint256 newFeeBps,\n        uint256 minFeeBps,\n        uint256 maxFeeBps\n    );\n\n    /*\n     * @notice Thrown when a price feed is not set for a token\n     * @param token The address of the token without a price feed\n     */\n    error PriceFeedNotSet(address token);\n\n    /*\n     * @notice Thrown when an invalid price is received from the price feed\n     * @param token The address of the token with an invalid price\n     */\n    error InvalidPrice(address token);\n\n    /*\n     * @notice Emitted when the cooldown blocks are updated\n     * @param newCooldownBlocks The new cooldown blocks value\n     */\n    event CooldownBlocksUpdated(uint256 newCooldownBlocks);\n\n    /*\n     * @notice Emitted when fees are collected\n     * @param amount The amount of fees collected\n     */\n    event FeesCollected(uint256 amount);\n\n    /*\n     * @notice Emitted when the protocol fee is updated\n     * @param newFeeBps The new protocol fee in basis points\n     */\n    event ProtocolFeeUpdated(uint256 newFeeBps);\n\n    /*\n     * @notice Emitted when a price feed is updated\n     * @param token The address of the token\n     * @param priceFeed The address of the new price feed\n     * @param decimals The number of decimals for the price feed\n     */\n    event PriceFeedUpdated(\n        address indexed token,\n        address indexed priceFeed,\n        uint8 decimals\n    );\n\n    /*\n     * @notice Emitted when the Pyth valid time period is updated\n     * @param newPythValidTimePeriod The new Pyth valid time period\n     */\n    event PythValidTimePeriodUpdated(uint256 newPythValidTimePeriod);\n\n    /*\n     * @notice Emitted when a deposit is made\n     * @param user The address of the user making the deposit\n     * @param depositTokenAmount The amount of deposit tokens\n     * @param jpyAmount The equivalent amount in JPY which is minted to the user\n     */\n    event Deposited(\n        address indexed user,\n        uint256 depositTokenAmount,\n        uint256 jpyAmount\n    );\n\n    /*\n     * @notice Emitted when a withdrawal is requested\n     * @param user The address of the user requesting the withdrawal\n     * @param jpyAmount The amount of JPY requested for withdrawal\n     * @param tokenAmount The equivalent amount in deposit tokens\n     */\n    event WithdrawalRequested(\n        address indexed user,\n        uint256 jpyAmount,\n        uint256 tokenAmount\n    );\n\n    /*\n     * @notice Emitted when a withdrawal is executed\n     * @param user The address of the user executing the withdrawal\n     * @param tokenAmount The amount of tokens withdrawn\n     */\n    event WithdrawalExecuted(address indexed user, uint256 tokenAmount);\n\n    /*\n     * @notice Emitted when fees are withdrawn\n     * @param to The address receiving the withdrawn fees\n     * @param amount The amount of fees withdrawn\n     */\n    event FeeWithdrawn(address indexed to, uint256 amount);\n\n    /*\n     * @notice Emitted when Aave profit is withdrawn\n     * @param amount The amount of profit withdrawn\n     */\n    event AaveProfitWithdrawn(uint256 amount);\n\n    /**\n     * @notice Deposit tokens into the contract\n     * @param to The address to receive the minted JPY tokens\n     * @param depositAmount The amount of deposit tokens to deposit\n     * @dev This function will:\n     *      1. Transfer deposit tokens from the sender to this contract\n     *      2. Supply the tokens to Aave\n     *      3. Mint equivalent JPY tokens to the recipient\n     *      e.g., If depositing 100 USDC and 1 USDC = 100 JPY, it will mint 10,000 JPY tokens\n     */\n    function deposit(address to, uint256 depositAmount) external;\n\n    /**\n     * @notice Deposit tokens into the contract using permit\n     * @param to The address to receive the minted JPY tokens\n     * @param depositAmount The amount of deposit tokens to deposit\n     * @param deadline The deadline for the permit\n     * @param v The v value of the permit signature\n     * @param r The r value of the permit signature\n     * @param s The s value of the permit signature\n     * @dev This function works like `deposit` but uses EIP-2612 permit for approval\n     */\n    function depositWithPermit(\n        address to,\n        uint256 depositAmount,\n        uint256 deadline,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) external;\n\n    /**\n     * @notice Request a withdrawal of JPY tokens\n     * @param jpyAmount The amount of JPY tokens to withdraw\n     * @dev This function will:\n     *      1. Burn the JPY tokens from the sender\n     *      2. Create a withdrawal request\n     *      3. Withdraw tokens from Aave to this contract\n     *      e.g., If requesting withdrawal of 10,000 JPY and 1 USDC = 100 JPY, it will prepare 100 USDC for withdrawal\n     */\n    function requestWithdrawal(uint256 jpyAmount) external;\n\n    /**\n     * @notice Request a withdrawal of JPY tokens using permit\n     * @param jpyAmount The amount of JPY tokens to withdraw\n     * @param deadline The deadline for the permit\n     * @param v The v value of the permit signature\n     * @param r The r value of the permit signature\n     * @param s The s value of the permit signature\n     * @dev This function works like `requestWithdrawal` but uses EIP-2612 permit for approval\n     */\n    function requestWithdrawalWithPermit(\n        uint256 jpyAmount,\n        uint256 deadline,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) external;\n\n    /**\n     * @notice Execute a previously requested withdrawal\n     * @dev This function will:\n     *      1. Check if the cooldown period has passed\n     *      2. Transfer the prepared deposit tokens to the user\n     *      3. Delete the withdrawal request\n     *      e.g., If a withdrawal of 100 USDC was requested and the cooldown has passed, it will transfer 100 USDC to\n     * the user\n     */\n    function executeWithdrawal() external;\n\n    /**\n     * @notice Set or update the price feed for a specific token\n     * @dev This function allows the authorized role to set or update\n     *      the Chainlink price feed for a given token. This price feed is used to calculate\n     *      exchange rates and token values in USD.\n     *\n     * @param token The address of the token for which to set the price feed\n     * @param priceFeedAddress The address of the Chainlink price feed contract\n     *\n     * @notice Important considerations:\n     * - Only callable by authorized roles\n     * - The price feed should return the token price in USD\n     * - Updating a price feed may affect all subsequent calculations and operations involving that token\n     * - Emits a PriceFeedUpdated event upon successful update\n     *\n     * @notice Security considerations:\n     * - Ensure the priceFeedAddress is a valid and trusted Chainlink price feed\n     * - Incorrect price feeds can lead to severe miscalculations and potential loss of funds\n     * - Consider implementing a time lock or multi-sig requirement for this critical operation\n     */\n    function setPriceFeed(address token, address priceFeedAddress) external;\n\n    /**\n     * @notice Set or update the Pyth valid time period\n     * @dev This function allows the authorized role to set or update\n     *      the Pyth valid time period for the USD/JPY price feed.\n     *\n     * @param newPythValidTimePeriod The new value for the valid time period\n     *\n     * @notice Important considerations:\n     * - Only callable by authorized roles\n     * - Emits a PythValidTimePeriodUpdated event upon successful update\n     */\n    function setPythValidTimePeriod(uint256 newPythValidTimePeriod) external;\n\n    /**\n     * @notice Set the cooldown period for withdrawals\n     * @dev This function allows the authorized role to set the cooldown period\n     *      that users must wait between requesting a withdrawal and executing it.\n     *\n     * @param newCooldownBlocks The new cooldown period in number of blocks\n     *\n     * @notice Important considerations:\n     * - Only callable by authorized roles\n     * - The new cooldown period must be within the allowed range (MIN_COOLDOWN_BLOCKS to MAX_COOLDOWN_BLOCKS)\n     * - Changing the cooldown period affects all subsequent withdrawal requests\n     * - Emits a CooldownBlocksUpdated event upon successful update\n     *\n     * @notice Security considerations:\n     * - A longer cooldown period provides more security but may inconvenience users\n     * - A shorter cooldown period might increase the risk of certain types of attacks\n     * - Consider the impact on user experience and contract security when changing this value\n     */\n    function setCooldownBlocks(uint256 newCooldownBlocks) external;\n\n    /**\n     * @notice Set the protocol fee rate\n     * @dev This function allows the authorized role to set the protocol fee rate.\n     *      The fee is applied to deposits and is a source of revenue for the protocol.\n     *\n     * @param newFeeBps The new protocol fee rate in basis points (1 bp = 0.01%)\n     *\n     * @notice Important considerations:\n     * - Only callable by authorized roles\n     * - The new fee rate must be within the allowed range (MIN_PROTOCOL_FEE_BPS to MAX_PROTOCOL_FEE_BPS)\n     * - Changing the fee rate affects all subsequent deposits\n     * - Emits a ProtocolFeeUpdated event upon successful update\n     *\n     * @notice Security considerations:\n     * - Consider implementing a time lock or gradual fee change mechanism for large adjustments\n     */\n    function setProtocolFeeBps(uint256 newFeeBps) external;\n\n    /**\n     * @notice Withdraw accumulated protocol fees to a specified address\n     * @dev This function allows authorized role to withdraw\n     *      the accumulated protocol fees. These fees are collected from user deposits\n     *      and are stored separately from the main deposit pool.\n     *\n     * @notice Important considerations:\n     * - Only callable by authorized roles\n     * - The fees are in the deposit token (e.g., USDC)\n     * - This action will reset the accumulated fee amount to zero\n     * - Emits a FeeWithdrawn event upon successful withdrawal\n     *\n     * @notice Security considerations:\n     * - This function should have appropriate access controls\n     */\n    function withdrawFeeAmount() external;\n\n    /**\n     * @notice Withdraw and realize the profit generated from Aave deposits\n     * @dev This function calculates the current Aave profit (difference between\n     *      aToken balance and total deposited amount), withdraws it from Aave,\n     *      and transfers it to the caller.\n     *\n     * @notice Profit calculation:\n     * 1. Calculate profit: aToken balance - total deposited amount\n     * 2. Withdraw this profit amount from Aave\n     * 3. Update the contract's accounting of total deposits\n     *\n     * @notice Important considerations:\n     * - Only callable by authorized roles\n     * - The profit is in the form of the deposit token (e.g., USDC)\n     * - This action realizes the profit, making it available for further operations\n     * - Emits an AaveProfitWithdrawn event upon successful withdrawal\n     *\n     * @notice Security considerations:\n     * - This function interacts with external protocols (Aave), ensure proper integration\n     * - Appropriate access controls should be in place\n     */\n    function withdrawAaveProfit() external;\n}\n"},{"file_path":"src/libraries/PythUtils.sol","source_code":"// SPDX-License-Identifier: Apache-2.0\n// Pyth Contracts (last updated commit cfa52f5) (target_chains/ethereum/sdk/solidity/Math.sol)\n// Source: https://github.com/pyth-network/pyth-crosschain/blob/main/target_chains/ethereum/sdk/solidity/PythUtils.sol\n\n// Note: We only copy the subset of the library methods that we need\n\npragma solidity 0.8.27;\n\nimport {Math} from \"@openzeppelin/contracts/utils/math/Math.sol\";\nimport {SignedMath} from \"@openzeppelin/contracts/utils/math/SignedMath.sol\";\n\nlibrary PythUtils {\n    error NegativeInputPrice();\n    error InvalidInputExpo();\n    error ExponentOverflow();\n    error CombinedPriceOverflow();\n\n    /// @notice Converts a Pyth price to a uint256 with a target number of decimals\n    /// @param price The Pyth price\n    /// @param expo The Pyth price exponent\n    /// @param targetDecimals The target number of decimals\n    /// @return The price as a uint256\n    /// @dev Function will lose precision if targetDecimals is less than the Pyth price decimals.\n    /// This method will truncate any digits that cannot be represented by the targetDecimals.\n    /// e.g. If the price is 0.000123 and the targetDecimals is 2, the result will be 0\n    /// This function will revert with PythErrors.ExponentOverflow if the combined exponent (targetDecimals + expo) is greater than 58 or less than -58.\n    /// Assuming the combined exponent is within bounds, this function will work for full range of int64 prices.\n    /// The result of the computation is rounded down. In particular, if the result is < 1 in the delta exponent, it will be rounded to 0\n    function convertToUint(\n        int64 price,\n        int32 expo,\n        uint8 targetDecimals\n    ) internal pure returns (uint256) {\n        if (price < 0) {\n            revert NegativeInputPrice();\n        }\n        if (expo < -255) {\n            revert InvalidInputExpo();\n        }\n\n        // If targetDecimals is 6, we want to multiply the final price by 10 ** -6\n        // So the delta exponent is targetDecimals + currentExpo\n        int32 deltaExponent = int32(uint32(targetDecimals)) + expo;\n\n        // Bounds check: prevent overflow/underflow with base 10 exponentiation\n        // Calculation: 10 ** n <= (2 ** 256 - 63) - 1\n        //              n <= log10((2 ** 193) - 1)\n        //              n <= 58.2\n        if (deltaExponent > 58 || deltaExponent < -58)\n            revert ExponentOverflow();\n\n        // We can safely cast the price to uint256 because the above condition will revert if the price is negative\n        uint256 unsignedPrice = uint256(uint64(price));\n\n        if (deltaExponent > 0) {\n            (bool success, uint256 result) = Math.tryMul(\n                unsignedPrice,\n                10 ** uint32(deltaExponent)\n            );\n            // This condition is unreachable since we validated deltaExponent bounds above.\n            // But keeping it here for safety.\n            if (!success) {\n                revert CombinedPriceOverflow();\n            }\n            return result;\n        } else {\n            (bool success, uint256 result) = Math.tryDiv(\n                unsignedPrice,\n                10 ** uint(SignedMath.abs(deltaExponent))\n            );\n            // This condition is unreachable since we validated deltaExponent bounds above.\n            // But keeping it here for safety.\n            if (!success) {\n                revert CombinedPriceOverflow();\n            }\n            return result;\n        }\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":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"CombinedPriceOverflow","type":"error"},{"inputs":[{"internalType":"uint256","name":"newCooldownBlocks","type":"uint256"},{"internalType":"uint256","name":"minBlocks","type":"uint256"},{"internalType":"uint256","name":"maxBlocks","type":"uint256"}],"name":"CooldownBlocksOutOfRange","type":"error"},{"inputs":[],"name":"CooldownPeriodNotMet","type":"error"},{"inputs":[{"internalType":"address","name":"implementation","type":"address"}],"name":"ERC1967InvalidImplementation","type":"error"},{"inputs":[],"name":"ERC1967NonPayable","type":"error"},{"inputs":[],"name":"ExponentOverflow","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[{"internalType":"uint256","name":"requested","type":"uint256"},{"internalType":"uint256","name":"withdrawn","type":"uint256"}],"name":"InsufficientWithdrawn","type":"error"},{"inputs":[],"name":"InvalidInitialization","type":"error"},{"inputs":[],"name":"InvalidInputExpo","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"InvalidPrice","type":"error"},{"inputs":[{"internalType":"uint8","name":"decimals","type":"uint8"}],"name":"InvalidPriceFeedDecimals","type":"error"},{"inputs":[],"name":"MathOverflowedMulDiv","type":"error"},{"inputs":[],"name":"NegativeInputPrice","type":"error"},{"inputs":[],"name":"NoWithdrawalRequest","type":"error"},{"inputs":[],"name":"NotInitializing","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"PriceFeedNotSet","type":"error"},{"inputs":[{"internalType":"uint256","name":"newFeeBps","type":"uint256"},{"internalType":"uint256","name":"minFeeBps","type":"uint256"},{"internalType":"uint256","name":"maxFeeBps","type":"uint256"}],"name":"ProtocolFeeOutOfRange","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[],"name":"UUPSUnauthorizedCallContext","type":"error"},{"inputs":[{"internalType":"bytes32","name":"slot","type":"bytes32"}],"name":"UUPSUnsupportedProxiableUUID","type":"error"},{"inputs":[],"name":"WithdrawalRequestPending","type":"error"},{"inputs":[],"name":"ZeroPriceFeedAddress","type":"error"},{"inputs":[],"name":"ZeroPythValidTimePeriod","type":"error"},{"inputs":[],"name":"ZeroTokenAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"AaveProfitWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newCooldownBlocks","type":"uint256"}],"name":"CooldownBlocksUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"depositTokenAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"jpyAmount","type":"uint256"}],"name":"Deposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FeeWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FeesCollected","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"version","type":"uint64"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"priceFeed","type":"address"},{"indexed":false,"internalType":"uint8","name":"decimals","type":"uint8"}],"name":"PriceFeedUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newFeeBps","type":"uint256"}],"name":"ProtocolFeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newPythValidTimePeriod","type":"uint256"}],"name":"PythValidTimePeriodUpdated","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":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"WithdrawalExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"jpyAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"WithdrawalRequested","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_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":[],"name":"aavePool","outputs":[{"internalType":"contract IPool","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"aaveWrappedDepositToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cooldownBlocks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"depositAmount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"depositAmount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"depositWithPermit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"executeWithdrawal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getCurrentAaveProfit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDepositRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDepositTokenToJpyAverageRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getJpyToDepositTokenAverageRate","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":"token","type":"address"}],"name":"getTokenUsdRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getUsdJpyRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint8","name":"","type":"uint8"}],"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":"defaultAdmin","type":"address"},{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"aavePoolAddress","type":"address"},{"internalType":"address","name":"pythAddress","type":"address"},{"internalType":"bytes32","name":"usdJpyPriceId","type":"bytes32"},{"internalType":"uint256","name":"validTimePeriod","type":"uint256"},{"internalType":"address","name":"depositTokenAddress","type":"address"},{"internalType":"address","name":"depositTokenUsdPriceFeedAddress","type":"address"},{"internalType":"address","name":"jpyTokenAddress","type":"address"},{"internalType":"uint256","name":"initialCooldownBlocks","type":"uint256"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"jpyToken","outputs":[{"internalType":"contract IERC20MintableBurnable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"protocolFeeBps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pyth","outputs":[{"internalType":"contract IPyth","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pythUsdJpyPriceId","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pythValidTimePeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"callerConfirmation","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"jpyAmount","type":"uint256"}],"name":"requestWithdrawal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"jpyAmount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"requestWithdrawalWithPermit","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":"newCooldownBlocks","type":"uint256"}],"name":"setCooldownBlocks","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"priceFeedAddress","type":"address"}],"name":"setPriceFeed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newFeeBps","type":"uint256"}],"name":"setProtocolFeeBps","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPythValidTimePeriod","type":"uint256"}],"name":"setPythValidTimePeriod","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":[{"internalType":"address","name":"","type":"address"}],"name":"tokenUsdPriceFeeds","outputs":[{"internalType":"contract IAggregatorV3","name":"priceFeed","type":"address"},{"internalType":"uint8","name":"decimals","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalDepositToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFeeAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMintedJpy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdrawAaveProfit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFeeAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"withdrawalRequests","outputs":[{"internalType":"uint256","name":"jpyAmount","type":"uint256"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"internalType":"uint256","name":"requestBlock","type":"uint256"}],"stateMutability":"view","type":"function"}],"is_changed_bytecode":false,"is_partially_verified":true,"constructor_args":null}