PerpetualFutures

Verified contract

Active on Ethereum with 1,785 txns
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
10 additional variables
ERC-20
Value $4.91
ERC-20
Value $4.48
0x0e5f57918e0bf2769876b3272855bffaf0b057def55d13c35e79085eba613208
0x0e02abc2b2940e6e76723bfd4ccfe7efed3e9e9907b6396697d67c4729934380
0x6c86e79f8f37f6d96335482340f11825318c4b8b69fdd8a05565cbf862d71e7d
0xd1002b56244b255909e09e81085cdf4b485f70d6e8e173352f69c866efcd82ba
0x5534d3a6440bb4389d747642c124234f7774d1244bde3ae3ab477ce2656a3a2f
0x01f6f3102a69201750044cfbae23b5f2b112274196ba3a17da1e326b904d5e65
0xc876ad922e2832524f39d504d2969a886796c70e5ec85f5e65e0990abfc473f3
0x51390a8d7352d526c5512626b9b98dfb8bda1ca452b1d30201acb30633a04993
0x99a5a7bf432820e0eb0f95a2f6e9639f43e2594f1df4672bcd18e6390c5818e2
0x81f2016267d90b2e34d73495947ee8c06f0258d30e4d37174e57216329d4c452

Functions
Getter at block 21289047
closeFeePerDuration(view returns (uint256)
999
closeFeePerDurationUnit(view returns (uint256)
600
closeFeePositionSize(view returns (uint256)
100
enabled(view returns (bool)
false
 
getAllIndexes(view returns (struct IndexHandlerIndex[])
getAllUnsettledPositions(view returns (uint256[])
[]
 
getAllValidCollateralTokens(view returns (address[])
getPerpsNFT(view returns (address)
0x97e7edf92007ed3d779a0fcb42582d88c5672117
mainCollateralToken(view returns (address)
0x30dcba0405004cf124045793e1933c798af9e66a
maxLeverage(view returns (uint16)
500
maxTriggerOrders(view returns (uint8)
2
minOpenTimeForProfit(view returns (uint256)
10800
minPriceDiffForProfit(view returns (uint256)
1500
openFeePositionSize(view returns (uint256)
100
owner(view returns (address)
0xced088f8e01dc2f104247ed46f60fc80ba22bf94
totalAmountLoss(view returns (uint256)
107734588477642255562251331
totalAmountProfit(view returns (uint256)
1987899216139214653802104335
totalFees(view returns (uint256)
1158194324460447170491050561
Read-only
allOpenPositions(uint256view returns (uint256)
allUnsettledPositions(uint256view returns (uint256)
amtOpenLong(addressview returns (uint256)
amtOpenShort(addressview returns (uint256)
canOpenPositionAgainstIndex(uint256 _induint256 _timestampview returns (bool)
checkUpkeep(bytesview returns (bool upkeepNeededbytes)
getAllPositionTriggerOrders(uint256 _tokenIdview returns (struct PerpetualFuturesTriggerOrder[])
getIndexAndPLInfo(uint256 _tokenIdview returns (uint256uint256uint256boolbool)
getIndexPriceFromFeeds(address[] _proxiesuint256[] _multipliersview returns (uint256)
getIndexPriceFromIndex(uint256 _indexview returns (uint256)
getLatestProxyInfo(address _proxyview returns (uint16uint80uint256)
getLiquidationPriceChange(uint256 _tokenIdview returns (uint256)
getPositionCloseFees(uint256 _tokenIdview returns (uint256uint256)
getPositionIndexPrice(uint256 _tokenIdview returns (uint256)
getPositionIndexProxies(uint256 _tokenIdview returns (address[])
indexes(uint256view returns (string nameuint256 weightsTotaluint256 dowOpenMinuint256 dowOpenMaxuint256 hourOpenMinuint256 hourOpenMax)
maxCollateralOpenDiff(addressview returns (uint256)
positionClosers(uint256view returns (address)
positionOpeners(uint256view returns (address)
positionTriggerOrders(uint256uint256view returns (uint256 idxPriceCurrentuint256 idxPriceTarget)
positions(uint256view returns (struct PerpetualFuturesPositionLifecycle lifecycleaddress collateralTokenuint256 collateralCloseUnsettleduint256 collateralAmountuint256 positionAmountbool isLonguint16 leverageuint256 indexPriceStartuint256 indexPriceSettleuint256 amountWonuint256 amountLostbool isSettled)
settlers(addressview returns (bool)
shouldPositionCloseFromTrigger(uint256 _tokenIdview returns (bool)
shouldPositionLiquidate(uint256 _tokenIdview returns (bool)
State-modifying
addIndex(string _nameaddress[] _proxiesuint16[] _weights
addTriggerOrder(uint256 _tokenIduint256 _idxPriceTarget
closePosition(uint256 _tokenId
openPosition(address _collTokenuint256 _indexInduint256 _collateraluint16 _leveragebool _isLonguint256 _triggerOrderTargetPrice
performUpkeep(bytes
processFees(uint256 _amount
refreshIndexFeedWeights(uint256 _indexIdx
removeIndex(uint256 _index
removeTriggerOrder(uint256 _tokenIduint256 _idx
renounceOwnership(
setClosePositionFeePerDuration(uint256 _percentage
setClosePositionFeePerDurationUnit(uint256 _seconds
setClosePositionFeePositionSize(uint256 _percentage
setEnabled(bool _enabled
setFeeReducer(address _reducer
setMainCollateralToken(address _token
setMaxCollateralOpenDiff(address _collateraluint256 _amount
setMaxLeverage(uint16 _max
setMaxLiquidationsPerUpkeep(uint8 _max
setMaxTriggerOrders(uint8 _max
setMinOpenTimeForProfit(uint256 _seconds
setMinPriceDiffForProfit(uint256 _percentage
setOpenPositionFeePositionSize(uint256 _percentage
setSettler(address _walletbool _isSettler
setValidCollateralToken(address _tokenbool _isValid
settleUnsettledPosition(uint256 _tokenIduint256 _collPriceUSDuint256 _mainPriceUSD
transferOwnership(address newOwner
updateIndexOpenTimeBounds(uint256 _indexInduint256 _dowOpenMinuint256 _dowOpenMaxuint256 _hourOpenMinuint256 _hourOpenMax
updateTriggerOrder(uint256 _tokenIduint256 _idxuint256 _idxPriceTarget
withdrawERC20(address _tokenuint256 _amount
Events
ClosePosition(uint256 indexed tokenIdaddress indexed useruint256 indexPriceStartuint256 indexPriceSettleuint256 amountWonuint256 amountLost
ClosePositionFromTriggerOrder(uint256 tokenId
CloseUnsettledPosition(uint256 indexed tokenId
LiquidatePosition(uint256 tokenId
OpenPosition(uint256 indexed tokenIdaddress indexed useruint256 indexPriceStartuint256 positionCollateralbool isLonguint256 leverage
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
SettlePosition(uint256 tokenIduint256 mainTokenSettleAmtuint256 collSettlePriceuint256 mainSettlePrice
Constructor
constructor(string _tokenURI
Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.