@perp/curie-contract
Advanced tools
Changelog
[1.0.0-staging] - 2021-11-24
0.15.1-staging
, but it's a clean deploy to Optimism Kovan and Arbitrum Rinkeby.Changelog
[0.15.1-staging] - 2021-11-23
Changelog
[0.15.0-staging] - 2021-11-22
rename ClearingHouse.settleAllFundingAndPendingFee
to ClearingHouse.settleAllFunding
rename AccountBalance.addTakerBalances
to AccountBalance.modifyTakerBalance
rename params of AccountBalance.modifyTakerBalance
deltaTakerBase
to base
deltaTakerQuote
to quote
rename params of AccountBalance.settleBalanceAndDeregister
deltaTakerBase
to takerBase
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
CH_NEO
to CH_CLWTISO
CH_PSC
to CH_PSCF
CH_ANC
to CH_ENC
CH_ANC
to CH_TFNC
rename params of ClearingHouse.openPosition
deltaBase
to base
deltaQuote
to quote
rename params of ClearingHouse.closePosition
deltaBase
to base
deltaQuote
to quote
rename error code in Exchange
: EX_ANC
to EX_BNC
rename params in struct Exchange.SwapResponse
deltaAvailableBase
to base
deltaAvailableQuote
to quote
rename params in struct Exchange.RealizePnlParams
deltaAvailableBase
to base
deltaAvailableQuote
to quote
rename OrderBook.getOwedFee
as OrderBook.getPendingFee
rename params in struct OrderBook.RemoveLiquidityResponse
deltaTakerBase
to takerBase
deltaTakerQuote
to takerQuote
rename params of OrderBook.updateOrderDebt
deltaBaseDebt
to base
deltaQuoteDebt
to quote
rename params in struct AccountMarket.Info
takerBaseBalance
to takerPositionSize
takerQuoteBalance
to takerOpenNotional
rename error codes in Vault
V_ANC
to V_CHNC
V_ANC
to V_TFNC
move event FundingPaymentSettled
to ClearingHouse
insuranceFundArg
to initialize
of ClearingHouseorderBookArg
to initialize
of AccountBalanceAccountBalance.getNetQuoteBalanceAndPendingFee
exchangeArg
from initialize
of AccountBalanceinsuranceFundArg
from initialize
of ExchangeExchange.getTick
Exchange.getFundingGrowthGlobalAndTwaps
OrderBook.getFeeGrowthGlobal
Changelog
[0.14.0-staging] - 2021-11-17
OrderBook.getTotalQuoteBalance()
OrderBook.getTotalOrderDebt()
OrderBook.getMakerBalance()
Clearinghouse.settleAllFundingAndPendingFee()
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
AccountBalance.getTakerQuote
Changelog
[0.13.3-staging] - 2021-11-11
useTakerPosition
to useTakerBalance
in ClearingHouse.AddLiquidityParams
Changelog
[0.13.2-staging] - 2021-11-11
Changelog
[0.13.1-staging] - 2021-11-11
optimismKovan.json
and rinkeby.json
of v0.12.7
Changelog
[0.13.0-staging] - 2021-11-10
@perp/curie-contract
AccountBalance.getLiquidateMarginRequirement
to AccountBalance.getMarginRequirementForLiquidation
Vault.balanceOf
to Vault.getBalance
AccountBalance.getPositionSize
to AccountBalance.getTotalPositionSize
AccountBalance.getPositionValue
to AccountBalance.getTotalPositionValue
Exchange.getOpenNotional
to Exchange.getTotalOpenNotional
Exchange
EX_OPIBS
to EX_OPLBS
EX_OPIAS
to EX_OPLAS
useTakerPosition
to ClearingHouse.AddLiquidityParams
LiquidityChanged
from OrderBook
to ClearingHouse
AccountBalance.getTakerQuote()
to get taker's quote balanceExchange.getTakerOpenNotional()
to get taker's open notionalClearingHouseConfig.getMaxFundingRate()
and ClearingHouseConfig.setMaxFundingRate()
MarketRegistry.hasPool()
MaxFundingRateChanged
to ClearingHouseConfig
TrustedForwarderChanged
to ClearingHouse
TakerBalancesChanged
to AccountBalance
MaxTickCrossedWithinBlockChanged
to Exchange
AccountBalanceChanged
to Exchange
BorrowerChanged
to InsuranceFund
_versionRecipient
from ClearingHouse
and Vault
Quoter
and Multicall2
contracts from core.