Skip to main content

SablierV2MerkleLockupFactory

Git Source

Inherits: ISablierV2MerkleLockupFactory

See the documentation in ISablierV2MerkleLockupFactory.

Functions

isPercentagesSum100

Verifies if the sum of percentages in tranches equals 100% , i.e. 1e18.

Reverts if the sum of percentages overflows.

function isPercentagesSum100(MerkleLT.TrancheWithPercentage[] calldata tranches)
external
pure
override
returns (bool result);

Parameters

NameTypeDescription
tranchesMerkleLT.TrancheWithPercentage[]The tranches with their respective unlock percentages.

Returns

NameTypeDescription
resultboolTrue if the sum of percentages equals 100%, otherwise false.

createMerkleLL

inheritdoc ISablierV2MerkleLockupFactory

function createMerkleLL(
MerkleLockup.ConstructorParams memory baseParams,
ISablierV2LockupLinear lockupLinear,
LockupLinear.Durations memory streamDurations,
uint256 aggregateAmount,
uint256 recipientCount
)
external
returns (ISablierV2MerkleLL merkleLL);

createMerkleLT

inheritdoc ISablierV2MerkleLockupFactory

function createMerkleLT(
MerkleLockup.ConstructorParams memory baseParams,
ISablierV2LockupTranched lockupTranched,
MerkleLT.TrancheWithPercentage[] memory tranchesWithPercentages,
uint256 aggregateAmount,
uint256 recipientCount
)
external
returns (ISablierV2MerkleLT merkleLT);