tx · 9BpCvCuAiyqx1LXS1VfVa4Dbq8VXccnedFLxZZ9rWEtr

3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez:  -0.00100000 Waves

2023.10.31 15:25 [2822819] smart account 3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez > SELF 0.00000000 Waves

{ "type": 13, "id": "9BpCvCuAiyqx1LXS1VfVa4Dbq8VXccnedFLxZZ9rWEtr", "fee": 100000, "feeAssetId": null, "timestamp": 1698755167185, "version": 2, "chainId": 84, "sender": "3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez", "senderPublicKey": "Brp6cacBXyKUcZr5Uc6VDKsnFcaEeQ8nQzrZQyobDsuf", "proofs": [ "5b5y5J9knSgDUbngTndMboPa1sd3iZj9XLfAoutLzyqRY3sUa2sktbK5znWFuM1nh28BgszLGZZbg2fkYetoGt3B" ], "script": "base64:BgIECAISAAABAWkBBG1ha2UABAhtYWtlTGlzdAkAzAgCCQERQGV4dHJOYXRpdmUoMTA1OCkBAh5saXN0IGVuZGVkIDI4MjI1MzEgYm9vc3RpbmdJZHMFA25pbAQLZmlyc3RPZkxpc3QJAJEDAgUIbWFrZUxpc3QAAAkAzAgCCQELU3RyaW5nRW50cnkCAg1maXJzdCBvZiBsaXN0BQtmaXJzdE9mTGlzdAUDbmlsAMC0DlM=", "height": 2822819, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AyLVuLvY7SLtVSt8kiTLyUjyLyhHHLFGp8jWtDSd9Ldq Next: BdfkyQmUFNgefDXFi3ZEuPku3J8Y1e5S3v5mJ5rBb38w Full:
OldNewDifferences
1-{-# STDLIB_VERSION 5 #-}
1+{-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53", "55", "56"]
5-
6-let b = 1
7-
8-let c = 10
9-
10-func d (e) = {
11- let f = getInteger(this, e)
12- if ($isInstanceOf(f, "Int"))
13- then {
14- let g = f
15- g
16- }
17- else 0
18- }
194
205
21-func h (e) = {
22- let f = getString(this, e)
23- if ($isInstanceOf(f, "String"))
24- then {
25- let g = f
26- g
27- }
28- else ""
29- }
30-
31-
32-func i (j) = {
33- let f = j
34- if ($isInstanceOf(f, "ByteVector"))
35- then {
36- let g = f
37- toBase58String(g)
38- }
39- else "WAVES"
40- }
41-
42-
43-func k (l) = if ((l == "WAVES"))
44- then unit
45- else fromBase58String(l)
46-
47-
48-func m (n) = {
49- let o = d((("boosting_" + n) + "_lastHeight"))
50- let p = d((("boosting_" + n) + "_finishHeight"))
51- if (if ((o != 0))
52- then (p > o)
53- else false)
54- then {
55- let q = d((("boosting_" + n) + "_blockAmount"))
56- let r = ((min([p, height]) - o) * q)
57-[IntegerEntry((("boosting_" + n) + "_lastHeight"), height), ScriptTransfer(addressFromStringValue(h((("boosting_" + n) + "_poolId"))), r, k(h((("boosting_" + n) + "_assetId"))))]
58- }
59- else nil
60- }
61-
62-
63-func s (n) = {
64- let o = d((("boosting_" + n) + "_lastHeight"))
65- let p = d((("boosting_" + n) + "_finishHeight"))
66- if ((o >= p))
67- then [StringEntry((("list ended " + toString(height)) + " boostingIds"), ((h((("list ended " + toString(height)) + " boostingIds")) + n) + ","))]
68- else nil
69- }
70-
71-
72-@Callable(t)
73-func addBoosting (u,v) = {
74- let w = t.payments[0].amount
75- let j = i(t.payments[0].assetId)
76- let x = (d("global_boostingsAmount") + 1)
77- let n = toString(x)
78- if ((addressFromString(u) == unit))
79- then throw("incorrect pool address")
80- else [IntegerEntry("global_boostingsAmount", x), IntegerEntry((("boosting_" + n) + "_days"), v), IntegerEntry((("boosting_" + n) + "_totalAmount"), w), IntegerEntry((("boosting_" + n) + "_dailyAmount"), (w / v)), IntegerEntry((("boosting_" + n) + "_blockAmount"), (w / ((v * b) * c))), IntegerEntry((("boosting_" + n) + "_startHeight"), height), IntegerEntry((("boosting_" + n) + "_finishHeight"), (height + ((v * b) * c))), IntegerEntry((("boosting_" + n) + "_finishTimestamp"), (lastBlock.timestamp + ((((v * b) * c) * 60) * 1000))), IntegerEntry((("boosting_" + n) + "_lastHeight"), height), StringEntry((("boosting_" + n) + "_assetId"), j), StringEntry((("boosting_" + n) + "_owner"), toString(t.caller)), StringEntry((("boosting_" + n) + "_poolId"), u), StringEntry((("pool_" + u) + "_boostings"), ((h((("pool_" + u) + "_boostings")) + n) + ","))]
81- }
82-
83-
84-
85-@Callable(t)
86-func payBoosting (n) = m(n)
87-
88-
89-
90-@Callable(t)
91-func payBoostings () = {
92- func y (z,A) = {
93- let B = invoke(this, "payBoosting", [A], nil)
94- if ((B == B))
95- then B
96- else throw("Strict value is not equal to itself.")
97- }
98-
99- let C = {
100- let D = a
101- let E = size(D)
102- let F = 0
103- func G (H,I) = if ((I >= E))
104- then H
105- else y(H, D[I])
106-
107- func J (H,I) = if ((I >= E))
108- then H
109- else throw("List size exceeds 100")
110-
111- J(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(F, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100)
112- }
113- if ((C == C))
114- then nil
115- else throw("Strict value is not equal to itself.")
116- }
117-
118-
119-
120-@Callable(t)
121-func getEndedList (n) = s(n)
122-
123-
124-
125-@Callable(t)
126-func getList () = {
127- func y (z,A) = {
128- let B = invoke(this, "getEndedList", [A], nil)
129- if ((B == B))
130- then B
131- else throw("Strict value is not equal to itself.")
132- }
133-
134- let K = {
135- let D = a
136- let E = size(D)
137- let F = 0
138- func G (H,I) = if ((I >= E))
139- then H
140- else y(H, D[I])
141-
142- func J (H,I) = if ((I >= E))
143- then H
144- else throw("List size exceeds 100")
145-
146- J(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(G(F, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100)
147- }
148- if ((K == K))
149- then nil
150- else throw("Strict value is not equal to itself.")
6+@Callable(a)
7+func make () = {
8+ let b = [getStringValue("list ended 2822531 boostingIds")]
9+ let c = b[0]
10+[StringEntry("first of list", c)]
15111 }
15212
15313

github/deemru/w8io/026f985 
46.33 ms