PairInfos

Verified contract

Implementation

Active on Base with 0 txns
Deployed by via 0xe6db733c at 17148111
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0

No balances found for "PairInfos"

No transactions found for "PairInfos"


Functions
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 pairIndexview returns (uint256)
getAccRolloverFeesShort(uint256 pairIndexview returns (uint256)
getAccRolloverFeesUpdateBlock(uint256 pairIndexview returns (uint256)
getBlendedSkew(uint256 _pairIndexbool _longuint256 _longOIuint256 _shortOIview returns (uint256)
getBlendedUtilizationRatio(uint256 _pairIndexuint256 _longOIuint256 _shortOIview returns (uint256)
getOnePercentDepthAbove(uint256 pairIndexview returns (uint256)
getOnePercentDepthBelow(uint256 pairIndexview returns (uint256)
getPairInfos(uint256[] indicesview returns (struct IPairInfosPairParams[]struct IPairInfosPairRolloverFees[])
getPendingAccRolloverFees(uint256 pairIndexview returns (uint256 valueLonguint256 valueShort)
getPriceImpactSpread(uint256 _pairIndexbool _isBuyuint256 _leveragePositionview returns (int256 spread)
getRolloverFeePerBlockP(uint256 pairIndexview returns (uint256)
getSkewImpactSpread(uint256 _pairIndexbool _isBuyuint256 _leveragePositionview returns (int256 spread)
getTradeInitialAccRolloverFeesPerCollateral(address traderuint256 pairIndexuint256 indexview returns (uint256)
getTradeLiquidationPrice(address traderuint256 pairIndexuint256 indexuint256 openPricebool longuint256 collateraluint256 leverageview returns (uint256)
getTradeLiquidationPricePure(uint256 openPricebool longuint256 collateraluint256 leverageuint256 rolloverFeeview returns (uint256)
getTradePriceImpact(uint256 openPriceuint256 pairIndexbool longuint256 tradeOpenInterestview returns (uint256 priceAfterImpact)
getTradeRolloverFee(address traderuint256 pairIndexuint256 indexbool longuint256 collateraluint256 leverageview returns (uint256)
getTradeRolloverFeePure(uint256 accRolloverFeesPerOiuint256 endAccRolloverFeesPerOiuint256 collateraluint256 leveragepure returns (uint256)
getTradeValuePure(uint256 collateralint256 percentProfituint256 rolloverFeeuint256 closingFeeuint256 lossProtectionview returns (uint256int256uint256)
longSkewConfig(uint256uint256view returns (uint256)
lossProtectionNumTiers(uint256view returns (uint256)
lossProtectionTier(struct ITradingStorageTrade _tradeview returns (uint256)
pairParams(uint256view returns (uint256 onePercentDepthAboveuint256 onePercentDepthBelowuint256 rolloverFeePerBlockP)
pairRolloverFees(uint256view returns (uint256 accPerOiLonguint256 accPerOiShortuint256 lastUpdateBlock)
shortSkewConfig(uint256uint256view returns (uint256)
tradeInitialAccFees(addressuint256uint256view returns (uint256 rolloverbool openedAfterUpdate)
State-modifying
getTradeValue(struct ITradingStorageTrade _tradeuint256 collateralint256 percentProfituint256 closingFeeuint256 _tierreturns (uint256 amountint256 pnluint256 fees)
initialize(address _storageTaddress _pairsStorage
resetTradeInitialAccess(address traderuint256 pairIndexuint256 index
setKeeper(address _keeper
setLossProtectionConfig(uint256 _pairIndexuint256[] _longSkewConfiguint256[] _shortSkewConfig
setManager(address _manager
setOnePercentDepth(uint256 pairIndexuint256 valueAboveuint256 valueBelow
setOnePercentDepthArray(uint256[] indicesuint256[] valuesAboveuint256[] valuesBelow
setPairParams(uint256 pairIndexstruct IPairInfosPairParams value
setPairParamsArray(uint256[] indicesstruct IPairInfosPairParams[] values
setRolloverFeePerBlockP(uint256 pairIndexuint256 value
storeTradeInitialAccFees(address traderuint256 pairIndexuint256 indexbool long
udpateLiquidationThreshold(uint256 _newThreshold
Events
AccRolloverFeesStored(uint256 pairIndexuint256 valueLonguint256 valueShort
CoeffUpdated(uint256 multiplierCoeffMaxuint256 groupId
DenomUpdated(uint256 multiplierDenomuint256 groupId
FeesCharged(bool buyuint256 collateraluint256 leverageint256 percentProfituint256 ruint256 closingFeeuint256 lossProtection
Initialized(uint8 version
KeeperUpdated(address keeper
LiqThresholdUpdated(uint256 newThreshold
LossProtectionConfigSet(uint256 numTiersuint256[] longSkewConfiguint256[] shortSkewConfig
ManagerUpdated(address value
MaxNegativePnlOnOpenPUpdated(uint256 value
MultiplierUpdated(uint256 minMultiplierRateuint256 maxMultiplierRateuint256 groupId
OnePercentDepthUpdated(uint256 pairIndexuint256 valueAboveuint256 valueBelow
PairParamsUpdated(uint256 pairIndexstruct IPairInfosPairParams value
RolloverFeePerBlockPUpdated(uint256 pairIndexuint256 fee
TradeInitialAccFeesStored(address traderuint256 pairIndexuint256 indexuint256 rollover
Constructor
constructor(
Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.