web3wagmi
← All standards

ERC-7565 Perpetual Contract NFTs as Collateral

DraftERCcreated 2023-11-27requires ERC-721, ERC-4907

Lock financial assets as NFTs and use them as collateral for borrowing funds in DeFi, facilitating liquidity provision.

Authors: Hyoungsung Kim (@HyoungsungKim), Yong-Suk Park, Hyun-Sik Kim

ERC-165 interface ids

Computed here as the XOR of the selectors each interface defines.

IPerpetualContractNFT0xbef34346

Functions this standard introduces (5)

0xebfe7140collateralize(uint256,uint256,uint256,uint64)
0xe5451103currentOwner(uint256)view
0x0634612fgetLoanTerms(uint256)view
0x8a700b53repayLoan(uint256,uint256)
0x3c0c4979viewRepayAmount(uint256)view

Events (3)

Topic0 is the keccak256 hash of the signature, which is what a log filter matches on.

0x548b4fda6b21f4158c75a01d537173b6263d852cc1e2336d8010d3b115775138Collateralized(uint256,address,uint256,uint256,uint256)
0xe69d7686a8bc68278b8c5419579f91716b3ef2ac2fac0d8cf80b8011f8f458a4LoanRepaid(uint256,address)
0x724b99e866949401e1553ae6e0da07c7e24b0308581155730cbe34363752bd3fDefaulted(uint256,address)

Depends on (2)

Proposals this one names in its requires field.

What the specification covers

Compare with

Parsed from the canonical specification · discussion