- 
                Notifications
    
You must be signed in to change notification settings  - Fork 2
 
Support Delayed Token Update #40
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
          
     Merged
      
      
    
  
     Merged
                    Changes from all commits
      Commits
    
    
            Show all changes
          
          
            168 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      2260247
              
                test: <- propose and finalize update/removal
              
              
                riccardo-ssvlabs b49de04
              
                feat: <- support verification at deploy and more tests
              
              
                riccardo-ssvlabs 4f82724
              
                feat: <- use strategy whitelisting methods
              
              
                riccardo-ssvlabs c125f10
              
                test: <- finish test coverage
              
              
                riccardo-ssvlabs 9ce8ef5
              
                test: <- move from upgradeable to not
              
              
                riccardo-ssvlabs 423998f
              
                test: <- achieve 100% total coverage
              
              
                riccardo-ssvlabs d7d68ff
              
                chore: <- improve style
              
              
                riccardo-ssvlabs 0307c6c
              
                fix(ownable-based-app): <- var shadowing
              
              
                riccardo-ssvlabs ce8f177
              
                fix: <- more shadowing
              
              
                riccardo-ssvlabs 084bdd6
              
                chore: <- remove sligther obscuring gas reports
              
              
                riccardo-ssvlabs 5a46d19
              
                chore: <- restore
              
              
                riccardo-ssvlabs 81d6c01
              
                gas: saving 30/50 gas
              
              
                riccardo-ssvlabs 8d6bc43
              
                gas(proposeBAppTokensUpdate: optmize
              
              
                riccardo-ssvlabs 4cbfc47
              
                gas(proposeBAppTokensRemoval): <- optmize
              
              
                riccardo-ssvlabs 67bb77e
              
                optimize: <- add new tokens
              
              
                riccardo-ssvlabs f2d9ef4
              
                optimize: <- use unchecked block for delegateBalance
              
              
                riccardo-ssvlabs 313ea91
              
                optimize: <- use unchecked block for delegateBalance - format
              
              
                riccardo-ssvlabs d9e173f
              
                optimize: <- use unchecked block for more balance operations
              
              
                riccardo-ssvlabs c1aa8e5
              
                optimize: <- uint256 is more optimized for loops
              
              
                riccardo-ssvlabs cf24b73
              
                optimize: <- restore previous obligation
              
              
                riccardo-ssvlabs ccbdaae
              
                test: <- advanced tests
              
              
                riccardo-ssvlabs 0116505
              
                chore: <- format
              
              
                riccardo-ssvlabs ebd3e31
              
                test: <- multiple updates of obligations and used tokens
              
              
                riccardo-ssvlabs 339903f
              
                test: <- advanced withdrawal flow
              
              
                riccardo-ssvlabs b7bad6e
              
                test: <- advanced add tokens then remove, with obl. implications
              
              
                riccardo-ssvlabs d9582b7
              
                chore: <- format
              
              
                riccardo-ssvlabs d8994ff
              
                test: <- test more events
              
              
                riccardo-ssvlabs 945a5b8
              
                test: <- test more events and add check strategy util
              
              
                riccardo-ssvlabs 7574701
              
                feat: <- remove old fee from events
              
              
                riccardo-ssvlabs 6c03771
              
                test: <- continue test refactor
              
              
                riccardo-ssvlabs 0b73d02
              
                test: <- refactor correct number of used tokens
              
              
                riccardo-ssvlabs 4a9b67b
              
                test: <- refactor delegated balance
              
              
                riccardo-ssvlabs 34952c0
              
                test: <- refactor strategy
              
              
                riccardo-ssvlabs 0579b6c
              
                test: <- refactor strategy complete
              
              
                riccardo-ssvlabs 6b4860a
              
                feat: <- add hoodi deployment
              
              
                riccardo-ssvlabs f3919e5
              
                feat: <- add script to verify on hoodi
              
              
                riccardo-ssvlabs 67e36be
              
                fix(exploit): double check the amount on finalize withdrawal
              
              
                riccardo-ssvlabs 613f3cf
              
                feat: <- isFast field to fee update event
              
              
                riccardo-ssvlabs d2fee0d
              
                test: <- reject exploit withdrawal ERC20 and ETH
              
              
                riccardo-ssvlabs f2ad651
              
                feat: <- support non interface compatible bApps and EOA bBapps
              
              
                riccardo-ssvlabs 24357cb
              
                feat: <- slashing wip
              
              
                riccardo-ssvlabs 408bebd
              
                feat: <- slashing wip 2
              
              
                riccardo-ssvlabs 3ddeaab
              
                feat: <- slashing wip 2
              
              
                riccardo-ssvlabs 5ef1b1d
              
                feat: <- support open slashing from SSVBasedApp contract
              
              
                riccardo-ssvlabs 3825be5
              
                chore: <- format
              
              
                riccardo-ssvlabs e24a395
              
                feat: <- optimize for loops
              
              
                riccardo-ssvlabs afbe286
              
                feat: <- basic slash + testing
              
              
                riccardo-ssvlabs eaaa47f
              
                feat: <- adjusting slashing and tests after share refactor
              
              
                riccardo-ssvlabs e25a005
              
                chore: <- describe new shares mappings
              
              
                riccardo-ssvlabs 4a1e9f1
              
                chore: <- clear shares code
              
              
                riccardo-ssvlabs 8a44738
              
                chore: <- format
              
              
                riccardo-ssvlabs cc8e1f3
              
                chore: <- add comments to explictly handle return values in based app…
              
              
                riccardo-ssvlabs 6262406
              
                test: <- finish test update for shares
              
              
                riccardo-ssvlabs 92026cc
              
                Merge branch 'main' into feat/slashing-basics
              
              
                riccardo-ssvlabs 3a57e89
              
                chore: <- format
              
              
                riccardo-ssvlabs e0bbd3d
              
                feat: <- remove fastUpdateObligation and achieve test coverage
              
              
                riccardo-ssvlabs 6df04b6
              
                test: achieve 100% coverage
              
              
                riccardo-ssvlabs cdfbbe2
              
                feat: <- slashing does not burn but send funds in the slashing fund
              
              
                riccardo-ssvlabs 6326832
              
                feat: <- create storage contract
              
              
                riccardo-ssvlabs a8f18d6
              
                test: <- test setters
              
              
                riccardo-ssvlabs db7e655
              
                chore: <- format
              
              
                riccardo-ssvlabs d844fa4
              
                feat: <- remove emit obligation created event during opt in
              
              
                riccardo-ssvlabs 5b6bea5
              
                fix(ci): <- remove nightly version
              
              
                riccardo-ssvlabs 162975f
              
                feat: <- support and test withdraw from slashing fund, convert var to…
              
              
                riccardo-ssvlabs a0c2711
              
                feat: <- add reentrancy
              
              
                riccardo-ssvlabs cb5a108
              
                fix: typo
              
              
                riccardo-ssvlabs d4a2a88
              
                feat: support new architecture wip
              
              
                riccardo-ssvlabs 0fd88d6
              
                feat: support new format
              
              
                riccardo-ssvlabs 369bde7
              
                test: <- compliant format
              
              
                riccardo-ssvlabs 49f0150
              
                chore: <- explicit imports
              
              
                riccardo-ssvlabs 58cf219
              
                chore: <- prepare style for audit
              
              
                riccardo-ssvlabs b8564bf
              
                test: <- update modules
              
              
                riccardo-ssvlabs 826f494
              
                test: <- clean testing and reach coverage
              
              
                riccardo-ssvlabs 236bb97
              
                feat: <- support slashing total balance
              
              
                riccardo-ssvlabs e435004
              
                chore: <- polish strategy module
              
              
                riccardo-ssvlabs 0992db5
              
                feat: <- support full slashing
              
              
                riccardo-ssvlabs b4a7ab1
              
                feat: <- add new view for current generation value
              
              
                riccardo-ssvlabs fc220ad
              
                fix: <- change owner to account because of shadowning
              
              
                riccardo-ssvlabs 07c5ad4
              
                feat: <- test adjusted finalize withdrawal
              
              
                riccardo-ssvlabs 9a17606
              
                test: <- achieve complete coverage
              
              
                riccardo-ssvlabs d37db33
              
                test: <- propose withdrawal overwrites correctly
              
              
                riccardo-ssvlabs 402f901
              
                chore: <- polish comments
              
              
                riccardo-ssvlabs 680114a
              
                feat: <- remove receiver from slash function
              
              
                riccardo-ssvlabs aa20cf0
              
                test: <- cover withdrawSlashingFund from BAppCore
              
              
                riccardo-ssvlabs 5b1fc24
              
                chore: <- polish comments
              
              
                riccardo-ssvlabs 98d3ad7
              
                feat: <- split strategy manager into more modules
              
              
                riccardo-ssvlabs 9723301
              
                chore: <- add comment for review
              
              
                riccardo-ssvlabs aa5495b
              
                Merge pull request #34 from ssvlabs/test/split-half
              
              
                riccardo-ssvlabs 3c07a4a
              
                feat: <- restructure repo
              
              
                riccardo-ssvlabs 88414ff
              
                feat: <- add only owner for ssvdao methods
              
              
                riccardo-ssvlabs 5bc6de5
              
                feat: <- add ownership test
              
              
                riccardo-ssvlabs 635d437
              
                feat: <- update freezing implementation
              
              
                riccardo-ssvlabs f3971e2
              
                fix: <- use correct name for freeze timelock
              
              
                riccardo-ssvlabs a44b072
              
                feat: <- support slashing and obligation ajustment
              
              
                riccardo-ssvlabs ba445bb
              
                chore: <- remove unused var
              
              
                riccardo-ssvlabs 5162a52
              
                feat: <- set 14 days withdrawal and obligation time
              
              
                riccardo-ssvlabs 32370fd
              
                feat: <- update global values
              
              
                riccardo-ssvlabs e59166b
              
                test: <- 100% slashing coverage
              
              
                riccardo-ssvlabs 2452cc9
              
                test: <- unify slash tests
              
              
                riccardo-ssvlabs 110beab
              
                chore: <- format test imports
              
              
                riccardo-ssvlabs 78b74fc
              
                feat: <- support new structure
              
              
                riccardo-ssvlabs c66baba
              
                feat: <- support initial var configuration
              
              
                riccardo-ssvlabs 4e82ec0
              
                chore: <- format and remove commets
              
              
                riccardo-ssvlabs ff6884c
              
                feat: <- move ssvDao to ProtocolManager
              
              
                riccardo-ssvlabs f4712f4
              
                chore: <- fmt
              
              
                riccardo-ssvlabs 6a0b29c
              
                feat: <- shrink in 3 modules
              
              
                riccardo-ssvlabs afeda25
              
                chore: <- fmt
              
              
                riccardo-ssvlabs 73b1f37
              
                feat: <- set MAX_PERCENTAGE and ETH_ADDRESS as constants
              
              
                riccardo-ssvlabs d0d58bc
              
                feat: <- remove proxy and add delegateTo inside the core
              
              
                riccardo-ssvlabs 715b9de
              
                feat: <- move errors from ICore to interfaces
              
              
                riccardo-ssvlabs f5f93e9
              
                chore: <- remove unused proxy
              
              
                riccardo-ssvlabs 996aa8a
              
                feat: <- support multiple module update
              
              
                riccardo-ssvlabs 4a516aa
              
                fix: <- remove unused updates
              
              
                riccardo-ssvlabs 2af170d
              
                chore: <- update package.json scripts
              
              
                riccardo-ssvlabs fe943ae
              
                feat: <- restrict isBApp to internal
              
              
                riccardo-ssvlabs 9cf337e
              
                feat: <- restrict isBApp to private view
              
              
                riccardo-ssvlabs fdee33a
              
                feat: <- add obligation updated event for slashing readjustment
              
              
                riccardo-ssvlabs bae67af
              
                chore: <- remove unused events and sort
              
              
                riccardo-ssvlabs 2d09b81
              
                feat: <- add getModuleAddress in interface
              
              
                riccardo-ssvlabs f23101d
              
                chore: <- remove commented code
              
              
                riccardo-ssvlabs 742d133
              
                feat: <- support pre-commit or repo
              
              
                riccardo-ssvlabs 7cc36b1
              
                chore: <- update readme
              
              
                riccardo-ssvlabs b1afcc1
              
                chore: <- update readme 2
              
              
                riccardo-ssvlabs 5c4800f
              
                chore: <- test husky
              
              
                riccardo-ssvlabs 8fe21f9
              
                feat: <- general pre-commit w/ solhint
              
              
                riccardo-ssvlabs 3477d4d
              
                feat: <- support lint-staged in pre-commit
              
              
                riccardo-ssvlabs 94a0270
              
                feat: <- support new prettier
              
              
                riccardo-ssvlabs 512e2b5
              
                feat: <- support pre-commit right order
              
              
                riccardo-ssvlabs 948ff80
              
                feat: <- support pre-commit right order 2
              
              
                riccardo-ssvlabs 3dd7818
              
                feat: <- update CI with new prettier
              
              
                riccardo-ssvlabs dfb0f06
              
                feat: <- update CI with npm instsall
              
              
                riccardo-ssvlabs 8b52564
              
                feat: <- slashing section in README
              
              
                riccardo-ssvlabs 44580b5
              
                chore: <- adjust ci and more readme info
              
              
                riccardo-ssvlabs 7b2b6e9
              
                fix: <- use bound instead of assume after CI failing
              
              
                riccardo-ssvlabs 33e7187
              
                fix: <- test
              
              
                riccardo-ssvlabs cc5c0bb
              
                feat: <- remove modifier and use function for _onlyStrategyOwner
              
              
                riccardo-ssvlabs 74eb236
              
                chore: <- format
              
              
                riccardo-ssvlabs 7b87687
              
                chore: <- format
              
              
                riccardo-ssvlabs 2848bcc
              
                feat: <- use call to trasfer eth
              
              
                riccardo-ssvlabs 9a0a20e
              
                chore: <- reduce fuzzer value
              
              
                riccardo-ssvlabs ffc1de7
              
                test: <- bApp rejects ETH transfer
              
              
                riccardo-ssvlabs 2d832f0
              
                chore: <- remove slither from the CI
              
              
                riccardo-ssvlabs 6f05639
              
                chore: <- remove empty test
              
              
                riccardo-ssvlabs eb50397
              
                fix: <- remove freezing data from struc
              
              
                riccardo-ssvlabs 585b674
              
                chore: <- format
              
              
                riccardo-ssvlabs c525957
              
                chore: <- remove comments
              
              
                riccardo-ssvlabs cc90955
              
                feat: support one step token update WIP
              
              
                riccardo-ssvlabs e9c2335
              
                chore: <- remove internal method to avoid reading again from storage
              
              
                riccardo-ssvlabs a2d5c51
              
                chore: <- format
              
              
                riccardo-ssvlabs 8f3f96d
              
                chore: <- remove unused vars
              
              
                riccardo-ssvlabs 75f5484
              
                feat: test strategy owners
              
              
                riccardo-ssvlabs 350a809
              
                feat: update readmes with more info
              
              
                riccardo-ssvlabs a668e41
              
                chore: <- format readme
              
              
                riccardo-ssvlabs 9583b53
              
                chore: <- format readme 2
              
              
                riccardo-ssvlabs 3dbf4e6
              
                feat(readme): <- add deploy instructions
              
              
                riccardo-ssvlabs 20fb611
              
                feat(readme): <- add deploy instructions
              
              
                riccardo-ssvlabs 0db1968
              
                Merge branch 'feat/slashing' into feat/othentic
              
              
                riccardo-ssvlabs 42f298e
              
                feat: removed usedTokens var
              
              
                riccardo-ssvlabs 4b62a8d
              
                feat: update module info
              
              
                riccardo-ssvlabs e6ba580
              
                chore: ref to deploy script
              
              
                riccardo-ssvlabs 5abbfa2
              
                chore: <- resolve conflicts
              
              
                riccardo-ssvlabs e72a5b5
              
                chore: <- remove unused var
              
              
                riccardo-ssvlabs 282443b
              
                test: <- support slashing percentage
              
              
                riccardo-ssvlabs f77d6a2
              
                chore: <- remove unused var
              
              
                riccardo-ssvlabs 5cb489c
              
                chore: <- remove unused var
              
              
                riccardo-ssvlabs 502f9d8
              
                chore: <- remove unused test
              
              
                riccardo-ssvlabs d7eb5e2
              
                chore: adjustments
              
              
                mtabasco 63baf0b
              
                chore: rename functions
              
              
                mtabasco 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
    
  
  
    
              
  
    
      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.
  
    
  
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe you should consider working with wads instead of percentage