ba79995c01
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. |
||
---|---|---|
.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 | ||
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