-
Notifications
You must be signed in to change notification settings - Fork 90
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
cli script to compute account equity from solana snapshot #208
Open
ckamm
wants to merge
28
commits into
main
Choose a base branch
from
ckamm/equity-from-snapshot
base: main
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.
Conversation
This file contains 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
ckamm
requested review from
mschneider,
riordanp,
dafyddd and
microwavedcola1
October 12, 2022 15:57
taking into account previous liabs and potentially available token balances
ckamm
force-pushed
the
ckamm/equity-from-snapshot
branch
from
October 14, 2022 14:23
59d3f12
to
afceb56
Compare
ckamm
force-pushed
the
ckamm/equity-from-snapshot
branch
from
October 14, 2022 14:29
afceb56
to
a281408
Compare
- disable giving people more tokens, prefer USDC settlement - settle borrows against non-USDC preferably, to treat delta neutral positions more gracefully - add debug output
dsemerson
reviewed
Oct 16, 2022
Also, don't merge USDT with USDC early, use the normal equity handling mechanism for it. Produces exactly the same output as 721e9b4
No change in computed values
Based on what's on 9mM6NfXauEFviFY1S1thbo7HXYNiSWSvwZEhguJw26wY
Using coingecko as of 20221017 0920 UTC
Perp positions should be settled at snapshot time. The new MNGO price should only be used for spot deposits/borrows.
In this mode only USDC would be distributed
Checked our balances for https://docs.google.com/spreadsheets/d/131YQnLUBgatfhqfpf1FQfuRE8SNpdLq1sqraOAyKfLM/edit#gid=1057746867 ... seems legit. Thanks. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
don't merge, review only