AdminUpgradeabilityProxy
Verified contract
Proxy
Active on
Ethereum with 251 txns
Unified 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
Balances ($0.00)
No balances found for "AdminUpgradeabilityProxy"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 12628685 | 3 years ago | | | 0 | 0.0056772000 | |
| 12628681 | 3 years ago | | | 0 | 0.014815100 | |
| 12628638 | 3 years ago | | | 0 | 0.0055724000 | |
| 12628574 | 3 years ago | | | 0 | 0.016309000 | |
| 12615453 | 3 years ago | | | 0 | 0.0077826000 | |
| 12602176 | 3 years ago | | | 0 | 0.010544100 | |
| 12601942 | 3 years ago | | | 0 | 0.0070475000 | |
| 12601928 | 3 years ago | | | 0 | 0.0070475000 | |
| 12591976 | 3 years ago | | | 0 | 0.00079464000 | |
| 12591970 | 3 years ago | | | 0 | 0.0051852850 |
ABI
ABI objects
Getter at block 21169739
currency() view returns (address)
0x6b175474e89094c44da98b954eedeac495271d0f
currencyUnit() view returns (uint256)
1000000000000000000
liquidatorReward() view returns (uint256)
10
minimumMargin() view returns (uint256)
1000000000
owner() view returns (address)
0x16f8637360e88a8c2fda90dad68a3de816ef0162
paused() view returns (bool)
false
Read-only
freeMargins(address) view returns (uint256)
getUserFreeMargin(address user) view returns (uint256)
getUserPositions(address user) view returns (struct TradingPosition[] _positions)
liquidatingIds(uint256) view returns (bool)
pausedUsers(address) view returns (uint256)
positions(uint256) view returns (address sender, bytes12 symbol, uint64 margin, uint64 leverage, uint64 price, uint48 block, bool isBuy, uint256 id)
State-modifying
Events admin() returns (address)
changeAdmin(address newAdmin)
implementation() returns (address)
upgradeTo(address newImplementation)
upgradeToAndCall(address newImplementation, bytes data) payable
cancelOrder(uint256 id, uint256 positionId, address liquidator, string reason)
capUserBalance(address user, uint256 newBalanceCap)
deposit(uint256 amount, uint256 deadline, uint8 v, bytes32 r, bytes32 s)
initialize(address _currency)
liquidatePositions(uint256[] positionIds)
pause()
pauseUsers(address[] users)
processOrder(uint256 id, bytes32 symbol, uint256 price, uint256 margin, uint256 positionId, address liquidator)
registerContracts(address _products, address _queue, address _treasury)
setCurrencyMin(uint256 _amount)
setLiquidatorReward(uint256 _amount)
submitOrder(bool isBuy, bytes32 symbol, uint256 margin, uint256 leverage)
submitOrderUpdate(uint256 positionId, uint256 margin)
unpause()
unpauseUsers(address[] users)
withdraw(uint256 amount)
AdminChanged(address previousAdmin, address newAdmin)
Upgraded(address indexed implementation)
Deposited(uint256 amount)
LiquidationSubmitted(uint256 id, uint256 positionId, address indexed sender)
NewContracts(address products, address queue, address treasury)
NewLiquidatorReward(uint256 amount)
NewMinimum(uint256 amount)
OrderCancelled(uint256 id, uint256 positionId, address indexed sender, string reason)
OrderSubmitted(uint256 id, address indexed sender, bool isBuy, bytes32 symbol, uint256 margin, uint256 leverage, uint256 positionId)
PositionClosed(uint256 positionId, address indexed sender, uint256 marginClosed, uint256 amountToReturn, uint256 entryPrice, uint256 price, uint256 leverage)
PositionLiquidated(uint256 positionId, address indexed sender, address indexed liquidator, uint256 marginLiquidated)
PositionOpened(uint256 positionId, address indexed sender, bool isBuy, bytes32 symbol, uint256 margin, uint256 leverage, uint256 price)
Withdrew(uint256 amount)
constructor(address _logic, address _admin, bytes _data)
fallback()
receive()
This contract contains no error objects.