Submitted by gpersoon
Suppose you are an investor and want to claim the last part of your claimable tokens (or your entire set of claimable tokens if you havent claimed anything yet).
Then you call the function claim() of InvestorDistribution.sol, which has the following statement:
require(investors\[msg.sender].amount - claimable != 0);
This statement will prevent you from claiming your tokens 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/InvestorDistribution.sol#L113-L128
Remove the require statement.
chickenpie347 (Boot Finance) commented:
chickenpie347 (Boot Finance) commented:
0xean (judge) commented:
