Socket
Socket
Sign inDemoInstall

@blockworks-foundation/mango-v4

Package Overview
Dependencies
Maintainers
7
Versions
239
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blockworks-foundation/mango-v4 - npm Package Versions

1
24

0.17.1

Diff

Changelog

Source

v0.17.1, 2023-7-6

Deployment: Jul 6, 2023 at 20:26:34 Central European Summer Time, https://explorer.solana.com/tx/4kiVtR1G3xNh8bTP4FetfG7rjPjLThFjrQNzMMs2TfQHnw7Ezp6JX4rboQbGrJsfZDd6zaMuEa1ZTxahRwPPb9JR

  • Remove extra Pyth oracle status check added in v0.17.0

    The Pyth oracle status also reverts to Unknown if not enough publishers have reported in a 25 slot window. So checking for the "Trading" status means an implicit staleness limit of 25 slots.

    This staleness limit is much more strict than the ones configured on the oracles currently used by Mango and caused occasional transaction failures.

microwavedcola
published 0.17.0 •

Changelog

Source

v0.17.0, 2023-7-3

Deployment: Jul 3, 2023 at 09:46:14 Central European Summer Time, https://explorer.solana.com/tx/4G6b1uihopkHqp968sq3RYacYHn5ND8mMmeNd1RfswTCmiqeappTN2747JTvswVXxs7oqgfU6M3VKPGVRFPGJYuL

  • Configurable perp market settle token (#550)

    This changes perp market margining to no longer assume all pnl is in USD while settlement is in USDC. Instead, a configurable settle token is used for pnl and settlement, defaulting to USDC.

    There is no difference while the USDC price is forced to $1 and its init and liab weights are 1. But with this patch, it becomes possible to change that.

    For now it is not recommended to use a token other than USDC or USDT (or another USD targeting stable token) for perp settlement.

    The patch also updates all instructions dealing with the insurance vault to be aware that the insurance fund is not in USD but in USDC and apply the USDC price before payouts. To do this, the previous PerpLiqNegativePnlOrBankruptcy was replaced by a new PerpLiqNegativePnlOrBankruptcyV2 instruction.

  • Allow reduce-only actions when init health is low (#592)

    Previously when init health was negative, the program only allowed actions that increased init health. Now it also accepts actions that keep init health the same.

    This is helpful for users because they now can place reducing limit orders on the spot or perp orderbooks while their account has low health.

  • Whitelist PerpPlaceOrderV2 and PerpPlaceOrderPeggedV2 for HealthRegions (#597)

  • Improve logging of loans (#599, #603)

  • Pyth oracle status is checked (#607)

  • Fixes to the inactive fee buyback feature (#608)

  • Fix token force close to respect the reduce-only flag (#613)

  • Improve docs (#590, #594)

  • Use workspace dependencies (#588)

microwavedcola
published 0.16.12 •

microwavedcola
published 0.16.11 •

microwavedcola
published 0.16.10 •

microwavedcola
published 0.16.9 •

microwavedcola
published 0.16.8 •

microwavedcola
published 0.16.7 •

microwavedcola
published 0.16.6 •

microwavedcola
published 0.16.5 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc