pfYDF

Verified contract

Active on Ethereum with 400 txns
Deployed by via 0x355a36c0 at 15505682
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
17 additional variables
ERC-20
--
0x31f2e145e7114d214e77d56c308d3ce5c06c5110fa6e51965fc80cd332c3fe96
0xf00a81fe4fa7e567bb86fd960117e102e27014824258229a042c049c1f1d6a5f
0xb37a016e6c67117e591094bafe8c584e003808b7d274673091fe59d54d3440c2
0xa6da4c1f7c8dc577d7196cd43953647ede3224484fc8918f97a7981e9114acd7
0x4d96f77aba4a3c1326a0eb96de05efdadf9ae04b7a46adbc24fa9a293d75d2a9
0xb597e9752d0d436d5382eb619959ff0218e45b5210fced19d6ecc729f2dcad85
0xfeb78405aa5cd5afca3b89bd8e3512b49dafdb881cce5582ea2588925a5d5a91
0xa9771e4c5b6accbc3994ce8c56f1ae6102110d8850c57e09366f525fd6b06e46
0x343714924c9a2b093c819639a947e3bb6cf8d24655ea79e5e4e8e907be9b3077
0x8f83d2e457fadf894479f1c98f8765b68e9110502648ce1fcd5e78a09c87b2bc

Functions
Getter at block 21226600
closePositionFeePerDuration(view returns (uint256)
999
closePositionFeePerDurationUnit(view returns (uint256)
600
closePositionFeePositionSize(view returns (uint256)
100
contractURI(view returns (string)
https://api.yieldification.com/pfydf/metadata/contract.json
enabled(view returns (bool)
false
 
getAllIndexes(view returns (struct IndexHandlerIndex[])
getLastMintedTokenId(view returns (uint256)
194
getPositionToken(view returns (address)
0x30dcba0405004cf124045793e1933c798af9e66a
maxLeverage(view returns (uint16)
500
minOpenTimeForProfit(view returns (uint256)
10800
minPriceDiffForProfit(view returns (uint256)
1500
name(view returns (string)
Yieldification Perpetual Futures
openPositionFeePositionSize(view returns (uint256)
100
owner(view returns (address)
0xced088f8e01dc2f104247ed46f60fc80ba22bf94
paymentAddress(view returns (address)
0x47af673dc2d8e652957f24669b6427fc00d5173a
royaltyAddress(view returns (address)
0x47af673dc2d8e652957f24669b6427fc00d5173a
symbol(view returns (string)
pfYDF
totalAmountLoss(view returns (uint256)
4885115412542869954134949
totalAmountProfit(view returns (uint256)
2622608069205521179279418
totalFeesCollected(view returns (uint256)
1563446615709445978222201
totalSupply(view returns (uint256)
0
treasury(view returns (address)
0x0000000000000000000000000000000000000000
Read-only
allOpenPositions(uint256view returns (uint256)
allUserOwned(addressuint256view returns (uint256)
balanceOf(address ownerview returns (uint256)
checkUpkeep(bytesview returns (bool upkeepNeededbytes)
getAggregatorInfo(uint256 _proxyRoundIdpure returns (uint16uint64)
getAllUserOwned(address _userview returns (uint256[])
getApproved(uint256 tokenIdview returns (address)
getHistoricalPrice(address _proxyuint16 _phaseIduint80 _aggregatorRoundIdbool _requireCompletionview returns (uint80uint256uint256uint80)
getIndexAndPLInfo(uint256 _tokenIdview returns (uint256uint256uint256boolbool)
getIndexPriceFromFeeds(address[] _proxiesuint8[] _weightsuint256 _totalWeightview 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[])
getProxyPriceAtRound(address _proxyuint80 _roundIdview returns (uint256)
indexes(uint256view returns (string nameuint256 weightsTotal)
isApprovedForAll(address owneraddress operatorview returns (bool)
isTokenMinted(uint256 _tokenIdview returns (bool)
liquidators(addressview returns (bool)
ownedIndex(uint256view returns (uint256)
ownerOf(uint256 tokenIdview returns (address)
positionClosers(uint256view returns (address)
positionOpeners(uint256view returns (address)
positions(uint256view returns (uint256 openTimeuint256 openFeesuint256 closeTimeuint256 closeFeesuint256 amountCollateraluint256 amountPositionbool isLonguint16 leverageuint256 indexPriceStartuint256 indexPriceSettleuint256 amountWonuint256 amountLost)
royaltyInfo(uint256uint256 _salePriceview returns (address receiveruint256 royaltyAmount)
shouldPositionLiquidate(uint256 _tokenIdview returns (bool)
supportsInterface(bytes4 _interfaceIdview returns (bool)
tokenByIndex(uint256 indexview returns (uint256)
tokenLastTransferred(uint256view returns (uint256)
tokenMintedAt(uint256view returns (uint256)
tokenOfOwnerByIndex(address owneruint256 indexview returns (uint256)
tokenURI(uint256 _tokenIdview returns (string)
State-modifying
addIndex(string _nameaddress[] _proxiesuint8[] _weights
addLiquidator(address _wallet
approve(address touint256 tokenId
closePosition(uint256 _tokenId
openPosition(uint256 _indexInduint256 _collateraluint16 _leveragebool _isLong
performUpkeep(bytes
processFees(uint256 _amount
removeIndex(uint256 _index
removeLiquidator(address _wallet
renounceOwnership(
safeTransferFrom(address fromaddress touint256 tokenId
safeTransferFrom(address fromaddress touint256 tokenIdbytes data
setApprovalForAll(address operatorbool approved
setBaseURI(string _uri
setClosePositionFeePerDuration(uint256 _percentage
setClosePositionFeePerDurationUnit(uint256 _seconds
setClosePositionFeePositionSize(uint256 _percentage
setEnabled(bool _enabled
setMaxLeverage(uint16 _max
setMaxLiquidationsPerUpkeep(uint8 _max
setMinOpenTimeForProfit(uint256 _seconds
setMinPriceDiffForProfit(uint256 _percentage
setOpenPositionFeePositionSize(uint256 _percentage
setPaymentAddress(address _address
setPositionToken(address _token
setRoyaltyAddress(address _address
setRoyaltyBasisPoints(uint256 _points
setTreasury(address _treasury
transferFrom(address fromaddress touint256 tokenId
transferOwnership(address newOwner
withdrawERC20(address _tokenuint256 _amount
Events
Approval(address indexed owneraddress indexed approveduint256 indexed tokenId
ApprovalForAll(address indexed owneraddress indexed operatorbool approved
OpenPosition(uint256 indexed tokenIdaddress indexed useruint256 indexPriceStartuint256 positionCollateral
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
SetBaseTokenURI(string indexed newUri
SetPaymentAddress(address indexed user
SetRoyaltyAddress(address indexed user
SetRoyaltyBasisPoints(uint256 indexed _royaltyBasisPoints
SettlePosition(uint256 indexed tokenIdaddress indexed useruint256 indexPriceStartuint256 indexPriceSettleuint256 amountWonuint256 amountLost
Transfer(address indexed fromaddress indexed touint256 indexed tokenId
Constructor
constructor(string _baseTokenURI
Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.