IERC20Portal
Inherits: IPortal
Functions
depositERC20Tokens
Transfer ERC-20 tokens to an application contract
and add an input to the application's input box to signal such operation.
The caller must allow the portal to withdraw at least value
tokens
from their account beforehand, by calling the approve
function in the
token contract.
function depositERC20Tokens(
IERC20 token,
address appContract,
uint256 value,
bytes calldata execLayerData
) external;
Parameters
Name | Type | Description |
---|---|---|
token | IERC20 | The ERC-20 token contract |
appContract | address | The application contract address |
value | uint256 | The amount of tokens to be transferred |
execLayerData | bytes | Additional data to be interpreted by the execution layer |
Errors
ERC20TransferFailed
Failed to transfer ERC-20 tokens to application
error ERC20TransferFailed();