Skip to main content

LockupDynamic

Git Source

Namespace for the structs used only in LD streams.

Structs

Segment

Segment struct stored to represent LD streams.

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 SablierLockupDynamic.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.