Go to file
Nicholas Clarke f8da1f6a40
Clarkeni/logging (#81)
* Add logging

* Added new_fixed_order_account_retriever to allow us to more easily access oracle prices outside of health calculations for logging purposes

* Add token balances logging to token and token liquidation and add logging to margin trade

* rust format

* fix clippy errors

* Address PR requested changes

* fix flash_loan

* Recalculate raw_token_index in token withdraw to account for position becoming inactive

* Fix retrieving oracle for logging

in get_mut_or_create(), return the raw index into the account's token
positions as well as the index into active positions only. The latter
index is useful for indexing into banks in the health account list.

* Add logging flash_loan2 and flash_loan3

* Refactoring flash loan logging

Co-authored-by: Christian Kamm <mail@ckamm.de>
2022-06-30 14:35:05 +02:00
.cargo use same rust as what solana uses, use same solana version as cargo toml 2022-05-24 13:52:30 +02:00
.github/workflows serum taker bot (#57) 2022-05-28 07:05:34 +02:00
client multiple banks (#82) 2022-06-27 11:27:17 +02:00
keeper multiple banks (#82) 2022-06-27 11:27:17 +02:00
lib/checked_math Add checked_math library for convenient overflow checking 2022-03-13 15:45:50 +01:00
liquidator multiple banks (#82) 2022-06-27 11:27:17 +02:00
mango-macro further work on perps 2022-03-22 07:06:33 +01:00
migrations First commit 2022-01-21 19:21:46 +01:00
programs Clarkeni/logging (#81) 2022-06-30 14:35:05 +02:00
py rename 2022-03-01 20:55:10 +01:00
ts/client wip: add flash loan 3 2022-06-29 23:36:57 -04:00
.gitignore Mc/keeper next (#45) 2022-04-13 16:41:15 +02:00
Anchor.toml fix address 2022-03-30 17:41:37 +02:00
Cargo.lock switchboard support (#67) 2022-06-18 16:38:46 +02:00
Cargo.toml multiple banks (#82) 2022-06-27 11:27:17 +02:00
README.md Remove anchor dummy type workaround (#53) 2022-05-18 17:16:14 +02:00
idl-fixup.sh Remove anchor dummy type workaround (#53) 2022-05-18 17:16:14 +02:00
mc-release-to-devnet.sh ts client support for perps 2022-05-11 20:06:07 +02:00
package.json use jupiter swap and remove orca integration code 2022-06-24 16:41:04 +02:00
release-to-devnet.sh improvements to flash loan 2022-06-23 16:41:24 +02:00
release-to-mainnet.sh mainnet scripts (#80) 2022-06-23 15:22:59 +02:00
tsconfig.build.json integrate initial pass of orcas devnet swap 2022-06-10 09:02:10 -04:00
tsconfig.cjs.json integrate initial pass of orcas devnet swap 2022-06-10 09:02:10 -04:00
tsconfig.json integrate initial pass of orcas devnet swap 2022-06-10 09:02:10 -04:00
update-local-idl.sh Remove anchor dummy type workaround (#53) 2022-05-18 17:16:14 +02:00
yarn.lock use jupiter swap and remove orca integration code 2022-06-24 16:41:04 +02:00

README.md

Development

  • rust version 1.59.0 (9d1b2106e 2022-02-23)
  • solana-cli 1.9.13
  • anchor-cli 0.24.2
  • npm 8.1.2
  • node v16.13.1

Devnet deployment - m43thNJ58XCjL798ZSq6JGAG1BnWskhdq5or6kcnfsD

TS client based examples

  • ts/client/src/scripts/example1-admin.ts
  • ts/client/src/scripts/example1-user.ts