PerpetualFutures
Verified contract
Active on
Ethereum with 2,585 txns
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
0xbedd…0a87
0xbedd…0a87
9 additional
variables
Balances ($7,405.03)
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
YDF | ERC-20 | 11.177406M | $0.000654 |
$7,311.36 | |
USDC | ERC-20 | 78.991778 | $0.999953 |
$78.99 | |
APE | ERC-20 | 8.904906 | $1.18 |
$10.51 | |
USDT | ERC-20 | 1.899846 | $1.001 |
$1.9 | |
TALK | ERC-20 | 250 | $0.004546 |
$1.14 | |
CCv2 | ERC-20 | 0.66 | $1.70 |
$1.12 | |
$VAULT | ERC-20 | 2.4 | $0.005296 |
$0.01 | |
CHIBA | ERC-20 | 250 | -- | -- |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 20491952 | 3 months ago | | | 0 | 0.00058334195 | |
| 20456840 | 3 months ago | | | 0 | 0.0010078757 | |
| 20443553 | 3 months ago | | | 0 | 0.0018179941 | |
| 20420916 | 3 months ago | | | 0 | 0.0044953477 | |
| 20420915 | 3 months ago | | | 0.02 | 0.0025726128 | |
| 20398587 | 4 months ago | | | 0 | 0.0017843921 | |
| 20398586 | 4 months ago | | | 0 | 0.00093933912 | |
| 20328137 | 4 months ago | | | 0 | 0.0039788678 | |
| 20262824 | 4 months ago | | | 0 | 0.0021202517 | |
| 20262595 | 4 months ago | | | 0 | 0.0036909849 |
ABI
ABI objects
Getter at block 21169665 getAllIndexes() view returns (struct IPerpetualFuturesIndex[]) getAllValidCollateralTokens() view returns (address[])
closeFeePerDuration() view returns (uint256)
5
closeFeePerDurationUnit() view returns (uint256)
3600
closeFeePositionSize() view returns (uint256)
100
feeReducer() view returns (address)
0x0000000000000000000000000000000000000000
getAllOpenPositions() view returns (uint256[])
[]
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(uint256) view returns (uint256)
amtOpenLong(address) view returns (uint256)
amtOpenShort(address) view returns (uint256)
checkUpkeep(uint256 _tokenId, uint256 _currentPrice) view returns (bool upkeepNeeded)
getAllPositionTriggerOrders(uint256 _tokenId) view returns (struct PerpsTriggerOrdersTriggerOrder[])
getFeeDiscount(address _wallet, address _token, uint256 _amount, uint16 _leverage) view returns (uint256, uint256)
getIndexAndPLInfo(uint256 _tokenId, uint256 _currentIndexPrice) view returns (uint256, uint256, bool, bool)
getLiquidationPriceChange(uint256 _tokenId) view returns (uint256)
getPositionCloseFees(uint256 _tokenId) view returns (uint256, uint256)
indexes(uint256) view returns (string name, uint256 dowOpenMin, uint256 dowOpenMax, uint256 hourOpenMin, uint256 hourOpenMax, bool isActive)
maxCollateralOpenDiff(address) view returns (uint256)
maxLevIdxOverride(uint256) view returns (uint16)
minCollateralAmount(address) view returns (uint256)
pendingClosePositions(uint256) view returns (uint256 timestamp, address requester, uint256 indexIdx, uint256 tokenId, address owner, address collateralToken, uint256 collateralAmount, bool isLong, uint16 leverage, uint256 openSlippage, uint256 desiredIdxPriceStart)
pendingOpenPositions(uint256) view returns (uint256 timestamp, address requester, uint256 indexIdx, uint256 tokenId, address owner, address collateralToken, uint256 collateralAmount, bool isLong, uint16 leverage, uint256 openSlippage, uint256 desiredIdxPriceStart)
positions(uint256) view returns (struct IPerpetualFuturesPositionLifecycle lifecycle, uint256 indexIdx, address collateralToken, uint256 collateralAmount, bool isLong, uint16 leverage, uint256 indexPriceStart, uint256 indexPriceSettle, uint256 amountWon, uint256 amountLost, bool isSettled, uint256 mainCollateralSettledAmount)
relays(address) view returns (bool)
shouldPositionCloseFromTrigger(uint256 _tokenId, uint256 _currIdxPrice) view returns (bool, uint256)
shouldPositionLiquidate(uint256 _tokenId, uint256 _currentPrice) view returns (bool)
triggerOrders(uint256, uint256) view returns (uint256 idxPriceCurrent, uint256 idxPriceTarget, uint256 amountCollateralChange)
State-modifying
Events activateIndex(uint256 _idx)
addIndex(string _name)
addTriggerOrder(uint256 _tokenId, uint256 _idxPriceTarget, uint256 _currentPrice, uint256 _collateralChange)
closePosition(uint256 _closePrice, uint256 _pendingCloseIdx)
closePositionRequest(uint256 _tokenId, uint256 _collateralReduction)
closePositionRequestCancel(uint256 _closeReqIdx)
executeSettlement(uint256 tokenId, address _to, uint256 _amount)
openPosition(uint256 _openPrice, uint256 _pendingIdx)
openPositionRequest(address _collToken, uint256 _indexInd, uint256 _desiredPrice, uint256 _slippage, uint256 _collateral, uint16 _leverage, bool _isLong, uint256 _tokenId, address _owner) payable
openPositionRequestCancel(uint256 _openReqIdx)
performUpkeep(uint256 _tokenId, uint256 _currentPrice) returns (bool wasLiquidated)
processFees(uint256 _amount)
removeIndex(uint256 _idx)
removeTriggerOrder(uint256 _tokenId, uint256 _idx)
renounceOwnership()
setCloseFeePositionPerDurationUnit(uint256 _seconds)
setCloseFeePositionSize(uint256 _percentage)
setClosePositionFeePerDuration(uint256 _percentage)
setFeeReducer(address _reducer)
setMaxCollateralOpenDiff(address _collateral, uint256 _amount)
setMaxLevIdxOverride(uint256 _idx, uint16 _max)
setMaxLeverage(uint16 _max)
setMaxProfitPerc(uint256 _max)
setMaxTriggerOrders(uint8 _max)
setMinCollateralAmount(address _collateral, uint256 _amount)
setOpenFeeETH(uint256 _wei)
setOpenFeePositionSize(uint256 _percentage)
setPendingPositionExp(uint256 _expiration)
setRelay(address _wallet, bool _isRelay)
setTradingEnabled(bool _tradingEnabled)
setValidCollateralToken(address _token, bool _isValid)
transferOwnership(address newOwner)
updateIndexOpenTimeBounds(uint256 _indexInd, uint256 _dowOpenMin, uint256 _dowOpenMax, uint256 _hourOpenMin, uint256 _hourOpenMax)
updateTriggerOrder(uint256 _tokenId, uint256 _idx, uint256 _idxPriceTarget, uint256 _newCollateralChange)
withdrawERC20(address _token, uint256 _amount)
withdrawETH(uint256 _amount)
ClosePosition(uint256 indexed tokenId, address indexed user, uint256 indexPriceStart, uint256 indexPriceSettle, uint256 amountWon, uint256 amountLost)
ClosePositionFromTriggerOrder(uint256 indexed tokenId)
ClosePositionRequest(uint256 indexed tokenId, address indexed user, uint256 requestIdx, uint256 collateralReduction)
CloseUnsettledPosition(uint256 indexed tokenId)
LiquidatePosition(uint256 indexed tokenId)
OpenPosition(uint256 indexed tokenId, address indexed user, uint256 indexPriceStart, uint256 positionCollateral, bool isLong, uint256 leverage)
OpenPositionRequest(address indexed user, uint256 requestIdx, uint256 indexPriceStartDesired, uint256 positionCollateral, bool isLong, uint256 leverage)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
SettlePosition(address indexed to, uint256 amountSettled)
constructor()
This contract contains no fallback and receive objects.
This contract contains no error objects.