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
uDZQcm6ouZZCvzmJKyioY51rl+GktMQv45wpxn809nE=
Received
24.04.2021 19:58:38
Confirmation delay (full node)
9 minutes 38 seconds
Confirmation delay (light node)
14 minutes 18 seconds
Authors
QF3NOVWHY2ZBVZZ2QHCUW7IPYXKLGIGG
Children
q6Eub5Yby5y2V0I5C6lgeCIHL/9GW+g39QOwRoAaB4o=
Parents
RCyN9mCZDsY/dDFg9VXU3rIXtUHdLwS3OjETLaMakxw=
Messages
Definition
Address:
2K4UR4ON7ZEC2B55W6DMH2UGQY66UT6C
Definition:
[ "autonomous agent", { "getters": "{ $get_growth_factor = ($curve) => { $interest_rate = var[$curve]['interest_rate']; $term = (timestamp - var[$curve]['rate_update_ts']) / (360 * 24 * 3600); // in years $growth_factor = var[$curve]['growth_factor'] * (1 + $interest_rate)^$term; $growth_factor }; }", "init": "{ if(trigger.output[[asset!=base]].asset != 'none'){ $asset = trigger.output[[asset!=base]].asset; if($asset and $asset == 'ambiguous') bounce('Only 1 asset per tx'); } else bounce('usage: send any amount of I asset with params:to,amount and will calc and send O asset amount in interest asset'); $def = asset[$asset].definer_address; if(!is_aa($def)) bounce('asset invalid'); if(definition[$def][1].base_aa != '3DGWRKKWWSC6SV4ZQDWEHYFRYB4TGPKX') bounce('asset invalid'); $growth_factor = $get_growth_factor($def); $stable_amount = trigger.data.amount; if(!$stable_amount OR !is_integer($stable_amount) OR $stable_amount >= 0) bounce('amount param invalid'); $interest_amount = floor($stable_amount / $growth_factor); if($interest_amount > trigger.output[[asset=$asset]]) bounce('not enough i tokens sent'); if(!trigger.data.to or !is_valid_address(trigger.data.to) or is_aa(trigger.data.to)) bounce('to param invalid'); }", "messages": [ { "app": "payment", "payload": { "asset": "{$asset}", "outputs": [ { "address": "{trigger.data.to}", "amount": "{$interest_amount}" }, { "address": "{trigger.address}" } ] } }, { "app": "payment", "payload": { "asset": "base", "outputs": [ { "address": "{trigger.address}" } ] } } ] } ]
Witnesses
2TO6NYBGX3NF5QS24MQLFR7KXYAMCIE5
4GDZSXHEFVFMHCUCSHZVXBVF5T2LJHMU
APABTE2IBKOIHLS2UNK6SAR4T5WRGH2J
DXYWHSZ72ZDNDZ7WYZXKWBBH425C6WZN
FAB6TH7IRAVHDLK2AAWY5YBE6CEBUACF
FOPUBEUPBC6YLIQDLKL6EW775BMV7YOH
GFK3RDAPQLLNCMQEVGGD2KCPZTLSG3HN
I2ADHGP4HL6J37NQAD73J7E5SKFIXJOT
JMFXY26FN76GWJJG7N36UI2LNONOGZJV
JPQKPRI5FMTQRJF4ZZMYZYDQVRD55OTC
TKT4UESIKTTRALRRLWS4SENSTJX6ODCW
UE25S4GRWZOLNXZKY4VWFHNJZWUSYCQC
Technical information
Fees:
2,526
bytes
(451 headers, 2075 payload)
Level:
7605590
Witnessed level:
7605581
Last ball unit:
uzv554Hx0SWDRThRUSPLikdlJGzdurb8PlI5qe1RWDI=
Main chain index:
7291628
Latest included mc index:
7291627
Status:
stable/confirmed/final