Go to file
Christian Kamm ba79995c01 Health: order-independent serum3 health
Now all the reserved funds in serum3 open orders accounts are added into
each possible token at the same time. Then the worse case from applying
the reserved funds to either quote or base is selected.

This is reasonably cheap to compute, leads to unchanged results when no
markets share (non USDC) base or quote tokens, but can underestimate
the "true" health value when markets do.

An additional advantage is that HealthCache is now indepenent of serum
open orders and can compute the init and maint health when the user has
active OpenOrders accounts.
2022-06-22 16:52:11 +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 client: remove failing doctests 2022-06-22 16:51:16 +02:00
keeper Mc/liquidator (#64) 2022-06-18 16:31:28 +02:00
lib/checked_math Add checked_math library for convenient overflow checking 2022-03-13 15:45:50 +01:00
liquidator fix clippy warnings 2022-06-21 13:10:37 +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 Health: order-independent serum3 health 2022-06-22 16:52:11 +02:00
py rename 2022-03-01 20:55:10 +01:00
ts/client change format of ids json (#73) 2022-06-21 20:04:21 +02: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 Mc/liquidator (#64) 2022-06-18 16:31:28 +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 adds fn to get oracle prices for group tokens 2022-06-21 19:14:24 +02:00
release-to-devnet.sh Remove anchor dummy type workaround (#53) 2022-05-18 17:16:14 +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 adds fn to get oracle prices for group tokens 2022-06-21 19:14:24 +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