For the complete documentation index, see llms.txt. This page is also available as Markdown.

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 targetRatio is 999% or more then skip RATIO_OFFSET check 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