IZapRecipient
Interface for contracts that can perform Zap operations. Such contracts could be used as Recipients in a FastBridge transaction that includes a Zap operation. The Zap Data should include instructions on how exactly the Zap operation should be executed, which would typically include the target address and calldata to use. The exact implementation of the Zap Data encoding is up to the Recipient contract.
Functions
zap
Performs a Zap operation with the given token and amount according to the provided Zap data.
function zap(address token, uint256 amount, bytes memory zapData) external payable returns (bytes4);
Parameters
Name | Type | Description |
---|---|---|
token | address | The address of the token being used for the Zap operation. |
amount | uint256 | The amount of tokens to be used. |
zapData | bytes | The encoded data specifying how the Zap operation should be executed. |
Returns
Name | Type | Description |
---|---|---|
<none> | bytes4 | The function selector to indicate successful execution. |