Transfers view
UTXO view
Obyte.org
Unit Legend
- not on main chain, not stable
- main chain, not stable
- bad unit
- not on main chain, stable/confirmed/final
- main chain, stable/confirmed/final
- not on main chain, selected
- main chain, selected
Close
Close
Unit ID
/2IPEOvYg8A6gTqXL3VKdilTCaxnks5lm7jWKmdiYuE=
Received
13.08.2019 22:28:34
Confirmation delay (full node)
3 minutes 55 seconds
Confirmation delay (light node)
6 minutes 8 seconds
Authors
VF54JXTNXERXEU43GXT6R34FH27JL46K
Children
fefQCGB72qvgDD3EUuwjnA0lZfDb/a7b/K9L9nDTBMM=
jr55y0+hUoRjT/wlJ9XpkirA2RBAZ69y9mHIcN0lpdY=
Parents
uZc/lT8Zy9bP3p2YtpB2auSUCS0oIkREpVjiQxs6ISg=
Messages
Payments
5XQC27RQGEZSB3Z3TZV2ODYEOY5VZZG2
0.00001
GBYTE
5XQC27RQGEZSB3Z3TZV2ODYEOY5VZZG2
2
nQ/8723wIh5NDKrj0VZ32Jl53XCYjyWC5Z+r9JQ7dtA=
Data
price:
10000
name:
brb
AA responses
From 5XQC27RQGEZSB3Z3TZV2ODYEOY5VZZG2
AA address:
5XQC27RQGEZSB3Z3TZV2ODYEOY5VZZG2
Bounced
Response unit:
jr55y0+hUoRjT/wlJ9XpkirA2RBAZ69y9mHIcN0lpdY=
Response:
{ "error": "formula { $owner = 'JBGMJI7XSKLKNHZF26BUBWHVUZSDV3P5'; $stablecoin_issuer = '46RD24PCL22DMQSPQWRJPHFV24CH7SLA'; $addr = trigger.address; $base_inp = trigger.output[[asset=base]] - 700; if(!var['owner']) return; $base_asset = var['base_asset']; $last_coin_key = 'last_used_' || $addr; if($base_inp <= 0) bounce('not enough bytes for fees'); if(trigger.output[[asset!=base]].asset != 'none'){ if(trigger.output[[asset!=base]].asset != var['base_asset']){ $asset = trigger.output[[asset!=base]].asset; if($asset == 'ambiguous'){ bounce('only 1 asset per tx'); } if(trigger.output[[asset!=base]] == 0){ bounce('zero asset tx'); } } if($asset){ $asset_des = $base_asset; $asset_inp = trigger.output[[asset!=base]]; $name = var['reg_'||$asset]; } else{ if(!trigger.data.name) bounce('you must use a name'); $name = trigger.data.name; $asset_des = var['name_'||trigger.data.name]; $base_asset_inp = trigger.output[[asset!=$asset_des]]; } } else{ if(!trigger.data.withdraw){ bounce('there must be at least one asset'); } } $registered = $asset ? var['reg_'||$asset] : $asset_des; if(!$registered){ if(trigger.data.register_asset){ return; } else{ bounce('asset must be registered first'); } } $ratio_key = $name || '_last_price'; if(!var[$ratio_key] and !trigger.data.price){ bounce('price must be defined before first exchange'); } if(trigger.data.price){ $ratio = round(trigger.data.price);//microUSD per 1 asset if($ratio <= 0){ bounce('ratio not allowed'); } } else{ $ratio = var[$ratio_key]; } $base_key = $name || '_' || $addr || '_' || $ratio || '_base'; $total_key = $name || '_' || $ratio || '_total_base'; $exch_key = $name || '_' || $ratio || 'exchanged_base'; $asset_key = $name || '_' || $addr || '_' || $ratio; $total_asset_key = $name || '_' || $ratio || '_total_asset'; $exch_asset_key = $name || '_' || $ratio || 'exchanged_asset'; $max_b_to_exchange = var[$total_key] - var[$exch_key]; $max_a_to_exchange = var[$total_asset_key] - var[$exch_asset_key]; $base_inp_round = $base_inp_asset; $base_inp_in_asset = ($base_inp_round - ($base_inp_round % $ratio)/ $ratio); $asset_inp_in_base_asset = $asset_inp * $ratio; if($asset){ if($max_b_to_exchange and $max_b_to_exchange > 0 and !trigger.data.withdraw){ //exchange if($asset_inp_in_bytes > $max_b_to_exchange){ //partial exchange till empty,return rest and bfees $base_amount = $max_b_to_exchange; $asset_amount = (($asset_inp_in_bytes - $max_b_to_exchange) - (($asset_inp_in_bytes - $max_b_to_exchange) % $ratio)) / $ratio; } else{ //full exchange until empty,return bfees $base_amount = $asset_inp_in_bytes; $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.withdraw){ //exchange if($base_inp_in_asset > $max_a_to_exchange){ //partial exchange till empty,return rest $asset_amount = $max_a_to_exchange; $base_amount = ($base_inp_in_asset - $max_a_to_exchange) * $ratio; } else{ if($base_inp_in_asset == 0) bounce('Not enough funds, try with higher amount'); //full exchange until empty $asset_amount = $base_inp_in_asset; $base_amount = 0; } } else{ if(!trigger.data.cancel) $deposit = true; } } } failed: trying to access amount of ambiguous asset" }
Witnesses
2FF7PSL7FYXVU5UIQHCVDTTPUOOG75GX
2GPBEZTAXKWEXMWCTGZALIZDNWS5B3V7
4H2AMKF6YO2IWJ5MYWJS3N7Y2YU2T4Z5
DFVODTYGTS3ILVOQ5MFKJIERH6LGKELP
ERMF7V2RLCPABMX5AMNGUQBAH4CD5TK4
F4KHJUCLJKY4JV7M5F754LAJX4EB7M4N
IOF6PTBDTLSTBS5NWHUSD7I2NHK3BQ2T
O4K4QILG6VPGTYLRAI2RGYRFJZ7N2Q2O
OPNUXBRSSQQGHKQNEPD2GLWQYEUY5XLD
PA4QK46276MJJD5DBOLIBMYKNNXMUVDP
RJDYXC4YQ4AZKFYTJVCR5GQJF5J6KPRI
WELOXP3EOA75JWNO6S5ZJHOO3EYFKPIR
Technical information
Fees:
853
bytes
(353 headers, 500 payload)
Level:
997663
Witnessed level:
997656
Last ball unit:
BDo8dkNh11TCDRHH9h4qH0+AGYACAaNurKLhDUDn3Bw=
Main chain index:
996481
Latest included mc index:
996480
Status:
stable/confirmed/final