Skip to main content

LockupDynamic

Git Source

Namespace for the structs used only in Lockup Dynamic model.

Structs

Segment

Segment struct to be stored in the Lockup Dynamic model.

struct Segment {
uint128 amount;
UD2x18 exponent;
uint40 timestamp;
}

Properties

NameTypeDescription
amountuint128The amount of tokens streamed in the segment, denoted in units of the token's decimals.
exponentUD2x18The exponent of the segment, denoted as a fixed-point number.
timestampuint40The Unix timestamp indicating the segment's end.

SegmentWithDuration

Segment struct used at runtime in {SablierLockup.createWithDurationsLD} function.

struct SegmentWithDuration {
uint128 amount;
UD2x18 exponent;
uint40 duration;
}

Properties

NameTypeDescription
amountuint128The amount of tokens streamed in the segment, denoted in units of the token's decimals.
exponentUD2x18The exponent of the segment, denoted as a fixed-point number.
durationuint40The time difference in seconds between the segment and the previous one.