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 certora rule that ensures correct MP estimation for any given stake time #104

Open
0x-r4bbit opened this issue Sep 9, 2024 · 1 comment

Comments

@0x-r4bbit
Copy link
Collaborator

For any amount of tokens deposited, within any moment of contract life cycle, process account and process epoch creates valid outputs.

Something like:

{ random amount of account creation with random amount of deposit stake & lock time }
{ random amount of time have been passed }
{ random amount of account creation with random amount of deposit stake & lock time }
{ random calls to StakeManager.processAccount}
{ random amount of account creation with random amount of deposit stake & lock time }
{ random calls to StakeManager.processAccount}

@0x-r4bbit 0x-r4bbit added this to the Staking V1 milestone Sep 9, 2024
@0x-r4bbit 0x-r4bbit self-assigned this Sep 9, 2024
@0x-r4bbit
Copy link
Collaborator Author

This one turns out to be hard to figure out.

Also there's some effort going on in https://github.com/vacp2p/staking-reward-streamer that we'll likely leverage, which will have an impact on the staking contract's functions (and inherently its rules).

I'm holding off with this one until after we've done #116

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

No branches or pull requests

1 participant