IOwnershipCallback

Git Source

Inherits: IERC165

This interface can be implemented by contracts that wish to be notified when they become owner of a USDN protocol position.

The contract must implement the ERC-165 interface detection mechanism.

Functions

ownershipCallback

Called by the USDN protocol on the new position owner after an ownership transfer occurs.

Implementers can use this callback to perform actions triggered by the ownership change.

function ownershipCallback(address oldOwner, Types.PositionId calldata posId) external;

Parameters

NameTypeDescription
oldOwneraddressThe address of the previous position owner.
posIdTypes.PositionIdThe unique position identifier.