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

fix(lockup): add test of unlocking schedule with termination #188

Closed
wants to merge 1 commit into from

Conversation

telezhnaya
Copy link
Contributor

Closes #187

I also need to rebuild the binary again; I'll do that after we review the test.

I decided to check all that we wanted on one contract instead of 2, it looks simpler for me and it checks the same stuff.

@telezhnaya
Copy link
Contributor Author

I guess it's better to mention the doc in the comments
https://wiki.near.org/getting-started/near-token/lockups#termination-of-vesting
It could be useful for the reader to understand the logic better

Copy link
Contributor

@frol frol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@telezhnaya I find this test to be quite hard to follow due to "magical consts"

lockup/src/lib.rs Show resolved Hide resolved
lockup/src/lib.rs Show resolved Hide resolved
lockup/src/lib.rs Show resolved Hide resolved
lockup/src/lib.rs Show resolved Hide resolved
lockup/src/lib.rs Show resolved Hide resolved
lockup/src/lib.rs Show resolved Hide resolved
@ilblackdragon
Copy link
Member

Standard wise, it will be test(lockup) if there is no actual fix in the PR but only tests added.

@telezhnaya
Copy link
Contributor Author

Addressed all the review comments in #191

@telezhnaya telezhnaya closed this Dec 9, 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

Successfully merging this pull request may close these issues.

Add test in lockup contract about termination process
3 participants