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:β
Name | Type | Description |
---|---|---|
index | uint256 | index of the claim in the Merkle tree. |
Return Values:β
Name | Type | Description |
---|---|---|
claimed | uint256 | if 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:β
Name | Type | Description |
---|---|---|
index | uint256 | index of the claim in the Merkle tree. |
amount | uint256 | amount of token claimable |
merkleProof | bytes32[] | 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:β
Name | Type | Description |
---|---|---|
index | uint256 | index of the claim in the Merkle tree. |
amount | uint256 | amount of token claimable |
merkleProof | bytes32[] | the proof used to claim |
quit | bool | set 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.