Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Balances ($14,021.51)
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
USDC | ERC-20 | 14.033189K | $0.999168 |
$14,021.51 |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 12729138 | 3 years ago | | | 0 | 0.0017708250 |
ABI
ABI objects
Getter at block 21210955 getTotalPositionState() view returns (uint256, uint256, uint256, uint256) totalValue() view returns (uint256)
_positionIndex() view returns (uint32)
210
_rebaseLeftLong() view returns (uint256)
444106726356940668
_rebaseLeftShort() view returns (uint256)
941093702842537575
_totalLeveragedPositionsLong() view returns (uint256)
4698043529
_totalLeveragedPositionsShort() view returns (uint256)
10132286925
_totalMarginLong() view returns (uint256)
442629946
_totalMarginShort() view returns (uint256)
4870361042
_totalShareLong() view returns (uint256)
11304897394357680259067
_totalShareShort() view returns (uint256)
10523851766000000000000
_totalSizeLong() view returns (uint256)
1586339255602090265
_totalSizeShort() view returns (uint256)
2926447398096792613
initialFundingCompleted() view returns (bool)
true
liquidityPool() view returns (uint256)
3084182018
owner() view returns (address)
0x93ea6199e9d55c8fe12671c9188896298ec3a88b
totalLeveragedPositions() view returns (uint256)
14830330454
Read-only
_positions(uint32) view returns (uint256 share, uint256 openPositionPrice, uint256 leveragedPosition, uint256 margin, uint256 openRebaseLeft, address account, uint32 currencyKeyIdx, uint8 direction)
_powers(address) view returns (uint8)
calMarginLoss(uint256 leveragedPosition, uint256 share, uint8 direction) view returns (uint256)
calNetProfit(uint32 currencyKeyIdx, uint256 leveragedPosition, uint256 openPositionPrice, uint8 direction) view returns (bool, uint256)
netValue(uint8 direction) view returns (uint256)
position(uint32 positionId) view returns (address account, uint256 share, uint256 leveragedPosition, uint256 openPositionPrice, uint32 currencyKeyIdx, uint8 direction, uint256 margin, uint256 openRebaseLeft)
repository(bytes32) view returns (address)
State-modifying
Events addDeposit(address account, uint32 positionId, uint256 margin)
addLiquidity(address account, uint256 value)
bankruptedLiquidate(struct Position position, uint32 positionId, uint256 liquidateFee, uint256 marginLoss, address liquidator)
closePosition(struct Position position, uint32 positionId, bool isProfit, uint256 value, uint256 marginLoss, uint256 fee)
completeInitialFunding()
importAddresses(bytes32[] names, address[] destinations)
liquidate(struct Position position, uint32 positionId, bool isProfit, uint256 fee, uint256 value, uint256 marginLoss, uint256 liqReward, address liquidator)
newPosition(address account, uint256 openPositionPrice, uint256 margin, uint32 currencyKeyIdx, uint16 level, uint8 direction) returns (uint32)
renounceOwnership()
transferOwnership(address newOwner)
updateSubTotalState(bool isLong, uint256 liquidity, uint256 detaMargin, uint256 detaLeveraged, uint256 detaShare, uint256 rebaseLeft)
withdrawLiquidity(address account, uint256 value)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
constructor(address[] powers)
This contract contains no fallback and receive objects.
This contract contains no error objects.