-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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 test on TokenVesting draft #2350
Comments
Hi @hems, Thanks for the feedback. The drafts directory was removed from OpenZeppelin Contracts 3.0. If you look at #1214 TokenVesting may not be aligned with traditional vesting. Depending on your use case, you could use TokenTimelock When creating token time locks or vesting you should consider prevention strategies for: Bypassing Smart Contract Timelocks I will close this issue as TokenVesting has been removed but really appreciate the feedback on the test. |
Hello
Yes I noticed!
Actually the linear vesting is the perfect implementation for me and to be frank, I believe to a lot more people, making it more "feature-rich" ( aka complicated ) seems to create a lot of room for discussion and bugs, so in a way I really think the linear lock it the perfect solution as it's very simple to understand and to test, by tweaking that test i posted here i was able to get 100% test coverage.
Thanks for the link, I'll use the TokenVesting contract tough as it works just as we would like it to work.
very interesting concept, thank you for pointing me out! |
I just went through the tests on TokenVesting and figured out that this test isn't finished:
openzeppelin-contracts/test/drafts/TokenVesting.test.js
Lines 146 to 156 in cdf655f
What actually needs to be done in order for this test to be valuable is:
vestedAmount
function from the test fileOther than all the tests seems to be perfect, thanks a lot for all your work
The text was updated successfully, but these errors were encountered: