8000 Add test in lockup contract about termination process · Issue #187 · near/core-contracts · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add test in lockup contract about termination process #187

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

Open
telezhnaya opened this issue Nov 2, 2021 · 0 comments
Open

Add test in lockup contract about termination process #187

telezhnaya opened this issue Nov 2, 2021 · 0 comments
Assignees

Comments

@telezhnaya
Copy link
Contributor
  1. Suppose we have two lockup contracts A and B that had exactly the same initialization parameters. These contracts are also interacted in exactly the same way and moment by the users, i.e. they receive the same transactions/receipts at the same moments;
  2. Suppose B is getting terminated at a certain timestamp T;
  3. Is the following true for any possible situation: contracts A and B will unlock exactly the same number of tokens (that also become immediately liquid/withdraw-able) at exactly the same moments from timestamp T' (T'<=T) until some timestamp T'' (T<=T''), and after timestamp T'' B will not unlock any tokens.

Me and @frol came to the conclusion that it's true, but it's better to add a test for that

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 a pull request may close this issue.

1 participant
0