Skip to content

Instantly share code, notes, and snippets.

@jamesmorgan
Last active July 27, 2021 12:32
Show Gist options
  • Save jamesmorgan/a3a706a00fccd431f95c8184b5a1aaf9 to your computer and use it in GitHub Desktop.
Save jamesmorgan/a3a706a00fccd431f95c8184b5a1aaf9 to your computer and use it in GitHub Desktop.
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