🔢Data Models

Data models for TokenTableUnlockerV2.

In this system, cliff unlocks are considered linear as well. This enables us to mix and match cliffs and linears at will, providing full customizability. Cliff waiting periods have a linear bip of 0 and cliff unlocking moments have a duration of 1 second.

*Note that all relative timestamps are relative to the start timestamp. Absolute timestamps are standard UNIX epoch timestamps in seconds.

Structs

UnlockingSchedulePreset

A preset is an unlocking schedule template that contains information that's shared across all stakeholders within a single round.

struct UnlockingSchedulePreset {
    uint256[] linearStartTimestampsRelative;
    uint256 linearEndTimestampRelative;
    uint256[] linearBips;
    uint256[] numOfUnlocksForEachLinear;
}

UnlockingScheduleActual

An actual is an actual unlocking schedule for a single stakeholder and builds on top of an existing preset. An actual contains information that is different from one stakeholder to the next.

struct UnlockingScheduleActual {
    bytes32 presetId;
    uint256 startTimestampAbsolute;
    uint256 amountClaimed;
    uint256 amountDeposited;
    uint256 totalAmount;
}

Last updated