LlamaLendSupply

Description

Action that supplies collateral to a llamalend position

Action ID

0x37defe88

SDK Action

const llamaLendSupplyAction = new dfs.actions.llamalend.LlamaLendSupplyAction(
    controllerAddress,
    from,
    onBehalfOf,
    collateralAmount,
    collAsset
);

Action Type

STANDARD_ACTION

Input Parameters

    /// @param controllerAddress Address of the llamalend market controller
    /// @param from Address from which to pull collateral asset
    /// @param onBehalfOf Address for which we are supplying, will default to user's wallet
    /// @param collateralAmount Amount of collateral asset to supply
    struct Params {
        address controllerAddress;
        address from;
        address onBehalfOf;
        uint256 collateralAmount;
    }

Return Value

return bytes32(suppliedAmount);

Events and Logs

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

Last updated

Was this helpful?