-
Notifications
You must be signed in to change notification settings - Fork 3
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
Invariant Tests #20
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Initiatives Tracking
allocateLQTY
FSM:Removal of chunks
Prob best done as invariant
Inductive removal of chunks
If I have X votes and remove Y votes, I always have X - Y votes left
If I withdraw Y and then X - Y I have 0 left
For a unregistered initiative
Lifecycle tests
A newly created Initiative should be
SKIP
A initiative that didn't meet the threshold should be
SKIP
A initiative that has sufficiently high vetoes in the next epoch should be
UNREGISTERABLE
A initiative that has reached sufficient votes in the previous epoch should become
CLAIMABLE
in this epochA
CLAIMABLE
initiative can remainCLAIMABLE
in the epoch, or can becomeCLAIMED
once someone claims the rewardsRegister and award Flow
0 -> 1 -> 1
SKIP -> CLAIMABLE -> CLAIMED
0 -> X
SKIP -> SKIP -> UNREGISTERABLE -> [UNREGISTERABLE | DISABLED]
0 -> 1
SKIP -> UNREGISTERABLE -> [UNREGISTERABLE | DISABLED]
The text was updated successfully, but these errors were encountered: