Skip to main content

LockupTranched

Git Source

Namespace for the structs used only in Lockup Tranched model.

Structs

Tranche

Tranche struct to be stored in the Lockup Tranched model.

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 {SablierLockup.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.