TransparentUpgradeableProxy
Verified contract
Proxy
Active on
Base with 1,661 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
0x64e2…a511
0x0c16…7970
0x8335…2913
0xe9fb…48dd
0xa96f…b1bd
-
variable spans 1 additional slot
13 additional
variables
Balances ($148,278.24)
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
USDC | ERC-20 | 148.324405K | $0.999688 |
$148,278.13 | |
WGC | ERC-20 | 200 | $0.00056 |
$0.11 | |
USA | ERC-20 | 1 | $0.000792 |
$0 | |
kurbi | ERC-20 | 0.1 | $0.001249 |
$0 | |
toby | ERC-20 | 777 | $0.00 |
$0 | |
GENOME | ERC-20 | 0 | $0.018961 |
$0 | |
0xDead | ERC-20 | 500K | -- | -- | |
| ERC-20 | 9K | -- | -- | |
BASED | ERC-20 | 5.444K | -- | -- | |
| ERC-20 | 2.4K | -- | -- |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 22676797 | 9 hours ago | | | 0 | 0.0000012344945 | |
| 22676501 | 9 hours ago | | | 0 | 9.4330483e-7 | |
| 22669332 | 13 hours ago | | | 0 | 9.5499003e-7 | |
| 22668032 | 14 hours ago | | | 0 | 0.0000014488880 | |
| 22662723 | 17 hours ago | | | 0 | 9.4914743e-7 | |
| 22662275 | 17 hours ago | | | 0 | 9.4041853e-7 | |
| 22661614 | 17 hours ago | | | 0 | 9.4914743e-7 | |
| 22648454 | a day ago | | | 0 | 0.000000604208000000 | |
| 22634205 | a day ago | | | 0 | 0.0000012167233 | |
| 22632658 | a day ago | | | 0 | 9.4914743e-7 |
ABI
ABI objects
Getter at block 22693019 getOpenLimitOrders() view returns (struct ITradingStorageOpenLimitOrder[]) maxOpenInterest() view returns (uint256)
callbacks() view returns (address)
0x0c16ff40065cc3ab4bc55b60e447504afb9c7970
dev() view returns (address)
0x9176e536f21474502b00e30a5dd24461f7ee6de1
devFeesUSDC() view returns (uint256)
70580727701
getUsdOI() view returns (uint256[2])
[703445054519, 1319546380550]
gov() view returns (address)
0x3775af82c6c5705140944cd515fe899214fb0288
govFeesUSDC() view returns (uint256)
70580625642
govTreasury() view returns (address)
0x9176e536f21474502b00e30a5dd24461f7ee6de1
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(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)
AdminChanged(address previousAdmin, address newAdmin)
BeaconUpgraded(address indexed beacon)
Upgraded(address indexed implementation)
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(address _logic, address admin_, bytes _data)
fallback()
receive()
This contract contains no error objects.