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
7

2.2.1

Diff

Changelog

Source

[2.2.1] - 2022-10-11

  • Add InsuranceFund.getInsuranceFundCapacity()
wraecca
published 2.2.0 •

Changelog

Source

[2.2.0] - 2022-09-30

Added

  • Add Vault.settleBadDebt()
  • Add InsuranceFund.repay()
  • Add new event Repaid, BadDebtSettled

Removed

  • Remove InsuranceFund.borrow()
wraecca
published 2.1.1 •

Changelog

Source

[2.1.1] - 2022-09-21

Changed

  • AccountBalance.getLiquidatablePositionSize() returns entire position size if the position value is less than _MIN_PARTIAL_LIQUIDATE_POSITION_VALUE.
wraecca
published 2.1.0 •

Changelog

Source

[2.1.0] - 2022-08-16

Added

  • Add Vault.withdrawAll() to withdraw all free collateral(specified) from vault
  • Add Vault.withdrawAllEther() to withdraw all ETH from vault

Changed

  • Update return parameter names in NatSpec

Fixed

  • Fix rounding issue when liquidating collaterals in full
  • Fix collateral value precision and underlying rounding issues
wraecca
published 2.0.1 •

Changelog

Source

[2.0.1] - 2022-08-10

Added

  • Add DelegateApproval.canAddLiquidityFor to check if can add liquidity for another maker.
  • Add DelegateApproval.canRemoveLiquidityFor to check if can remove liquidity belonging to another maker.
wraecca
published 1.4.0 •

Changelog

Source

[1.4.0] - 2022-07-05

Added

  • Add DelegateApproval
    • Currently only allow delegating ClearingHouseOpenPosition
  • Add ClearingHouse.openPositionFor()
  • Add ClearingHouse.getDelegateApproval()
wraecca
published 1.3.0 •

Changelog

Source

[1.3.0] - 2022-06-20

Added

  • Add BaseToken.cacheTwap to offer the flexibility of updating index prices by either users or ourselves.
wraecca
published 1.2.0 •

Changelog

Source

[1.2.0] - 2022-04-28

Changed

  • ClearingHouse.getAccountValue() function now calls Vault.getAccountValue()
  • Vault.deposit(), Vault.withdraw(), Vault.depositFor() can be used for non-settlement token

Added

  • Vault now supports depositing non-settlement token as collateral
  • Add CollateralManager contract for non-settlement collateral related params management
  • Add Vault.depositEther(), Vault.depositEtherFor() Vault.withdrawEther() for ETH deposit/withdraw
  • Add Vault.getAccountValue() to get the account value in settlement token's decimals
  • Add Vault.getBalanceByToken() to query collateral balance by token address
  • Add Vault.getCollateralTokens() to query all non-settlement collateral token addresses of a trader
  • Add Vault.getFreeCollateralByToken() to query free collateral by given collateral token addresses
  • Add Vault.getSettlementTokenValue() to query trader's settlement token value
  • Add Vault.isLiquidatable() to check if a trader's non-settlement collateral can be liquidated
  • Add Vault.getMarginRequirementForCollateralLiquidation() to get the margin requirement that a trader's non-settlement collateral is eligible to be liquidated
  • Add Vault.getCollateralMmRatio() to get the mmRatio for collateral liquidation
  • Add Vault.getLiquidatableCollateralBySettlement() to get the liquidatable collateral amount by given repaid settlement amount
  • Add Vault.getRepaidSettlementByCollateral to get the repaid settlement amount by given collateral amount for liquidation
  • Add Vault.getMaxRepaidSettlementAndLiquidatableCollateral() to query the max repaid settlement amount and max collateral amount for liquidation
  • Add Vault.liquidateCollateral to liquidate trader's non-settlement collateral
wraecca
published 1.1.0 •

Changelog

Source

[1.1.0] - 2022-04-12

  • Add BaseToken.pause() (only owner)
  • Add BaseToken.close(uint256) (only owner)
  • Add IBaseToken.close()
  • Add IBaseToken.getPausedTimestamp()
  • Add IBaseToken.getPausedIndexPrice()
  • Add IBaseToken.getClosedPrice()
  • Add IBaseToken.isOpen()
  • Add IBaseToken.isPaused()
  • Add IBaseToken.isClosed()
  • Add IVault.depositFor(address, address, uint256)
  • Add IClearingHouse.quitMarket(address, address)
  • Add new event PositionClosed to ClearingHouse, will emit in quitMarket(address, address)
wraecca
published 1.0.15 •

Changelog

Source

[1.0.15] - 2022-02-09

Changed

  • emit PositionChanged event in cancelExcessOrders and cancelAllExcessOrders
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