Drum Beat
type = "fluxmonitor"
schemaVersion = 1
name = "XDC/USDT Flux Drum Beat"
forwardingAllowed = false
maxTaskDuration = "30s"
absoluteThreshold = 0
contractAddress = "FM contract address"
drumbeatEnabled = true
drumbeatSchedule = "CRON_TZ=UTC */30 * * * * *"
idleTimerPeriod = "30s"
idleTimerDisabled = true
pollTimerPeriod = "1m0s"
pollTimerDisabled = true
threshold = 0.5
observationSource = """
// data source 1
ds1 [type="http" method=GET url="<sample_api_link>/data/price?fsym=XDC&tsyms=USDT"]
ds1_parse [type="jsonparse" path="USDT"]
ds1_multiply [type="multiply" input="$(ds1_parse)" times=10000]
// data source 2
ds2 [type="http" method=GET url="<sample_api_link>/data/price?fsym=XDC&tsyms=USDT"]
ds2_parse [type="jsonparse" path="USDT"]
ds2_multiply [type="multiply" input="$(ds2_parse)" times=10000]
ds1 -> ds1_parse -> ds1_multiply -> medianized_answer
ds2 -> ds2_parse -> ds2_multiply -> medianized_answer
medianized_answer [type=median]
"""
Last updated