TransparentUpgradeableProxy

Verified contract

Proxy

Active on Base with 175,077 txns
Deployed by via 0x37c060f8 at 9776089
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
0xa7fb02f2a82b6d6665c90562d1ad292c3bc1a55f42a11b352607097e64196e97
0x655a732372fe13e934064612c3a640fd2cf23aa76edeb23a956508c2b0f848bb
0x4d2756b954e4b176a141311710e936a607fe7734bd063642fcd314803a96116c
0x608d3b86d4b1deff271baf91c03794c4ff6b146c0bee6b0469c631216bb28fa3
0x6003210903c8167736fc142eb5986b04eb0f540995ae0663c9bc133a1c94da6b
0xb9231b30520b1e9781dccad370781e734225c2ada2852cc8f61b27b98bd1c8ed
0xfd2765747520fd8d3c586758c729d80e77edf2566b68db5c5b74738d264df1fb
0x588d2855c4a90466fb02cb377d7636f7cba2e9e31966e9b735e9792f7e0263c0
0x23b98a1b5d4c8d292160a77111ca8ba69ea00743013a55bef7d603372a8f6372
0x6bd2553ed88c5b087351b0b6c31bc2782dd8419d9424a6725840356207d2ef73

Functions
Getter at block 22741514
keeper(view returns (address)
0x106e9637678fc9d7c673ca25df61b92b6c4d88ad
liqThreshold(view returns (uint256)
85
manager(view returns (address)
0x3775af82c6c5705140944cd515fe899214fb0288
pairsStorage(view returns (address)
0x92ed158d5e423cfdc9eed5bd7328fff7ced6ff94
storageT(view returns (address)
0x8a311d7048c35985aa31c131b9a13e03a5f7422d
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
AdminChanged(address previousAdminaddress newAdmin
BeaconUpgraded(address indexed beacon
Upgraded(address indexed implementation
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(address _logicaddress admin_bytes _data
Fallback and receive
fallback(
receive(
Errors

This contract contains no error objects.