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

McdRatioTrigger

Description

Trigger contract that verifies if current MCD vault ratio is higher or lower than wanted

Trigger ID

0x7984f73c

SDK Action

const makerRatioTrigger = new dfs.triggers.MakerRatioTrigger(
    vaultId,
    ratio,
    state
);

Subscription Parameters

/// @param vaultId id of the vault whose ratio we check
/// @param ratio ratio that represents the triggerable point
/// @param state represents if we want current ratio to be higher or lower than ratio param
struct SubParams {
    uint256 vaultId;
    uint256 ratio;
    uint8 state;
}

Calldata Parameters

IsChangeable

false

Last updated

Was this helpful?