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
2YegfdqUXlXtvVg+qhdovxV5ttIOxqGtMvMD+WO1UoM=
Received
16.09.2020 11:26:16
Confirmation delay (full node)
3 minutes 0 seconds
Confirmation delay (light node)
5 minutes 57 seconds
Authors
EJC4A7WQGHEZEKW6RLO7F26SAR4LAQBU
Children
PO93DmRQcaKqzCuJr3YxgNlyKZgZMxW+c/GFGwLf6rk=
Parents
KQ2uFEK5HdnuJyhs2KMZX1bctYhdmFhASbMZqhuiiwY=
Messages
Definition
Address:
5WPGSR5KPKLLRWU75B3FM6O4M7CPYOEA
Definition:
[ "autonomous agent", { "doc_url": "https://ostable.org/stablecoin-interest-arbitrage-factory.json", "init": "{ $arbitrage_base_aa = 'WURQLCAXAX3WCVCFYJ3A2PQU4ZB3ALG7'; }", "messages": { "cases": [ { "if": "{var['creating']}", "messages": [ { "app": "state", "state": "{ $params = var['arb_' || trigger.address]; $params.shares_asset = trigger.unit; var['arb_' || trigger.address] = $params; var['creating'] = false; }" } ] }, { "init": "{ if (!is_aa(trigger.data.oswap_aa)) bounce("oswap_aa must be an AA"); if (!is_aa(trigger.data.deposit_aa)) bounce("deposit_aa must be an AA"); if (!is_valid_address(trigger.data.manager)) bounce("manager must be valid address"); if (typeof(trigger.data.management_fee) != 'number' OR trigger.data.management_fee < 0 OR trigger.data.management_fee >= 1) bounce("bad management_fee"); if (typeof(trigger.data.success_fee) != 'number' OR trigger.data.success_fee < 0 OR trigger.data.success_fee >= 1) bounce("bad success_fee"); $curve_aa = definition[trigger.data.deposit_aa][1].params.curve_aa; $interest_asset = var[$curve_aa]['asset2']; $stable_asset = var[trigger.data.deposit_aa]['asset']; $oswap_params = definition[trigger.data.oswap_aa][1].params; if (!($oswap_params.asset0 == $interest_asset AND $oswap_params.asset1 == $stable_asset OR $oswap_params.asset1 == $interest_asset AND $oswap_params.asset0 == $stable_asset)) bounce("oswap assets don't match the interest and stable tokens"); $params = { oswap_aa: trigger.data.oswap_aa, deposit_aa: trigger.data.deposit_aa, manager: trigger.data.manager, management_fee: trigger.data.management_fee, success_fee: trigger.data.success_fee, }; $arbitrage_aa = [ 'autonomous agent', { base_aa: $arbitrage_base_aa, params: $params } ]; $arbitrage_aa_address = chash160($arbitrage_aa); }", "messages": [ { "app": "payment", "payload": { "asset": "base", "outputs": [ { "address": "{ $arbitrage_aa_address }", "amount": 4000 } ] } }, { "app": "data", "payload": { "define": 1, "factory": "{this_address}" } }, { "app": "definition", "payload": { "definition": "{$arbitrage_aa}" } }, { "app": "state", "state": "{ $params.interest_asset = $interest_asset; $params.stable_asset = $stable_asset; $params.curve_aa = $curve_aa; var['arb_' || $arbitrage_aa_address] = $params; var['creating'] = 1; response['address'] = $arbitrage_aa_address; }" } ] } ] } } ]
Witnesses
2FF7PSL7FYXVU5UIQHCVDTTPUOOG75GX
2GPBEZTAXKWEXMWCTGZALIZDNWS5B3V7
4H2AMKF6YO2IWJ5MYWJS3N7Y2YU2T4Z5
DFVODTYGTS3ILVOQ5MFKJIERH6LGKELP
ERMF7V2RLCPABMX5AMNGUQBAH4CD5TK4
F4KHJUCLJKY4JV7M5F754LAJX4EB7M4N
IOF6PTBDTLSTBS5NWHUSD7I2NHK3BQ2T
O4K4QILG6VPGTYLRAI2RGYRFJZ7N2Q2O
OPNUXBRSSQQGHKQNEPD2GLWQYEUY5XLD
PA4QK46276MJJD5DBOLIBMYKNNXMUVDP
RJDYXC4YQ4AZKFYTJVCR5GQJF5J6KPRI
WELOXP3EOA75JWNO6S5ZJHOO3EYFKPIR
Technical information
Fees:
3,238
bytes
(452 headers, 2786 payload)
Level:
1627816
Witnessed level:
1627808
Last ball unit:
l9vmhmfSUiT9OLCDPX/dcou4y+dVzuFjH3dO1Xhk1LE=
Main chain index:
1620460
Latest included mc index:
1620459
Status:
stable/confirmed/final