WAON4KBBVHE6F2ZHKGON2KP3G7CJ27XA Obyte exchange protocol v2
| 1 | [ |
| 2 | "autonomous agent", |
| 3 | { |
| 4 | "base_aa": "2JYYNOSRFGLI3TBI4FVSE6GFBUAZTTI3", |
| 5 | "params": { |
| 6 | "x_asset": "0IwAk71D5xFP0vTzwamKBwzad3I1ZUjZ1gdeB5OnfOg=", |
| 7 | "y_asset": "S/oCESzEO8G2hvQuI6HsyPr0foLfKwzs+GU73nO9H40=", |
| 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 | "mid_price": 0.93, |
| 14 | "price_deviation": 1.04, |
| 15 | "base_interest_rate": 0.1, |
| 16 | "pool_leverage": 1, |
| 17 | "alpha": 0.5, |
| 18 | "period_length": 3600 |
| 19 | } |
| 20 | } |
| 21 | ] |
- MCI: 10696407
- Bounced
- Response:
| Message | asset for this leverage already defined |
|---|
- MCI: 10696401
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"leveraged_asset100": "GMmxwqoCzQiZlQxUUQK0P8/n0LYV7Ku0SfafY7CUx4g="
}
}
- MCI: 10419392
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"event": {
"shares": 0,
"type": "add",
"x": 10000,
"y": 0
}
}
}
- MCI: 10419371
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"event": {
"shares": 0,
"type": "add",
"x": 10000,
"y": 0
}
}
}
- MCI: 10275656
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"event": {
"arb_profit_tax": 0.231908631445877,
"direction": "x2y",
"in": 1554,
"out": 1334,
"swap_fee": 1.33575431769,
"total_fee": 1.75431768999588,
"type": "swap"
}
}
}
- MCI: 10247616
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"event": {
"arb_profit_tax": 0.257307181397208,
"direction": "x2y",
"in": 1636,
"out": 1405,
"swap_fee": 1.4071320347442,
"total_fee": 2.13203474420141,
"type": "swap"
}
}
}
- MCI: 10161189
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"event": {
"shares": 0,
"type": "add",
"x": 100000,
"y": 0
}
}
}
- MCI: 10161067
- Bounced
- Response unit:
- Response:
| Message | 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: bad final_X -14474.75765392 |
|---|
- MCI: 10161047
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"event": {
"arb_profit_tax": 45.5373859853129,
"direction": "x2y",
"in": 19800,
"out": 17027,
"swap_fee": 17.0899731565682,
"total_fee": 62.9731565681811,
"type": "swap"
}
}
}
- MCI: 10161022
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"event": {
"shares": 0,
"type": "add",
"x": 11956,
"y": 0
}
}
}
Show transactions in assets:
No transactions found, it may be worth changing the filter
Unit ID
Date
From
Direction
To
Amount
26.06.2024 23:25:59
in
WAON4KBBVHE6F2ZHKGON2KP3G7CJ27XA
26.06.2024 23:21:50
WAON4KBBVHE6F2ZHKGON2KP3G7CJ27XA
out
WAON4KBBVHE6F2ZHKGON2KP3G7CJ27XA
26.06.2024 23:21:03
in
WAON4KBBVHE6F2ZHKGON2KP3G7CJ27XA
16.02.2024 06:29:21
WAON4KBBVHE6F2ZHKGON2KP3G7CJ27XA
out
16.02.2024 05:58:18
WAON4KBBVHE6F2ZHKGON2KP3G7CJ27XA
out