Lockup
Namespace for the structs used in both {SablierV2LockupLinear} and {SablierV2LockupDynamic}.
Structs
Amounts
Struct encapsulating the deposit, withdrawn, and refunded amounts, all denoted in units of the asset's decimals.
Because the deposited and the withdrawn amount are often read together, declaring them in the same slot saves gas.
struct Amounts {
uint128 deposited;
uint128 withdrawn;
uint128 refunded;
}
Properties
Name | Type | Description |
---|---|---|
deposited | uint128 | The initial amount deposited in the stream, net of fees. |
withdrawn | uint128 | The cumulative amount withdrawn from the stream. |
refunded | uint128 | The amount refunded to the sender. Unless the stream was canceled, this is always zero. |