Skip to main content

LockupLinear

Git Source

Namespace for the structs used only in Lockup Linear model.

Structs

Durations

Struct encapsulating the cliff duration and the total duration used at runtime in {SablierLockup.createWithDurationsLL} function.

struct Durations {
uint40 cliff;
uint40 total;
}

Properties

NameTypeDescription
cliffuint40The cliff duration in seconds.
totaluint40The total duration in seconds.

UnlockAmounts

Struct encapsulating the unlock amounts for the stream.

The sum of start and cliff must be less than or equal to deposit amount. Both amounts can be zero.

struct UnlockAmounts {
uint128 start;
uint128 cliff;
}

Properties

NameTypeDescription
startuint128The amount to be unlocked at the start time.
cliffuint128The amount to be unlocked at the cliff time.