Trading

Verified contract

Implementation

Active on Ethereum with 0 txns
Deployed by via 0x8bb3ced3 at 11681960
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0

No balances found for "Trading"

No transactions found for "Trading"


Functions
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(addressview returns (uint256)
getUserFreeMargin(address userview returns (uint256)
getUserPositions(address userview returns (struct TradingPosition[] _positions)
liquidatingIds(uint256view returns (bool)
pausedUsers(addressview returns (uint256)
positions(uint256view returns (address senderbytes12 symboluint64 marginuint64 leverageuint64 priceuint48 blockbool isBuyuint256 id)
State-modifying
cancelOrder(uint256 iduint256 positionIdaddress liquidatorstring reason
capUserBalance(address useruint256 newBalanceCap
deposit(uint256 amountuint256 deadlineuint8 vbytes32 rbytes32 s
initialize(address _currency
liquidatePositions(uint256[] positionIds
pause(
pauseUsers(address[] users
processOrder(uint256 idbytes32 symboluint256 priceuint256 marginuint256 positionIdaddress liquidator
registerContracts(address _productsaddress _queueaddress _treasury
setCurrencyMin(uint256 _amount
setLiquidatorReward(uint256 _amount
submitOrder(bool isBuybytes32 symboluint256 marginuint256 leverage
submitOrderUpdate(uint256 positionIduint256 margin
unpause(
unpauseUsers(address[] users
withdraw(uint256 amount
Events
Deposited(uint256 amount
LiquidationSubmitted(uint256 iduint256 positionIdaddress indexed sender
NewContracts(address productsaddress queueaddress treasury
NewLiquidatorReward(uint256 amount
NewMinimum(uint256 amount
OrderCancelled(uint256 iduint256 positionIdaddress indexed senderstring reason
OrderSubmitted(uint256 idaddress indexed senderbool isBuybytes32 symboluint256 marginuint256 leverageuint256 positionId
PositionClosed(uint256 positionIdaddress indexed senderuint256 marginCloseduint256 amountToReturnuint256 entryPriceuint256 priceuint256 leverage
PositionLiquidated(uint256 positionIdaddress indexed senderaddress indexed liquidatoruint256 marginLiquidated
PositionOpened(uint256 positionIdaddress indexed senderbool isBuybytes32 symboluint256 marginuint256 leverageuint256 price
Withdrew(uint256 amount
Constructor

This contract contains no constructor objects.

Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.