Skip to content

Release v1.0.0

Latest
Compare
Choose a tag to compare
@JustinlinPerp JustinlinPerp released this 18 Mar 01:59

Today, we are releasing @perp/v2-sdk 1.0.0. The architecture is:

  • Market:

    • indexPrice
    • markPrice
    • indexTwapPrice
  • Liquidity: Addable pairs for liquidity.

    • liquidityPendingFee
    • totalTokenAmountInPoolAndPendingFee
    • getMakerPositionImpermanent
  • Wallet: Manages user’s assets in his/her connected web3 wallet. (e.g. MetaMask)

    • Wallet
    • DepositHistory
    • WithdrawHistory
  • Vault: Manages user’s assets stored inside Perpetual Protocol.

    • deposit
    • withdraw
  • ClearingHouse: Manage transactions.

    • openPosition
    • closePosition
    • addLiquidity
    • removeLiquidity
  • Position:

    • Position
    • PositionDraft
    • PositionHistory
    • FundingPaymentHistory