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
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
ccc8cc4
cli script to compute account equity from solana snapshot
ckamm Oct 12, 2022
3507b8b
compute reimbursement amounts
ckamm Oct 13, 2022
880e904
tentative numbers
ckamm Oct 14, 2022
6e04151
improvements
ckamm Oct 14, 2022
2eb92c3
print out mango account address plus owner address
ckamm Oct 14, 2022
a281408
take deposits/withdraws after snapshot into account
ckamm Oct 14, 2022
b0d6fef
MNGO incentives and MNGO special handling
ckamm Oct 14, 2022
3d46b15
fixes after analysis
ckamm Oct 15, 2022
721e9b4
code cleanup
ckamm Oct 15, 2022
02c8d9c
Fix bug and comment
ckamm Oct 15, 2022
2e4ed12
Clarify that account skipping is about negative equity
ckamm Oct 16, 2022
1cda61c
Use one table of token constants instead of multiple
ckamm Oct 16, 2022
84266e6
Allow for csv and binary output
ckamm Oct 17, 2022
3ac2aee
Update available token balances
ckamm Oct 17, 2022
f46a0f6
Update reimb prices for more realistic results
ckamm Oct 17, 2022
e025016
Use snapshot MNGO price for settling MNGO-PERP
ckamm Oct 17, 2022
e2ab4c5
Add a distribution-mode=usdc-only flag
ckamm Oct 17, 2022
a0a5519
Fixup headers
ckamm Oct 17, 2022
13a3a7a
set prices to 10/16/22 close from coingecko
mschneider Oct 17, 2022
a8a4537
Add serum oo token amounts to redistributable tokens
ckamm Oct 17, 2022
daa7c18
Note about reimbursement prices source
ckamm Oct 17, 2022
f12414e
Make greedy settling and scale down optional
ckamm Oct 17, 2022
3c1f147
Improve token usage debug output
ckamm Oct 17, 2022
22ad122
Minor debug output improvements
ckamm Oct 17, 2022
7141ff8
Add USDC+MNGO mode
ckamm Oct 17, 2022
28aedce
Improve settlement matching order
ckamm Oct 17, 2022
3a09eb9
adjust prices for reimbursement to be closing price on 2022-10-17
dafyddd Oct 18, 2022
9044baf
Binary output: Only one row per owner, summing accounts
ckamm Oct 18, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading