AaveV4CollateralSwitch
Description
Action ID
SDK Action
const aaveV4CollateralSwitchAction = new dfs.actions.aavev4.AaveV4CollateralSwitchAction(
spoke,
onBehalf,
reserveId,
useAsCollateral
);Action Type
Input Parameters
/// @param spoke Address of the spoke.
/// @param onBehalf Address to switch collateral on behalf of. Defaults to the user's wallet if not provided.
/// @param reserveId Reserve id.
/// @param useAsCollateral Whether to use the tokens as collateral.
struct Params {
address spoke;
address onBehalf;
uint256 reserveId;
bool useAsCollateral;
}Return Value
Events and Logs
Last updated