LayerCover

IAsyncWithdrawalAdapter

Interface reference for IAsyncWithdrawalAdapter.

Interface

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

/**
 * @title IAsyncWithdrawalAdapter
 * @notice Generic adapter for delayed withdrawal flows such as stXRP -> FXRP redemption.
 */
interface IAsyncWithdrawalAdapter {
    function requestWithdrawal(
        address tokenIn,
        uint256 amountIn,
        address recipient,
        bytes calldata data
    ) external returns (bytes32 requestId, uint64 claimableAt);

    function claimWithdrawal(
        bytes32 requestId,
        address recipient,
        bytes calldata data
    ) external returns (address tokenOut, uint256 amountOut);
}