- Rename to perp_liq_base_or_positive_pnl and perp_liq_negative_pnl_or_bankruptcy - Deal with situations where overall asset weight is zero and base position reduction would not improve liqee health - Add ability for liqors to take over positive unsettled pnl if that improves liqee health |
||
---|---|---|
.github | ||
anchor@309c2c2f4c | ||
anchor-tests | ||
cli | ||
client | ||
keeper | ||
lib/checked_math | ||
liquidator | ||
migrations | ||
programs | ||
py | ||
switchboard-v2@97ed7b12de | ||
ts/client | ||
.dockerignore | ||
.env.sample | ||
.eslintignore | ||
.eslintrc.json | ||
.gitignore | ||
.gitmodules | ||
.prettierignore | ||
Anchor.toml | ||
CHANGELOG.md | ||
Cargo.lock | ||
Cargo.toml | ||
Dockerfile | ||
HOW-TO-RELEASE.md | ||
Procfile | ||
Program | ||
README.md | ||
SECURITY.md | ||
fix-npm-tag.sh | ||
idl-fixup.sh | ||
package.json | ||
release-to-devnet.sh | ||
release-to-mainnet.sh | ||
run-anchor-tests.sh | ||
tsconfig.build.json | ||
tsconfig.cjs.json | ||
tsconfig.esm.json | ||
tsconfig.json | ||
update-local-idl.sh | ||
yarn.lock |
README.md
Development
Dependencies
- rust version 1.65.0
- solana-cli 1.14.9
- npm 8.1.2
- node v16.13.1
Submodules
After cloning this repo you'll need to init and update its git submodules.
Consider setting the git option submodule.recurse=true
.
Deployments
- devnet: 4MangoMjqJ2firMokCjjGgoK8d4MXcrgL7XJaL3w6fVg
- mainnet-beta: 4MangoMjqJ2firMokCjjGgoK8d4MXcrgL7XJaL3w6fVg
Notes
For testing latest program changes while developing, just run below scripts in given order form any branch, these set of scripts should more or less always work, bump up GROUP_NUM if you unsure if previous GROUP_NUM has not been cleanly closed or setup with older program code
./release-to-devnet.sh
GROUP_NUM=4 yarn ts-node ts/client/src/scripts/devnet-admin.ts
GROUP_NUM=4 yarn ts-node ts/client/src/scripts/devnet-user.ts
GROUP_NUM=4 yarn ts-node ts/client/src/scripts/devnet-user-close-account.ts
GROUP_NUM=4 yarn ts-node ts/client/src/scripts/devnet-admin-close.ts