f8da1f6a40
* 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> |
||
---|---|---|
.cargo | ||
.github/workflows | ||
client | ||
keeper | ||
lib/checked_math | ||
liquidator | ||
mango-macro | ||
migrations | ||
programs | ||
py | ||
ts/client | ||
.gitignore | ||
Anchor.toml | ||
Cargo.lock | ||
Cargo.toml | ||
README.md | ||
idl-fixup.sh | ||
mc-release-to-devnet.sh | ||
package.json | ||
release-to-devnet.sh | ||
release-to-mainnet.sh | ||
tsconfig.build.json | ||
tsconfig.cjs.json | ||
tsconfig.json | ||
update-local-idl.sh | ||
yarn.lock |
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