Misleading initialAllocation
name
Note that the allocation configuration variable initialAllocation
in the TotalAllocation
struct is not actually the initial allocation; rather, the initial allocation after 12 months is 12 * allocations[_account].monthlyAllocation + allocations[_account}.initialAllocation
.
This is because the allocation begins after a 12 month cliff period:
if(currentMonth < 12){
return 0; //12 month cliff
}
uint256 totalAllocation = currentMonth * allocations[_account].monthlyAllocation + allocations[_account].initialAllocation;
Note that Spectral Finance renamed this variable to firstAllocation
in commit .