@@ -178,7 +178,7 @@ interface ISablierFlow is
178
178
/// @param streamId The ID of the stream to adjust.
179
179
/// @param newRatePerSecond The new rate per second, denoted as a fixed-point number where 1e18 is 1 token
180
180
/// per second.
181
- function adjustRatePerSecond (uint256 streamId , UD21x18 newRatePerSecond ) external ;
181
+ function adjustRatePerSecond (uint256 streamId , UD21x18 newRatePerSecond ) external payable ;
182
182
183
183
/// @notice Creates a new Flow stream by setting the snapshot time to `block.timestamp` and leaving the balance to
184
184
/// zero. The stream is wrapped in an ERC-721 NFT.
@@ -208,6 +208,7 @@ interface ISablierFlow is
208
208
bool transferable
209
209
)
210
210
external
211
+ payable
211
212
returns (uint256 streamId );
212
213
213
214
/// @notice Creates a new Flow stream by setting the snapshot time to `block.timestamp` and the balance to `amount`.
@@ -239,6 +240,7 @@ interface ISablierFlow is
239
240
uint128 amount
240
241
)
241
242
external
243
+ payable
242
244
returns (uint256 streamId );
243
245
244
246
/// @notice Makes a deposit in a stream.
@@ -255,7 +257,7 @@ interface ISablierFlow is
255
257
/// @param amount The deposit amount, denoted in token's decimals.
256
258
/// @param sender The stream's sender address.
257
259
/// @param recipient The stream's recipient address.
258
- function deposit (uint256 streamId , uint128 amount , address sender , address recipient ) external ;
260
+ function deposit (uint256 streamId , uint128 amount , address sender , address recipient ) external payable ;
259
261
260
262
/// @notice Deposits tokens in a stream and pauses it.
261
263
///
@@ -269,7 +271,7 @@ interface ISablierFlow is
269
271
///
270
272
/// @param streamId The ID of the stream to deposit to, and then pause.
271
273
/// @param amount The deposit amount, denoted in token's decimals.
272
- function depositAndPause (uint256 streamId , uint128 amount ) external ;
274
+ function depositAndPause (uint256 streamId , uint128 amount ) external payable ;
273
275
274
276
/// @notice Deposits tokens in a stream.
275
277
///
@@ -298,7 +300,8 @@ interface ISablierFlow is
298
300
address recipient ,
299
301
Broker calldata broker
300
302
)
301
- external ;
303
+ external
304
+ payable ;
302
305
303
306
/// @notice Pauses the stream.
304
307
///
@@ -314,7 +317,7 @@ interface ISablierFlow is
314
317
/// - `msg.sender` must be the stream's sender.
315
318
///
316
319
/// @param streamId The ID of the stream to pause.
317
- function pause (uint256 streamId ) external ;
320
+ function pause (uint256 streamId ) external payable ;
318
321
319
322
/// @notice Refunds the provided amount of tokens from the stream to the sender's address.
320
323
///
@@ -328,7 +331,7 @@ interface ISablierFlow is
328
331
///
329
332
/// @param streamId The ID of the stream to refund from.
330
333
/// @param amount The amount to refund, denoted in token's decimals.
331
- function refund (uint256 streamId , uint128 amount ) external ;
334
+ function refund (uint256 streamId , uint128 amount ) external payable ;
332
335
333
336
/// @notice Refunds the provided amount of tokens from the stream to the sender's address.
334
337
///
@@ -342,7 +345,7 @@ interface ISablierFlow is
342
345
///
343
346
/// @param streamId The ID of the stream to refund from and then pause.
344
347
/// @param amount The amount to refund, denoted in token's decimals.
345
- function refundAndPause (uint256 streamId , uint128 amount ) external ;
348
+ function refundAndPause (uint256 streamId , uint128 amount ) external payable ;
346
349
347
350
/// @notice Refunds the entire refundable amount of tokens from the stream to the sender's address.
348
351
///
@@ -352,7 +355,7 @@ interface ISablierFlow is
352
355
/// - Refer to the requirements in {refund}.
353
356
///
354
357
/// @param streamId The ID of the stream to refund from.
355
- function refundMax (uint256 streamId ) external ;
358
+ function refundMax (uint256 streamId ) external payable ;
356
359
357
360
/// @notice Restarts the stream with the provided rate per second.
358
361
///
@@ -370,7 +373,7 @@ interface ISablierFlow is
370
373
/// @param streamId The ID of the stream to restart.
371
374
/// @param ratePerSecond The amount by which the debt is increasing every second, denoted as a fixed-point number
372
375
/// where 1e18 is 1 token per second.
373
- function restart (uint256 streamId , UD21x18 ratePerSecond ) external ;
376
+ function restart (uint256 streamId , UD21x18 ratePerSecond ) external payable ;
374
377
375
378
/// @notice Restarts the stream with the provided rate per second, and makes a deposit.
376
379
///
@@ -387,7 +390,7 @@ interface ISablierFlow is
387
390
/// @param ratePerSecond The amount by which the debt is increasing every second, denoted as a fixed-point number
388
391
/// where 1e18 is 1 token per second.
389
392
/// @param amount The deposit amount, denoted in token's decimals.
390
- function restartAndDeposit (uint256 streamId , UD21x18 ratePerSecond , uint128 amount ) external ;
393
+ function restartAndDeposit (uint256 streamId , UD21x18 ratePerSecond , uint128 amount ) external payable ;
391
394
392
395
/// @notice Voids a stream.
393
396
///
@@ -407,7 +410,7 @@ interface ISablierFlow is
407
410
/// - `msg.sender` must either be the stream's sender, recipient or an approved third party.
408
411
///
409
412
/// @param streamId The ID of the stream to void.
410
- function void (uint256 streamId ) external ;
413
+ function void (uint256 streamId ) external payable ;
411
414
412
415
/// @notice Withdraws the provided `amount` minus the protocol fee to the provided `to` address.
413
416
///
@@ -436,6 +439,7 @@ interface ISablierFlow is
436
439
uint128 amount
437
440
)
438
441
external
442
+ payable
439
443
returns (uint128 withdrawnAmount , uint128 protocolFeeAmount );
440
444
441
445
/// @notice Withdraws the entire withdrawable amount minus the protocol fee to the provided `to` address.
@@ -458,5 +462,6 @@ interface ISablierFlow is
458
462
address to
459
463
)
460
464
external
465
+ payable
461
466
returns (uint128 withdrawnAmount , uint128 protocolFeeAmount );
462
467
}
0 commit comments