-
Notifications
You must be signed in to change notification settings - Fork 107
GeneralIndexModule internal review and external audit revisions #75
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
41 commits
Select commit
Hold shift + click to select a range
fab902d
Make all revert reason strings < 32bytes
cgewecke 1e74243
Remove _normalizedTargetMethod getter
cgewecke d43c5ae
Encapsulate _noTokensToSell#canSell logic as internal method
cgewecke 2053ac0
Encapsulate _allTargetsMet#targetUnmet logic in internal method
cgewecke ef484a6
Validate exchange adapter when setting & store name as bytes32 hash
cgewecke 1b8def4
Consolidate position state and timestamp updates
cgewecke de523b9
Validate params for external view methods
cgewecke 62795dd
Make all external setter method names use prefix `set`
cgewecke 70ae790
Add RebalanceStarted event
cgewecke 0e19bf8
Add inline comments and normalize line spacing
cgewecke b637a06
Remove _caller param from onlyAllowedTrader modifier
cgewecke 2a8efd0
Add getDefaultPositionRealUnit getter
cgewecke fe71725
Revert use bytes32 hash for exchange adapter id in #setExchanges
cgewecke eb52c56
Encapsulate setter methods param validation logic
cgewecke 233dcb4
Encapsulate data aggregation logic in #startRebalance in own method
cgewecke d5b6bdb
Prohibit external positions for components in #initialize and #startR…
cgewecke bd71c56
Use TradeModule var naming for sellAmount, netBuyAmount in trade methods
cgewecke 3f18496
Rename _componentQuantityLimit to _minComponentReceived in #tradeRema…
cgewecke 3f0112d
Refactor #createTradeInfo methods and use TradeModule naming conventi…
cgewecke e9f704b
Fix external position module tests
cgewecke c520f00
Revert `isSell`, `minReceiveQuantity` var name changes
cgewecke c0f1dad
Declare tradeInfo return param in #_createTrade.. #_getDefaultTrade..…
cgewecke 344e6c8
Make weth state variable immutable
cgewecke 90cf09d
Fix typos detected in audit
cgewecke bb0f3ff
Add PositionMultiplierUpdated event and emit in #raiseAssetTargets
cgewecke f62d5f2
Optimize external position checks in #startRebalance and #initialize
cgewecke 23ce583
Delegate modifier logic to internal helpers in ModuleBase and General…
cgewecke 181753b
Restrict #_getAggregateComponentsAndUnits state mutability to pure
cgewecke 5fbbf43
Delete trader permissions on module removal / add removeModule tests
cgewecke c3fe5ab
Add #validatePairsWithArray methods to AddressArrayUtils library
cgewecke 7f02665
Use AddressArrayUtils #validatePairs... methods in GeneralIndexModule
cgewecke ef185b8
Add false trader status case to #removeModule tests for coverage report
cgewecke 52a4b08
Add approximatelyEquals helper in PreciseUnitMath and use in #_target…
cgewecke 1ff05b5
Fix file newlines & TS error, normalize permissions comments naming
cgewecke 00f49b8
Rename PositionMultiplierUpdated event to AssetTargetsRaised
cgewecke 280417c
Fix validatePairsWithArray bytes method / update lib changelogs
cgewecke 215b6ef
Remove trader from permissionInfo.tradersHistory when they are de-aut…
cgewecke 493c6a6
Inline protocol fee comment in _calculateTradeSizeAndDirection
cgewecke d1ebe6e
Use #removeStorage instead of #remove in #_updateTradersHistory
cgewecke 770b584
Add getAllowedTraders method and make tradersHistory contain unique e…
cgewecke 7229465
Fix TS error
cgewecke 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
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.
Note: this returns true if vals are equal up to and including +/- range (preserving the logic at _targetUnmet)