-
Notifications
You must be signed in to change notification settings - Fork 107
Add GeneralIndexModule contract
#59
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 6 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
5b416f4
Add GenrealIndexModule contract
0xSachinK 834ba66
Fix bugs & Add UniswapV2ExchangeAdapterV3
0xSachinK 45ebf67
Add BalancerV1ExchangeAdapter
0xSachinK c220c4f
Add initial tests & add fee collection to GeneralIndexModule
0xSachinK ef936bc
Add tests for trade function
0xSachinK b165c4a
Add javadocs to contract
0xSachinK adc3018
Fix javadoc bugs
0xSachinK e29e2c5
Add contract initalization test
0xSachinK 816ce4a
Fix bug
0xSachinK 0efc7e7
Add suggested changes
0xSachinK 68d4317
Add raiseAssetTargets test
0xSachinK 171c2ea
Add suggested changes & tests
0xSachinK 189d740
modify raiseTargetPercentage
0xSachinK 7a7afaa
Add tradeRemainingWETH tests
0xSachinK 1db03b5
Add tests for SetToken with weth as component
0xSachinK 276bb5e
Add more tests
0xSachinK 85755e5
fix bug in tests
0xSachinK c2258ef
Add tests for empty arrays
0xSachinK 3433ffa
Add min/max limit amounts to prevent MEV
0xSachinK 9cff0a2
Add strict max/min limit amounts to tests
0xSachinK 8f6f9ae
Fix max floating amounts
0xSachinK e38d02a
Add suggested changes to GeneralIndexModule.sol
0xSachinK 2846a60
Refactor all tests, add suggested changes
0xSachinK dd69996
fix coverage bug
0xSachinK cfb2c94
Remove .skip from tests
0xSachinK eaa85ec
Add cacheBeforeEach blocks to speed up tests
0xSachinK 3f0e0a2
Add test to revert when exchange adapter not found
0xSachinK bf10576
Added logic to be able to raiseAssetTargets when positionMultiplier <…
bweick 6d7d91a
Complete coverage. Adding tests for getComponentTradeQuantityAndDirec…
bweick 31ab0ed
Remove console.log
0xSachinK 7699ae5
Removed unneeded totalSupply call and added test case.
bweick a31f37c
Standardize exchange adapter boolean
0xSachinK d830a0b
Merge branch 'alpha/general-index-module' of https://github.com/SetPr…
0xSachinK 0d41b3a
Move to swapExactTokensForTokens as boolean standard for exchange ada…
0xSachinK 34e2f0d
fix coverage bug
0xSachinK 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
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.