Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additional automated test scenario for Vesting & Lockup Together #2

Open
aquabu opened this issue Mar 17, 2021 · 0 comments
Open

Comments

@aquabu
Copy link
Contributor

aquabu commented Mar 17, 2021

Acceptance

  • In the cmkryvesting_tests add an automated test scenario with vesting and lockup together.
  • The automated test runs in GitHub actions with the other CI tests

Testing Scenario: Vesting & Lockup Together

The employee received a 100 day vesting with a 100 day lockup for 100 tokens.
The start date is set to 50 days ago,
The employee is fired and the remaining vesting is canceled.
The admin reclaims the 50 unvested tokens.
The employee owns 50 tokens but they are still locked until the lockup period is over.
The admin tries to claim the 50 vested employee owned tokens but the reclaim fails.
99 days from the start date the employee tries to transfer 50 tokens but the transfer fails because they are still locked.
100 days from the start date the tokens unlock and the ex-employee transfers their 50 tokens successfully.

Possible additional changes

If it's not possible to set both the Vesting & Lockup at the same as specified in the scenario, modify the contract to be able to set them separately.

@aquabu aquabu changed the title Add additional spec test Add additional automated test for Vesting & Lockup Together Mar 17, 2021
@aquabu aquabu changed the title Add additional automated test for Vesting & Lockup Together Add additional automated test scenario for Vesting & Lockup Together Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant