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
yjJbqZw9LRvfvJRkNEcH2iNGGeOPQdMbqI6C8bdP1dI=
Received
22.09.2020 10:07:43
Confirmation delay (full node)
5 minutes 38 seconds
Confirmation delay (light node)
7 minutes 21 seconds
Authors
3Y24IXW57546PQAPQ2SXYEPEDNX4KC6Y
Children
3xWW/NRSozFETNvqWxGYsKHtQfgo3WB94PL3yMf1p44=
tCHaQNfC15jyhvp2O22A7zFUTkRFhECI2Xn+g94a/9A=
Parents
gtNPCP8kJhi4TPqKRFHQYFAHYI4e3t7uASiMAZR2B44=
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
2TO6NYBGX3NF5QS24MQLFR7KXYAMCIE5
4GDZSXHEFVFMHCUCSHZVXBVF5T2LJHMU
APABTE2IBKOIHLS2UNK6SAR4T5WRGH2J
DXYWHSZ72ZDNDZ7WYZXKWBBH425C6WZN
FAB6TH7IRAVHDLK2AAWY5YBE6CEBUACF
FOPUBEUPBC6YLIQDLKL6EW775BMV7YOH
GFK3RDAPQLLNCMQEVGGD2KCPZTLSG3HN
I2ADHGP4HL6J37NQAD73J7E5SKFIXJOT
JMFXY26FN76GWJJG7N36UI2LNONOGZJV
JPQKPRI5FMTQRJF4ZZMYZYDQVRD55OTC
TKT4UESIKTTRALRRLWS4SENSTJX6ODCW
UE25S4GRWZOLNXZKY4VWFHNJZWUSYCQC
Technical information
Fees:
3,237
bytes
(451 headers, 2786 payload)
Level:
5915565
Witnessed level:
5915545
Last ball unit:
Mion2w2wQrlvWnhm5Lghz9fVg4iRk3m6cc8z4iNEJ+A=
Main chain index:
5771231
Latest included mc index:
5771230
Status:
stable/confirmed/final