Submitted by gpersoon
Suppose you are eligible for the last part of your airdrop (or your entire airdrop if you havent claimed anything yet).
Then you call the function claim() of AirdropDistribution.sol, which has the following statement:
assert(airdrop\[msg.sender].amount - claimable != 0);
This statement will prevent you from claiming your airdrop because it will stop execution.
Note: with the function claimExact() it is possible to claim the last part.
// https://github.com/code-423n4/2021-11-bootfinance/blob/7c457b2b5ba6b2c887dafdf7428fd577e405d652/vesting/contracts/AirdropDistribution.sol#L522-L536
Remove the assert statement.
Also add the following to validate() , to prevent claiming the airdrop again:
require(validated\[msg.sender]== 0, "Already validated.");
chickenpie347 (Boot Finance) confirmed:
0xean (judge) commented:
