Skip to content

Latest commit

 

History

History
129 lines (81 loc) · 4.96 KB

CHANGELOG.md

File metadata and controls

129 lines (81 loc) · 4.96 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

[0.8.7]

  • State: Add getFundingInfo, which returns a FundingInfo object. (#127)
  • Cache: MarkTwap's TwapInfo is reworked: ohlc is now deprecated, and cumulAvg represents the cumulative sum of the funding TWAP. (#127)

[0.8.6]

  • Margin: Fix RealizedPnl decimals
  • General: Add createProvider function

[0.8.5] - 2022-02-11

  • State: fixed supply/borrow apy zero divisor check

[0.8.4] - 2022-02-10

  • Margin: Added method to create ix for placePerpOrder, will do so for more instructions (#75)

[0.8.3] - 2022-02-07

  • Margin: Replaced mark price with index price in liquidations related calculations (#70)

[0.8.0] - 2022-02-07

  • Margin: Added Power Perps Support
  • Margin: Removed cache as param for MarginWeb3 Functions
  • Margin: Added liquidation calculations to MarginWeb3
  • Margin: Added margin exists function to check if margin exists
  • Margin: Added state & cache subscriptions
  • Program: Add FillOrKill order type. Acts as an IoC which fails if not completely filled (#67)

[0.7.0] - 2022-01-31

  • Margin: Margin now inherits MarginWeb3 which contains all the web3 logic related to fetching and loading
  • Margin: now also contains math related logic for margin fractions calculation and other helper methods which can be use in liquidators & trading bots
  • Margin: now also loads open orders for the account, and positions information
  • State: now loads more detailed information about the markets & collaterals
  • Cache: Fix mark cache's lastSampleStartTime decoding

[0.5.1] - 2022-01-28

  • Events: Added marginKey to SwapLog event

[0.5.0] - 2022-01-27

  • Mainnet: Mainnet keys added
  • Program: createProgram now takes a Cluster argument

[0.4.2] - 2022-01-24

  • Margin: Added optional owner param to Margin.load()

[0.4.1] - 2022-01-24

  • Fix: changed cancelPerpOrder null operator

[0.4.0] - 2022-01-24

  • Fix: Update IDL

[0.3.0] - 2022-01-24

  • Margin: Removed cancelPerpOrderByClientId and merged it into cancelPerpOrder (#52)
  • BREAKING - Program: The old Zo devnet program DuSPvazsfthvWRuJ8TUs984VXCeUfJ1qbzd8NwkRLEpd, and Zo Dex devnet program CX8xiCu9uBrLX5v3DSeHX5SEvGT36PSExES2LmzVcyJd is being decommissioned.

[0.2.9] - 2022-01-21

  • Spot: Added and enabled swapping for SOL-USDC spot market
  • BREAKING - Margin: Added payer to createMargin and createPerpOpenOrders so that PDA's can be authorities of margin accounts during CPIs (#51)

[0.2.8] - 2022-01-16

  • Margin: Added reduceOnlyIoc and reduceOnlyLimit order types (#49)

[0.2.7] - 2022-01-16

  • General: updated anchor to newer version and enabled commitment passing (#42)
  • Fix: fixed decimal errors on some decoding (#42)

[0.2.6] - 2022-01-04

  • Events: Added swap event (#32)
  • Fix: Npm build (#33)

[0.2.4] - 2022-01-01

  • Events: Added anchor events and decoder (#31)

[0.2.3] - 2022-01-01 🥳

  • Changed serum-ts to lite-serum to remove unnecessary files (#29)

[0.2.0] - 2021-12-25 🎅

Added

  • Deposit/Withdraw: Now accepts a mint pubkey and deposits/withdraws directly to/from an associated token account
  • Deposit/Withdraw: Old implementations of deposit/withdraw are repurposed as depositRaw/withdrawRaw in case users want to deposit/withdraw to/from a specific account
  • Withdraw: Associated token account is created before withdrawal if such account does not exist
  • Margin: Add an optional limit arg to placePerpOrder used when compute limit is reached
  • Margin: ClientId can now be passed as an input to placePerpOrder to tag specific orders with a unique id, that can be used to cancel the order using the clientId
  • Margin: New instruction cancelPerpOrderByClientId that cancels using the pre-assigned unique client id

Changed

  • Margin: Swap method is now simplified. Takes in big units (like SOL and BTC) instead of smol units (like satoshis and lamports).
  • Margin: Swap method now accepts a slippage parameter.
  • Margin: PlacePerpOrder is now simplified. Takes in big units. No longer takes in maxQuoteQty.

[0.1.0] - 2021-12-16

Added

  • Life to this repo