Last updated 4 days ago
Was this helpful?
Action to check the collateral ratio of the Curve USD position after strategy execution.
Notes5% offset acceptable
Notes
5% offset acceptable
0xe677476f
CHECK_ACTION
const curveUsdCollRatioCheckAction = new dfs.actions.checkers.CurveUsdCollRatioCheck( ratioState, targetRatio, controllerAddr );
/// @param ratioState State of the ratio (IN_BOOST or IN_REPAY) /// @param targetRatio Target ratio. /// @param controllerAddress CurveUsd Controller address. struct Params { RatioState ratioState; uint256 targetRatio; address controllerAddress; }
return bytes32(currRatio);
emit ActionEvent("CurveUsdCollRatioCheck", logData); bytes memory logData = abi.encode(currRatio);