Unit ID
hyz78ibbJpvbmzTrHa4pTlKUaQMQi8Y8CtUDckxLyw4=
Received
04.08.2019 18:57:09
Confirmation delay (full node)
3 minutes 18 seconds
Confirmation delay (light node)
5 minutes 35 seconds
Messages
Payments
Data
withdraw: all
AA responses
From FM6QASPV2XNKY4H3YAKTDP42OPTNZF6V
  • Bounced
  • Response: { "error": "formula { $owner = trigger.address; $activator = trigger.initial_address; $fee = $f; $asset_ct = trigger.data.asset; $addr = trigger.initial_address; $base_inp = trigger.output[[asset=base]]; $base_key = 'base_' || trigger.initial_address; if($base_inp <= 0) bounce('no inputs detected'); if(trigger.output[[asset!=base]].asset != 'none') $asset = trigger.output[[asset!=base]].asset; if($asset){ if($asset == 'ambiguous'){ bounce('only 1 asset per tx'); } if(trigger.output[[asset!=base]] ==0) bounce('zero asset tx'); $asset_inp = trigger.output[[asset!=base]]; } $asset_key = $asset_ct||'_'||trigger.initial_address; if($asset and $asset_ct != $asset) bounce('not a previously defined asset'); $ratio = 1000;//bytes per 1 asset $max_b_to_exchange = balance[base] - $base_inp; if($asset){ $max_a_to_exchange = balance[$asset] - $asset_inp; } else{ $max_a_to_exchange = 0; } $base_inp_in_asset = round($base_inp/$ratio); $asset_inp_in_bytes = $asset_inp*$ratio; if($asset){ if($max_b_to_exchange and $max_b_to_exchange != 0 and !trigger.data.cancel){ //exchange if($asset_inp_in_bytes > $max_b_to_exchange){ //partial exchange till empty,return rest and bfees $byte_amount = $max_b_to_exchange+$base_inp; $asset_amount = round(($asset_inp_in_bytes - $max_b_to_exchange)/$ratio); } else{ //full exchange until empty,return bfees $byte_amount = round($asset_inp_in_bytes)+$base_inp; $asset_amount = 0; } } else{ if(!trigger.data.cancel) $deposit = true; } } else{ if($max_a_to_exchange and $max_a_to_exchange != 0 and !trigger.data.cancel){ //exchange if($base_inp_in_asset > $max_a_to_exchange){ //partial exchange till empty,return rest $asset_amount = round($max_a_to_exchange); $byte_amount = round(($base_inp_in_asset - $max_a_to_exchange)*$ratio); } else{ //full exchange until empty $asset_amount = round($base_inp_in_asset); $byte_amount = 0; } } else{ if(!trigger.data.cancel) $deposit = true; } } } failed: reassignment to addr, old value JBGMJI7XSKLKNHZF26BUBWHVUZSDV3P5" }
Technical information
Fees:
607 bytes
(353 headers, 254 payload)
Level:985885
Witnessed level:985878
Main chain index:984705
Latest included mc index:984704
Status:stable/confirmed/final