Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

IERC2981SafeDispatcherTrait

Fully qualified path: openzeppelin_interfaces::token::erc2981::IERC2981SafeDispatcherTrait

Part of the group: dispatchers

pub trait IERC2981SafeDispatcherTrait<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::IERC2981SafeDispatcherTrait::royalty_info

fn royalty_info(
    self: T, token_id: u256, sale_price: u256,
) -> Result<(ContractAddress, u256), Array<felt252>>