Unit ID
ahpR1YLcxd9nv0FD/tUf+sG5Vp2SUjKSleMFgxq3Teg=
Received
02.10.2019 12:06:37
Confirmation delay (full node)
8 minutes 31 seconds
Confirmation delay (light node)
12 minutes 16 seconds
Authors
A7OZ3CNIHR4NI6CN4P6TA7KC54SFMJIW
Definition
Messages
Payments
Data
feed_name: bittrex
feed_value: 13
new: 1
AA responses
From 7KU23EYRTWPZ24FTP3M2BKSIMHLZITKO
  • Bounced
  • Response unit:
  • Response: { "error": "formula { if (trigger.output[[asset=base]] < $min_stake) return false; $amount = trigger.output[[asset=base]] - $fee; if (var[$key] == 'committed') bounce('already committed'); $outcome = trigger.data.outcome otherwise 'yes'; if ($outcome != 'yes' AND $outcome != 'no') bounce('neither yes nor no'); $bInitialStake = !var[$key]; if ($bInitialStake AND $outcome == 'no') bounce('initial stake cannot be on No'); if ($bInitialStake){ if (!trigger.data.new) bounce("something went wrong: initial stake without new"); $pool_id = trigger.data.pool_id; if (!$pool_id) bounce('please specify a reward pool id'); $number_of_rewards = var['pool_' || $pool_id || '_number_of_rewards']; if (!$number_of_rewards) bounce("pool " || $pool_id || " doesn't exist or is empty"); $pool_feed_name = var['pool_' || $pool_id || '_feed_name']; if ($pool_feed_name AND $pool_feed_name != $feed_name) bounce("pool " || $pool_id || " is for feed name " || $pool_feed_name || " only"); return true; } // else expect a counterstake if (timestamp - var[$key || '_countdown_start'] > $period_length) bounce('challenging period expired'); $current_outcome = var[$key || '_outcome']; if ($current_outcome == $outcome) bounce('staking on the current outcome is not allowed'); $stake_on_current_outcome = var[$key || '_total_staked_on_' || $current_outcome]; $stake_on_proposed_outcome = var[$key || '_total_staked_on_' || $outcome]; $required_to_challenge = round($coef * $stake_on_current_outcome); $would_override_current_outcome = ($stake_on_proposed_outcome + $amount >= $required_to_challenge); if ($would_override_current_outcome) $excess = $stake_on_proposed_outcome + $amount - $required_to_challenge; true } failed: booleans cannot be compared with other types" }
Technical information
Fees:
661 bytes
(400 headers, 261 payload)
Level:1088822
Witnessed level:1088815
Main chain index:1087583
Latest included mc index:1087582
Status:stable/confirmed/final