AaveV3TrailingQuotePriceTrigger

Description

Validates trailing stop for quoted asset price

Notes

Given the currentPrice and the maxPrice see if there diff. > than percentage

Trigger ID

0x0e31244d

SDK Action

const aaveV3TrailingQuotePriceTrigger = new dfs.triggers.AaveV3TrailingQuotePriceTrigger(
    ...args
);

Subscription Parameters

/// @param baseTokenAddr address of the token which is quoted
/// @param baseStartRoundId roundId of the base token feed at time of subscription
/// @param quoteTokenAddr address of the quote token
/// @param quoteStartRoundId roundId of the quote token feed at time of subscription
/// @param percentage price percentage difference on which to trigger
struct SubParams {
    address baseTokenAddr;
    uint80 baseStartRoundId;
    address quoteTokenAddr;
    uint80 quoteStartRoundId;
    uint256 percentage;
}

Calldata Parameters

IsChangeable

false

Last updated

Was this helpful?