AaveV3RatioCheck

Description

Action ID: 0x71ef3d4e

Checks if AaveV3 positions ratio is in target range

SDK Action

const checkerAction = new dfs.actions.checkers.AaveV3RatioCheckAction(
        checkRepayState,
        targetRatio,
    );

Contract

This is a DFS CHECK_ACTION.

5% offset acceptable

Input:

    /// @param ratioState Enum if we're doing a Boost or Repay strategy
    /// @param targetRatio Ratio that the strategy is supposed to hit (within allowed offset)
    struct Params {
        RatioState ratioState;
        uint256 targetRatio;
    }

Return value:

return bytes32(currRatio);

Events:

emit ActionEvent("AaveV3RatioCheck", abi.encode(currRatio));

Last updated