Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

IERC2981DispatcherTrait

Fully qualified path: openzeppelin_interfaces::token::erc2981::IERC2981DispatcherTrait

Part of the group: dispatchers

pub trait IERC2981DispatcherTrait<T>

Trait functions

royalty_info

Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of exchange. The royalty amount is denominated and should be paid in that same unit of exchange.

Fully qualified path: openzeppelin_interfaces::token::erc2981::IERC2981DispatcherTrait::royalty_info

fn royalty_info(self: T, token_id: u256, sale_price: u256) -> (ContractAddress, u256)