const aaveBorrowAction = new dfs.actions.aave.AaveBorrowAction(
market,
tokenAddr,
amount,
rateMode,
to,
onBehalfOf,
);
Contract
This is a DFS STANDARD_ACTION.
Input:
/// @param market Address provider for specific market
/// @param tokenAddr The address of the token to be borrowed
/// @param amount Amount of tokens to be borrowed
/// @param rateMode Rate mode, 1 - stable, 2 - variable
/// @param to The address we are sending the borrowed tokens to
/// @param onBehalf On behalf of address we are borrowing, defaults to proxy
struct Params {
address market;
address tokenAddr;
uint256 amount;
uint256 rateMode;
address to;
address onBehalf;
}