Skip to main content

LockupTranched

Git Source

Namespace for the structs used only in LT streams.

Structs

Tranche

Tranche struct stored to represent LT streams.

struct Tranche {
uint128 amount;
uint40 timestamp;
}

Properties

NameTypeDescription
amountuint128The amount of tokens to be unlocked in the tranche, denoted in units of the token's decimals.
timestampuint40The Unix timestamp indicating the tranche's end.

TrancheWithDuration

Tranche struct used at runtime in SablierLockupTranched.createWithDurationsLT function.

struct TrancheWithDuration {
uint128 amount;
uint40 duration;
}

Properties

NameTypeDescription
amountuint128The amount of tokens to be unlocked in the tranche, denoted in units of the token's decimals.
durationuint40The time difference in seconds between the tranche and the previous one.