SparkSwapBorrowRateMode
Description
Action ID
SDK Action
const sparkSwapBorrowRateModeAction = new dfs.actions.spark.SparkSwapBorrowRateModeAction(
useDefaultMarket,
market,
rateMode,
assetId
);Action Type
Input Parameters
/// @param rateMode Type of borrow debt [Stable: 1, Variable: 2]
/// @param assetId The id of the token to be swapped
/// @param useDefaultMarket Whether to use the default market
/// @param market Address of the market to swap borrow rate mode for
struct Params {
uint256 rateMode;
uint16 assetId;
bool useDefaultMarket;
address market;
}Return Value
Events and Logs
Last updated