{"additional_sources":[{"file_path":"lib/solady/src/auth/Ownable.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Simple single owner authorization mixin.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/auth/Ownable.sol)\n///\n/// @dev Note:\n/// This implementation does NOT auto-initialize the owner to `msg.sender`.\n/// You MUST call the `_initializeOwner` in the constructor / initializer.\n///\n/// While the ownable portion follows\n/// [EIP-173](https://eips.ethereum.org/EIPS/eip-173) for compatibility,\n/// the nomenclature for the 2-step ownership handover may be unique to this codebase.\nabstract contract Ownable {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       CUSTOM ERRORS                        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The caller is not authorized to call the function.\n    error Unauthorized();\n\n    /// @dev The `newOwner` cannot be the zero address.\n    error NewOwnerIsZeroAddress();\n\n    /// @dev The `pendingOwner` does not have a valid handover request.\n    error NoHandoverRequest();\n\n    /// @dev Cannot double-initialize.\n    error AlreadyInitialized();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                           EVENTS                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The ownership is transferred from `oldOwner` to `newOwner`.\n    /// This event is intentionally kept the same as OpenZeppelin's Ownable to be\n    /// compatible with indexers and [EIP-173](https://eips.ethereum.org/EIPS/eip-173),\n    /// despite it not being as lightweight as a single argument event.\n    event OwnershipTransferred(address indexed oldOwner, address indexed newOwner);\n\n    /// @dev An ownership handover to `pendingOwner` has been requested.\n    event OwnershipHandoverRequested(address indexed pendingOwner);\n\n    /// @dev The ownership handover to `pendingOwner` has been canceled.\n    event OwnershipHandoverCanceled(address indexed pendingOwner);\n\n    /// @dev `keccak256(bytes(\"OwnershipTransferred(address,address)\"))`.\n    uint256 private constant _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE =\n        0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0;\n\n    /// @dev `keccak256(bytes(\"OwnershipHandoverRequested(address)\"))`.\n    uint256 private constant _OWNERSHIP_HANDOVER_REQUESTED_EVENT_SIGNATURE =\n        0xdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d;\n\n    /// @dev `keccak256(bytes(\"OwnershipHandoverCanceled(address)\"))`.\n    uint256 private constant _OWNERSHIP_HANDOVER_CANCELED_EVENT_SIGNATURE =\n        0xfa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                          STORAGE                           */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The owner slot is given by:\n    /// `bytes32(~uint256(uint32(bytes4(keccak256(\"_OWNER_SLOT_NOT\")))))`.\n    /// It is intentionally chosen to be a high value\n    /// to avoid collision with lower slots.\n    /// The choice of manual storage layout is to enable compatibility\n    /// with both regular and upgradeable contracts.\n    bytes32 internal constant _OWNER_SLOT =\n        0xffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927;\n\n    /// The ownership handover slot of `newOwner` is given by:\n    /// ```\n    ///     mstore(0x00, or(shl(96, user), _HANDOVER_SLOT_SEED))\n    ///     let handoverSlot := keccak256(0x00, 0x20)\n    /// ```\n    /// It stores the expiry timestamp of the two-step ownership handover.\n    uint256 private constant _HANDOVER_SLOT_SEED = 0x389a75e1;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                     INTERNAL FUNCTIONS                     */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Override to return true to make `_initializeOwner` prevent double-initialization.\n    function _guardInitializeOwner() internal pure virtual returns (bool guard) {}\n\n    /// @dev Initializes the owner directly without authorization guard.\n    /// This function must be called upon initialization,\n    /// regardless of whether the contract is upgradeable or not.\n    /// This is to enable generalization to both regular and upgradeable contracts,\n    /// and to save gas in case the initial owner is not the caller.\n    /// For performance reasons, this function will not check if there\n    /// is an existing owner.\n    function _initializeOwner(address newOwner) internal virtual {\n        if (_guardInitializeOwner()) {\n            /// @solidity memory-safe-assembly\n            assembly {\n                let ownerSlot := _OWNER_SLOT\n                if sload(ownerSlot) {\n                    mstore(0x00, 0x0dc149f0) // `AlreadyInitialized()`.\n                    revert(0x1c, 0x04)\n                }\n                // Clean the upper 96 bits.\n                newOwner := shr(96, shl(96, newOwner))\n                // Store the new value.\n                sstore(ownerSlot, or(newOwner, shl(255, iszero(newOwner))))\n                // Emit the {OwnershipTransferred} event.\n                log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, 0, newOwner)\n            }\n        } else {\n            /// @solidity memory-safe-assembly\n            assembly {\n                // Clean the upper 96 bits.\n                newOwner := shr(96, shl(96, newOwner))\n                // Store the new value.\n                sstore(_OWNER_SLOT, newOwner)\n                // Emit the {OwnershipTransferred} event.\n                log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, 0, newOwner)\n            }\n        }\n    }\n\n    /// @dev Sets the owner directly without authorization guard.\n    function _setOwner(address newOwner) internal virtual {\n        if (_guardInitializeOwner()) {\n            /// @solidity memory-safe-assembly\n            assembly {\n                let ownerSlot := _OWNER_SLOT\n                // Clean the upper 96 bits.\n                newOwner := shr(96, shl(96, newOwner))\n                // Emit the {OwnershipTransferred} event.\n                log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, sload(ownerSlot), newOwner)\n                // Store the new value.\n                sstore(ownerSlot, or(newOwner, shl(255, iszero(newOwner))))\n            }\n        } else {\n            /// @solidity memory-safe-assembly\n            assembly {\n                let ownerSlot := _OWNER_SLOT\n                // Clean the upper 96 bits.\n                newOwner := shr(96, shl(96, newOwner))\n                // Emit the {OwnershipTransferred} event.\n                log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, sload(ownerSlot), newOwner)\n                // Store the new value.\n                sstore(ownerSlot, newOwner)\n            }\n        }\n    }\n\n    /// @dev Throws if the sender is not the owner.\n    function _checkOwner() internal view virtual {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // If the caller is not the stored owner, revert.\n            if iszero(eq(caller(), sload(_OWNER_SLOT))) {\n                mstore(0x00, 0x82b42900) // `Unauthorized()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Returns how long a two-step ownership handover is valid for in seconds.\n    /// Override to return a different value if needed.\n    /// Made internal to conserve bytecode. Wrap it in a public function if needed.\n    function _ownershipHandoverValidFor() internal view virtual returns (uint64) {\n        return 48 * 3600;\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                  PUBLIC UPDATE FUNCTIONS                   */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Allows the owner to transfer the ownership to `newOwner`.\n    function transferOwnership(address newOwner) public payable virtual onlyOwner {\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(shl(96, newOwner)) {\n                mstore(0x00, 0x7448fbae) // `NewOwnerIsZeroAddress()`.\n                revert(0x1c, 0x04)\n            }\n        }\n        _setOwner(newOwner);\n    }\n\n    /// @dev Allows the owner to renounce their ownership.\n    function renounceOwnership() public payable virtual onlyOwner {\n        _setOwner(address(0));\n    }\n\n    /// @dev Request a two-step ownership handover to the caller.\n    /// The request will automatically expire in 48 hours (172800 seconds) by default.\n    function requestOwnershipHandover() public payable virtual {\n        unchecked {\n            uint256 expires = block.timestamp + _ownershipHandoverValidFor();\n            /// @solidity memory-safe-assembly\n            assembly {\n                // Compute and set the handover slot to `expires`.\n                mstore(0x0c, _HANDOVER_SLOT_SEED)\n                mstore(0x00, caller())\n                sstore(keccak256(0x0c, 0x20), expires)\n                // Emit the {OwnershipHandoverRequested} event.\n                log2(0, 0, _OWNERSHIP_HANDOVER_REQUESTED_EVENT_SIGNATURE, caller())\n            }\n        }\n    }\n\n    /// @dev Cancels the two-step ownership handover to the caller, if any.\n    function cancelOwnershipHandover() public payable virtual {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Compute and set the handover slot to 0.\n            mstore(0x0c, _HANDOVER_SLOT_SEED)\n            mstore(0x00, caller())\n            sstore(keccak256(0x0c, 0x20), 0)\n            // Emit the {OwnershipHandoverCanceled} event.\n            log2(0, 0, _OWNERSHIP_HANDOVER_CANCELED_EVENT_SIGNATURE, caller())\n        }\n    }\n\n    /// @dev Allows the owner to complete the two-step ownership handover to `pendingOwner`.\n    /// Reverts if there is no existing ownership handover requested by `pendingOwner`.\n    function completeOwnershipHandover(address pendingOwner) public payable virtual onlyOwner {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Compute and set the handover slot to 0.\n            mstore(0x0c, _HANDOVER_SLOT_SEED)\n            mstore(0x00, pendingOwner)\n            let handoverSlot := keccak256(0x0c, 0x20)\n            // If the handover does not exist, or has expired.\n            if gt(timestamp(), sload(handoverSlot)) {\n                mstore(0x00, 0x6f5e8818) // `NoHandoverRequest()`.\n                revert(0x1c, 0x04)\n            }\n            // Set the handover slot to 0.\n            sstore(handoverSlot, 0)\n        }\n        _setOwner(pendingOwner);\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                   PUBLIC READ FUNCTIONS                    */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Returns the owner of the contract.\n    function owner() public view virtual returns (address result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := sload(_OWNER_SLOT)\n        }\n    }\n\n    /// @dev Returns the expiry timestamp for the two-step ownership handover to `pendingOwner`.\n    function ownershipHandoverExpiresAt(address pendingOwner)\n        public\n        view\n        virtual\n        returns (uint256 result)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Compute the handover slot.\n            mstore(0x0c, _HANDOVER_SLOT_SEED)\n            mstore(0x00, pendingOwner)\n            // Load the handover slot.\n            result := sload(keccak256(0x0c, 0x20))\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                         MODIFIERS                          */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Marks a function as only callable by the owner.\n    modifier onlyOwner() virtual {\n        _checkOwner();\n        _;\n    }\n}\n"},{"file_path":"lib/solady/src/utils/SafeTransferLib.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\n/// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values.\n/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/SafeTransferLib.sol)\n/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SafeTransferLib.sol)\n/// @author Permit2 operations from (https://github.com/Uniswap/permit2/blob/main/src/libraries/Permit2Lib.sol)\n///\n/// @dev Note:\n/// - For ETH transfers, please use `forceSafeTransferETH` for DoS protection.\nlibrary SafeTransferLib {\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       CUSTOM ERRORS                        */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev The ETH transfer has failed.\n    error ETHTransferFailed();\n\n    /// @dev The ERC20 `transferFrom` has failed.\n    error TransferFromFailed();\n\n    /// @dev The ERC20 `transfer` has failed.\n    error TransferFailed();\n\n    /// @dev The ERC20 `approve` has failed.\n    error ApproveFailed();\n\n    /// @dev The ERC20 `totalSupply` query has failed.\n    error TotalSupplyQueryFailed();\n\n    /// @dev The Permit2 operation has failed.\n    error Permit2Failed();\n\n    /// @dev The Permit2 amount must be less than `2**160 - 1`.\n    error Permit2AmountOverflow();\n\n    /// @dev The Permit2 approve operation has failed.\n    error Permit2ApproveFailed();\n\n    /// @dev The Permit2 lockdown operation has failed.\n    error Permit2LockdownFailed();\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                         CONSTANTS                          */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Suggested gas stipend for contract receiving ETH that disallows any storage writes.\n    uint256 internal constant GAS_STIPEND_NO_STORAGE_WRITES = 2300;\n\n    /// @dev Suggested gas stipend for contract receiving ETH to perform a few\n    /// storage reads and writes, but low enough to prevent griefing.\n    uint256 internal constant GAS_STIPEND_NO_GRIEF = 100000;\n\n    /// @dev The unique EIP-712 domain separator for the DAI token contract.\n    bytes32 internal constant DAI_DOMAIN_SEPARATOR =\n        0xdbb8cf42e1ecb028be3f3dbc922e1d878b963f411dc388ced501601c60f7c6f7;\n\n    /// @dev The address for the WETH9 contract on Ethereum mainnet.\n    address internal constant WETH9 = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;\n\n    /// @dev The canonical Permit2 address.\n    /// [Github](https://github.com/Uniswap/permit2)\n    /// [Etherscan](https://etherscan.io/address/0x000000000022D473030F116dDEE9F6B43aC78BA3)\n    address internal constant PERMIT2 = 0x000000000022D473030F116dDEE9F6B43aC78BA3;\n\n    /// @dev The canonical address of the `SELFDESTRUCT` ETH mover.\n    /// See: https://gist.github.com/Vectorized/1cb8ad4cf393b1378e08f23f79bd99fa\n    /// [Etherscan](https://etherscan.io/address/0x00000000000073c48c8055bD43D1A53799176f0D)\n    address internal constant ETH_MOVER = 0x00000000000073c48c8055bD43D1A53799176f0D;\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                       ETH OPERATIONS                       */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    // If the ETH transfer MUST succeed with a reasonable gas budget, use the force variants.\n    //\n    // The regular variants:\n    // - Forwards all remaining gas to the target.\n    // - Reverts if the target reverts.\n    // - Reverts if the current contract has insufficient balance.\n    //\n    // The force variants:\n    // - Forwards with an optional gas stipend\n    //   (defaults to `GAS_STIPEND_NO_GRIEF`, which is sufficient for most cases).\n    // - If the target reverts, or if the gas stipend is exhausted,\n    //   creates a temporary contract to force send the ETH via `SELFDESTRUCT`.\n    //   Future compatible with `SENDALL`: https://eips.ethereum.org/EIPS/eip-4758.\n    // - Reverts if the current contract has insufficient balance.\n    //\n    // The try variants:\n    // - Forwards with a mandatory gas stipend.\n    // - Instead of reverting, returns whether the transfer succeeded.\n\n    /// @dev Sends `amount` (in wei) ETH to `to`.\n    function safeTransferETH(address to, uint256 amount) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(call(gas(), to, amount, codesize(), 0x00, codesize(), 0x00)) {\n                mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Sends all the ETH in the current contract to `to`.\n    function safeTransferAllETH(address to) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Transfer all the ETH and check if it succeeded or not.\n            if iszero(call(gas(), to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {\n                mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Force sends `amount` (in wei) ETH to `to`, with a `gasStipend`.\n    function forceSafeTransferETH(address to, uint256 amount, uint256 gasStipend) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            if lt(selfbalance(), amount) {\n                mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                revert(0x1c, 0x04)\n            }\n            if iszero(call(gasStipend, to, amount, codesize(), 0x00, codesize(), 0x00)) {\n                mstore(0x00, to) // Store the address in scratch space.\n                mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n                mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n                if iszero(create(amount, 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n            }\n        }\n    }\n\n    /// @dev Force sends all the ETH in the current contract to `to`, with a `gasStipend`.\n    function forceSafeTransferAllETH(address to, uint256 gasStipend) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            if iszero(call(gasStipend, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {\n                mstore(0x00, to) // Store the address in scratch space.\n                mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n                mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n                if iszero(create(selfbalance(), 0x0b, 0x16)) {\n                    revert(codesize(), codesize())\n                } // For gas estimation.\n            }\n        }\n    }\n\n    /// @dev Force sends `amount` (in wei) ETH to `to`, with `GAS_STIPEND_NO_GRIEF`.\n    function forceSafeTransferETH(address to, uint256 amount) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            if lt(selfbalance(), amount) {\n                mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                revert(0x1c, 0x04)\n            }\n            if iszero(call(GAS_STIPEND_NO_GRIEF, to, amount, codesize(), 0x00, codesize(), 0x00)) {\n                mstore(0x00, to) // Store the address in scratch space.\n                mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n                mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n                if iszero(create(amount, 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n            }\n        }\n    }\n\n    /// @dev Force sends all the ETH in the current contract to `to`, with `GAS_STIPEND_NO_GRIEF`.\n    function forceSafeTransferAllETH(address to) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n\n            // forgefmt: disable-next-item\n            if iszero(call(GAS_STIPEND_NO_GRIEF, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)) {\n                mstore(0x00, to) // Store the address in scratch space.\n                mstore8(0x0b, 0x73) // Opcode `PUSH20`.\n                mstore8(0x20, 0xff) // Opcode `SELFDESTRUCT`.\n                if iszero(create(selfbalance(), 0x0b, 0x16)) { revert(codesize(), codesize()) } // For gas estimation.\n            }\n        }\n    }\n\n    /// @dev Sends `amount` (in wei) ETH to `to`, with a `gasStipend`.\n    function trySafeTransferETH(address to, uint256 amount, uint256 gasStipend)\n        internal\n        returns (bool success)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            success := call(gasStipend, to, amount, codesize(), 0x00, codesize(), 0x00)\n        }\n    }\n\n    /// @dev Sends all the ETH in the current contract to `to`, with a `gasStipend`.\n    function trySafeTransferAllETH(address to, uint256 gasStipend) internal returns (bool success) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            success := call(gasStipend, to, selfbalance(), codesize(), 0x00, codesize(), 0x00)\n        }\n    }\n\n    /// @dev Force transfers ETH to `to`, without triggering the fallback (if any).\n    /// This method attempts to use a separate contract to send via `SELFDESTRUCT`,\n    /// and upon failure, deploys a minimal vault to accrue the ETH.\n    function safeMoveETH(address to, uint256 amount) internal returns (address vault) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            to := shr(96, shl(96, to)) // Clean upper 96 bits.\n            for { let mover := ETH_MOVER } iszero(eq(to, address())) {} {\n                let selfBalanceBefore := selfbalance()\n                if or(lt(selfBalanceBefore, amount), eq(to, mover)) {\n                    mstore(0x00, 0xb12d13eb) // `ETHTransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n                if extcodesize(mover) {\n                    let balanceBefore := balance(to) // Check via delta, in case `SELFDESTRUCT` is bricked.\n                    mstore(0x00, to)\n                    pop(call(gas(), mover, amount, 0x00, 0x20, codesize(), 0x00))\n                    // If `address(to).balance >= amount + balanceBefore`, skip vault workflow.\n                    if iszero(lt(balance(to), add(amount, balanceBefore))) { break }\n                    // Just in case `SELFDESTRUCT` is changed to not revert and do nothing.\n                    if lt(selfBalanceBefore, selfbalance()) { invalid() }\n                }\n                let m := mload(0x40)\n                // If the mover is missing or bricked, deploy a minimal vault\n                // that withdraws all ETH to `to` when being called only by `to`.\n                // forgefmt: disable-next-item\n                mstore(add(m, 0x20), 0x33146025575b600160005260206000f35b3d3d3d3d47335af1601a5760003dfd)\n                mstore(m, or(to, shl(160, 0x6035600b3d3960353df3fe73)))\n                // Compute and store the bytecode hash.\n                mstore8(0x00, 0xff) // Write the prefix.\n                mstore(0x35, keccak256(m, 0x40))\n                mstore(0x01, shl(96, address())) // Deployer.\n                mstore(0x15, 0) // Salt.\n                vault := keccak256(0x00, 0x55)\n                pop(call(gas(), vault, amount, codesize(), 0x00, codesize(), 0x00))\n                // The vault returns a single word on success. Failure reverts with empty data.\n                if iszero(returndatasize()) {\n                    if iszero(create2(0, m, 0x40, 0)) { revert(codesize(), codesize()) } // For gas estimation.\n                }\n                mstore(0x40, m) // Restore the free memory pointer.\n                break\n            }\n        }\n    }\n\n    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n    /*                      ERC20 OPERATIONS                      */\n    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n    /// @dev Sends `amount` of ERC20 `token` from `from` to `to`.\n    /// Reverts upon failure.\n    ///\n    /// The `from` account must have at least `amount` approved for\n    /// the current contract to manage.\n    function safeTransferFrom(address token, address from, address to, uint256 amount) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, amount) // Store the `amount` argument.\n            mstore(0x40, to) // Store the `to` argument.\n            mstore(0x2c, shl(96, from)) // Store the `from` argument.\n            mstore(0x0c, 0x23b872dd000000000000000000000000) // `transferFrom(address,address,uint256)`.\n            let success := call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)\n            if iszero(and(eq(mload(0x00), 1), success)) {\n                if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n                    mstore(0x00, 0x7939f424) // `TransferFromFailed()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            mstore(0x60, 0) // Restore the zero slot to zero.\n            mstore(0x40, m) // Restore the free memory pointer.\n        }\n    }\n\n    /// @dev Sends `amount` of ERC20 `token` from `from` to `to`.\n    ///\n    /// The `from` account must have at least `amount` approved for the current contract to manage.\n    function trySafeTransferFrom(address token, address from, address to, uint256 amount)\n        internal\n        returns (bool success)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x60, amount) // Store the `amount` argument.\n            mstore(0x40, to) // Store the `to` argument.\n            mstore(0x2c, shl(96, from)) // Store the `from` argument.\n            mstore(0x0c, 0x23b872dd000000000000000000000000) // `transferFrom(address,address,uint256)`.\n            success := call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)\n            if iszero(and(eq(mload(0x00), 1), success)) {\n                success := lt(or(iszero(extcodesize(token)), returndatasize()), success)\n            }\n            mstore(0x60, 0) // Restore the zero slot to zero.\n            mstore(0x40, m) // Restore the free memory pointer.\n        }\n    }\n\n    /// @dev Sends all of ERC20 `token` from `from` to `to`.\n    /// Reverts upon failure.\n    ///\n    /// The `from` account must have their entire balance approved for the current contract to manage.\n    function safeTransferAllFrom(address token, address from, address to)\n        internal\n        returns (uint256 amount)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40) // Cache the free memory pointer.\n            mstore(0x40, to) // Store the `to` argument.\n            mstore(0x2c, shl(96, from)) // Store the `from` argument.\n            mstore(0x0c, 0x70a08231000000000000000000000000) // `balanceOf(address)`.\n            // Read the balance, reverting upon failure.\n            if iszero(\n                and( // The arguments of `and` are evaluated from right to left.\n                    gt(returndatasize(), 0x1f), // At least 32 bytes returned.\n                    staticcall(gas(), token, 0x1c, 0x24, 0x60, 0x20)\n                )\n            ) {\n                mstore(0x00, 0x7939f424) // `TransferFromFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x00, 0x23b872dd) // `transferFrom(address,address,uint256)`.\n            amount := mload(0x60) // The `amount` is already at 0x60. We'll need to return it.\n            // Perform the transfer, reverting upon failure.\n            let success := call(gas(), token, 0, 0x1c, 0x64, 0x00, 0x20)\n            if iszero(and(eq(mload(0x00), 1), success)) {\n                if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n                    mstore(0x00, 0x7939f424) // `TransferFromFailed()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            mstore(0x60, 0) // Restore the zero slot to zero.\n            mstore(0x40, m) // Restore the free memory pointer.\n        }\n    }\n\n    /// @dev Sends `amount` of ERC20 `token` from the current contract to `to`.\n    /// Reverts upon failure.\n    function safeTransfer(address token, address to, uint256 amount) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x14, to) // Store the `to` argument.\n            mstore(0x34, amount) // Store the `amount` argument.\n            mstore(0x00, 0xa9059cbb000000000000000000000000) // `transfer(address,uint256)`.\n            // Perform the transfer, reverting upon failure.\n            let success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n            if iszero(and(eq(mload(0x00), 1), success)) {\n                if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n                    mstore(0x00, 0x90b8ec18) // `TransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n        }\n    }\n\n    /// @dev Sends all of ERC20 `token` from the current contract to `to`.\n    /// Reverts upon failure.\n    function safeTransferAll(address token, address to) internal returns (uint256 amount) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x00, 0x70a08231) // Store the function selector of `balanceOf(address)`.\n            mstore(0x20, address()) // Store the address of the current contract.\n            // Read the balance, reverting upon failure.\n            if iszero(\n                and( // The arguments of `and` are evaluated from right to left.\n                    gt(returndatasize(), 0x1f), // At least 32 bytes returned.\n                    staticcall(gas(), token, 0x1c, 0x24, 0x34, 0x20)\n                )\n            ) {\n                mstore(0x00, 0x90b8ec18) // `TransferFailed()`.\n                revert(0x1c, 0x04)\n            }\n            mstore(0x14, to) // Store the `to` argument.\n            amount := mload(0x34) // The `amount` is already at 0x34. We'll need to return it.\n            mstore(0x00, 0xa9059cbb000000000000000000000000) // `transfer(address,uint256)`.\n            // Perform the transfer, reverting upon failure.\n            let success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n            if iszero(and(eq(mload(0x00), 1), success)) {\n                if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n                    mstore(0x00, 0x90b8ec18) // `TransferFailed()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n        }\n    }\n\n    /// @dev Sets `amount` of ERC20 `token` for `to` to manage on behalf of the current contract.\n    /// Reverts upon failure.\n    function safeApprove(address token, address to, uint256 amount) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x14, to) // Store the `to` argument.\n            mstore(0x34, amount) // Store the `amount` argument.\n            mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.\n            let success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n            if iszero(and(eq(mload(0x00), 1), success)) {\n                if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n                    mstore(0x00, 0x3e3f8f73) // `ApproveFailed()`.\n                    revert(0x1c, 0x04)\n                }\n            }\n            mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n        }\n    }\n\n    /// @dev Sets `amount` of ERC20 `token` for `to` to manage on behalf of the current contract.\n    /// If the initial attempt to approve fails, attempts to reset the approved amount to zero,\n    /// then retries the approval again (some tokens, e.g. USDT, requires this).\n    /// Reverts upon failure.\n    function safeApproveWithRetry(address token, address to, uint256 amount) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x14, to) // Store the `to` argument.\n            mstore(0x34, amount) // Store the `amount` argument.\n            mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.\n            // Perform the approval, retrying upon failure.\n            let success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n            if iszero(and(eq(mload(0x00), 1), success)) {\n                if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n                    mstore(0x34, 0) // Store 0 for the `amount`.\n                    mstore(0x00, 0x095ea7b3000000000000000000000000) // `approve(address,uint256)`.\n                    pop(call(gas(), token, 0, 0x10, 0x44, codesize(), 0x00)) // Reset the approval.\n                    mstore(0x34, amount) // Store back the original `amount`.\n                    // Retry the approval, reverting upon failure.\n                    success := call(gas(), token, 0, 0x10, 0x44, 0x00, 0x20)\n                    if iszero(and(eq(mload(0x00), 1), success)) {\n                        // Check the `extcodesize` again just in case the token selfdestructs lol.\n                        if iszero(lt(or(iszero(extcodesize(token)), returndatasize()), success)) {\n                            mstore(0x00, 0x3e3f8f73) // `ApproveFailed()`.\n                            revert(0x1c, 0x04)\n                        }\n                    }\n                }\n            }\n            mstore(0x34, 0) // Restore the part of the free memory pointer that was overwritten.\n        }\n    }\n\n    /// @dev Returns the amount of ERC20 `token` owned by `account`.\n    /// Returns zero if the `token` does not exist.\n    function balanceOf(address token, address account) internal view returns (uint256 amount) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x14, account) // Store the `account` argument.\n            mstore(0x00, 0x70a08231000000000000000000000000) // `balanceOf(address)`.\n            amount := mul( // The arguments of `mul` are evaluated from right to left.\n                mload(0x20),\n                and( // The arguments of `and` are evaluated from right to left.\n                    gt(returndatasize(), 0x1f), // At least 32 bytes returned.\n                    staticcall(gas(), token, 0x10, 0x24, 0x20, 0x20)\n                )\n            )\n        }\n    }\n\n    /// @dev Performs a `token.balanceOf(account)` check.\n    /// `implemented` denotes whether the `token` does not implement `balanceOf`.\n    /// `amount` is zero if the `token` does not implement `balanceOf`.\n    function checkBalanceOf(address token, address account)\n        internal\n        view\n        returns (bool implemented, uint256 amount)\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x14, account) // Store the `account` argument.\n            mstore(0x00, 0x70a08231000000000000000000000000) // `balanceOf(address)`.\n            implemented := and( // The arguments of `and` are evaluated from right to left.\n                gt(returndatasize(), 0x1f), // At least 32 bytes returned.\n                staticcall(gas(), token, 0x10, 0x24, 0x20, 0x20)\n            )\n            amount := mul(mload(0x20), implemented)\n        }\n    }\n\n    /// @dev Returns the total supply of the `token`.\n    /// Reverts if the token does not exist or does not implement `totalSupply()`.\n    function totalSupply(address token) internal view returns (uint256 result) {\n        /// @solidity memory-safe-assembly\n        assembly {\n            mstore(0x00, 0x18160ddd) // `totalSupply()`.\n            if iszero(\n                and(gt(returndatasize(), 0x1f), staticcall(gas(), token, 0x1c, 0x04, 0x00, 0x20))\n            ) {\n                mstore(0x00, 0x54cd9435) // `TotalSupplyQueryFailed()`.\n                revert(0x1c, 0x04)\n            }\n            result := mload(0x00)\n        }\n    }\n\n    /// @dev Sends `amount` of ERC20 `token` from `from` to `to`.\n    /// If the initial attempt fails, try to use Permit2 to transfer the token.\n    /// Reverts upon failure.\n    ///\n    /// The `from` account must have at least `amount` approved for the current contract to manage.\n    function safeTransferFrom2(address token, address from, address to, uint256 amount) internal {\n        if (!trySafeTransferFrom(token, from, to, amount)) {\n            permit2TransferFrom(token, from, to, amount);\n        }\n    }\n\n    /// @dev Sends `amount` of ERC20 `token` from `from` to `to` via Permit2.\n    /// Reverts upon failure.\n    function permit2TransferFrom(address token, address from, address to, uint256 amount) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            mstore(add(m, 0x74), shr(96, shl(96, token)))\n            mstore(add(m, 0x54), amount)\n            mstore(add(m, 0x34), to)\n            mstore(add(m, 0x20), shl(96, from))\n            // `transferFrom(address,address,uint160,address)`.\n            mstore(m, 0x36c78516000000000000000000000000)\n            let p := PERMIT2\n            let exists := eq(chainid(), 1)\n            if iszero(exists) { exists := iszero(iszero(extcodesize(p))) }\n            if iszero(\n                and(\n                    call(gas(), p, 0, add(m, 0x10), 0x84, codesize(), 0x00),\n                    lt(iszero(extcodesize(token)), exists) // Token has code and Permit2 exists.\n                )\n            ) {\n                mstore(0x00, 0x7939f4248757f0fd) // `TransferFromFailed()` or `Permit2AmountOverflow()`.\n                revert(add(0x18, shl(2, iszero(iszero(shr(160, amount))))), 0x04)\n            }\n        }\n    }\n\n    /// @dev Permit a user to spend a given amount of\n    /// another user's tokens via native EIP-2612 permit if possible, falling\n    /// back to Permit2 if native permit fails or is not implemented on the token.\n    function permit2(\n        address token,\n        address owner,\n        address spender,\n        uint256 amount,\n        uint256 deadline,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) internal {\n        bool success;\n        /// @solidity memory-safe-assembly\n        assembly {\n            for {} shl(96, xor(token, WETH9)) {} {\n                mstore(0x00, 0x3644e515) // `DOMAIN_SEPARATOR()`.\n                if iszero(\n                    and( // The arguments of `and` are evaluated from right to left.\n                        lt(iszero(mload(0x00)), eq(returndatasize(), 0x20)), // Returns 1 non-zero word.\n                        // Gas stipend to limit gas burn for tokens that don't refund gas when\n                        // an non-existing function is called. 5K should be enough for a SLOAD.\n                        staticcall(5000, token, 0x1c, 0x04, 0x00, 0x20)\n                    )\n                ) { break }\n                // After here, we can be sure that token is a contract.\n                let m := mload(0x40)\n                mstore(add(m, 0x34), spender)\n                mstore(add(m, 0x20), shl(96, owner))\n                mstore(add(m, 0x74), deadline)\n                if eq(mload(0x00), DAI_DOMAIN_SEPARATOR) {\n                    mstore(0x14, owner)\n                    mstore(0x00, 0x7ecebe00000000000000000000000000) // `nonces(address)`.\n                    mstore(\n                        add(m, 0x94),\n                        lt(iszero(amount), staticcall(gas(), token, 0x10, 0x24, add(m, 0x54), 0x20))\n                    )\n                    mstore(m, 0x8fcbaf0c000000000000000000000000) // `IDAIPermit.permit`.\n                    // `nonces` is already at `add(m, 0x54)`.\n                    // `amount != 0` is already stored at `add(m, 0x94)`.\n                    mstore(add(m, 0xb4), and(0xff, v))\n                    mstore(add(m, 0xd4), r)\n                    mstore(add(m, 0xf4), s)\n                    success := call(gas(), token, 0, add(m, 0x10), 0x104, codesize(), 0x00)\n                    break\n                }\n                mstore(m, 0xd505accf000000000000000000000000) // `IERC20Permit.permit`.\n                mstore(add(m, 0x54), amount)\n                mstore(add(m, 0x94), and(0xff, v))\n                mstore(add(m, 0xb4), r)\n                mstore(add(m, 0xd4), s)\n                success := call(gas(), token, 0, add(m, 0x10), 0xe4, codesize(), 0x00)\n                break\n            }\n        }\n        if (!success) simplePermit2(token, owner, spender, amount, deadline, v, r, s);\n    }\n\n    /// @dev Simple permit on the Permit2 contract.\n    function simplePermit2(\n        address token,\n        address owner,\n        address spender,\n        uint256 amount,\n        uint256 deadline,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            mstore(m, 0x927da105) // `allowance(address,address,address)`.\n            {\n                let addressMask := shr(96, not(0))\n                mstore(add(m, 0x20), and(addressMask, owner))\n                mstore(add(m, 0x40), and(addressMask, token))\n                mstore(add(m, 0x60), and(addressMask, spender))\n                mstore(add(m, 0xc0), and(addressMask, spender))\n            }\n            let p := mul(PERMIT2, iszero(shr(160, amount)))\n            if iszero(\n                and( // The arguments of `and` are evaluated from right to left.\n                    gt(returndatasize(), 0x5f), // Returns 3 words: `amount`, `expiration`, `nonce`.\n                    staticcall(gas(), p, add(m, 0x1c), 0x64, add(m, 0x60), 0x60)\n                )\n            ) {\n                mstore(0x00, 0x6b836e6b8757f0fd) // `Permit2Failed()` or `Permit2AmountOverflow()`.\n                revert(add(0x18, shl(2, iszero(p))), 0x04)\n            }\n            mstore(m, 0x2b67b570) // `Permit2.permit` (PermitSingle variant).\n            // `owner` is already `add(m, 0x20)`.\n            // `token` is already at `add(m, 0x40)`.\n            mstore(add(m, 0x60), amount)\n            mstore(add(m, 0x80), 0xffffffffffff) // `expiration = type(uint48).max`.\n            // `nonce` is already at `add(m, 0xa0)`.\n            // `spender` is already at `add(m, 0xc0)`.\n            mstore(add(m, 0xe0), deadline)\n            mstore(add(m, 0x100), 0x100) // `signature` offset.\n            mstore(add(m, 0x120), 0x41) // `signature` length.\n            mstore(add(m, 0x140), r)\n            mstore(add(m, 0x160), s)\n            mstore(add(m, 0x180), shl(248, v))\n            if iszero( // Revert if token does not have code, or if the call fails.\n                mul(extcodesize(token), call(gas(), p, 0, add(m, 0x1c), 0x184, codesize(), 0x00))\n            ) {\n                mstore(0x00, 0x6b836e6b) // `Permit2Failed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Approves `spender` to spend `amount` of `token` for `address(this)`.\n    function permit2Approve(address token, address spender, uint160 amount, uint48 expiration)\n        internal\n    {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let addressMask := shr(96, not(0))\n            let m := mload(0x40)\n            mstore(m, 0x87517c45) // `approve(address,address,uint160,uint48)`.\n            mstore(add(m, 0x20), and(addressMask, token))\n            mstore(add(m, 0x40), and(addressMask, spender))\n            mstore(add(m, 0x60), and(addressMask, amount))\n            mstore(add(m, 0x80), and(0xffffffffffff, expiration))\n            if iszero(call(gas(), PERMIT2, 0, add(m, 0x1c), 0x84, codesize(), 0x00)) {\n                mstore(0x00, 0x324f14ae) // `Permit2ApproveFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n\n    /// @dev Revokes an approval for `token` and `spender` for `address(this)`.\n    function permit2Lockdown(address token, address spender) internal {\n        /// @solidity memory-safe-assembly\n        assembly {\n            let m := mload(0x40)\n            mstore(m, 0xcc53287f) // `Permit2.lockdown`.\n            mstore(add(m, 0x20), 0x20) // Offset of the `approvals`.\n            mstore(add(m, 0x40), 1) // `approvals.length`.\n            mstore(add(m, 0x60), shr(96, shl(96, token)))\n            mstore(add(m, 0x80), shr(96, shl(96, spender)))\n            if iszero(call(gas(), PERMIT2, 0, add(m, 0x1c), 0xa0, codesize(), 0x00)) {\n                mstore(0x00, 0x96b3de23) // `Permit2LockdownFailed()`.\n                revert(0x1c, 0x04)\n            }\n        }\n    }\n}\n"}],"source_code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.24;\n\nimport {Ownable} from \"solady/auth/Ownable.sol\";\nimport {SafeTransferLib} from \"solady/utils/SafeTransferLib.sol\";\n\ninterface IERC20Min {\n    function balanceOf(address account) external view returns (uint256);\n    function totalSupply() external view returns (uint256);\n}\n\n/// @notice Smooths the market's lumpy 10% reward share into a bounded stream for the staking vault.\n///\n/// @dev The `CappedBurnHook` accrues its reward share and, on the permissionless `settleClaims()`,\n/// pushes the WHOLE accumulated buffer to its (immutable) `rewardsRecipient` in one shot. Point that\n/// `rewardsRecipient` at this contract and the lump lands here instead of the vault. This contract\n/// then releases IMD to the vault at a bounded rate, so the vault's share price only ever steps up in\n/// small increments — leaving nothing large enough for a just-in-time staker to farm.\n///\n/// The guarantee: a single `drip()` transfers at most `dripRatePerSecond * maxCatchupSeconds` (the\n/// per-call lump ceiling), and the sustained throughput never exceeds `dripRatePerSecond` (the rate\n/// ceiling). Idle time beyond `maxCatchupSeconds` is forfeited, not banked — so a long gap followed by\n/// one `drip()` can NEVER dump the accumulated buffer at once; a large buffer only drains through many\n/// small drips across many blocks. Size the knobs so `dripRatePerSecond * maxCatchupSeconds` stays\n/// under ~0.1–0.5% of vault TVL.\n///\n/// `drip()` is permissionless and pays its caller `keeperReward` IMD (out of the released amount) so a\n/// keeper/bot is compensated for gas. To keep that fee a tiny fraction of each drip, `drip()` only\n/// fires once at least `minDripAmount` is releasable (`keeperReward <= minDripAmount` is enforced, so\n/// the keeper can never take more than the drip). Both are owner-tunable. The owner also tunes the\n/// rate/target and can rescue the buffer; renouncing (blocked if it would freeze the stream) leaves an\n/// autonomous, immutable stream.\ncontract RewardDripper is Ownable {\n    using SafeTransferLib for address;\n\n    /// @notice The reward asset that is streamed to the vault (IMD).\n    address public immutable imd;\n\n    /// @notice The staking vault that receives the stream. A plain transfer raises its `totalAssets`.\n    address public vault;\n    /// @notice Sustained ceiling on throughput to the vault, in IMD wei per second.\n    uint256 public dripRatePerSecond;\n    /// @notice Cap on the elapsed time a single `drip()` may account for — bounds the per-call lump.\n    uint256 public maxCatchupSeconds;\n    /// @notice Timestamp the release clock was last advanced.\n    uint256 public lastDripAt;\n    /// @notice IMD paid to whoever calls `drip()`, taken out of the released amount (gas compensation).\n    uint256 public keeperReward;\n    /// @notice `drip()` only fires once at least this much is releasable — keeps `keeperReward` a small\n    /// fraction of each drip and stops keepers spamming dust drips to farm the fee.\n    uint256 public minDripAmount;\n\n    /// @dev Bounds keep `elapsed * dripRatePerSecond` far below 2^256, so `drip()` can never\n    /// overflow-revert (a self-inflicted DoS) no matter how the knobs are set.\n    uint256 internal constant MAX_CATCHUP = 30 days;\n    uint256 internal constant MAX_RATE = type(uint128).max;\n    /// @dev The keeper reward may be at most `minDripAmount / KEEPER_REWARD_DIVISOR` (≤ 1% of a drip),\n    /// so the vault always receives the dominant share — even at the smallest drip. Equality of the two\n    /// knobs (which would let a keeper take a whole drip) is thereby impossible.\n    uint256 internal constant KEEPER_REWARD_DIVISOR = 100;\n\n    event Dripped(uint256 toVault, uint256 keeperReward, address indexed keeper);\n    event VaultSet(address indexed vault);\n    event DripRateSet(uint256 dripRatePerSecond);\n    event MaxCatchupSet(uint256 maxCatchupSeconds);\n    event KeeperRewardSet(uint256 keeperReward);\n    event MinDripAmountSet(uint256 minDripAmount);\n    event EmergencyRescue(address indexed token, address indexed to, uint256 amount);\n\n    error ZeroAddress();\n    error RateTooHigh();\n    error CatchupTooHigh();\n    error KeeperRewardExceedsMin();\n    error BelowMinDrip();\n    error RenounceWouldFreeze();\n    error VaultEmpty();\n\n    constructor(\n        address imd_,\n        address vault_,\n        address owner_,\n        uint256 dripRatePerSecond_,\n        uint256 maxCatchupSeconds_,\n        uint256 keeperReward_,\n        uint256 minDripAmount_\n    ) {\n        if (imd_ == address(0) || vault_ == address(0) || owner_ == address(0)) revert ZeroAddress();\n        if (dripRatePerSecond_ > MAX_RATE) revert RateTooHigh();\n        if (maxCatchupSeconds_ == 0 || maxCatchupSeconds_ > MAX_CATCHUP) revert CatchupTooHigh();\n        if (keeperReward_ > minDripAmount_ / KEEPER_REWARD_DIVISOR) revert KeeperRewardExceedsMin();\n        imd = imd_;\n        vault = vault_;\n        dripRatePerSecond = dripRatePerSecond_;\n        maxCatchupSeconds = maxCatchupSeconds_;\n        keeperReward = keeperReward_;\n        minDripAmount = minDripAmount_;\n        lastDripAt = block.timestamp;\n        _initializeOwner(owner_);\n    }\n\n    // ─────────────────────────────── Stream ───────────────────────────────\n\n    /// @notice IMD releasable right now: `min(rate * min(elapsed, maxCatchup), balance)`. This is the\n    /// total that leaves the dripper on the next `drip()` (vault share + keeper reward combined).\n    function drippable() public view returns (uint256) {\n        uint256 elapsed = block.timestamp - lastDripAt;\n        uint256 cap = maxCatchupSeconds;\n        if (elapsed > cap) elapsed = cap;\n        uint256 allowed = elapsed * dripRatePerSecond;\n        uint256 bal = IERC20Min(imd).balanceOf(address(this));\n        return allowed < bal ? allowed : bal;\n    }\n\n    /// @notice Whether `drip()` would succeed right now (releasable has reached `minDripAmount` and the\n    /// vault has stakers to receive it).\n    function canDrip() external view returns (bool) {\n        return drippable() >= minDripAmount && IERC20Min(vault).totalSupply() != 0;\n    }\n\n    /// @notice Permissionless: push the releasable IMD to the vault, pay the caller `keeperReward`, and\n    /// advance the clock. Reverts until at least `minDripAmount` is releasable.\n    /// @dev The clock resets to `now` even when the balance capped the release, so unused idle time is\n    /// forfeited rather than banked into a future burst. `keeperReward <= minDripAmount <= amount`, so\n    /// the vault share can't underflow.\n    /// @dev Never streams into a vault with no shares: assets that land in an empty ERC-4626 are captured\n    /// by its virtual shares (nobody can redeem them) and leave the first real depositor with a tiny share\n    /// count, so a slice of every later drip keeps leaking to those virtual shares. A 15-day mainnet-fork\n    /// replay stranded 14% of the rewards this way. Rewards wait here until someone stakes.\n    function drip() external returns (uint256 toVault, uint256 paidKeeper) {\n        if (IERC20Min(vault).totalSupply() == 0) revert VaultEmpty();\n        uint256 amount = drippable();\n        if (amount < minDripAmount) revert BelowMinDrip();\n        lastDripAt = block.timestamp;\n\n        paidKeeper = keeperReward;\n        toVault = amount - paidKeeper;\n        if (toVault != 0) imd.safeTransfer(vault, toVault);\n        if (paidKeeper != 0) imd.safeTransfer(msg.sender, paidKeeper);\n        emit Dripped(toVault, paidKeeper, msg.sender);\n    }\n\n    // ─────────────────────────────── Owner config ───────────────────────────────\n\n    function setVault(address vault_) external onlyOwner {\n        if (vault_ == address(0)) revert ZeroAddress();\n        vault = vault_;\n        emit VaultSet(vault_);\n    }\n\n    function setDripRate(uint256 dripRatePerSecond_) external onlyOwner {\n        if (dripRatePerSecond_ > MAX_RATE) revert RateTooHigh();\n        dripRatePerSecond = dripRatePerSecond_;\n        emit DripRateSet(dripRatePerSecond_);\n    }\n\n    function setMaxCatchup(uint256 maxCatchupSeconds_) external onlyOwner {\n        if (maxCatchupSeconds_ == 0 || maxCatchupSeconds_ > MAX_CATCHUP) revert CatchupTooHigh();\n        maxCatchupSeconds = maxCatchupSeconds_;\n        emit MaxCatchupSet(maxCatchupSeconds_);\n    }\n\n    function setKeeperReward(uint256 keeperReward_) external onlyOwner {\n        if (keeperReward_ > minDripAmount / KEEPER_REWARD_DIVISOR) revert KeeperRewardExceedsMin();\n        keeperReward = keeperReward_;\n        emit KeeperRewardSet(keeperReward_);\n    }\n\n    function setMinDripAmount(uint256 minDripAmount_) external onlyOwner {\n        if (keeperReward > minDripAmount_ / KEEPER_REWARD_DIVISOR) revert KeeperRewardExceedsMin();\n        minDripAmount = minDripAmount_;\n        emit MinDripAmountSet(minDripAmount_);\n    }\n\n    // ─────────────────────────────── Emergency ───────────────────────────────\n\n    /// @notice Owner sweeps a balance — including the reward IMD buffer — to `to`. Trusted power,\n    /// removed on `renounceOwnership()`.\n    function rescueERC20(address token, address to, uint256 amount) external onlyOwner {\n        token.safeTransfer(to, amount);\n        emit EmergencyRescue(token, to, amount);\n    }\n\n    function rescueETH(address to, uint256 amount) external onlyOwner {\n        to.safeTransferETH(amount);\n        emit EmergencyRescue(address(0), to, amount);\n    }\n\n    /// @dev Don't let ownership be dropped into a config that can never drain the buffer to stakers:\n    /// rate 0 (no stream) or a `minDripAmount` above the per-call ceiling (`drip()` could never fire)\n    /// would strand rewards here forever with no owner left to fix it.\n    function renounceOwnership() public payable override onlyOwner {\n        if (dripRatePerSecond == 0 || vault == address(0)) revert RenounceWouldFreeze();\n        if (minDripAmount > dripRatePerSecond * maxCatchupSeconds) revert RenounceWouldFreeze();\n        super.renounceOwnership();\n    }\n}\n","external_libraries":[],"sourcify_repo_url":null,"implementations":[],"constructor_args":"0x000000000000000000000000d34a99bc0f67ae1bbd63c660e6d0b0dd03e263b70000000000000000000000009efa934d9fad4ae28c998a40195646b965a97247000000000000000000000000047f606fd5b2baa5f5c6c4ab8958e45cb6b054b700000000000000000000000000000000000000000000000000038d7ea4c680000000000000000000000000000000000000000000000000000000000000000e10000000000000000000000000000000000000000000000000002386f26fc100000000000000000000000000000000000000000000000000000de0b6b3a7640000","verified_twin_address_hash":null,"file_path":"src/RewardDripper.sol","is_verified_via_eth_bytecode_db":true,"name":"RewardDripper","is_verified":true,"compiler_settings":{"evmVersion":"osaka","metadata":{"appendCBOR":true,"bytecodeHash":"ipfs","useLiteralContent":false},"optimizer":{"enabled":true,"runs":200},"remappings":["v4-core-test/=lib/v4-core/test/","@ensdomains/=lib/v4-core/node_modules/@ensdomains/","@openzeppelin/=lib/v4-core/lib/openzeppelin-contracts/","ds-test/=lib/v4-core/lib/forge-std/lib/ds-test/src/","erc4626-tests/=lib/v4-core/lib/openzeppelin-contracts/lib/erc4626-tests/","forge-std/=lib/forge-std/src/","hardhat/=lib/v4-core/node_modules/hardhat/","openzeppelin-contracts/=lib/v4-core/lib/openzeppelin-contracts/","solady/=lib/solady/src/","solmate/=lib/v4-core/lib/solmate/","v4-core/=lib/v4-core/src/"],"viaIR":true},"deployed_bytecode":"0x6080806040526004361015610012575f80fd5b5f3560e01c90816301e48edc1461095d57508063099a04e5146108e4578063187f3334146108c75780631ac8b3bb146108aa57806325692962146108615780634f59d9d6146107c257806354d1f13d1461077e5780635fbb48dc1461070b5780636817031b14610695578063715018a6146105fe5780638da5cb5b146105d25780639797fab814610579578063989462001461055c5780639f678cca146103e6578063a9ec75f6146103c9578063b2118a8d1461034e578063d470b82c1461032c578063dd02e154146102e8578063e4aa4bc814610280578063e72ea57e1461020b578063f04e283e146101be578063f2fde38b14610181578063fbfa77cf1461015a5763fee81cf414610124575f80fd5b346101565760203660031901126101565761013d610977565b63389a75e1600c525f52602080600c2054604051908152f35b5f80fd5b34610156575f366003190112610156575f546040516001600160a01b039091168152602090f35b602036600319011261015657610195610977565b61019d610aba565b8060601b156101b1576101af90610b27565b005b637448fbae5f526004601cfd5b6020366003190112610156576101d2610977565b6101da610aba565b63389a75e1600c52805f526020600c2090815442116101fe575f6101af9255610b27565b636f5e88185f526004601cfd5b3461015657602036600319011261015657600435610227610aba565b80158015610274575b610265576020817fa9a09447939492c865ea7e52905c0714fdbaa76a6bc0c1129b6b608639c3d09e92600255604051908152a1005b6352bd5a9160e11b5f5260045ffd5b5062278d008111610230565b346101565760203660031901126101565760043561029c610aba565b60045460648204106102d9576020817f516c19677504d23e1c163e8d83d0e9ef5c34e4b10d161a03259b1fb1a5309b6f92600555604051908152a1005b631c32162b60e21b5f5260045ffd5b34610156575f366003190112610156576040517f000000000000000000000000d34a99bc0f67ae1bbd63c660e6d0b0dd03e263b76001600160a01b03168152602090f35b34610156575f3660031901126101565760206103466109f7565b604051908152f35b3461015657606036600319011261015657610367610977565b6024356001600160a01b038116918282036101565760207fea4a477e0088f88561958e72554e9c7813468c62643829628924da5793beb969916103b660443580956103b0610aba565b83610ad6565b6040519384526001600160a01b031692a3005b34610156575f366003190112610156576020600454604051908152f35b34610156575f366003190112610156575f546040516318160ddd60e01b81526001600160a01b0390911690602081600481855afa908115610551575f9161051f575b5015610510576104366109f7565b906005548210610501576040914260035561045460045480926109ea565b9182806104d0575b5050806104a0575b82518281528160208201527f5fb8477ff22eb8f519d892e5b053a5fb5c2bd4f4e9ae598ae94fa281ecb79be7843392a282519182526020820152f35b6104cb81337f000000000000000000000000d34a99bc0f67ae1bbd63c660e6d0b0dd03e263b7610ad6565b610464565b6104fa917f000000000000000000000000d34a99bc0f67ae1bbd63c660e6d0b0dd03e263b7610ad6565b838261045c565b6399e52f1160e01b5f5260045ffd5b63160dbed760e11b5f5260045ffd5b90506020813d602011610549575b8161053a6020938361098d565b81010312610156575182610428565b3d915061052d565b6040513d5f823e3d90fd5b34610156575f366003190112610156576020600354604051908152f35b3461015657602036600319011261015657600435610595610aba565b60646005540481116102d9576020817f0871da4635b465eac503a37a71168c32f3e4a9bd0d04901cb44a23505bc8876692600455604051908152a1005b34610156575f36600319011261015657638b78c6d819546040516001600160a01b039091168152602090f35b5f36600319011261015657610611610aba565b60015480158015610683575b6106745761063160055491600254906109c3565b106106745761063e610aba565b5f638b78c6d819547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35f638b78c6d81955005b6371e743c960e01b5f5260045ffd5b505f546001600160a01b03161561061d565b34610156576020366003190112610156576106ae610977565b6106b6610aba565b6001600160a01b031680156106fc575f80546001600160a01b031916821781557fe7ae49f883c825b05681b3e00e8be6fdea9ed2a8a45e4c6ecb9390fc44cce6159080a2005b63d92e233d60e01b5f5260045ffd5b3461015657602036600319011261015657600435610727610aba565b6fffffffffffffffffffffffffffffffff811161076f576020817f2e26df58f178330995ec93cfc286724608277b05fe1c75a81d9cf210f0dc4e5a92600155604051908152a1005b6347765d3b60e11b5f5260045ffd5b5f3660031901126101565763389a75e1600c52335f525f6020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c925f80a2005b34610156575f366003190112610156576107da6109f7565b6005541115806107f2575b6020906040519015158152f35b505f546040516318160ddd60e01b815290602090829060049082906001600160a01b03165afa8015610551575f9061082e575b151590506107e5565b506020813d602011610859575b816108486020938361098d565b810103126101565760209051610825565b3d915061083b565b5f3660031901126101565763389a75e1600c52335f526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d5f80a2005b34610156575f366003190112610156576020600554604051908152f35b34610156575f366003190112610156576020600154604051908152f35b34610156576040366003190112610156576108fd610977565b60243590610909610aba565b5f38818085855af115610950576040519182526001600160a01b0316905f907fea4a477e0088f88561958e72554e9c7813468c62643829628924da5793beb96990602090a3005b63b12d13eb5f526004601cfd5b34610156575f366003190112610156576020906002548152f35b600435906001600160a01b038216820361015657565b90601f8019910116810190811067ffffffffffffffff8211176109af57604052565b634e487b7160e01b5f52604160045260245ffd5b818102929181159184041417156109d657565b634e487b7160e01b5f52601160045260245ffd5b919082039182116109d657565b610a1b610a06600354426109ea565b600254808211610ab2575b50600154906109c3565b6040516370a0823160e01b81523060048201526020816024817f000000000000000000000000d34a99bc0f67ae1bbd63c660e6d0b0dd03e263b76001600160a01b03165afa908115610551575f91610a80575b5080821015610a7b575090565b905090565b90506020813d602011610aaa575b81610a9b6020938361098d565b8101031261015657515f610a6e565b3d9150610a8e565b90505f610a11565b638b78c6d819543303610ac957565b6382b429005f526004601cfd5b919060145260345263a9059cbb60601b5f5260205f6044601082855af1908160015f51141615610b09575b50505f603452565b3b153d171015610b1a575f80610b01565b6390b8ec185f526004601cfd5b60018060a01b031680638b78c6d819547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3638b78c6d8195556fea264697066735822122051a592a29fa6b01eca4ce234aaf8d71766a4ba097209a0e76f56ab0908f281db64736f6c634300081e0033","compiler_version":"0.8.30+commit.73712a01","is_changed_bytecode":false,"is_partially_verified":false,"license_type":"none","abi":[{"inputs":[{"internalType":"address","name":"imd_","type":"address"},{"internalType":"address","name":"vault_","type":"address"},{"internalType":"address","name":"owner_","type":"address"},{"internalType":"uint256","name":"dripRatePerSecond_","type":"uint256"},{"internalType":"uint256","name":"maxCatchupSeconds_","type":"uint256"},{"internalType":"uint256","name":"keeperReward_","type":"uint256"},{"internalType":"uint256","name":"minDripAmount_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyInitialized","type":"error"},{"inputs":[],"name":"BelowMinDrip","type":"error"},{"inputs":[],"name":"CatchupTooHigh","type":"error"},{"inputs":[],"name":"KeeperRewardExceedsMin","type":"error"},{"inputs":[],"name":"NewOwnerIsZeroAddress","type":"error"},{"inputs":[],"name":"NoHandoverRequest","type":"error"},{"inputs":[],"name":"RateTooHigh","type":"error"},{"inputs":[],"name":"RenounceWouldFreeze","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"inputs":[],"name":"VaultEmpty","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"dripRatePerSecond","type":"uint256"}],"name":"DripRateSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"toVault","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"keeperReward","type":"uint256"},{"indexed":true,"internalType":"address","name":"keeper","type":"address"}],"name":"Dripped","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyRescue","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"keeperReward","type":"uint256"}],"name":"KeeperRewardSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"maxCatchupSeconds","type":"uint256"}],"name":"MaxCatchupSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"minDripAmount","type":"uint256"}],"name":"MinDripAmountSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pendingOwner","type":"address"}],"name":"OwnershipHandoverCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pendingOwner","type":"address"}],"name":"OwnershipHandoverRequested","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"vault","type":"address"}],"name":"VaultSet","type":"event"},{"inputs":[],"name":"canDrip","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cancelOwnershipHandover","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"pendingOwner","type":"address"}],"name":"completeOwnershipHandover","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"drip","outputs":[{"internalType":"uint256","name":"toVault","type":"uint256"},{"internalType":"uint256","name":"paidKeeper","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dripRatePerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"drippable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"imd","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"keeperReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastDripAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxCatchupSeconds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minDripAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"result","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pendingOwner","type":"address"}],"name":"ownershipHandoverExpiresAt","outputs":[{"internalType":"uint256","name":"result","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"requestOwnershipHandover","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"rescueERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"rescueETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"dripRatePerSecond_","type":"uint256"}],"name":"setDripRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"keeperReward_","type":"uint256"}],"name":"setKeeperReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxCatchupSeconds_","type":"uint256"}],"name":"setMaxCatchup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"minDripAmount_","type":"uint256"}],"name":"setMinDripAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"vault_","type":"address"}],"name":"setVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}],"is_fully_verified":true,"is_verified_via_verifier_alliance":true,"creation_bytecode":"0x60a0346101ad57601f610d7438819003918201601f19168301916001600160401b038311848410176101b15780849260e0946040528339810103126101ad57610047816101c5565b610053602083016101c5565b91610060604082016101c5565b92606082015160808301519160c060a08501519401519460018060a01b03811615801561019c575b801561018b575b61017c576001600160801b03831161016d5783158015610161575b610152576064860485116101435760805260018060a01b031660018060a01b03195f5416175f556001556002556004556005554260035560018060a01b031680638b78c6d819555f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a3604051610b9a90816101da82396080518181816102fd015281816104a7015281816104d60152610a360152f35b631c32162b60e21b5f5260045ffd5b6352bd5a9160e11b5f5260045ffd5b5062278d0084116100aa565b6347765d3b60e11b5f5260045ffd5b63d92e233d60e01b5f5260045ffd5b506001600160a01b0387161561008f565b506001600160a01b03821615610088565b5f80fd5b634e487b7160e01b5f52604160045260245ffd5b51906001600160a01b03821682036101ad5756fe6080806040526004361015610012575f80fd5b5f3560e01c90816301e48edc1461095d57508063099a04e5146108e4578063187f3334146108c75780631ac8b3bb146108aa57806325692962146108615780634f59d9d6146107c257806354d1f13d1461077e5780635fbb48dc1461070b5780636817031b14610695578063715018a6146105fe5780638da5cb5b146105d25780639797fab814610579578063989462001461055c5780639f678cca146103e6578063a9ec75f6146103c9578063b2118a8d1461034e578063d470b82c1461032c578063dd02e154146102e8578063e4aa4bc814610280578063e72ea57e1461020b578063f04e283e146101be578063f2fde38b14610181578063fbfa77cf1461015a5763fee81cf414610124575f80fd5b346101565760203660031901126101565761013d610977565b63389a75e1600c525f52602080600c2054604051908152f35b5f80fd5b34610156575f366003190112610156575f546040516001600160a01b039091168152602090f35b602036600319011261015657610195610977565b61019d610aba565b8060601b156101b1576101af90610b27565b005b637448fbae5f526004601cfd5b6020366003190112610156576101d2610977565b6101da610aba565b63389a75e1600c52805f526020600c2090815442116101fe575f6101af9255610b27565b636f5e88185f526004601cfd5b3461015657602036600319011261015657600435610227610aba565b80158015610274575b610265576020817fa9a09447939492c865ea7e52905c0714fdbaa76a6bc0c1129b6b608639c3d09e92600255604051908152a1005b6352bd5a9160e11b5f5260045ffd5b5062278d008111610230565b346101565760203660031901126101565760043561029c610aba565b60045460648204106102d9576020817f516c19677504d23e1c163e8d83d0e9ef5c34e4b10d161a03259b1fb1a5309b6f92600555604051908152a1005b631c32162b60e21b5f5260045ffd5b34610156575f366003190112610156576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b34610156575f3660031901126101565760206103466109f7565b604051908152f35b3461015657606036600319011261015657610367610977565b6024356001600160a01b038116918282036101565760207fea4a477e0088f88561958e72554e9c7813468c62643829628924da5793beb969916103b660443580956103b0610aba565b83610ad6565b6040519384526001600160a01b031692a3005b34610156575f366003190112610156576020600454604051908152f35b34610156575f366003190112610156575f546040516318160ddd60e01b81526001600160a01b0390911690602081600481855afa908115610551575f9161051f575b5015610510576104366109f7565b906005548210610501576040914260035561045460045480926109ea565b9182806104d0575b5050806104a0575b82518281528160208201527f5fb8477ff22eb8f519d892e5b053a5fb5c2bd4f4e9ae598ae94fa281ecb79be7843392a282519182526020820152f35b6104cb81337f0000000000000000000000000000000000000000000000000000000000000000610ad6565b610464565b6104fa917f0000000000000000000000000000000000000000000000000000000000000000610ad6565b838261045c565b6399e52f1160e01b5f5260045ffd5b63160dbed760e11b5f5260045ffd5b90506020813d602011610549575b8161053a6020938361098d565b81010312610156575182610428565b3d915061052d565b6040513d5f823e3d90fd5b34610156575f366003190112610156576020600354604051908152f35b3461015657602036600319011261015657600435610595610aba565b60646005540481116102d9576020817f0871da4635b465eac503a37a71168c32f3e4a9bd0d04901cb44a23505bc8876692600455604051908152a1005b34610156575f36600319011261015657638b78c6d819546040516001600160a01b039091168152602090f35b5f36600319011261015657610611610aba565b60015480158015610683575b6106745761063160055491600254906109c3565b106106745761063e610aba565b5f638b78c6d819547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a35f638b78c6d81955005b6371e743c960e01b5f5260045ffd5b505f546001600160a01b03161561061d565b34610156576020366003190112610156576106ae610977565b6106b6610aba565b6001600160a01b031680156106fc575f80546001600160a01b031916821781557fe7ae49f883c825b05681b3e00e8be6fdea9ed2a8a45e4c6ecb9390fc44cce6159080a2005b63d92e233d60e01b5f5260045ffd5b3461015657602036600319011261015657600435610727610aba565b6fffffffffffffffffffffffffffffffff811161076f576020817f2e26df58f178330995ec93cfc286724608277b05fe1c75a81d9cf210f0dc4e5a92600155604051908152a1005b6347765d3b60e11b5f5260045ffd5b5f3660031901126101565763389a75e1600c52335f525f6020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c925f80a2005b34610156575f366003190112610156576107da6109f7565b6005541115806107f2575b6020906040519015158152f35b505f546040516318160ddd60e01b815290602090829060049082906001600160a01b03165afa8015610551575f9061082e575b151590506107e5565b506020813d602011610859575b816108486020938361098d565b810103126101565760209051610825565b3d915061083b565b5f3660031901126101565763389a75e1600c52335f526202a30042016020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d5f80a2005b34610156575f366003190112610156576020600554604051908152f35b34610156575f366003190112610156576020600154604051908152f35b34610156576040366003190112610156576108fd610977565b60243590610909610aba565b5f38818085855af115610950576040519182526001600160a01b0316905f907fea4a477e0088f88561958e72554e9c7813468c62643829628924da5793beb96990602090a3005b63b12d13eb5f526004601cfd5b34610156575f366003190112610156576020906002548152f35b600435906001600160a01b038216820361015657565b90601f8019910116810190811067ffffffffffffffff8211176109af57604052565b634e487b7160e01b5f52604160045260245ffd5b818102929181159184041417156109d657565b634e487b7160e01b5f52601160045260245ffd5b919082039182116109d657565b610a1b610a06600354426109ea565b600254808211610ab2575b50600154906109c3565b6040516370a0823160e01b81523060048201526020816024817f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165afa908115610551575f91610a80575b5080821015610a7b575090565b905090565b90506020813d602011610aaa575b81610a9b6020938361098d565b8101031261015657515f610a6e565b3d9150610a8e565b90505f610a11565b638b78c6d819543303610ac957565b6382b429005f526004601cfd5b919060145260345263a9059cbb60601b5f5260205f6044601082855af1908160015f51141615610b09575b50505f603452565b3b153d171015610b1a575f80610b01565b6390b8ec185f526004601cfd5b60018060a01b031680638b78c6d819547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3638b78c6d8195556fea264697066735822122051a592a29fa6b01eca4ce234aaf8d71766a4ba097209a0e76f56ab0908f281db64736f6c634300081e0033000000000000000000000000d34a99bc0f67ae1bbd63c660e6d0b0dd03e263b70000000000000000000000009efa934d9fad4ae28c998a40195646b965a97247000000000000000000000000047f606fd5b2baa5f5c6c4ab8958e45cb6b054b700000000000000000000000000000000000000000000000000038d7ea4c680000000000000000000000000000000000000000000000000000000000000000e10000000000000000000000000000000000000000000000000002386f26fc100000000000000000000000000000000000000000000000000000de0b6b3a7640000","language":"solidity","decoded_constructor_args":[["0xD34a99Bc0f67aE1bbd63C660e6d0b0dd03E263B7",{"internalType":"address","name":"imd_","type":"address"}],["0x9Efa934D9fAd4AE28c998a40195646b965a97247",{"internalType":"address","name":"vault_","type":"address"}],["0x047F606fD5b2BaA5f5C6c4aB8958E45CB6B054B7",{"internalType":"address","name":"owner_","type":"address"}],["1000000000000000",{"internalType":"uint256","name":"dripRatePerSecond_","type":"uint256"}],["3600",{"internalType":"uint256","name":"maxCatchupSeconds_","type":"uint256"}],["10000000000000000",{"internalType":"uint256","name":"keeperReward_","type":"uint256"}],["1000000000000000000",{"internalType":"uint256","name":"minDripAmount_","type":"uint256"}]],"evm_version":"osaka","is_blueprint":false,"certified":false,"creation_status":"success","conflicting_implementations":null,"is_verified_via_sourcify":false,"proxy_type":null,"optimization_enabled":true,"optimization_runs":200,"verified_at":"2026-09-02T03:53:29.784606Z","can_be_visualized_via_sol2uml":true}