-
Notifications
You must be signed in to change notification settings - Fork 225
[program] Separate margin mode checks on different isolated margin calculations and cross calculation #2095
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
LukasDeco
merged 25 commits into
master
from
lukas/be-67-isolated-longterm-solution-run-checks-on-maintenance-margin
Mar 29, 2026
Merged
Changes from 12 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
d71c24a
feat: margin type config for override margin type behavior
LukasDeco 39227c4
feat: tests for margin override
LukasDeco a16dc8f
feat: idl, anchor tests, more cargo tests
LukasDeco ea34060
feat: helpful comments
LukasDeco 1cad8ef
fix: logic for user margin ratio evaluated on per position basis
LukasDeco f8ed48b
chore: use maintenance check on cross account place order req on iso …
LukasDeco 033f9e0
feat: margin type config on transfer isolated + tests
LukasDeco f675af5
feat: transfer to isolated conditional margin overrides + fulfill_per…
LukasDeco 9504a39
fix: recalc is high lev on each perp position calc margin req
LukasDeco f85cc94
fix: tests and build errors
LukasDeco 6920c50
fix: cargo fmt
LukasDeco 280bd1a
feat: additional test scenarios
LukasDeco 9a98f9e
fix: using wrong margin type on fulfill perp order margin type config
LukasDeco 0148ca2
fix: anchor tests wrong oracle prices on order margin checks
LukasDeco 51089c9
fix: bug with custom margin ratios
LukasDeco 62ad6e6
fix: incorrect comments on anchor tests w oracle prices
LukasDeco f353b5d
fix: another anchor test fix
LukasDeco ea85892
feat: isolated transfer anchor tests
LukasDeco c31ef21
fix: anchor tests broken for iso transfer
LukasDeco 3ec549a
fix: fulfill order pr feedback how define is isolated flag
LukasDeco cc8ea34
fix: perp order fulfillment maker is isolated flag
LukasDeco 88f7a74
fix: tests for maker_fills map
LukasDeco 6cab857
Merge branch 'master' into lukas/be-67-isolated-longterm-solution-run…
LukasDeco 351bded
Merge branch 'master' into lukas/be-67-isolated-longterm-solution-run…
LukasDeco 3f145d9
fix: install ts later version for ci
LukasDeco 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
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.