Skip to content

Commit

Permalink
thow when cliff period < vesting period when setting esop params
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Rudolf committed May 1, 2017
1 parent de522c5 commit 54a6b53
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions contracts/OptionsCalculator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -171,16 +171,18 @@ contract OptionsCalculator is Ownable, Destructable, Math, ESOPTypes {
return calculateOptions(serializeEmployee(emp), calcAtTime, 0, false);
}

function setParameters(uint32 pcliffPeriod, uint32 pvestingPeriod, uint32 pResidualAmountPromille,
function setParameters(uint32 pCliffPeriod, uint32 pVestingPeriod, uint32 pResidualAmountPromille,
uint32 pbonusOptionsPromille, uint32 pNewEmployeePoolPromille, uint32 pOptionsPerShare)
external
onlyCompany
{
if (maxFadeoutPromille > FP_SCALE || bonusOptionsPromille > FP_SCALE || newEmployeePoolPromille > FP_SCALE
|| pOptionsPerShare == 0)
throw;
cliffPeriod = pcliffPeriod;
vestingPeriod = pvestingPeriod;
if (pCliffPeriod > pVestingPeriod)
throw;
cliffPeriod = pCliffPeriod;
vestingPeriod = pVestingPeriod;
maxFadeoutPromille = FP_SCALE - pResidualAmountPromille;
bonusOptionsPromille = pbonusOptionsPromille;
newEmployeePoolPromille = pNewEmployeePoolPromille;
Expand Down

0 comments on commit 54a6b53

Please sign in to comment.