Commit Graph

12 Commits

Author SHA1 Message Date
Geoff Taylor 6083eca622 Fixed linting problems with RPCErrors. 2021-04-29 17:20:46 +01:00
Geoff Taylor 8198d0bd60 Now checks for Serum OpenOrders accounts in AccountScout, but they're not mandatory. Margin account is also detailed but no longer mandatory. 2021-04-29 15:51:36 +01:00
Geoff Taylor 9db61efaf5 mango-fetch can now fetch all margin accounts for a user. 2021-04-29 12:51:13 +01:00
Geoff Taylor f8738770f5 Expanded liquidation process and steps. 2021-04-28 18:36:48 +01:00
Geoff Taylor acf2ff5da6 Renamed Classes.ipynb to BaseModel.ipynb. Adjusted all imports of it. 2021-04-27 09:41:22 +01:00
Geoff Taylor 1c6c81cc0d Added logging objects to classes. 2021-04-26 16:43:40 +01:00
Geoff Taylor 5079995361 Pre-alpha: now tries to send PartialLiquidate transaction.
In addition:
* Fixed problem calculating balances
* Added References section to README
* Added user account test to AccountScout
* Tidied up Pandas DataFrame output
* Added balance output to ShowMyAccount
2021-04-23 18:15:44 +01:00
Geoff Taylor e067e4a988 Added running emoji (🏃) to Running headers. 2021-04-23 09:46:43 +01:00
Geoff Taylor 12c4dd1281 Added support links to every notebook. 2021-04-23 09:28:09 +01:00
Geoff Taylor 3928331cc3 Reformatted some header text and added TOC on all pages. 2021-04-22 14:28:32 +01:00
Geoff Taylor 081ca5d599 Added more text to AccountScout descriptions. 2021-04-22 13:45:06 +01:00
Geoff Taylor 3d6f24aee9 Working through liquidation, adding instructions.
- Moved AccountInfo to Context.ipynb to avoid dependency problems from Context to AccountInfo when Classes depends on Context
- Moved AccountInfo.load() operation into Context
- Expanded use of BalanceSheet - can now get a BalanceSheet for each token, either in native token ints or using current prices. Previous get_balance_sheet is now get_balance_sheet_totals()
- Changed Context's fetch_token_balance() to sum all token accounts with that mint and owner, not just pick the first one.
- Added Context.fetch_largest_token_account_for_owner() to efficiently pick a single token account from all those with the same owner and mint.
- Changed wallet file format and default filename to be more consistent with other Solana programs.
- Added an AccountScout notebook to verify an account has been setup properly for using the liquidator. It can print out a nice report as well.
- Added an Instructions notebook to gather the builders for the underlying instructions that will be sent to Solana.
- Added a Liquidation notebook to gather information about the liquidation process and as a place to add liquidation code in the future. (This is very rough.)
2021-04-22 13:19:34 +01:00