PerpetualFutures

Verified contract

Active on Ethereum with 2,585 txns
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
9 additional variables
ERC-20
Value $7,373.06
ERC-20
Value $78.98
ERC-20
Value $12.64
ERC-20
Value $1.9
ERC-20
Value $1.3
ERC-20
Value $1.3
ERC-20
Value $0.01
ERC-20
--
0xd2148a34b62d607ad931fc3d2cfb4d0ec19bb61c16c0573f875c7ce62c676f96
0x2fffa5e80ae513042579e5830b182b0eed07bf2c34a6a101b3471040b284eeb5
0x51de8049c71467857d6d0014cf2fc89799130d5589cfb89332f744914d915d5b
0xfba82d30d2bd2495d39f13055a541697e5a0cb5ea696a6d40b18fae7b87c20ab
0x40c8deb4a822013d0dd327bc0f4bf8ce69d5f935ecd7796b3b0264d9482c470d
0x98223c95d7a0199be3e3ca3262a3d8866dd0ca6289bdeb7e2d10466138d8c815
0x10cb30cb70d4ff30f78092210be548c44f3d20faffe9509a4bcb0c13d53bd875
0x1b162b1ba1349bc0776652bdad31e8fd83f7d95d451d3c685ce7d42d27917447
0x8e7e31ed952210dd4a9507cc3e8010e603d1a37807d2a01f034312a0e4f82e88
0xd82eab6915026c577c321df2b3ed05b3c9b052553a68951705a98c98afdde883

Functions
Getter at block 21299005
closeFeePerDuration(view returns (uint256)
5
closeFeePerDurationUnit(view returns (uint256)
3600
closeFeePositionSize(view returns (uint256)
100
feeReducer(view returns (address)
0x0000000000000000000000000000000000000000
 
getAllIndexes(view returns (struct IPerpetualFuturesIndex[])
getAllOpenPositions(view returns (uint256[])
[]
 
getAllValidCollateralTokens(view returns (address[])
getClosePositionRequests(view returns (struct IPerpetualFuturesActionRequest[])
[]
getOpenPositionRequests(view returns (struct IPerpetualFuturesActionRequest[])
[]
mainCollateralToken(view returns (address)
0x30dcba0405004cf124045793e1933c798af9e66a
maxLeverage(view returns (uint16)
1500
maxProfitPerc(view returns (uint256)
1000000
maxTriggerOrders(view returns (uint8)
2
openFeeETH(view returns (uint256)
20000000000000000
openFeePositionSize(view returns (uint256)
100
owner(view returns (address)
0xced088f8e01dc2f104247ed46f60fc80ba22bf94
pendingPositionExp(view returns (uint256)
600
perpsNft(view returns (address)
0xbedd6713bb4d55cf1f8775735f78a2500f810a87
tradingEnabled(view returns (bool)
false
unsettledHandler(view returns (address)
0x03178ec95171a196436e574e676562b291223e27
Read-only
allOpenPositions(uint256view returns (uint256)
amtOpenLong(addressview returns (uint256)
amtOpenShort(addressview returns (uint256)
checkUpkeep(uint256 _tokenIduint256 _currentPriceview returns (bool upkeepNeeded)
getAllPositionTriggerOrders(uint256 _tokenIdview returns (struct PerpsTriggerOrdersTriggerOrder[])
getFeeDiscount(address _walletaddress _tokenuint256 _amountuint16 _leverageview returns (uint256uint256)
getIndexAndPLInfo(uint256 _tokenIduint256 _currentIndexPriceview returns (uint256uint256boolbool)
getLiquidationPriceChange(uint256 _tokenIdview returns (uint256)
getPositionCloseFees(uint256 _tokenIdview returns (uint256uint256)
indexes(uint256view returns (string nameuint256 dowOpenMinuint256 dowOpenMaxuint256 hourOpenMinuint256 hourOpenMaxbool isActive)
maxCollateralOpenDiff(addressview returns (uint256)
maxLevIdxOverride(uint256view returns (uint16)
minCollateralAmount(addressview returns (uint256)
pendingClosePositions(uint256view returns (uint256 timestampaddress requesteruint256 indexIdxuint256 tokenIdaddress owneraddress collateralTokenuint256 collateralAmountbool isLonguint16 leverageuint256 openSlippageuint256 desiredIdxPriceStart)
pendingOpenPositions(uint256view returns (uint256 timestampaddress requesteruint256 indexIdxuint256 tokenIdaddress owneraddress collateralTokenuint256 collateralAmountbool isLonguint16 leverageuint256 openSlippageuint256 desiredIdxPriceStart)
positions(uint256view returns (struct IPerpetualFuturesPositionLifecycle lifecycleuint256 indexIdxaddress collateralTokenuint256 collateralAmountbool isLonguint16 leverageuint256 indexPriceStartuint256 indexPriceSettleuint256 amountWonuint256 amountLostbool isSettleduint256 mainCollateralSettledAmount)
relays(addressview returns (bool)
shouldPositionCloseFromTrigger(uint256 _tokenIduint256 _currIdxPriceview returns (booluint256)
shouldPositionLiquidate(uint256 _tokenIduint256 _currentPriceview returns (bool)
triggerOrders(uint256uint256view returns (uint256 idxPriceCurrentuint256 idxPriceTargetuint256 amountCollateralChange)
State-modifying
activateIndex(uint256 _idx
addIndex(string _name
addTriggerOrder(uint256 _tokenIduint256 _idxPriceTargetuint256 _currentPriceuint256 _collateralChange
closePosition(uint256 _closePriceuint256 _pendingCloseIdx
closePositionRequest(uint256 _tokenIduint256 _collateralReduction
closePositionRequestCancel(uint256 _closeReqIdx
executeSettlement(uint256 tokenIdaddress _touint256 _amount
openPosition(uint256 _openPriceuint256 _pendingIdx
openPositionRequest(address _collTokenuint256 _indexInduint256 _desiredPriceuint256 _slippageuint256 _collateraluint16 _leveragebool _isLonguint256 _tokenIdaddress _ownerpayable 
openPositionRequestCancel(uint256 _openReqIdx
performUpkeep(uint256 _tokenIduint256 _currentPricereturns (bool wasLiquidated)
processFees(uint256 _amount
removeIndex(uint256 _idx
removeTriggerOrder(uint256 _tokenIduint256 _idx
renounceOwnership(
setCloseFeePositionPerDurationUnit(uint256 _seconds
setCloseFeePositionSize(uint256 _percentage
setClosePositionFeePerDuration(uint256 _percentage
setFeeReducer(address _reducer
setMaxCollateralOpenDiff(address _collateraluint256 _amount
setMaxLevIdxOverride(uint256 _idxuint16 _max
setMaxLeverage(uint16 _max
setMaxProfitPerc(uint256 _max
setMaxTriggerOrders(uint8 _max
setMinCollateralAmount(address _collateraluint256 _amount
setOpenFeeETH(uint256 _wei
setOpenFeePositionSize(uint256 _percentage
setPendingPositionExp(uint256 _expiration
setRelay(address _walletbool _isRelay
setTradingEnabled(bool _tradingEnabled
setValidCollateralToken(address _tokenbool _isValid
transferOwnership(address newOwner
updateIndexOpenTimeBounds(uint256 _indexInduint256 _dowOpenMinuint256 _dowOpenMaxuint256 _hourOpenMinuint256 _hourOpenMax
updateTriggerOrder(uint256 _tokenIduint256 _idxuint256 _idxPriceTargetuint256 _newCollateralChange
withdrawERC20(address _tokenuint256 _amount
withdrawETH(uint256 _amount
Events
ClosePosition(uint256 indexed tokenIdaddress indexed useruint256 indexPriceStartuint256 indexPriceSettleuint256 amountWonuint256 amountLost
ClosePositionFromTriggerOrder(uint256 indexed tokenId
ClosePositionRequest(uint256 indexed tokenIdaddress indexed useruint256 requestIdxuint256 collateralReduction
CloseUnsettledPosition(uint256 indexed tokenId
LiquidatePosition(uint256 indexed tokenId
OpenPosition(uint256 indexed tokenIdaddress indexed useruint256 indexPriceStartuint256 positionCollateralbool isLonguint256 leverage
OpenPositionRequest(address indexed useruint256 requestIdxuint256 indexPriceStartDesireduint256 positionCollateralbool isLonguint256 leverage
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
SettlePosition(address indexed touint256 amountSettled
Constructor
constructor(
Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.