cli script to compute account equity from solana snapshot#208
Open
ckamm wants to merge 28 commits into
Open
Conversation
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. |
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
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