Batch
Structs
CreateWithDurations
Struct encapsulating the parameters for the {ISablierV2Batch.createWithDurations} function. The function takes an array of these structs to create multiple streams in a single transaction.
struct CreateWithDurations {
address sender;
address recipient;
uint128 totalAmount;
bool cancelable;
bool transferable;
LockupLinear.Durations durations;
Broker broker;
}
Properties
Name | Type | Description |
---|---|---|
sender | address | The address streaming the assets, with the ability to cancel the stream. It doesn't have to be the same as msg.sender . |
recipient | address | The address receiving the assets. |
totalAmount | uint128 | The total amount of ERC-20 assets to be paid, including the stream deposit and any potential fees, all denoted in units of the asset's decimals. |
cancelable | bool | Indicates if the stream is cancelable. |
transferable | bool | Indicates if the stream NFT is transferable. |
durations | LockupLinear.Durations | Struct containing (i) cliff period duration and (ii) total stream duration, both in seconds. |
broker | Broker | Struct containing (i) the address of the broker assisting in creating the stream, and (ii) the percentage fee paid to the broker from totalAmount , denoted as a fixed-point number. Both can be set to zero. |