-
Notifications
You must be signed in to change notification settings - Fork 48
/
ISablierV2LockupSender.sol
27 lines (26 loc) · 1.11 KB
/
ISablierV2LockupSender.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.8.19;
/// @title ISablierV2LockupSender
/// @notice Interface for sender contracts capable of reacting to cancellations.
/// @dev Implementation of this interface is optional. If a sender contract doesn't implement this interface,
/// function execution will not revert.
interface ISablierV2LockupSender {
/// @notice Responds to recipient-triggered cancellations.
///
/// @dev Notes:
/// - This function may revert, but the Sablier contract will ignore the revert.
///
/// @param streamId The id of the canceled stream.
/// @param recipient The stream's recipient, who canceled the stream.
/// @param senderAmount The amount of assets refunded to the stream's sender, denoted in units of the asset's
/// decimals.
/// @param recipientAmount The amount of assets left for the stream's recipient to withdraw, denoted in units of the
/// asset's decimals.
function onStreamCanceled(
uint256 streamId,
address recipient,
uint128 senderAmount,
uint128 recipientAmount
)
external;
}