CompBorrow

Description

Borrow a token from Compound

Action ID

0x82875a6c

SDK Action

const compoundBorrowAction = new dfs.actions.compound.CompoundBorrowAction(
    cTokenAddr,
    amount,
    to
);

Action Type

STANDARD_ACTION

Input Parameters

    /// @param cTokenAddr Address of the cToken token to borrow
    /// @param amount Amount of tokens to be borrowed
    /// @param to The address that will receive the borrowed tokens
    struct Params {
        address cTokenAddr;
        uint256 amount;
        address to;
    }

Return Value

return bytes32(withdrawAmount);

Events and Logs

emit ActionEvent("CompBorrow", logData);
logger.logActionDirectEvent("CompBorrow", logData);
bytes memory logData = abi.encode(params);

Last updated

Was this helpful?