-
Notifications
You must be signed in to change notification settings - Fork 11
feat: New Staking workflow #309
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
0xCardiE
wants to merge
65
commits into
master
Choose a base branch
from
feat/new_staking
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 61 commits
Commits
Show all changes
65 commits
Select commit
Hold shift + click to select a range
1b5dbd8
feat: add queued stake updates and withdrawals
0xCardiE 8aa960c
decouple main function into separate methods
0xCardiE 1d4543c
fix: block queued withdrawals during freezes and active rounds
0xCardiE e2f2542
fix: make redistribution payout and linkage atomic
0xCardiE 9f9d1cc
test: harden staking and redistribution coverage
0xCardiE 035ebc8
reconcile slashing
0xCardiE bf76cb6
fix: align queued stake previews with round-based checks
0xCardiE 10197f9
add comments for staking functions
0xCardiE f5c74b8
fix: close exit queues and extend withdrawal delay
0xCardiE 01bc6ff
formatting
0xCardiE e6d7848
Merge remote-tracking branch 'origin/master' into feat/new_staking
0xCardiE d88be86
refactor: simplify stake initialization state
0xCardiE 9b5d271
fix: execute effective stake withdrawals without redistribution relin…
0xCardiE ba86d95
loosen checks per SWIP format
0xCardiE c73b978
refactor: rename queued stake previews to lookahead
0xCardiE dff2544
fix(staking): harden error paths and visibility
0xCardiE 8bba0ee
refactor(staking): remove dead code and fix privileged caller reverts
0xCardiE 3ece9d1
ci: trigger CI run
0xCardiE 73816e9
style: format Staking.sol with prettier
0xCardiE 36e003e
refactor(staking): remove _revertOnFrozen parameter
0xCardiE 7840796
fix(staking): apply ready updates before freezing
0xCardiE c0c012c
feat(staking): return effectiveFromRound from enqueue calls
0xCardiE 285659d
fix(staking): applyUpdates freeze guard and withdrawal fixes
0xCardiE 27aa102
docs(staking): NatSpec errors and diagnostic revert args
0xCardiE e989f4c
refactor(staking): review items—networkId, reconcile, coverage tests
0xCardiE e11a04f
test(staking): cover enqueue returns, no-ops, queue limits
0xCardiE 89d93d5
chore(lint): format Staking.sol and clean tests
0xCardiE 97c0d7e
refactor(staking): fold full withdraw into BelowMinimumStake
0xCardiE 9d0a054
test(staking): add FIFO queue and mixed-delay cases
0xCardiE 9db52e2
test(staking): cover redeposit after exit completes
0xCardiE b3562c4
feat(staking): persist protocol freeze per account
0xCardiE 56e4c04
remove change of network by admin - security
0xCardiE ce7e917
fix various staking issues
0xCardiE 9d9fdb8
code fixes and optimizations
0xCardiE 261e199
docs(staking): clarify FrozenWithdrawal and satisfy Prettier CI
0xCardiE e5ee89b
test(staking): add missing QueueClosed entry to errors map
0xCardiE 706b292
Migrate freeze test
0xCardiE 332070d
refactor(staking): move mutators to changing section
0xCardiE b984e2a
docs(staking): clarify queue break on frozen withdrawal
0xCardiE d8e8091
docs(staking): document _applyStoredUpdate paths
0xCardiE 2d547a4
Add freeze migration function
0xCardiE eb8e635
refactor(staking): rename _applyPreviewUpdate to _simulateUpdate
0xCardiE 7102938
refactor(staking): consolidate per-address Account
0xCardiE 5086b5b
style(staking): format Staking.sol with Prettier
0xCardiE defe2d8
Merge remote-tracking branch 'origin/master' into feat/new_staking
0xCardiE 9bebce5
Add Echidna harness for queued-update StakeRegistry
0xCardiE 401bfd3
style(echidna): format staking harnesses with Prettier
0xCardiE 1413ca2
refactor(staking): nest UpdateQueue in Account
0xCardiE ef2c940
fix description
0xCardiE 68c29df
Introducing constants to use accross the contracts
0xCardiE 62f9737
add other values to constants as well, so we have it all in one place…
0xCardiE f1a8338
remove network ID change
0xCardiE 71db344
clean echidna and some refactoring
0xCardiE fc6b4c3
fixed mumbo jumbo :)
0xCardiE 3c670ca
no reuse remove
0xCardiE 04882d0
Add modifier which is reused
0xCardiE 0cb6053
remove duplicate
0xCardiE c42c12f
remove naming incosistencies
0xCardiE 7181cc9
Prefix function parameters in Redistribution and PriceOracle.
0xCardiE 99241ad
update docs
0xCardiE 7495f08
refactor(staking): remove slash penalty support
0xCardiE 044f5dc
Add undefined check
0xCardiE 4345fdb
test(staking): cover remaining revert paths and StakeFrozen
0xCardiE 8e1097a
docs(staking): add test coverage section, sync with contract
0xCardiE f0d5ee8
change ignore file
0xCardiE File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.