Go to file
Adrian Brzeziński 34b3b06cab v0.33.9 2024-12-10 20:20:35 +04:00
.github
anchor-tests
audits add audit report for v0.24.3 (#1001) 2024-08-26 07:31:26 +02:00
bin
cd remove switchboard crank (moved to monorepo) 2024-11-30 19:12:49 +00:00
docs
lib Liquidator: fix rebalancing with sequence check (#999) 2024-08-29 08:01:32 +02:00
migrations
programs program: allow closing oo for force closed markets (#997) 2024-08-19 15:27:57 +02:00
py
scripts
ts/client fix ondemand oracle price parsing 2024-12-10 20:16:47 +04:00
.dockerignore
.env.sample
.eslintignore
.eslintrc.json
.gitignore
.mocharc.json
.prettierignore
.prettierrc.json
Anchor.toml
CHANGELOG.md Update changelog 2024-08-26 07:27:55 +02:00
Cargo.lock
Cargo.toml
DEVELOPING.md
Dockerfile
FAQ-DEV.md
HOW-TO-RELEASE.md
LICENSE
Procfile
Program
README.md
RELEASING.md
SECURITY.md
eslint.config.mjs
fix-npm-tag.sh
idl-fixup.sh
mango_v4.json
package-lock.json
package.json v0.33.9 2024-12-10 20:20:35 +04: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 deduplicate 2024-10-08 23:06:17 +07:00

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