Skip to content
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
wants to merge 28 commits into
base: main
Choose a base branch
from

Conversation

ckamm
Copy link
Contributor

@ckamm ckamm commented Oct 12, 2022

don't merge, review only

cli/src/main.rs Outdated Show resolved Hide resolved
cli/src/main.rs Outdated Show resolved Hide resolved
- disable giving people more tokens, prefer USDC settlement
- settle borrows against non-USDC preferably, to treat delta neutral
  positions more gracefully
- add debug output
cli/src/main.rs Outdated Show resolved Hide resolved
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
Copy link

kronael commented Oct 18, 2022

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