DeFi Saver
Search
⌃K
👻

AaveV3SetEMode

Description

Action ID: 0x3d35d254
Network optimism: (Deployed address | Code)
Network arbitrum: (Deployed address | Code)
Set positions eMode on AaveV3.

SDK Action

const aaveSetEModeAction = new dfs.actions.aaveV3.AaveV3SetEModeAction(
categoryId, useDefaultMarket, market,
);

Contract

This is a DFS STANDARD_ACTION.
Input:
/// @param categoryId eMode category id (0 - 255)
/// @param useDefaultMarket If true the action will inject aave default market
/// @param market Address provider for specific market
struct Params {
uint8 categoryId;
bool useDefaultMarket;
address market;
}
Return value:
return bytes32(categoryId);
Events:
emit ActionEvent("AaveV3SetEMode", logData);
​
logger.logActionDirectEvent("AaveV3SetEMode", logData);
​
bytes memory logData = abi.encode(_market, _categoryId)