IPaymentCallback

Git Source

Inherits: IERC165

This interface can be implemented by contracts that wish to transfer tokens during initiate actions.

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

Functions

transferCallback

Triggered by the USDN protocol to transfer asset tokens during initiate actions.

Implementations must ensure that the msg.sender is the USDN protocol for security purposes.

function transferCallback(IERC20Metadata token, uint256 amount, address to) external;

Parameters

NameTypeDescription
tokenIERC20MetadataThe address of the ERC20 token to be transferred.
amountuint256The amount of tokens to transfer.
toaddressThe recipient's address.

usdnTransferCallback

Triggered by the USDN protocol during the initiateWithdrawal process to transfer USDN shares.

Implementations must verify that the msg.sender is the USDN protocol.

function usdnTransferCallback(IUsdn usdn, uint256 shares) external;

Parameters

NameTypeDescription
usdnIUsdnThe address of the USDN protocol.
sharesuint256The number of USDN shares to transfer to the protocol (msg.sender).