TransparentUpgradeableProxy
Verified contract
Proxy
Active on
Base with 175,077 txns
Unified storage
Map
Table
Raw
Constants and immutables
4
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
0x8a31…422d
0x92ed…ff94
Balances ($0.00)
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
| ERC-20 | 2.4K | -- | -- | |
| ERC-20 | 2.4K | -- | -- | |
OHNO | ERC-20 | 1.405391K | -- | -- | |
LZPZ | ERC-20 | 2 | -- | -- |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 22741514 | a few seconds ago | | | 0 | 0.000000209938278172 | |
| 22741511 | a few seconds ago | | | 0 | 0.000000209996864236 | |
| 22741509 | a few seconds ago | | | 0 | 0.000000209938278172 | |
| 22741506 | a few seconds ago | | | 0 | 0.000000209821106044 | |
| 22741504 | a few seconds ago | | | 0 | 0.000000209879692108 | |
| 22741500 | a few seconds ago | | | 0 | 0.000000209996864236 | |
| 22739728 | an hour ago | | | 0 | 0.000000209879692108 | |
| 22739726 | an hour ago | | | 0 | 0.000000209821106044 | |
| 22739723 | an hour ago | | | 0 | 0.000000209879692108 | |
| 22739721 | an hour ago | | | 0 | 0.000000209938278172 |
ABI
ABI objects
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 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)
AdminChanged(address previousAdmin, address newAdmin)
BeaconUpgraded(address indexed beacon)
Upgraded(address indexed implementation)
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(address _logic, address admin_, bytes _data)
fallback()
receive()
This contract contains no error objects.