Skip to content

cli script to compute account equity from solana snapshot#208

Open
ckamm wants to merge 28 commits into
mainfrom
ckamm/equity-from-snapshot
Open

cli script to compute account equity from solana snapshot#208
ckamm wants to merge 28 commits into
mainfrom
ckamm/equity-from-snapshot

Conversation

@ckamm

@ckamm ckamm commented Oct 12, 2022

Copy link
Copy Markdown
Contributor

don't merge, review only

Comment thread cli/src/main.rs Outdated
Comment thread cli/src/main.rs Outdated
@ckamm
ckamm force-pushed the ckamm/equity-from-snapshot branch from 59d3f12 to afceb56 Compare October 14, 2022 14:23
@ckamm
ckamm force-pushed the ckamm/equity-from-snapshot branch from afceb56 to a281408 Compare October 14, 2022 14:29
ckamm added 5 commits October 14, 2022 18:19
- disable giving people more tokens, prefer USDC settlement
- settle borrows against non-USDC preferably, to treat delta neutral
  positions more gracefully
- add debug output
Comment thread cli/src/main.rs Outdated
ckamm and others added 10 commits October 16, 2022 23:22
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
@kronael

kronael commented Oct 18, 2022

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants