New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@perp/curie-contract

Package Overview
Dependencies
Maintainers
7
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@perp/curie-contract - npm Package Versions

1
56

1.0.0-staging

Diff

Changelog

Source

[1.0.0-staging] - 2021-11-24

  • Code is the same as 0.15.1-staging, but it's a clean deploy to Optimism Kovan and Arbitrum Rinkeby.
wraecca
published 0.15.1-staging •

Changelog

Source

[0.15.1-staging] - 2021-11-23

  • No public change in this version.
wraecca
published 0.15.0-staging •

Changelog

Source

[0.15.0-staging] - 2021-11-22

Changed

  • rename ClearingHouse.settleAllFundingAndPendingFee to ClearingHouse.settleAllFunding

  • rename AccountBalance.addTakerBalances to AccountBalance.modifyTakerBalance

  • rename params of AccountBalance.modifyTakerBalance

    1. deltaTakerBase to base
    2. deltaTakerQuote to quote
  • rename params of AccountBalance.settleBalanceAndDeregister

    1. deltaTakerBase to takerBase
    2. deltaTakerQuote to takerQuote
  • rename AccountBalance.addOwedRealizedPnl to AccountBalance.modifyOwedRealizedPnl

  • rename param delta of AccountBalance.modifyOwedRealizedPnl as amount

  • rename the param sqrtPriceAfter in the ClearingHouse.PositionChanged event to sqrtPriceAfterX96

  • rename error codes in ClearingHouse

    1. CH_NEO to CH_CLWTISO
    2. CH_PSC to CH_PSCF
    3. CH_ANC to CH_ENC
    4. CH_ANC to CH_TFNC
  • rename params of ClearingHouse.openPosition

    1. deltaBase to base
    2. deltaQuote to quote
  • rename params of ClearingHouse.closePosition

    1. deltaBase to base
    2. deltaQuote to quote
  • rename error code in Exchange: EX_ANC to EX_BNC

  • rename params in struct Exchange.SwapResponse

    1. deltaAvailableBase to base
    2. deltaAvailableQuote to quote
  • rename params in struct Exchange.RealizePnlParams

    1. deltaAvailableBase to base
    2. deltaAvailableQuote to quote
  • rename OrderBook.getOwedFee as OrderBook.getPendingFee

  • rename params in struct OrderBook.RemoveLiquidityResponse

    1. deltaTakerBase to takerBase
    2. deltaTakerQuote to takerQuote
  • rename params of OrderBook.updateOrderDebt

    1. deltaBaseDebt to base
    2. deltaQuoteDebt to quote
  • rename params in struct AccountMarket.Info

    1. takerBaseBalance to takerPositionSize
    2. takerQuoteBalance to takerOpenNotional
  • rename error codes in Vault

    1. V_ANC to V_CHNC
    2. V_ANC to V_TFNC
  • move event FundingPaymentSettled to ClearingHouse

Added

  • add a new parameter insuranceFundArg to initialize of ClearingHouse
  • add a new parameter orderBookArg to initialize of AccountBalance

Removed

  • remove AccountBalance.getNetQuoteBalanceAndPendingFee
  • remove parameter exchangeArg from initialize of AccountBalance
  • remove parameter insuranceFundArg from initialize of Exchange
  • remove Exchange.getTick
  • remove Exchange.getFundingGrowthGlobalAndTwaps
  • remove OrderBook.getFeeGrowthGlobal
wraecca
published 0.14.0-staging •

Changelog

Source

[0.14.0-staging] - 2021-11-17

Added

  • add OrderBook.getTotalQuoteBalance()
  • add OrderBook.getTotalOrderDebt()
  • add OrderBook.getMakerBalance()
  • add Clearinghouse.settleAllFundingAndPendingFee()

Changed

  • move PositionChanged event from Exchange to ClearingHouse

  • move Exchange.getTotalOpenNotional to AccountBalance.getTotalOpenNotional

  • move Exchange.getTakerOpenNotional to AccountBalance.getTakerOpenNotional

  • rename OrderBook.getTotalTokenAmountInPool to OrderBook.getTotalTokenAmountInPoolAndPendingFee

  • rename AccountBalance.getOwedAndUnrealizedPnl to AccountBalance.getPnlAndPendingFee

  • rename AccountBalance.getNetQuoteBalance to AccountBalance.getNetQuoteBalanceAndPendingFee

  • rename AccountBalance.settleQuoteToPnl to AccountBalance.settleQuoteToOwedRealizedPnl

  • add new second return value pendingFee of AccountBalance.getOwedAndUnrealizedPnl

  • add new second return value pendingFee of AccountBalance.getNetQuoteBalance

  • add new second return value totalPendingFee of OrderBook.getTotalQuoteBalance

  • add new second return value totalPendingFee of OrderBook.getTotalTokenAmountInPool

Removed

  • remove AccountBalance.getTakerQuote
wraecca
published 0.13.3-staging •

Changelog

Source

[0.13.3-staging] - 2021-11-11

Changed

  • rename useTakerPosition to useTakerBalance in ClearingHouse.AddLiquidityParams
wraecca
published 0.13.2-staging •

Changelog

Source

[0.13.2-staging] - 2021-11-11

Changed

  • update artifacts
vinta
published 0.13.1-staging •

Changelog

Source

[0.13.1-staging] - 2021-11-11

Added

  • add optimismKovan.json and rinkeby.json of v0.12.7
published 0.13.0-staging •

Changelog

Source

[0.13.0-staging] - 2021-11-10

Changed

  • use the new NPM package name: @perp/curie-contract
  • rename AccountBalance.getLiquidateMarginRequirement to AccountBalance.getMarginRequirementForLiquidation
  • rename Vault.balanceOf to Vault.getBalance
  • rename AccountBalance.getPositionSize to AccountBalance.getTotalPositionSize
  • rename AccountBalance.getPositionValue to AccountBalance.getTotalPositionValue
  • rename Exchange.getOpenNotional to Exchange.getTotalOpenNotional
  • fix error codes in Exchange
    1. EX_OPIBS to EX_OPLBS
    2. EX_OPIAS to EX_OPLAS
  • add field useTakerPosition to ClearingHouse.AddLiquidityParams
  • move event LiquidityChanged from OrderBook to ClearingHouse

Added

  • add AccountBalance.getTakerQuote() to get taker's quote balance
  • add Exchange.getTakerOpenNotional() to get taker's open notional
  • add ClearingHouseConfig.getMaxFundingRate() and ClearingHouseConfig.setMaxFundingRate()
  • add MarketRegistry.hasPool()
  • add event MaxFundingRateChanged to ClearingHouseConfig
  • add event TrustedForwarderChanged to ClearingHouse
  • add event TakerBalancesChanged to AccountBalance
  • add event MaxTickCrossedWithinBlockChanged to Exchange
  • add event AccountBalanceChanged to Exchange
  • add event BorrowerChanged to InsuranceFund

Removed

  • remove state _versionRecipient from ClearingHouse and Vault
  • remove Quoter and Multicall2 contracts from core.
    • You can find these contracts in @perp/curie-periphery-contract.
1
56
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