Go to file
Serge Farny c0b61b3b37
liquidator: add more LST for sanctum swap (#944)
2024-04-18 15:17:34 +02:00
.github
anchor-tests chore: fix typos (#778) 2023-11-23 08:59:19 +01:00
audits add audit report for v0.24.0 (#941) 2024-04-15 08:36:10 +02:00
bin liquidator: rebalance with openbook (limit order) (#938) 2024-04-10 16:47:45 +02:00
cd
docs Add doc generation job (#450) 2023-02-13 08:29:50 +01:00
lib liquidator: add more LST for sanctum swap (#944) 2024-04-18 15:17:34 +02:00
migrations Update package.json build steps and move js scripts out of src folder (#470) 2023-02-22 08:36:59 +01:00
programs program; fix health check ix gate (#940) 2024-04-11 07:22:29 +02:00
py
scripts deploy -> dev (#759) 2023-10-19 10:03:07 +02:00
ts/client program; fix health check ix gate (#940) 2024-04-11 07:22:29 +02:00
.dockerignore
.env.sample
.eslintignore
.eslintrc.json
.gitignore
.mocharc.json
.prettierignore
Anchor.toml
CHANGELOG.md Changelog for v0.24.0 (#942) 2024-04-15 09:09:37 +02:00
Cargo.lock Liquidator: add Sanctum swap (#919) 2024-04-10 11:35:56 +02:00
Cargo.toml
DEVELOPING.md
Dockerfile
FAQ-DEV.md
HOW-TO-RELEASE.md
LICENSE
Procfile
Program
README.md
RELEASING.md
SECURITY.md
fix-npm-tag.sh
fly.toml
idl-fixup.sh
mango_v4.json Fix merge errors 2024-03-12 11:27:30 +01:00
package.json v0.23.1 2024-03-10 14:28:41 +01:00
release-to-devnet.sh
run-anchor-tests.sh
rust-toolchain.toml
tsconfig.cjs.json
tsconfig.esm.json
tsconfig.json
tsconfig.types.json
update-local-idl.sh
yarn.lock

README.md

work in progress

License

See the LICENSE file.

The majority of this repo is MIT licensed, but some parts needed for compiling the solana program are under GPL.

All GPL code is gated behind the enable-gpl feature. If you use the mango-v4 crate as a dependency with the client or cpi features, you use only MIT parts of it.

The intention is for you to be able to depend on the mango-v4 crate for building closed-source tools and integrations, including other solana programs that call into the mango program.

But deriving a solana program with similar functionality to the mango program from this codebase would require the changes and improvements to stay publicly available under GPL.

Development

See DEVELOPING.md and FAQ-DEV.md

Dependencies

  • rust version 1.69.0
  • solana-cli 1.16.7
  • anchor-cli 0.28.0
  • npm 8.1.2
  • node v16.13.1

Deployments

  • devnet: 4MangoMjqJ2firMokCjjGgoK8d4MXcrgL7XJaL3w6fVg
  • mainnet-beta: 4MangoMjqJ2firMokCjjGgoK8d4MXcrgL7XJaL3w6fVg
  • primary mango group on mainnet-beta: 78b8f4cGCwmZ9ysPFMWLaLTkkaYnUjwMJYStWe5RTSSX

Release

For program deployment, see RELEASING.md.

Here are steps followed while performing a npm package release note: the UI currently uses code directly from github, pointing to the ts-client branch

  • use yarn publish to release a new package, ensure compatibility with program release to mainnet-beta
  • fix the tag auto added by yarn to match our internal convention, see script fix-npm-tag.sh, tags should look like this e.g.npm-v0.0.1, note: the npm package version/tag should not necessarily match the latest program deployment