SparkTargetRatioCheck
Description
Action to check the ratio of the Spark position after strategy execution.
Notes
5% offset acceptable.
We are checking for 5% RATIO_OFFSET only when the target ratio is < 999%.
If
targetRatiois 999% or more then skipRATIO_OFFSETcheck because it is very hard to be precise under 5%.If user is subscribed on full repay, current ratio must be exactly 0.
Action ID
0x66d60c1e
SDK Action
const sparkTargetRatioCheckAction = new dfs.actions.checkers.SparkTargetRatioCheck(
targetRatio,
market,
user
);Action Type
CHECK_ACTION
Input Parameters
Return Value
Events and Logs
Last updated