-
Notifications
You must be signed in to change notification settings - Fork 108
PerpV2LeverageModule ABDK audit fixes #190
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
22 commits
Select commit
Hold shift + click to select a range
2d82cf9
4. Fix event names
0xSachinK a8a56e0
7. Index event parameters
0xSachinK 952d91d
Revert changes introduced in #185
0xSachinK 0b22dff
14. Refactor comment
0xSachinK 4ca9d2b
15. Implement getPositionUnitInfo using getPositionNotionalInfo
0xSachinK f4111b3
16. Optimize fetching length
0xSachinK 8082c35
21. Optimize if block condition
0xSachinK 4072c0e
16 & 23 Avoid multiple reads from mappings or arrays
0xSachinK 2f42e67
22 Avoid fetching array elements twice
0xSachinK 7d4ea45
26. Optimize preciseDivCeil
0xSachinK 95db136
Revert 4. Refactor event names to verbs instead of nouns
0xSachinK a8cffd4
Pre calculate number of iterations in for loops
0xSachinK 3f283aa
Update variable name to currentPosition
0xSachinK d775668
Update getPositionUnitInfo visibility to external
0xSachinK c04b986
Refactor uint to uint256
0xSachinK d8e362f
Replace .mul(-1) with neg()
0xSachinK 61d77af
Fix javadocs formatting
0xSachinK 0e704f0
Add comments for registerToIssuanceModule try/catch block
0xSachinK 4d7f6e2
Refactor neg() and add tests
0xSachinK 7ad49c9
Fix failing test
0xSachinK 0585cbc
Remove failing test
0xSachinK 28df84f
Bump package to 0.1.11
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
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.
Uh oh!
There was an error while loading. Please reload this page.