tx · 12Ge9EWPQkiPJFsFfVJsuy3YdnTMveW8AqKtUhVyqV4v

3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W:  -0.01000000 Waves

2021.09.21 18:08 [1712966] smart account 3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W > SELF 0.00000000 Waves

{ "type": 13, "id": "12Ge9EWPQkiPJFsFfVJsuy3YdnTMveW8AqKtUhVyqV4v", "fee": 1000000, "feeAssetId": null, "timestamp": 1632236950566, "version": 2, "chainId": 84, "sender": "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W", "senderPublicKey": "4Tgbt8hFUrh9Ljuh7RR6JU7FGF6Vy8J55djUNpJj8DvX", "proofs": [ "45DU5gWJijYBFQHrE6u5X52P5aEkFUAQvBDwu283aAC5hGDx5CBJkxLsPgoTCFTRFo3XPFhp6tX6pCFNoQBrq8qa" ], "script": "base64:AAIFAAAAAAAAAksIAhIGCgQICAgBGgcKAmExEgFpGgwKAmEyEgZhY3Rpb24aCgoCYTMSBHR5cGUaEQoCYTQSC3ZhbHVlQWN0aW9uGgwKAmE1EgZudW1iZXIaEwoCYTYSDXRyYW5zYWN0aW9uSWQaGAoCYTcSEmN1cnJlbnRXYWxsZXRCeXRlcxoPCgJhOBIJcGF5QW1vdW50GhMKAmE5Eg1jdXJyZW50V2FsbGV0Gg0KAmIxEgduYW1lTmZ0Gg8KAmIyEgl0aW1lc3RhbXAaEAoCYjMSCmJhbGFuY2VTbGkaDQoCYjQSByRtYXRjaDAaBwoCYjUSAXQaEAoCYjYSCmhpc3RvcmljSWQaFQoCYjcSD2luaXRpYWxQb3dlck5mdBoLCgJiOBIFcG93ZXIaDgoCYjkSCG5mdFBvd2VyGhUKAmMxEg9yZXdhcmRUaW1lc3RhbXAaEAoCYzISCnNhdmVSZXdhcmQaEgoCYzMSDHNhdmVXYXJwb2ludBoOCgJjNBIIbmV3UG93ZXIaEAoCYzUSCm5ld1Bvd2VyVXAaGQoCYzY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AAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAB0FkZHJlc3MAAAABCQACWQAAAAEFAAAAAmEzAAAAAAAAAAABCQACWQAAAAEFAAAAAmE0BQAAAANuaWwDAwMJAAAAAAAAAgUAAAACYTICAAAACFBvd2VyIFVwCQEAAAACIT0AAAACBQAAAAJiOQAAAAAAAAAAAAcJAAAAAAAAAgkAAGkAAAACBQAAAAJhOAAAAAAAAAGGoAUAAAACYTUHCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAAJhNAUAAAACYzUJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgIAAAAGcG93ZXJfBQAAAAJhOQUAAAACYzYFAAAAA25pbAMDCQAAAAAAAAIFAAAAAmEyAgAAAAdSZXF1ZXN0CQAAZgAAAAIFAAAAAmQxAAAAAAAAAAAABwkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACAgAAAAxiYWxhbmNlX3NsaV8FAAAAAmE5BQAAAAJkMgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACAgAAABFyZXdhcmRfdGltZXN0YW1wXwUAAAACYTkFAAAAAmM3BQAAAANuaWwJAAACAAAAAQIAAABnTsOjbyBmb2kgcG9zc2l2ZWwgYXRlbmRlciBhIHN1YSBzb2xpY2l0YcOnw6NvISBWZXJpZmlxdWUgc2UgcG9zc3VpIHNhbGRvIHN1ZmljaWVudGUgcGFyYSBhIHRyYW5zYcOnw6NvIQAAAADgoPlF", "height": 1712966, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5NSWewXfJReqXat9sCQEKW3hzXL4J5AvQeLGjyhC6Wue Next: C85KUP26GBjjJGCwux9FJ1LviP8QnsKLNMUHsL1modK1 Diff:
OldNewDifferences
6565 }
6666 else 0
6767 }
68- let t = (q + p)
69- let u = (r + e)
70- let v = (e + q)
71- let w = parseIntValue(k)
72- let x = (w - s)
73- let y = (86400 / (q / 100))
74- let z = ((x * 100000000) / y)
75- let A = (l + z)
68+ let t = {
69+ let m = getInteger(this, ("save_reward_" + i))
70+ if ($isInstanceOf(m, "Int"))
71+ then {
72+ let n = m
73+ n
74+ }
75+ else 0
76+ }
77+ let u = {
78+ let m = getInteger(this, ("save_warpoint_" + i))
79+ if ($isInstanceOf(m, "Int"))
80+ then {
81+ let n = m
82+ n
83+ }
84+ else 0
85+ }
86+ let v = (q + p)
87+ let w = (r + e)
88+ let x = (e + q)
89+ let y = parseIntValue(k)
90+ let z = (y - s)
91+ let A = (86400 / (q / 100))
92+ let B = ((z * 100000000) / A)
93+ let C = (l + B)
94+ let D = (t + B)
95+ let E = (u + z)
7696 if (if ((b == "Buy NFT"))
7797 then ((h / 100000) == p)
7898 else false)
79- then [Issue(((take(c, 6) + "_") + take(f, 9)), "", 1, 0, false), IntegerEntry(j, p), IntegerEntry(("power_" + i), t), IntegerEntry(("reward_timestamp_" + i), w)]
99+ then [Issue(((take(c, 6) + "_") + take(f, 9)), "", 1, 0, false), IntegerEntry(j, p), IntegerEntry(("power_" + i), v), IntegerEntry(("reward_timestamp_" + i), y), IntegerEntry(("save_reward_" + i), D), IntegerEntry(("save_warpoint_" + i), E)]
80100 else if (if ((b == "Send NFT"))
81101 then (i == "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W")
82102 else false)
86106 else false)
87107 then ((h / 100000) == e)
88108 else false)
89- then [IntegerEntry(d, u), IntegerEntry(("power_" + i), v)]
109+ then [IntegerEntry(d, w), IntegerEntry(("power_" + i), x)]
90110 else if (if ((b == "Request"))
91- then (z > 0)
111+ then (B > 0)
92112 else false)
93- then [IntegerEntry(("balance_sli_" + i), A), IntegerEntry(("reward_timestamp_" + i), w)]
113+ then [IntegerEntry(("balance_sli_" + i), C), IntegerEntry(("reward_timestamp_" + i), y)]
94114 else throw("Não foi possivel atender a sua solicitação! Verifique se possui saldo suficiente para a transação!")
95115 }
96116
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func start (b,c,d,e) = {
88 let f = toBase58String(a.transactionId)
99 let g = a.caller
1010 let h = value(a.payments[0].amount)
1111 let i = toBase58String(a.caller.bytes)
1212 let j = ((((((("nft_" + c) + "_") + take(f, 10)) + "_") + i) + "_") + f)
1313 let k = take(toString(lastBlock.timestamp), 10)
1414 let l = {
1515 let m = getInteger(this, ("balance_sli_" + i))
1616 if ($isInstanceOf(m, "Int"))
1717 then {
1818 let n = m
1919 n
2020 }
2121 else 0
2222 }
2323 let o = {
2424 let m = getInteger(this, "historicId")
2525 if ($isInstanceOf(m, "Int"))
2626 then {
2727 let n = m
2828 n
2929 }
3030 else 0
3131 }
3232 let p = {
3333 let m = getInteger(this, ("List_NFT_" + c))
3434 if ($isInstanceOf(m, "Int"))
3535 then {
3636 let n = m
3737 n
3838 }
3939 else 0
4040 }
4141 let q = {
4242 let m = getInteger(this, ("power_" + i))
4343 if ($isInstanceOf(m, "Int"))
4444 then {
4545 let n = m
4646 n
4747 }
4848 else 0
4949 }
5050 let r = {
5151 let m = getInteger(this, d)
5252 if ($isInstanceOf(m, "Int"))
5353 then {
5454 let n = m
5555 n
5656 }
5757 else 0
5858 }
5959 let s = {
6060 let m = getInteger(this, ("reward_timestamp_" + i))
6161 if ($isInstanceOf(m, "Int"))
6262 then {
6363 let n = m
6464 n
6565 }
6666 else 0
6767 }
68- let t = (q + p)
69- let u = (r + e)
70- let v = (e + q)
71- let w = parseIntValue(k)
72- let x = (w - s)
73- let y = (86400 / (q / 100))
74- let z = ((x * 100000000) / y)
75- let A = (l + z)
68+ let t = {
69+ let m = getInteger(this, ("save_reward_" + i))
70+ if ($isInstanceOf(m, "Int"))
71+ then {
72+ let n = m
73+ n
74+ }
75+ else 0
76+ }
77+ let u = {
78+ let m = getInteger(this, ("save_warpoint_" + i))
79+ if ($isInstanceOf(m, "Int"))
80+ then {
81+ let n = m
82+ n
83+ }
84+ else 0
85+ }
86+ let v = (q + p)
87+ let w = (r + e)
88+ let x = (e + q)
89+ let y = parseIntValue(k)
90+ let z = (y - s)
91+ let A = (86400 / (q / 100))
92+ let B = ((z * 100000000) / A)
93+ let C = (l + B)
94+ let D = (t + B)
95+ let E = (u + z)
7696 if (if ((b == "Buy NFT"))
7797 then ((h / 100000) == p)
7898 else false)
79- then [Issue(((take(c, 6) + "_") + take(f, 9)), "", 1, 0, false), IntegerEntry(j, p), IntegerEntry(("power_" + i), t), IntegerEntry(("reward_timestamp_" + i), w)]
99+ then [Issue(((take(c, 6) + "_") + take(f, 9)), "", 1, 0, false), IntegerEntry(j, p), IntegerEntry(("power_" + i), v), IntegerEntry(("reward_timestamp_" + i), y), IntegerEntry(("save_reward_" + i), D), IntegerEntry(("save_warpoint_" + i), E)]
80100 else if (if ((b == "Send NFT"))
81101 then (i == "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W")
82102 else false)
83103 then [ScriptTransfer(Address(fromBase58String(c)), 1, fromBase58String(d))]
84104 else if (if (if ((b == "Power Up"))
85105 then (r != 0)
86106 else false)
87107 then ((h / 100000) == e)
88108 else false)
89- then [IntegerEntry(d, u), IntegerEntry(("power_" + i), v)]
109+ then [IntegerEntry(d, w), IntegerEntry(("power_" + i), x)]
90110 else if (if ((b == "Request"))
91- then (z > 0)
111+ then (B > 0)
92112 else false)
93- then [IntegerEntry(("balance_sli_" + i), A), IntegerEntry(("reward_timestamp_" + i), w)]
113+ then [IntegerEntry(("balance_sli_" + i), C), IntegerEntry(("reward_timestamp_" + i), y)]
94114 else throw("Não foi possivel atender a sua solicitação! Verifique se possui saldo suficiente para a transação!")
95115 }
96116
97117

github/deemru/w8io/026f985 
26.44 ms