🛠️PullToken

Description

Action ID: 0xcc063de4

Helper action to pull a token from the specified address

SDK Action

    const PullTokenAction = new dfs.actions.insta.PullTokenAction(
        tokenAddr,
        from,
        amount,
    );

Contract

This is a DFS STANDARD_ACTION.

If amount is type(uint).max it will send proxy balance

The address from which we are pulling tokens must approve Proxy

Input:

    /// @param tokenAddr Address of token
    /// @param from From where the tokens are pulled
    /// @param amount Amount of tokens, can be type(uint).max
    using TokenUtils for address;
    struct Params {
        address tokenAddr;
        address from;
        uint256 amount;
    }

Return value:

return bytes32(inputData.amount);

Events:

Last updated