PairInfos
Verified contract
Implementation
Active on
Base with 0 txns
Storage
Map
Table
Raw
Constants and immutables
6
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Balances ($0.00)
No balances found for "PairInfos"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "PairInfos"
ABI
ABI objects
Getter at block 22741514
keeper() view returns (address)
0x0000000000000000000000000000000000000000
liqThreshold() view returns (uint256)
0
manager() view returns (address)
0x0000000000000000000000000000000000000000
pairsStorage() view returns (address)
0x0000000000000000000000000000000000000000
storageT() view returns (address)
0x0000000000000000000000000000000000000000
Read-only
getAccRolloverFeesLong(uint256 pairIndex) view returns (uint256)
getAccRolloverFeesShort(uint256 pairIndex) view returns (uint256)
getAccRolloverFeesUpdateBlock(uint256 pairIndex) view returns (uint256)
getBlendedSkew(uint256 _pairIndex, bool _long, uint256 _longOI, uint256 _shortOI) view returns (uint256)
getBlendedUtilizationRatio(uint256 _pairIndex, uint256 _longOI, uint256 _shortOI) view returns (uint256)
getOnePercentDepthAbove(uint256 pairIndex) view returns (uint256)
getOnePercentDepthBelow(uint256 pairIndex) view returns (uint256)
getPairInfos(uint256[] indices) view returns (struct IPairInfosPairParams[], struct IPairInfosPairRolloverFees[])
getPendingAccRolloverFees(uint256 pairIndex) view returns (uint256 valueLong, uint256 valueShort)
getPriceImpactSpread(uint256 _pairIndex, bool _isBuy, uint256 _leveragePosition) view returns (int256 spread)
getRolloverFeePerBlockP(uint256 pairIndex) view returns (uint256)
getSkewImpactSpread(uint256 _pairIndex, bool _isBuy, uint256 _leveragePosition) view returns (int256 spread)
getTradeInitialAccRolloverFeesPerCollateral(address trader, uint256 pairIndex, uint256 index) view returns (uint256)
getTradeLiquidationPrice(address trader, uint256 pairIndex, uint256 index, uint256 openPrice, bool long, uint256 collateral, uint256 leverage) view returns (uint256)
getTradeLiquidationPricePure(uint256 openPrice, bool long, uint256 collateral, uint256 leverage, uint256 rolloverFee) view returns (uint256)
getTradePriceImpact(uint256 openPrice, uint256 pairIndex, bool long, uint256 tradeOpenInterest) view returns (uint256 priceAfterImpact)
getTradeRolloverFee(address trader, uint256 pairIndex, uint256 index, bool long, uint256 collateral, uint256 leverage) view returns (uint256)
getTradeRolloverFeePure(uint256 accRolloverFeesPerOi, uint256 endAccRolloverFeesPerOi, uint256 collateral, uint256 leverage) pure returns (uint256)
getTradeValuePure(uint256 collateral, int256 percentProfit, uint256 rolloverFee, uint256 closingFee, uint256 lossProtection) view returns (uint256, int256, uint256)
longSkewConfig(uint256, uint256) view returns (uint256)
lossProtectionNumTiers(uint256) view returns (uint256)
lossProtectionTier(struct ITradingStorageTrade _trade) view returns (uint256)
pairParams(uint256) view returns (uint256 onePercentDepthAbove, uint256 onePercentDepthBelow, uint256 rolloverFeePerBlockP)
pairRolloverFees(uint256) view returns (uint256 accPerOiLong, uint256 accPerOiShort, uint256 lastUpdateBlock)
shortSkewConfig(uint256, uint256) view returns (uint256)
tradeInitialAccFees(address, uint256, uint256) view returns (uint256 rollover, bool openedAfterUpdate)
State-modifying
Events getTradeValue(struct ITradingStorageTrade _trade, uint256 collateral, int256 percentProfit, uint256 closingFee, uint256 _tier) returns (uint256 amount, int256 pnl, uint256 fees)
initialize(address _storageT, address _pairsStorage)
resetTradeInitialAccess(address trader, uint256 pairIndex, uint256 index)
setKeeper(address _keeper)
setLossProtectionConfig(uint256 _pairIndex, uint256[] _longSkewConfig, uint256[] _shortSkewConfig)
setManager(address _manager)
setOnePercentDepth(uint256 pairIndex, uint256 valueAbove, uint256 valueBelow)
setOnePercentDepthArray(uint256[] indices, uint256[] valuesAbove, uint256[] valuesBelow)
setPairParams(uint256 pairIndex, struct IPairInfosPairParams value)
setPairParamsArray(uint256[] indices, struct IPairInfosPairParams[] values)
setRolloverFeePerBlockP(uint256 pairIndex, uint256 value)
storeTradeInitialAccFees(address trader, uint256 pairIndex, uint256 index, bool long)
udpateLiquidationThreshold(uint256 _newThreshold)
AccRolloverFeesStored(uint256 pairIndex, uint256 valueLong, uint256 valueShort)
CoeffUpdated(uint256 multiplierCoeffMax, uint256 groupId)
DenomUpdated(uint256 multiplierDenom, uint256 groupId)
FeesCharged(bool buy, uint256 collateral, uint256 leverage, int256 percentProfit, uint256 r, uint256 closingFee, uint256 lossProtection)
Initialized(uint8 version)
KeeperUpdated(address keeper)
LiqThresholdUpdated(uint256 newThreshold)
LossProtectionConfigSet(uint256 numTiers, uint256[] longSkewConfig, uint256[] shortSkewConfig)
ManagerUpdated(address value)
MaxNegativePnlOnOpenPUpdated(uint256 value)
MultiplierUpdated(uint256 minMultiplierRate, uint256 maxMultiplierRate, uint256 groupId)
OnePercentDepthUpdated(uint256 pairIndex, uint256 valueAbove, uint256 valueBelow)
PairParamsUpdated(uint256 pairIndex, struct IPairInfosPairParams value)
RolloverFeePerBlockPUpdated(uint256 pairIndex, uint256 fee)
TradeInitialAccFeesStored(address trader, uint256 pairIndex, uint256 index, uint256 rollover)
constructor()
This contract contains no fallback and receive objects.
This contract contains no error objects.