-
Notifications
You must be signed in to change notification settings - Fork 152
Bigz/adl #209
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
Open
0xbigz
wants to merge
26
commits into
master
Choose a base branch
from
bigz/adl
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Bigz/adl #209
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
1d02cac
bigz/adl init
0xbigz 2fe41b2
expand base tests
0xbigz bdf0e82
add sequence check and incorp oracle
0xbigz 9cb5573
Merge branch 'master' into bigz/adl
0xbigz bb78b94
merge master
0xbigz e5d0f41
add free collateral check
0xbigz a92bc1d
do per side breakup of adl logic (long/short)
0xbigz 40b697b
fix recursive test
0xbigz cc8acbe
add deep test
0xbigz da68b9e
expanded sequence test / ordering
0xbigz c0c6021
merge master
0xbigz 80c4fb2
wip merge logic
0xbigz 5ae5e0d
more wip
0xbigz e88ba31
merge master
0xbigz b40e577
make tests pass / no warnings
0xbigz bdccb74
update resolve_perp_bankruptcy to optionally pass in delever user
crispheaney 78f38bc
add perp bankruptcy prodecure
0xbigz e09dc3d
merge master
0xbigz e42ee36
incorp feedback
0xbigz 6b973d7
merge master (wip)
0xbigz 6baa85c
fix record types
0xbigz 4683b87
fix record types, copied
0xbigz e8ce4f3
add clawback user account rust test
0xbigz 25a5f4f
Merge branch 'master' into bigz/adl
0xbigz 351c4be
start with_base test
0xbigz 0069fa3
add test2
0xbigz 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.
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.
how'd you decide this? if bitcoin tick size $.01, then a user would only lose $1 per base?
Uh oh!
There was an error while loading. Please reload this page.
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.
feel like ticks is the unit of "how much amount per base does the market care about". picking the constant across all markets is tbd, but .01 * 100 / 30 => 3% (which i'd argue might be too high). so a $30 asset would ideally have a perp tick of around .001