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
UV3Xw/tRUxWU+6gKtd/olqMRMmcKsr0enlc1o1MOkHI=
Received
06.07.2022 22:26:51
Confirmation delay (full node)
14 minutes 9 seconds
Authors
YNOKOE63LASASEDAGBZU3E4EU4EWM5D5
Children
Cc79Fe/Eyvg8eGnsNWsWOEDCS4jb2GCoSWSFWR8TayI=
NcSHjvoD076LURYZG5nX+lztsAmgpO+vD/CQMtLT+7k=
Parents
uiUaDnD6teZD+0UU3RT6fDRBqAI0+uK6tIOUuc5ARE8=
Messages
Payments
YIVA2EHCCWC5UQYOIWUY2ALSGPJHFWNM
0.00001
GBYTE
YIVA2EHCCWC5UQYOIWUY2ALSGPJHFWNM
0.011351198
GCMC
Data
curve_address:
AXN2FCEZNDS3THORLZW4IUHU7MESLLPC
AA responses
From YIVA2EHCCWC5UQYOIWUY2ALSGPJHFWNM
AA address:
YIVA2EHCCWC5UQYOIWUY2ALSGPJHFWNM
Bounced
Response unit:
NcSHjvoD076LURYZG5nX+lztsAmgpO+vD/CQMtLT+7k=
Response:
{ "error": "formula if(!exists(var[$curve_address]['p2'])) bounce('p2 not initialized'); $canBeDone = balance[$asset1] > 0 AND balance[$asset2] > 0; $curve_params = definition[$curve_address][1].params; if(trigger.output[[asset=$asset1]] > 0){ response['message'] = "Added " || (trigger.output[[asset=$asset1]] / 10^$curve_params.decimals1) || " T1 tokens"; } if (trigger.output[[asset=$asset2]] > 0){ response['message'] = "Added " || (trigger.output[[asset=$asset2]] / 10^$curve_params.decimals2) || " T2 tokens"; } if($canBeDone){ $initial_p2 = var[$curve_address]['p2']; $dilution_factor = var[$curve_address]['dilution_factor']; $m = $curve_params.m; $n = $curve_params.n; $auto_withdraw = trigger.data.auto_withdraw; $p2 = var[$curve_address]['p2']; $new_supply1 = var[$curve_address]['supply1'] - balance[$asset1]; $new_supply2 = var[$curve_address]['supply2'] - balance[$asset2]; $s1 = $new_supply1 / 10^$curve_params.decimals1; $s2 = $new_supply2 / 10^$curve_params.decimals2; $expectT1 = (($p2 / ($dilution_factor * $n * (is_integer($n*2) ? sqrt($s2^(($n-1)*2)) : $s2^($n-1))))^(1 / $m)) - (var[$curve_address]['supply1'] / 10^$curve_params.decimals1); $expectT2 = (($p2 / ($dilution_factor * ($s1^$m) * $n)) ^ (1 / ($n - 1))) - var[$curve_address]['supply2'] / 10 ^ $curve_params.decimals2; $expectT1WithoutDecimals = abs(round($expectT1 * 10^$curve_params.decimals1)); $expectT2WithoutDecimals = abs(round($expectT2 * 10^$curve_params.decimals2)); if(abs($expectT2WithoutDecimals) < balance[$asset2]) { $count1 = balance[$asset1]; $count2 = $expectT2WithoutDecimals; $change1 = 0; $change2 = balance[$asset2] - $count2; } else if(abs($expectT1WithoutDecimals) < balance[$asset1]){ $count1 = $expectT1WithoutDecimals; $count2 = balance[$asset2]; $change1 = balance[$asset1] - $count1; $change2 = 0; } else { bounce("Couldn't calculate optimal quantity"); } response['count1'] = $count1; response['count2'] = $count2; response['change1'] = $change1; response['change2'] = $change2; } failed: not finite in ^" }
Witnesses
2TO6NYBGX3NF5QS24MQLFR7KXYAMCIE5
4GDZSXHEFVFMHCUCSHZVXBVF5T2LJHMU
APABTE2IBKOIHLS2UNK6SAR4T5WRGH2J
DXYWHSZ72ZDNDZ7WYZXKWBBH425C6WZN
FAB6TH7IRAVHDLK2AAWY5YBE6CEBUACF
FOPUBEUPBC6YLIQDLKL6EW775BMV7YOH
GFK3RDAPQLLNCMQEVGGD2KCPZTLSG3HN
I2ADHGP4HL6J37NQAD73J7E5SKFIXJOT
JMFXY26FN76GWJJG7N36UI2LNONOGZJV
JPQKPRI5FMTQRJF4ZZMYZYDQVRD55OTC
TKT4UESIKTTRALRRLWS4SENSTJX6ODCW
UE25S4GRWZOLNXZKY4VWFHNJZWUSYCQC
Technical information
Fees:
1,376
bytes
(451 headers, 925 payload)
Level:
9351396
Witnessed level:
9351384
Last ball unit:
UZesacj6PacBgk+jlkAysAcbApE5cemcY2oyxEwl+m0=
Main chain index:
8994518
Latest included mc index:
8994517
Status:
stable/confirmed/final