Depot

Verified contract

Active on Ethereum with 1 txns
Deployed by via 0xbd7df31c at 12729096
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $14,021.51
0x4473977f62da3a98b1427c7dd4f2828a07a9ed7be9a6be4301f28bb1b5021960

Functions
Getter at block 21210955
_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
 
getTotalPositionState(view returns (uint256uint256uint256uint256)
initialFundingCompleted(view returns (bool)
true
liquidityPool(view returns (uint256)
3084182018
owner(view returns (address)
0x93ea6199e9d55c8fe12671c9188896298ec3a88b
totalLeveragedPositions(view returns (uint256)
14830330454
 
totalValue(view returns (uint256)
Read-only
_positions(uint32view returns (uint256 shareuint256 openPositionPriceuint256 leveragedPositionuint256 marginuint256 openRebaseLeftaddress accountuint32 currencyKeyIdxuint8 direction)
_powers(addressview returns (uint8)
calMarginLoss(uint256 leveragedPositionuint256 shareuint8 directionview returns (uint256)
calNetProfit(uint32 currencyKeyIdxuint256 leveragedPositionuint256 openPositionPriceuint8 directionview returns (booluint256)
netValue(uint8 directionview returns (uint256)
position(uint32 positionIdview returns (address accountuint256 shareuint256 leveragedPositionuint256 openPositionPriceuint32 currencyKeyIdxuint8 directionuint256 marginuint256 openRebaseLeft)
repository(bytes32view returns (address)
State-modifying
addDeposit(address accountuint32 positionIduint256 margin
addLiquidity(address accountuint256 value
bankruptedLiquidate(struct Position positionuint32 positionIduint256 liquidateFeeuint256 marginLossaddress liquidator
closePosition(struct Position positionuint32 positionIdbool isProfituint256 valueuint256 marginLossuint256 fee
completeInitialFunding(
importAddresses(bytes32[] namesaddress[] destinations
liquidate(struct Position positionuint32 positionIdbool isProfituint256 feeuint256 valueuint256 marginLossuint256 liqRewardaddress liquidator
newPosition(address accountuint256 openPositionPriceuint256 marginuint32 currencyKeyIdxuint16 leveluint8 directionreturns (uint32)
renounceOwnership(
transferOwnership(address newOwner
updateSubTotalState(bool isLonguint256 liquidityuint256 detaMarginuint256 detaLeverageduint256 detaShareuint256 rebaseLeft
withdrawLiquidity(address accountuint256 value
Events
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
Constructor
constructor(address[] powers
Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.