Trading
Verified contract
Implementation
Active on
Ethereum with 0 txns
Storage
Map
Table
Raw
Constants and immutables
1
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 "Trading"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "Trading"
ABI
ABI objects
Getter at block 21169739
currency() view returns (address)
0x0000000000000000000000000000000000000000
currencyUnit() view returns (uint256)
0
liquidatorReward() view returns (uint256)
0
minimumMargin() view returns (uint256)
0
owner() view returns (address)
0x0000000000000000000000000000000000000000
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 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)
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)
This contract contains no constructor objects.
This contract contains no fallback and receive objects.
This contract contains no error objects.