🚰LiquityBorrow

Description

Action ID: 0x1b4a4a55

Borrow from DSProxy Liquity Trove

SDK Action

    const liquityBorrowAction = new dfs.actions.liquity.LiquityBorrowAction(
        maxFeePercentage,
        LUSDAmount,
        to,
        upperHint,
        lowerHint,
    );

Contract

This is a DFS STANDARD_ACTION.

Input:

    /// @param maxFeePercentage Highest borrowing fee to accept, ranges between 0.5 and 5%
    /// @param lusdAmount Amount of LUSD tokens to borrow
    /// @param to Address that will receive the tokens
    /// @param upperHint
    /// @param lowerHint
    struct Params {
        uint256 maxFeePercentage;  
        uint256 lusdAmount;         
        address to;                
        address upperHint;
        address lowerHint;
    }

Return value:

return bytes32(borrowedAmount);

Events:

emit ActionEvent("LiquityBorrow", logData);

logger.logActionDirectEvent("LiquityBorrow", logData);

bytes memory logData = abi.encode(params.maxFeePercentage, params.lusdAmount, params.to)

Last updated