tx · GQkSzkfpfKuDezTo4a9ZWEw2Y963pkrp7nMJz1F8svDG

3MyswDZXU8YcgX1dfuQgAjitWPJ3cggU2PR:  -0.01000000 Waves

2021.12.22 22:01 [1845860] smart account 3MyswDZXU8YcgX1dfuQgAjitWPJ3cggU2PR > SELF 0.00000000 Waves

{ "type": 13, "id": "GQkSzkfpfKuDezTo4a9ZWEw2Y963pkrp7nMJz1F8svDG", "fee": 1000000, "feeAssetId": null, "timestamp": 1640199670340, "version": 2, "chainId": 84, "sender": "3MyswDZXU8YcgX1dfuQgAjitWPJ3cggU2PR", "senderPublicKey": "JBFUVQjjvtMqXZeeeJLQyEP8RPmvMWbZHyCfGFnrmWJZ", "proofs": [ "3VvP6WZCuKCtk7oYKj26aSngjsnVe6kVWk4pt9ZRvDUvKmQgrFSTQF75zTfUjTJEtA5YsTDC2zMJiMLJWMfVc8CN" ], "script": "base64:AAIFAAAAAAAAAgcIAhIFCgMICAgaFAoBQRIPY2FsY1RvdGFsUmV3YXJkGg8KAUISCm5ld0JhbGFuY2UaEgoBQxINbmV3U2F2ZVJld2FyZBoGCgFhEgFpGgsKAWISBmFjdGlvbhoJCgFjEgR0eXBlGhAKAWQSC3ZhbHVlQWN0aW9uGhIKAWUSDXRyYW5zYWN0aW9uSWQaFwoBZhISY3VycmVudFdhbGxldEJ5dGVzGg4KAWcSCXBheUFtb3VudBoSCgFoEg1jdXJyZW50V2FsbGV0GgwKAWkSB25hbWVOZnQaDgoBahIJdGltZXN0YW1wGhAKAWsSC2V4YW5CYWxhbmNlGgwKAWwSByRtYXRjaDAaBgoBbRIBdBoMCgFuEgdiYWxhbmNlGg8KAW8SCmhpc3RvcmljSWQaFAoBcBIPaW5pdGlhbFBvd2VyTmZ0GgoKAXESBXBvd2VyGg0KAXISCG5mdFBvd2VyGhQKAXMSD3Jld2FyZFRpbWVzdGFtcBoPCgF0EgpzYXZlUmV3YXJkGhUKAXUSEG5ld1Rva2VuUHVyY2hhc2UaFQoBdhIQdG90YWxF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NON1ltMVdLM1phRnA3VmZqdno2S0ZSR0Y2QXhzQVhtNzZXBwkAAAAAAAACBQAAAAFnAAAAAAAAD0JABwkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAHQWRkcmVzcwAAAAEJAAJZAAAAAQUAAAABYwAAAAAAAAAAAQkAAlkAAAABBQAAAAFkBQAAAANuaWwDAwMJAAAAAAAAAgUAAAABYgIAAAAHUmVxdWVzdAkAAGYAAAACBQAAAAFBAAAAAAAAAAAABwkAAAAAAAACBQAAAAFnAAAAAAAAD0JABwkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACAgAAAA1iYWxhbmNlX2V4YW5fBQAAAAFoBQAAAAFCCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAICAAAAEXJld2FyZF90aW1lc3RhbXBfBQAAAAFoBQAAAAF4CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAICAAAADHNhdmVfcmV3YXJkXwUAAAABaAAAAAAAAAAAAAUAAAADbmlsCQAAAgAAAAECAAAAXldlIHdlcmUgdW5hYmxlIHRvIGZ1bGZpbGwgeW91ciByZXF1ZXN0ISBNYWtlIHN1cmUgeW91IGhhdmUgZW5vdWdoIGJhbGFuY2UgZm9yIHRoZSB0cmFuc2FjdGlvbiEAAAAAR2JjIA==", "height": 1845860, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 42yeq2QMRqJWxt1Y73nTeJ5C3pzMa9ATEvkPtPetJoJg Next: 5b21zdMqf2sbpgBmpPoMFDEvssfCvG675sBYAQP8mt1n Diff:
OldNewDifferences
1212 let i = ((((((("nft_" + c) + "_") + take(e, 10)) + "_") + h) + "_") + e)
1313 let j = take(toString(lastBlock.timestamp), 10)
1414 let k = {
15+ let l = getInteger(this, ("exan_balance_" + h))
16+ if ($isInstanceOf(l, "Int"))
17+ then {
18+ let m = l
19+ m
20+ }
21+ else 0
22+ }
23+ let n = {
1524 let l = getInteger(this, ("balance_exan_" + h))
1625 if ($isInstanceOf(l, "Int"))
1726 then {
2029 }
2130 else 0
2231 }
23- let n = {
32+ let o = {
2433 let l = getInteger(this, "historicId")
2534 if ($isInstanceOf(l, "Int"))
2635 then {
2938 }
3039 else 0
3140 }
32- let o = {
41+ let p = {
3342 let l = getInteger(this, ("List_NFT_" + c))
3443 if ($isInstanceOf(l, "Int"))
3544 then {
3847 }
3948 else 0
4049 }
41- let p = {
50+ let q = {
4251 let l = getInteger(this, ("power_" + h))
4352 if ($isInstanceOf(l, "Int"))
4453 then {
4756 }
4857 else 0
4958 }
50- let q = {
59+ let r = {
5160 let l = getInteger(this, d)
5261 if ($isInstanceOf(l, "Int"))
5362 then {
5665 }
5766 else 0
5867 }
59- let r = {
68+ let s = {
6069 let l = getInteger(this, ("reward_timestamp_" + h))
6170 if ($isInstanceOf(l, "Int"))
6271 then {
6574 }
6675 else 0
6776 }
68- let s = {
77+ let t = {
6978 let l = getInteger(this, ("save_reward_" + h))
7079 if ($isInstanceOf(l, "Int"))
7180 then {
7483 }
7584 else 0
7685 }
77- let t = (a.payments[0].amount * 10000)
78- let u = (p + o)
79- let v = parseIntValue(j)
80- let w = (v - r)
81- let x = if ((p > 0))
82- then (86400 / (p / 100))
86+ let u = (a.payments[0].amount * 10000)
87+ let v = (k + u)
88+ let w = (q + p)
89+ let x = parseIntValue(j)
90+ let y = (x - s)
91+ let z = if ((q > 0))
92+ then (86400 / (q / 100))
8393 else 0
84- let y = if ((x > 0))
85- then ((w * 100000000) / x)
94+ let A = if ((z > 0))
95+ then ((y * 100000000) / z)
8696 else 0
87- let z = ((k + y) + s)
88- let A = if ((p == 0))
97+ let B = ((n + A) + t)
98+ let C = if ((q == 0))
8999 then 0
90- else (s + y)
100+ else (t + A)
91101 if ((b == "Buy Tokens"))
92- then [IntegerEntry(((("token_balance_" + h) + "_") + e), t)]
102+ then [IntegerEntry(("exan_balance_" + h), v), IntegerEntry(((("buy_tokens_" + h) + "_") + e), u)]
93103 else if (if ((b == "Buy NFT"))
94- then ((g / 100000) == o)
104+ then ((g / 100000) == p)
95105 else false)
96- then [Issue(((take(c, 6) + "_") + take(e, 9)), "", 1, 0, false), IntegerEntry(i, o), IntegerEntry(("power_" + h), u), IntegerEntry(("reward_timestamp_" + h), v), IntegerEntry(("save_reward_" + h), A)]
106+ then [Issue(((take(c, 6) + "_") + take(e, 9)), "", 1, 0, false), IntegerEntry(i, p), IntegerEntry(("power_" + h), w), IntegerEntry(("reward_timestamp_" + h), x), IntegerEntry(("save_reward_" + h), C)]
97107 else if (if (if ((b == "Send NFT"))
98108 then (h == "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W")
99109 else false)
101111 else false)
102112 then [ScriptTransfer(Address(fromBase58String(c)), 1, fromBase58String(d))]
103113 else if (if (if ((b == "Request"))
104- then (y > 0)
114+ then (A > 0)
105115 else false)
106116 then (g == 1000000)
107117 else false)
108- then [IntegerEntry(("balance_exan_" + h), z), IntegerEntry(("reward_timestamp_" + h), v), IntegerEntry(("save_reward_" + h), 0)]
118+ then [IntegerEntry(("balance_exan_" + h), B), IntegerEntry(("reward_timestamp_" + h), x), IntegerEntry(("save_reward_" + h), 0)]
109119 else throw("We were unable to fulfill your request! Make sure you have enough balance for the transaction!")
110120 }
111121
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) = {
88 let e = toBase58String(a.transactionId)
99 let f = a.caller
1010 let g = value(a.payments[0].amount)
1111 let h = toBase58String(a.caller.bytes)
1212 let i = ((((((("nft_" + c) + "_") + take(e, 10)) + "_") + h) + "_") + e)
1313 let j = take(toString(lastBlock.timestamp), 10)
1414 let k = {
15+ let l = getInteger(this, ("exan_balance_" + h))
16+ if ($isInstanceOf(l, "Int"))
17+ then {
18+ let m = l
19+ m
20+ }
21+ else 0
22+ }
23+ let n = {
1524 let l = getInteger(this, ("balance_exan_" + h))
1625 if ($isInstanceOf(l, "Int"))
1726 then {
1827 let m = l
1928 m
2029 }
2130 else 0
2231 }
23- let n = {
32+ let o = {
2433 let l = getInteger(this, "historicId")
2534 if ($isInstanceOf(l, "Int"))
2635 then {
2736 let m = l
2837 m
2938 }
3039 else 0
3140 }
32- let o = {
41+ let p = {
3342 let l = getInteger(this, ("List_NFT_" + c))
3443 if ($isInstanceOf(l, "Int"))
3544 then {
3645 let m = l
3746 m
3847 }
3948 else 0
4049 }
41- let p = {
50+ let q = {
4251 let l = getInteger(this, ("power_" + h))
4352 if ($isInstanceOf(l, "Int"))
4453 then {
4554 let m = l
4655 m
4756 }
4857 else 0
4958 }
50- let q = {
59+ let r = {
5160 let l = getInteger(this, d)
5261 if ($isInstanceOf(l, "Int"))
5362 then {
5463 let m = l
5564 m
5665 }
5766 else 0
5867 }
59- let r = {
68+ let s = {
6069 let l = getInteger(this, ("reward_timestamp_" + h))
6170 if ($isInstanceOf(l, "Int"))
6271 then {
6372 let m = l
6473 m
6574 }
6675 else 0
6776 }
68- let s = {
77+ let t = {
6978 let l = getInteger(this, ("save_reward_" + h))
7079 if ($isInstanceOf(l, "Int"))
7180 then {
7281 let m = l
7382 m
7483 }
7584 else 0
7685 }
77- let t = (a.payments[0].amount * 10000)
78- let u = (p + o)
79- let v = parseIntValue(j)
80- let w = (v - r)
81- let x = if ((p > 0))
82- then (86400 / (p / 100))
86+ let u = (a.payments[0].amount * 10000)
87+ let v = (k + u)
88+ let w = (q + p)
89+ let x = parseIntValue(j)
90+ let y = (x - s)
91+ let z = if ((q > 0))
92+ then (86400 / (q / 100))
8393 else 0
84- let y = if ((x > 0))
85- then ((w * 100000000) / x)
94+ let A = if ((z > 0))
95+ then ((y * 100000000) / z)
8696 else 0
87- let z = ((k + y) + s)
88- let A = if ((p == 0))
97+ let B = ((n + A) + t)
98+ let C = if ((q == 0))
8999 then 0
90- else (s + y)
100+ else (t + A)
91101 if ((b == "Buy Tokens"))
92- then [IntegerEntry(((("token_balance_" + h) + "_") + e), t)]
102+ then [IntegerEntry(("exan_balance_" + h), v), IntegerEntry(((("buy_tokens_" + h) + "_") + e), u)]
93103 else if (if ((b == "Buy NFT"))
94- then ((g / 100000) == o)
104+ then ((g / 100000) == p)
95105 else false)
96- then [Issue(((take(c, 6) + "_") + take(e, 9)), "", 1, 0, false), IntegerEntry(i, o), IntegerEntry(("power_" + h), u), IntegerEntry(("reward_timestamp_" + h), v), IntegerEntry(("save_reward_" + h), A)]
106+ then [Issue(((take(c, 6) + "_") + take(e, 9)), "", 1, 0, false), IntegerEntry(i, p), IntegerEntry(("power_" + h), w), IntegerEntry(("reward_timestamp_" + h), x), IntegerEntry(("save_reward_" + h), C)]
97107 else if (if (if ((b == "Send NFT"))
98108 then (h == "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W")
99109 else false)
100110 then (g == 1000000)
101111 else false)
102112 then [ScriptTransfer(Address(fromBase58String(c)), 1, fromBase58String(d))]
103113 else if (if (if ((b == "Request"))
104- then (y > 0)
114+ then (A > 0)
105115 else false)
106116 then (g == 1000000)
107117 else false)
108- then [IntegerEntry(("balance_exan_" + h), z), IntegerEntry(("reward_timestamp_" + h), v), IntegerEntry(("save_reward_" + h), 0)]
118+ then [IntegerEntry(("balance_exan_" + h), B), IntegerEntry(("reward_timestamp_" + h), x), IntegerEntry(("save_reward_" + h), 0)]
109119 else throw("We were unable to fulfill your request! Make sure you have enough balance for the transaction!")
110120 }
111121
112122

github/deemru/w8io/169f3d6 
44.03 ms