DeFi Saver
Search
K

SendToken

Description

Action ID: 0x02abc227
Network mainnet: (Deployed address | Code)
Network optimism: (Deployed address | Code)
Network arbitrum: (Deployed address | Code)
Helper action to send a token to the specified address

SDK Action

const sendTokenAction = new dfs.actions.basic.SendTokenAction(
tokenAddr,
to,
amount,
);

Contract

This is a DFS STANDARD_ACTION.
If amount is type(uint).max it will send proxy balance
Input:
/// @param tokenAddr Address of token, use 0xEeee... for eth
/// @param to Where the tokens are sent
/// @param amount Amount of tokens, can be type(uint).max
struct Params {
address tokenAddr;
address to;
uint256 amount;
}
Return value:
return bytes32(inputData.amount);
Events:
Last modified 10mo ago