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.
- add
Amm::getBaseAssetDelta()
- add
StakedPerpToken.sol
for staking; inherit fromaragonone/Checkpointing.sol
#105 - add
PerpRewardVesting.sol
for distributing staking reward; inherit fromBalancer/MerkleRedeem.sol
#106 - add
TollPool.sol
for distributing toll #113 - add
TmpRewardPoolL1.sol
for receiving and transferring toll to feeRewardPool #115 - add
FeeRewardPoolL1.sol
for calculating users' rewards and for users to withdraw rewards; fork fromUnipool.sol
#120 - add
KeeperRewardL1.sol
andKeeperRewardL2.sol
#61 - add
ClearingHouse.openPositionWithReferral
andClearingHouse.closePositionWithReferral
- rename
ClearingHouse
interface fromfeePool
totollPool
- rename
ClearingHouse
interface fromsetFeePool
tosetTollPool
- remove
Amm::migrateLiquidity()
- rename
TmpRewardPoolL1
toFeeTokenPoolDispatcherL1
#198
- add
fundingPayment
toClearingHouse::PositionChanged
andClearingHouse::MarginChanged
#95 - add
spotPrice
toClearingHouse::PositionChanged
#95 - index
trader
andamm
in position-related events #95
IAmm::getReserve
#95- remove
quotAssetReserve
andbaseAssetReserve
fromClearingHouse::PositionChanged
event #95
- add
ClearingHouse::adjustPositionForLiquidityChanged()
#68
- change ClearingHouse's event
PositionAdjusted.newPositionSize
parameter's type fromuint256
toint256
#68 - change error message from both "Margin ratio is larger than min requirement" and "marginRatio not enough" to "Margin ratio not meet criteria" #72
- add
ClearingHouse::openInterestNotional
andAmm::openInterestNotionalCap
#58
- merged event
ClearingHouse::MarginAdded
andClearingHouse::MarginRemoved
intoClearingHouse::MarginChanged
#58 - change
ClearingHouse::whitelistMap
toClearingHouse::whitelist
#58
- add event
ClearingHouse::FeePoolSet
#28 - add event
ClearingHouse::WhitelistChanged
#28
- add argument
_fluctuationLimitRatio
toAmm::migrateLiquidity
#54 - the params of event
ClearingHouse::PositionChanged
has changed (side
-> removed,exchangedPositionSize
-> signed value, addmargin
andunrealizedPnl
) #28 - function name has changed #1640(monorepo)
Amm::settlementPrice
->Amm::getSettlementPrice
Amm::baseAssetDeltaThisFundingPeriod
-->Amm::getBaseAssetDeltaThisFundingPeriod
Amm::cumulativePositionMultiplier
-->Amm::getCumulativePositionMultiplier
Amm::maxHoldingBaseAsset
-->Amm::getMaxHoldingBaseAsset
- add
Amm::getUnderlyingTwapPrice
#16
- the definition of
ClearingHouse::getPosition
has changed (the size becomes dynamic after liquidity migration) #5 - the params of event
ClearingHouse::PositionAdjusted
has changed (oldLiquidityBasis
->oldLiquidityIndex
,newLiquidityBasis
->newLiquidityIndex
) #5 - the params of struct
ClearingHouse::Position
has changed (liquidityBasis
->liquidityHistoryIndex
) #5