Last active
July 27, 2021 12:32
-
-
Save jamesmorgan/a3a706a00fccd431f95c8184b5a1aaf9 to your computer and use it in GitHub Desktop.
EIP-2981 - https://eips.ethereum.org/EIPS/eip-2981
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.6.0; | |
interface IERC2981 { | |
/// @notice Called with the sale price to determine how much royalty | |
// is owed and to whom. | |
/// @param _tokenId - the NFT asset queried for royalty information | |
/// @param _salePrice - the sale price of the NFT asset specified by _tokenId | |
/// @return receiver - address of who should be sent the royalty payment | |
/// @return royaltyAmount - the royalty payment amount for _salePrice | |
function royaltyInfo( | |
uint256 _tokenId, | |
uint256 _salePrice | |
) external view returns ( | |
address receiver, | |
uint256 royaltyAmount | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment