Skip to main content

MerkleDistributor

When a user's claim he can claim his vest literally over a year or claim his vest and "quit" claiming 50% of the remaining vesting, the other 50% are redistributed to future claims.

Functions​

isClaimed​

  function isClaimed(
uint256 index
) public returns (bool)

Check if an index has been claimed.

Parameters:​

NameTypeDescription
indexuint256index of the claim in the Merkle tree.

Return Values:​

NameTypeDescription
claimeduint256if the airdrop has been claimed.

claim​

  function claim(
uint256 index,
uint256 amount,
bytes32[] merkleProof
) external

Claim an airdrop based on an index and amount with a proof

Parameters:​

NameTypeDescription
indexuint256index of the claim in the Merkle tree.
amountuint256amount of token claimable
merkleProofbytes32[]the proof used to claim

claim​

  function claim(
uint256 index,
uint256 amount,
bytes32[] merkleProof,
bool quit
) public

Claim an airdrop based on an index and amount with a proof

Parameters:​

NameTypeDescription
indexuint256index of the claim in the Merkle tree.
amountuint256amount of token claimable
merkleProofbytes32[]the proof used to claim
quitboolset it to true if account wants to claim 50% of remaining to vest.

claimVest​

  function claimVest(
) public

Used to claim once claim has ben called once. Claim vested tokens.

claimQuit​

  function claimQuit(
) public

Used to claim once claim has been called once. Claim vested tokens and 50% of the remaining vesting.

claimable​

  function claimable(
) public returns (uint256)

Amount of token vested, should be called once claim has been called.

Events​