Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
@blockworks-foundation/mango-v4
Advanced tools
work in progress
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.
See DEVELOPING.md
After cloning this repo you'll need to init and update its git submodules.
Consider setting the git option submodule.recurse=true
.
Here are steps followed while performing a program deployment to mainnet-beta
program-v0.0.1
, should match the version the program hasmain
to currently deployed tagmain
into their branch, e.g. ts-client
and deploy-mm
Cargo.toml
on dev branch for next releaseHere are steps followed while performing a npm package release note: the UI currently uses code directly from github, pointing to the ts-client branch
yarn publish
to release a new package, ensure compatibility with program release to mainnet-betafix-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 deploymentv0.15.0, 2023-5-11
Deployment: May 11, 2023 at 09:29:12 Central European Summer Time, https://explorer.solana.com/tx/3h6KFxLEAvifNGDBNcQrWdc6cRkpHTzFzL8VradfAXBYNfScrLJzDxm52N4RNmS9dmE84zDuwbErQ75RcxDcihY3
Change TokenRegisterTrustless instruction to disable borrows by default (#567)
The instruction is intended to use very conservative defaults for listing tokens. It now lists new tokens with zero asset weights and without allowing borrowing, which should leave oracle staleness and potential bugs as the main risks of listing new tokens.
OpenBook place order instruction: Respect reduce-only flags on the base and quote bank (#569)
This way the DAO can potentially leave related OpenBook markets open when it marks a token as reduce-only.
FlashLoan: Whitelist the ComputeBudget program when called by delegates (#572)
For convenience. When constructing a flash loan instruction for a delegated account, users no longer need to take care to remove compute budget instructions from the flash loan scope.
Perp Order Matching: Exit when no lots can be filled due to the quote limit (#576)
Previously it would keep looping unnecessarily.
Improve error message for incorrect number of accounts in FixedAccountRetriever (#566)
Add oracle confidence and type information to perp update funding logs (#568)
FAQs
Typescript Client for mango-v4 program.
The npm package @blockworks-foundation/mango-v4 receives a total of 386 weekly downloads. As such, @blockworks-foundation/mango-v4 popularity was classified as not popular.
We found that @blockworks-foundation/mango-v4 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.