TransparentUpgradeableProxy

Verified contract

Proxy

Active on Base with 1,661 txns
Deployed by via 0xcc2e21dd at 9776064
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
ERC-20
Value $148,278.13
ERC-20
Value $0.11
ERC-20
Value $0
ERC-20
Value $0
ERC-20
Value $0
ERC-20
Value $0
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
0xa9ed7aea9e90c2516ed334f867144a2cab93b6bb30849e94be1eebe8cbb37d47
0x79d19b1ca158ed62d200d18916530c0348d8b385f4e71c9ccda4c3d65e604d27
0x5c9e23591b0fbda605a1e30e256ef24db665bddff392d0e7d178d6c48d9ee094
0xfbd09f555eab401366f93ef02d7cd497744038bb835da1b9e6ede4827f3dc312
0x0fcbef4a31e6b7750ba6426c7ea02c8f4a2b9c3320e3f858112db7ed1cca772a
0x5e8c92e4cf2e4272787e1cb4ace1edb15999c3f9a42e1c97a2c1e46df0249bfb
0xead00c4b93d7dedb6f05a5bc50022afddaa2a54d495702461c147eec41949098
0x95906e3579af7c66776c159a3a15a8f7a8c01d88c60bb3e2f5ed4527ca578efb
0x5ca9e640be6343da8329943bc4e4a23e6b27c054505a4c48843113dfd9b2867e
0x0a4921118121ee2e89c366fb3bbc3855281bb52f6d7f8d70f2e408bb5efafa8c

Functions
Getter at block 22693019
callbacks(view returns (address)
0x0c16ff40065cc3ab4bc55b60e447504afb9c7970
dev(view returns (address)
0x9176e536f21474502b00e30a5dd24461f7ee6de1
devFeesUSDC(view returns (uint256)
70580727701
 
getOpenLimitOrders(view returns (struct ITradingStorageOpenLimitOrder[])
getUsdOI(view returns (uint256[2])
[703445054519, 1319546380550]
gov(view returns (address)
0x3775af82c6c5705140944cd515fe899214fb0288
govFeesUSDC(view returns (uint256)
70580625642
govTreasury(view returns (address)
0x9176e536f21474502b00e30a5dd24461f7ee6de1
 
maxOpenInterest(view returns (uint256)
maxPendingMarketOrders(view returns (uint256)
5
maxTradesPerPair(view returns (uint256)
10
priceAggregator(view returns (address)
0x64e2625621970f8cfa17b294670d61cb883da511
referral(view returns (address)
0xa96f577821933d127b491d0f91202405b0dbb1bd
requestedGov(view returns (address)
0x3775af82c6c5705140944cd515fe899214fb0288
totalOI(view returns (uint256)
4990019601522
trading(view returns (address)
0x5ff292d70ba9cd9e7ccb313782811b3d7120535f
tvlCap(view returns (uint256)
900000000000
usdc(view returns (address)
0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
vaultManager(view returns (address)
0xe9fb8c70af1b99f2baaa07aa926fcf3d237348dd
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
AdminChanged(address previousAdminaddress newAdmin
BeaconUpgraded(address indexed beacon
Upgraded(address indexed implementation
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(address _logicaddress admin_bytes _data
Fallback and receive
fallback(
receive(
Errors

This contract contains no error objects.