X3FREB7TZLWVFJOWLBKCLHYNWRPAVV5U Obyte exchange protocol v2
| 1 | [ |
| 2 | "autonomous agent", |
| 3 | { |
| 4 | "base_aa": "5OIJR4Y754YJNKE6Y5P773DATJPETSKM", |
| 5 | "params": { |
| 6 | "x_asset": "base", |
| 7 | "y_asset": "lwvZjepKoGSiMIDalxi2GB8Pd+nK86Qsnsn1Ng7TAJE=", |
| 8 | "swap_fee": 0.001, |
| 9 | "exit_fee": 0.01, |
| 10 | "arb_profit_tax": 0.9, |
| 11 | "leverage_profit_tax": 0.25, |
| 12 | "leverage_token_tax": 0.1, |
| 13 | "base_interest_rate": 0.1, |
| 14 | "pool_leverage": 1, |
| 15 | "alpha": 0.5, |
| 16 | "period_length": 3600 |
| 17 | } |
| 18 | } |
| 19 | ] |
- MCI: 2545644
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"event": {
"shares": 56568471,
"type": "remove",
"x": 3523906589,
"x_fee": 35595016.0559681,
"y": 890009,
"y_fee": 8989.99984107755
}
}
}
- MCI: 2545164
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"event": {
"arb_profit_tax": 52094937.5459792,
"direction": "y2x",
"in": 99000,
"out": 387952905,
"swap_fee": 440488.33147942,
"total_fee": 52535426.4794196,
"type": "swap"
}
}
}
- MCI: 2545062
- Bounced
- Response unit:
- Response:
| Message | one of secondary AAs bounced with error: L3K3EHLZRXQJEPQOXMRLZ645LBOD2KJO: formula
require(!($x_in AND $y_in), "received both assets");
if ($y_in){
$received_amount_Y = $received_amount_y;
$in_asset = $y_asset;
$out_asset = $x_asset;
$delta_Yn = trigger.data.delta_yn;
}
else{ // x <-> y swap their roles. Uppercase X, Y, and P refer to invertable values
$received_amount_Y = $received_amount_x;
$in_asset = $x_asset;
$out_asset = $y_asset;
$delta_Yn = trigger.data.delta_xn;
}
$res = ($final_price ? $pool_lib_by_price : $pool_lib)#6.$swap($balances, $l_balances, $profits, $recent, $x0, $y0, $y_in, $final_price ? 0 : $delta_Yn, $final_price, $received_amount_Y, trigger.data.min_amount_out, trigger.initial_address, $pool_props);
// further hops
$hops = trigger.data.hops;
$address = $hops[0].address OTHERWISE trigger.address;
$change_address = $hops[0].change_address OTHERWISE $address;
if ($hops){
$data_for_next_hop = $hops[0].data;
delete($hops, 0); // remove the head hop
if ($data_for_next_hop OR length($hops)){
$forwarded_data = $data_for_next_hop OTHERWISE {};
if (length($hops))
$forwarded_data.hops = $hops;
}
}
failed: expected 387953026, received 387952905 |
|---|
- MCI: 2544357
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"event": {
"shares": 56568472,
"type": "add",
"x": 3999990000,
"y": 800000
}
}
}
- MCI: 2544307
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"shares_asset": "lCHK4d/MMvIBv8PuMIUbMXZs6qHiqOrTzT/Xxgap7aE="
}
}
Show transactions in assets:
No transactions found, it may be worth changing the filter
Unit ID
Date
From
Direction
To
Amount
06.02.2022 18:17:22
X3FREB7TZLWVFJOWLBKCLHYNWRPAVV5U
out
06.02.2022 18:17:22
X3FREB7TZLWVFJOWLBKCLHYNWRPAVV5U
out
06.02.2022 18:17:22
in
X3FREB7TZLWVFJOWLBKCLHYNWRPAVV5U
06.02.2022 18:17:22
in
X3FREB7TZLWVFJOWLBKCLHYNWRPAVV5U
06.02.2022 14:29:25
X3FREB7TZLWVFJOWLBKCLHYNWRPAVV5U
out
06.02.2022 14:29:25
X3FREB7TZLWVFJOWLBKCLHYNWRPAVV5U
out
06.02.2022 14:29:25
in
X3FREB7TZLWVFJOWLBKCLHYNWRPAVV5U
06.02.2022 14:29:25
in
X3FREB7TZLWVFJOWLBKCLHYNWRPAVV5U
06.02.2022 13:33:03
X3FREB7TZLWVFJOWLBKCLHYNWRPAVV5U
out