TradingStorage
Verified contract
Implementation
Active on
Base with 0 txns
Storage
Map
Table
Raw
Constants and immutables
2
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 1 additional slot
13 additional
variables
Balances ($0.00)
No balances found for "TradingStorage"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "TradingStorage"
ABI
ABI objects
Getter at block 22693019 maxOpenInterest() view returns (uint256)
callbacks() view returns (address)
0x0000000000000000000000000000000000000000
dev() view returns (address)
0x0000000000000000000000000000000000000000
devFeesUSDC() view returns (uint256)
0
getOpenLimitOrders() view returns (struct ITradingStorageOpenLimitOrder[])
[]
getUsdOI() view returns (uint256[2])
[0, 0]
gov() view returns (address)
0x0000000000000000000000000000000000000000
govFeesUSDC() view returns (uint256)
0
govTreasury() view returns (address)
0x0000000000000000000000000000000000000000
maxPendingMarketOrders() view returns (uint256)
0
maxTradesPerPair() view returns (uint256)
0
priceAggregator() view returns (address)
0x0000000000000000000000000000000000000000
referral() view returns (address)
0x0000000000000000000000000000000000000000
requestedGov() view returns (address)
0x0000000000000000000000000000000000000000
totalOI() view returns (uint256)
0
trading() view returns (address)
0x0000000000000000000000000000000000000000
tvlCap() view returns (uint256)
0
usdc() view returns (address)
0x0000000000000000000000000000000000000000
vaultManager() view returns (address)
0x0000000000000000000000000000000000000000
Read-only
blockOI(uint256, uint256) view returns (uint256)
firstEmptyOpenLimitIndex(address trader, uint256 pairIndex) view returns (uint256 index)
firstEmptyTradeIndex(address trader, uint256 pairIndex) view returns (uint256 index)
getOpenLimitOrder(address _trader, uint256 _pairIndex, uint256 _index) view returns (struct ITradingStorageOpenLimitOrder)
getPendingOrderIds(address _trader) view returns (uint256[])
hasOpenLimitOrder(address trader, uint256 pairIndex, uint256 index) view returns (bool)
isTradingContract(address) view returns (bool)
openInterestUSDC(uint256, uint256) view returns (uint256)
openLimitOrderIds(address, uint256, uint256) view returns (uint256)
openLimitOrders(uint256) view returns (address trader, uint256 pairIndex, uint256 index, uint256 positionSize, bool buy, uint256 leverage, uint256 tp, uint256 sl, uint256 price, uint256 slippageP, uint256 block, uint256 executionFee)
openLimitOrdersCount(address, uint256) view returns (uint256)
openTrades(address _trader, uint256 _pairIndex, uint256 _index) view returns (struct ITradingStorageTrade)
openTradesCount(address _trader, uint256 _pairIndex) view returns (uint256)
openTradesInfo(address _trader, uint256 _pairIndex, uint256 _index) view returns (struct ITradingStorageTradeInfo)
pairOI(uint256 _pairIndex) view returns (uint256)
pairTraders(uint256, uint256) view returns (address)
pairTradersArray(uint256 _pairIndex) view returns (address[])
pairTradersId(address, uint256) view returns (uint256)
pendingMarketCloseCount(address, uint256) view returns (uint256)
pendingMarketOpenCount(address, uint256) view returns (uint256)
pendingOrderIds(address, uint256) view returns (uint256)
pendingOrderIdsCount(address _trader) view returns (uint256)
rebates(address) view returns (uint256)
reqIDpendingLimitOrder(uint256 orderId) view returns (struct ITradingStoragePendingLimitOrder)
reqIDpendingMarketOrder(uint256 orderId) view returns (struct ITradingStoragePendingMarketOrder)
usdOI(uint256) view returns (uint256)
walletOI(address _trader) view returns (uint256)
State-modifying
Events addTradingContract(address __trading)
applyReferral(address _trader, uint256 _fees, uint256 _leveragedPosition) returns (uint256, uint256)
claimFees()
claimRebate()
forceUnregisterPendingMarketOrder(uint256 _id)
handleDevGovFees(address _trader, uint256 _pairIndex, uint256 _leveragedPositionSize, bool _usdc, bool _fullFee, bool _buy) returns (uint256 feeAfterRebate)
incrementClosingFees(uint256 devFees, uint256 govFees)
initialize()
registerPartialTrade(address trader, uint256 pairIndex, uint256 index, uint256 _amountReduced)
removeTradingContract(address __trading)
requestGov(address _gov)
setCallbacks(address __callbacks)
setDev(address _dev)
setGov(address _newGov)
setGovTreasury(address _govTreasury)
setMaxPendingMarketOrders(uint256 _maxPendingMarketOrders)
setMaxTradesPerPair(uint256 _maxTradesPerPair)
setPriceAggregator(address _aggregator)
setReferral(address _refferal)
setTrading(address __trading)
setTvlCap(uint256 _newCap)
setUSDC(address _token)
setVaultManager(address _vaultManager)
storeOpenLimitOrder(struct ITradingStorageOpenLimitOrder o)
storePendingLimitOrder(struct ITradingStoragePendingLimitOrder _limitOrder, uint256 _orderId)
storePendingMarketOrder(struct ITradingStoragePendingMarketOrder _order, uint256 _id, bool _open)
storeTrade(struct ITradingStorageTrade _trade, struct ITradingStorageTradeInfo _tradeInfo)
transferUSDC(address _from, address _to, uint256 _amount)
unregisterOpenLimitOrder(address _trader, uint256 _pairIndex, uint256 _index)
unregisterPendingLimitOrder(uint256 _order)
unregisterPendingMarketOrder(uint256 _id, bool _open)
unregisterTrade(address trader, uint256 pairIndex, uint256 index)
updateOpenLimitOrder(struct ITradingStorageOpenLimitOrder _o)
updateSl(address _trader, uint256 _pairIndex, uint256 _index, uint256 _newSl)
updateTp(address _trader, uint256 _pairIndex, uint256 _index, uint256 _newTp)
updateTrade(struct ITradingStorageTrade _t)
AddressUpdated(string name, address a)
FeesCharged(address _trader, uint256 _pairIndex, bool _buy, uint256 fee)
Initialized(uint8 version)
MarketOpenCanceled(uint256 orderId, address indexed trader, uint256 pairIndex)
NumberUpdated(string name, uint256 value)
NumberUpdatedPair(string name, uint256 pairIndex, uint256 value)
OIUpdated(bool _open, bool _long, uint256 _pairIndex, uint256 _leveragedPos, uint256 _price)
SupportedTokenAdded(address a)
TradeReferred(address _trader, address _referrer, uint256 _leveragedPosition, uint256 _traderFeePostDiscount, uint256 _traderFeeDiscount, uint256 _referrerRebate)
TradingContractAdded(address a)
TradingContractRemoved(address a)
constructor()
This contract contains no fallback and receive objects.
This contract contains no error objects.