FluidRatioTrigger
Description
Trigger contract that verifies if current fluid position ratio went over/under the subbed ratio
Trigger ID
0x6de6c127
SDK Action
const fluidRatioTrigger = new dfs.triggers.FluidRatioTrigger(
nftId,
ratio,
state
);Subscription Parameters
/// @param nftId nft id of the fluid position
/// @param ratio ratio that represents the triggerable point
/// @param state represents if we want the current state to be higher or lower than ratio param
struct SubParams {
uint256 nftId;
uint256 ratio;
uint8 state;
}Calldata Parameters
NoneIsChangeable
false
Last updated
Was this helpful?