TradingStorage

Verified contract

Implementation

Active on Base with 0 txns
Deployed by via 0x073db7a4 at 13294213
Slot
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

No balances found for "TradingStorage"

No transactions found for "TradingStorage"


Functions
Getter at block 22693019
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
 
maxOpenInterest(view returns (uint256)
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(uint256uint256view returns (uint256)
firstEmptyOpenLimitIndex(address traderuint256 pairIndexview returns (uint256 index)
firstEmptyTradeIndex(address traderuint256 pairIndexview returns (uint256 index)
getOpenLimitOrder(address _traderuint256 _pairIndexuint256 _indexview returns (struct ITradingStorageOpenLimitOrder)
getPendingOrderIds(address _traderview returns (uint256[])
hasOpenLimitOrder(address traderuint256 pairIndexuint256 indexview returns (bool)
isTradingContract(addressview returns (bool)
openInterestUSDC(uint256uint256view returns (uint256)
openLimitOrderIds(addressuint256uint256view returns (uint256)
openLimitOrders(uint256view returns (address traderuint256 pairIndexuint256 indexuint256 positionSizebool buyuint256 leverageuint256 tpuint256 sluint256 priceuint256 slippagePuint256 blockuint256 executionFee)
openLimitOrdersCount(addressuint256view returns (uint256)
openTrades(address _traderuint256 _pairIndexuint256 _indexview returns (struct ITradingStorageTrade)
openTradesCount(address _traderuint256 _pairIndexview returns (uint256)
openTradesInfo(address _traderuint256 _pairIndexuint256 _indexview returns (struct ITradingStorageTradeInfo)
pairOI(uint256 _pairIndexview returns (uint256)
pairTraders(uint256uint256view returns (address)
pairTradersArray(uint256 _pairIndexview returns (address[])
pairTradersId(addressuint256view returns (uint256)
pendingMarketCloseCount(addressuint256view returns (uint256)
pendingMarketOpenCount(addressuint256view returns (uint256)
pendingOrderIds(addressuint256view returns (uint256)
pendingOrderIdsCount(address _traderview returns (uint256)
rebates(addressview returns (uint256)
reqIDpendingLimitOrder(uint256 orderIdview returns (struct ITradingStoragePendingLimitOrder)
reqIDpendingMarketOrder(uint256 orderIdview returns (struct ITradingStoragePendingMarketOrder)
usdOI(uint256view returns (uint256)
walletOI(address _traderview returns (uint256)
State-modifying
addTradingContract(address __trading
applyReferral(address _traderuint256 _feesuint256 _leveragedPositionreturns (uint256uint256)
claimFees(
claimRebate(
forceUnregisterPendingMarketOrder(uint256 _id
handleDevGovFees(address _traderuint256 _pairIndexuint256 _leveragedPositionSizebool _usdcbool _fullFeebool _buyreturns (uint256 feeAfterRebate)
incrementClosingFees(uint256 devFeesuint256 govFees
initialize(
registerPartialTrade(address traderuint256 pairIndexuint256 indexuint256 _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 _limitOrderuint256 _orderId
storePendingMarketOrder(struct ITradingStoragePendingMarketOrder _orderuint256 _idbool _open
storeTrade(struct ITradingStorageTrade _tradestruct ITradingStorageTradeInfo _tradeInfo
transferUSDC(address _fromaddress _touint256 _amount
unregisterOpenLimitOrder(address _traderuint256 _pairIndexuint256 _index
unregisterPendingLimitOrder(uint256 _order
unregisterPendingMarketOrder(uint256 _idbool _open
unregisterTrade(address traderuint256 pairIndexuint256 index
updateOpenLimitOrder(struct ITradingStorageOpenLimitOrder _o
updateSl(address _traderuint256 _pairIndexuint256 _indexuint256 _newSl
updateTp(address _traderuint256 _pairIndexuint256 _indexuint256 _newTp
updateTrade(struct ITradingStorageTrade _t
Events
AddressUpdated(string nameaddress a
FeesCharged(address _traderuint256 _pairIndexbool _buyuint256 fee
Initialized(uint8 version
MarketOpenCanceled(uint256 orderIdaddress indexed traderuint256 pairIndex
NumberUpdated(string nameuint256 value
NumberUpdatedPair(string nameuint256 pairIndexuint256 value
OIUpdated(bool _openbool _longuint256 _pairIndexuint256 _leveragedPosuint256 _price
SupportedTokenAdded(address a
TradeReferred(address _traderaddress _referreruint256 _leveragedPositionuint256 _traderFeePostDiscountuint256 _traderFeeDiscountuint256 _referrerRebate
TradingContractAdded(address a
TradingContractRemoved(address a
Constructor
constructor(
Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.