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 a test to ensure lock() can't be called when there's no stake #126

Closed
0x-r4bbit opened this issue Feb 19, 2025 · 0 comments · Fixed by #129
Closed

Add a test to ensure lock() can't be called when there's no stake #126

0x-r4bbit opened this issue Feb 19, 2025 · 0 comments · Fixed by #129

Comments

@0x-r4bbit
Copy link
Collaborator

Currently it looks like one could call lock() on a vault that doesn't have any stake in it.

It likely wouldn't cause any harm, other than just locking up the vault for no good reason.
We should prevent this from happening

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment