Skip to main content

MerkleLT

Git Source

Structs

TrancheWithPercentage

Struct encapsulating the unlock percentage and duration of a tranche.

Since users may have different amounts allocated, this struct makes it possible to calculate the amounts at claim time. An 18-decimal format is used to represent percentages: 100% = 1e18. For more information, see the PRBMath documentation on UD2x18: https://github.com/PaulRBerg/prb-math

struct TrancheWithPercentage {
UD2x18 unlockPercentage;
uint40 duration;
}

Properties

NameTypeDescription
unlockPercentageUD2x18The percentage designated to be unlocked in this tranche.
durationuint40The time difference in seconds between this tranche and the previous one.