👻AaveV3SwapBorrowRateMode

Description

Action ID: 0xd5baf3f8

Changes borrow rate mode of an asset in AaveV3 between stable and variable

SDK Action

    const aaveSwapRateAction = new dfs.actions.aaveV3.AaveV3SwapBorrowRateModeAction(
        rateMode, assetId, useDefaultMarket, market,
    );

Contract

This is a DFS STANDARD_ACTION.

Input:

    /// @param rateMode Type of borrow debt Stable: 1, Variable: 2
    /// @param assetId The id of the asset in the aave protocol
    /// @param useDefaultMarket If true the action will inject aave default market
    /// @param market Address provider for specific market
    struct Params {
        uint256 rateMode;
        uint16 assetId;
        bool useDefaultMarket;
        address market;
    }

Return value:

return bytes32(0);

Events:

emit ActionEvent("AaveV3SwapBorrowRateMode", logData);

logger.logActionDirectEvent("AaveV3SwapBorrowRateMode", logData);

bytes memory logData = abi.encode(_inputData)

Last updated