Skip to main content

get_recipient_policy_ids

Function get_recipient_policy_ids 

Source
fn get_recipient_policy_ids(
    provider: &mut impl StateProvider,
    fee_token: Address,
    spec: TempoHardfork,
) -> Option<Vec<u64>>
Expand description

Returns the set of policy IDs that can affect recipient authorization for a token.

For simple (non-compound) policies, the transfer policy applies symmetrically to both sender and recipient, so the set contains just the policy ID. For compound policies (TIP-1015) it contains both the compound root and the recipient sub-policy, since fee transfer authorization checks the fee manager via AuthRole::Recipient.

Unlike get_sender_policy_ids this is uncached — it’s only called on the rare path where the fee manager itself is blacklisted or un-whitelisted.