Skip to main content

Signature

IB20.sol

Description

Policy slot consulted against msg.sender (the initiator) on every transfer, including when msg.sender == from. This applies to transfer, transferFrom, and their memo variants. Bypassed for factory-originated calls during the creation (bootstrap) window; see IB20Factory.createB20.
TRANSFER_EXECUTOR_POLICY now applies to all transfer entrypoints — including transfer and self-transferFrom where msg.sender == from. Previously it applied only when msg.sender != from on the transferFrom path. Tokens with a restrictive executor policy will block holder-initiated transfers unless those holders are authorized as executors.

Returns

Policy scope constant.

Access Control

Read-only view function; no access restriction.

Policy Interaction

The executor policy is checked against msg.sender on every transfer path (transfer, transferFrom, transferWithMemo, transferFromWithMemo). There is no exemption when msg.sender == from. An unset policy slot is always-allow, so tokens that never configured this policy are unaffected.

Example

Usage Example