Batch

Git Source

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

NameTypeDescription
senderaddressThe address streaming the assets, with the ability to cancel the stream. It doesn't have to be the same as msg.sender.
recipientaddressThe address receiving the assets.
totalAmountuint128The 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.
cancelableboolIndicates if the stream is cancelable.
transferableboolIndicates if the stream NFT is transferable.
durationsLockupLinear.DurationsStruct containing (i) cliff period duration and (ii) total stream duration, both in seconds.
brokerBrokerStruct 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.