PerpetualFutures
Verified contract
Active on
Ethereum with 1,785 txns
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
0x97e7…2117
0x23d2…5101
10 additional
variables
Balances ($9.38)
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
CAW | ERC-20 | 73.244414M | $0.00 |
$4.91 | |
SHIB | ERC-20 | 176.372189K | $0.000025 |
$4.48 |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 16402363 | 2 years ago | | | 0 | 0.0012580203 | |
| 16402361 | 2 years ago | | | 0 | 0.0013264448 | |
| 16402360 | 2 years ago | | | 0 | 0.0015212195 | |
| 16260754 | 2 years ago | | | 0 | 0.00036516665 | |
| 16032826 | 2 years ago | | | 0 | 0.0030992845 | |
| 16019257 | 2 years ago | | | 0 | 0.00038082011 | |
| 16019245 | 2 years ago | | | 0 | 0.00034842515 | |
| 15895559 | 2 years ago | | | 0 | 0.0064726585 | |
| 15884413 | 2 years ago | | | 0 | 0.011269110 | |
| 15874462 | 2 years ago | | | 0 | 0.0050394759 |
ABI
ABI objects
Getter at block 21289047 getAllIndexes() view returns (struct IndexHandlerIndex[]) getAllValidCollateralTokens() view returns (address[])
closeFeePerDuration() view returns (uint256)
999
closeFeePerDurationUnit() view returns (uint256)
600
closeFeePositionSize() view returns (uint256)
100
enabled() view returns (bool)
false
getAllUnsettledPositions() view returns (uint256[])
[]
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(uint256) view returns (uint256)
allUnsettledPositions(uint256) view returns (uint256)
amtOpenLong(address) view returns (uint256)
amtOpenShort(address) view returns (uint256)
canOpenPositionAgainstIndex(uint256 _ind, uint256 _timestamp) view returns (bool)
checkUpkeep(bytes) view returns (bool upkeepNeeded, bytes)
getAllPositionTriggerOrders(uint256 _tokenId) view returns (struct PerpetualFuturesTriggerOrder[])
getIndexAndPLInfo(uint256 _tokenId) view returns (uint256, uint256, uint256, bool, bool)
getIndexPriceFromFeeds(address[] _proxies, uint256[] _multipliers) view returns (uint256)
getIndexPriceFromIndex(uint256 _index) view returns (uint256)
getLatestProxyInfo(address _proxy) view returns (uint16, uint80, uint256)
getLiquidationPriceChange(uint256 _tokenId) view returns (uint256)
getPositionCloseFees(uint256 _tokenId) view returns (uint256, uint256)
getPositionIndexPrice(uint256 _tokenId) view returns (uint256)
getPositionIndexProxies(uint256 _tokenId) view returns (address[])
indexes(uint256) view returns (string name, uint256 weightsTotal, uint256 dowOpenMin, uint256 dowOpenMax, uint256 hourOpenMin, uint256 hourOpenMax)
maxCollateralOpenDiff(address) view returns (uint256)
positionClosers(uint256) view returns (address)
positionOpeners(uint256) view returns (address)
positionTriggerOrders(uint256, uint256) view returns (uint256 idxPriceCurrent, uint256 idxPriceTarget)
positions(uint256) view returns (struct PerpetualFuturesPositionLifecycle lifecycle, address collateralToken, uint256 collateralCloseUnsettled, uint256 collateralAmount, uint256 positionAmount, bool isLong, uint16 leverage, uint256 indexPriceStart, uint256 indexPriceSettle, uint256 amountWon, uint256 amountLost, bool isSettled)
settlers(address) view returns (bool)
shouldPositionCloseFromTrigger(uint256 _tokenId) view returns (bool)
shouldPositionLiquidate(uint256 _tokenId) view returns (bool)
State-modifying
Events addIndex(string _name, address[] _proxies, uint16[] _weights)
addTriggerOrder(uint256 _tokenId, uint256 _idxPriceTarget)
closePosition(uint256 _tokenId)
openPosition(address _collToken, uint256 _indexInd, uint256 _collateral, uint16 _leverage, bool _isLong, uint256 _triggerOrderTargetPrice)
performUpkeep(bytes)
processFees(uint256 _amount)
refreshIndexFeedWeights(uint256 _indexIdx)
removeIndex(uint256 _index)
removeTriggerOrder(uint256 _tokenId, uint256 _idx)
renounceOwnership()
setClosePositionFeePerDuration(uint256 _percentage)
setClosePositionFeePerDurationUnit(uint256 _seconds)
setClosePositionFeePositionSize(uint256 _percentage)
setEnabled(bool _enabled)
setFeeReducer(address _reducer)
setMainCollateralToken(address _token)
setMaxCollateralOpenDiff(address _collateral, uint256 _amount)
setMaxLeverage(uint16 _max)
setMaxLiquidationsPerUpkeep(uint8 _max)
setMaxTriggerOrders(uint8 _max)
setMinOpenTimeForProfit(uint256 _seconds)
setMinPriceDiffForProfit(uint256 _percentage)
setOpenPositionFeePositionSize(uint256 _percentage)
setSettler(address _wallet, bool _isSettler)
setValidCollateralToken(address _token, bool _isValid)
settleUnsettledPosition(uint256 _tokenId, uint256 _collPriceUSD, uint256 _mainPriceUSD)
transferOwnership(address newOwner)
updateIndexOpenTimeBounds(uint256 _indexInd, uint256 _dowOpenMin, uint256 _dowOpenMax, uint256 _hourOpenMin, uint256 _hourOpenMax)
updateTriggerOrder(uint256 _tokenId, uint256 _idx, uint256 _idxPriceTarget)
withdrawERC20(address _token, uint256 _amount)
ClosePosition(uint256 indexed tokenId, address indexed user, uint256 indexPriceStart, uint256 indexPriceSettle, uint256 amountWon, uint256 amountLost)
ClosePositionFromTriggerOrder(uint256 tokenId)
CloseUnsettledPosition(uint256 indexed tokenId)
LiquidatePosition(uint256 tokenId)
OpenPosition(uint256 indexed tokenId, address indexed user, uint256 indexPriceStart, uint256 positionCollateral, bool isLong, uint256 leverage)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
SettlePosition(uint256 tokenId, uint256 mainTokenSettleAmt, uint256 collSettlePrice, uint256 mainSettlePrice)
constructor(string _tokenURI)
This contract contains no fallback and receive objects.
This contract contains no error objects.