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;
}