tx · Ca66mpEXSrbvRDtuvEMVGJ2SQ3GRfcrBy7rJXboDTjtS

3N11gzZic4yASFhatzjC8zvLnpNhDo2B1Rv:  -0.01000000 Waves

2023.10.07 15:53 [2788236] smart account 3N11gzZic4yASFhatzjC8zvLnpNhDo2B1Rv > SELF 0.00000000 Waves

{ "type": 13, "id": "Ca66mpEXSrbvRDtuvEMVGJ2SQ3GRfcrBy7rJXboDTjtS", "fee": 1000000, "feeAssetId": null, "timestamp": 1696683191340, "version": 2, "chainId": 84, "sender": "3N11gzZic4yASFhatzjC8zvLnpNhDo2B1Rv", "senderPublicKey": "EnUXxxhBK8wUfh1FveDYv9G5HBMXop6YwZWzVrBrLo2i", "proofs": [ "5EASWq5sgkZxuhZFdCyaC4kQN5dEVu3MEzrnYNXMw2wtGFuBVQg1W9xrhd8DMRZMw5ULCTKhUZtthj37kjL8rg3X" ], "script": "base64:BgIJCAISBQoDAQEYBAELd3JpdGVTdHJpbmcCA2tleQtzdHJpbmdWYWx1ZQkBC1N0cmluZ0VudHJ5AgUDa2V5BQtzdHJpbmdWYWx1ZQENc3BsaXRDZm1tSnNvbgEFZW50cnkJALUJAgUFZW50cnkCAS8BF2NhbGNFeGNlc3NBbW91bnRQZXJDZm1tAgpkaWZmZXJlbmNlC251bWJlckNmbW1zBAhxdW90aWVudAkAaQIFCmRpZmZlcmVuY2UFC251bWJlckNmbW1zBBZ0b3RhbERpc3RyaWJ1dGVkQW1vdW50CQBoAgUIcXVvdGllbnQFC251bWJlckNmbW1zBA9yZW1haW5pbmdBbW91bnQJAGUCBQpkaWZmZXJlbmNlBRZ0b3RhbERpc3RyaWJ1dGVkQW1vdW50AwkAZgIFD3JlbWFpbmluZ0Ftb3VudAAACQCUCgIFCHF1b3RpZW50BQ9yZW1haW5pbmdBbW91bnQJAJQKAgUIcXVvdGllbnQAAAEaZGlzdHJpYnV0ZUFkZGl0aW9uYWxUb2tlbnMCBXN3YXBzBGRpZmYECnRvdGFsU3dhcHMJAJADAQUFc3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wcwkAuQkCBQ1hZGp1c3RlZFN3YXBzAgEsBQNuaWwBAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5IJu4Tg==", "height": 2788236, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3KojrtqfHoJe5euPC8h4gvhNLqnDSfti6yXYZXrxvWeJ Next: GCWgDzrBFEqFBNMmL57vUrn5y7ow2tbAmFnFqcmRZJmU Diff:
OldNewDifferences
88
99
1010 func f (g,h) = {
11- let i = size(g)
12- func j (k,l) = {
13- let m = k
14- let n = m._1
15- let o = m._2
16- let p = d(l)
17- let q = parseInt(p[2])
18- let r = q
19- if ($isInstanceOf(r, "Int"))
11+ let i = (g / h)
12+ let j = (i * h)
13+ let k = (g - j)
14+ if ((k > 0))
15+ then $Tuple2(i, k)
16+ else $Tuple2(i, 0)
17+ }
18+
19+
20+func l (m,n) = {
21+ let o = size(m)
22+ let p = f(n, o)
23+ let i = p._1
24+ let k = p._2
25+ func q (r,s) = {
26+ let t = r
27+ let u = t._1
28+ let v = t._2
29+ let w = d(s)
30+ let x = parseInt(w[2])
31+ let y = x
32+ if ($isInstanceOf(y, "Int"))
2033 then {
21- let s = r
22- let t = {
23- let u = (o / ((i - size(n)) + 1))
24- let v = u
25- if ($isInstanceOf(v, "Int"))
26- then {
27- let w = v
28- if ((o > 0))
29- then min([s, w])
30- else if ((0 > o))
31- then max([(-(s) + 1), w])
32- else 0
33- }
34- else throw("Wrong datatype")
35- }
36- let x = max([1, (s + t)])
37- let y = ((((p[0] + "/") + p[1]) + "/") + toString(x))
38- $Tuple2((n :+ y), (o - (t * ((i - size(n)) + 1))))
34+ let z = y
35+ let A = if ((v > 0))
36+ then ((z + i) + 1)
37+ else (z + i)
38+ let B = ((((w[0] + "/") + w[1]) + "/") + toString(A))
39+ let C = if ((v > 0))
40+ then (v - 1)
41+ else v
42+ $Tuple2((u :+ B), C)
3943 }
4044 else throw("Input has wrong datatype!")
4145 }
4246
43- let z = g
44- let A = size(z)
45- let B = $Tuple2(nil, h)
46- func C (D,E) = if ((E >= A))
47- then D
48- else j(D, z[E])
47+ let D = m
48+ let E = size(D)
49+ let F = $Tuple2(nil, k)
50+ func G (H,I) = if ((I >= E))
51+ then H
52+ else q(H, D[I])
4953
50- func F (D,E) = if ((E >= A))
51- then D
54+ func J (H,I) = if ((I >= E))
55+ then H
5256 else throw("List size exceeds 40")
5357
54- F(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(B, 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)
58+ 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(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)
5559 }
5660
5761
58-@Callable(G)
59-func call (H,I,g) = {
60- let h = (I - H)
61- let n = if ((h != 0))
62- then f(g, h)._1
63- else g
64-[a("swaps", makeString(g, ",")), a("adjustedSwaps", makeString(n, ","))]
62+@Callable(K)
63+func call (L,M,m) = {
64+ let n = (M - L)
65+ let u = if ((n > 0))
66+ then l(m, n)._1
67+ else m
68+[a("swaps", makeString(m, ",")), a("adjustedSwaps", makeString(u, ","))]
6569 }
6670
6771
68-@Verifier(J)
69-func K () = sigVerify(J.bodyBytes, J.proofs[0], J.senderPublicKey)
72+@Verifier(N)
73+func O () = sigVerify(N.bodyBytes, N.proofs[0], N.senderPublicKey)
7074
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b,c) = StringEntry(b, c)
55
66
77 func d (e) = split(e, "/")
88
99
1010 func f (g,h) = {
11- let i = size(g)
12- func j (k,l) = {
13- let m = k
14- let n = m._1
15- let o = m._2
16- let p = d(l)
17- let q = parseInt(p[2])
18- let r = q
19- if ($isInstanceOf(r, "Int"))
11+ let i = (g / h)
12+ let j = (i * h)
13+ let k = (g - j)
14+ if ((k > 0))
15+ then $Tuple2(i, k)
16+ else $Tuple2(i, 0)
17+ }
18+
19+
20+func l (m,n) = {
21+ let o = size(m)
22+ let p = f(n, o)
23+ let i = p._1
24+ let k = p._2
25+ func q (r,s) = {
26+ let t = r
27+ let u = t._1
28+ let v = t._2
29+ let w = d(s)
30+ let x = parseInt(w[2])
31+ let y = x
32+ if ($isInstanceOf(y, "Int"))
2033 then {
21- let s = r
22- let t = {
23- let u = (o / ((i - size(n)) + 1))
24- let v = u
25- if ($isInstanceOf(v, "Int"))
26- then {
27- let w = v
28- if ((o > 0))
29- then min([s, w])
30- else if ((0 > o))
31- then max([(-(s) + 1), w])
32- else 0
33- }
34- else throw("Wrong datatype")
35- }
36- let x = max([1, (s + t)])
37- let y = ((((p[0] + "/") + p[1]) + "/") + toString(x))
38- $Tuple2((n :+ y), (o - (t * ((i - size(n)) + 1))))
34+ let z = y
35+ let A = if ((v > 0))
36+ then ((z + i) + 1)
37+ else (z + i)
38+ let B = ((((w[0] + "/") + w[1]) + "/") + toString(A))
39+ let C = if ((v > 0))
40+ then (v - 1)
41+ else v
42+ $Tuple2((u :+ B), C)
3943 }
4044 else throw("Input has wrong datatype!")
4145 }
4246
43- let z = g
44- let A = size(z)
45- let B = $Tuple2(nil, h)
46- func C (D,E) = if ((E >= A))
47- then D
48- else j(D, z[E])
47+ let D = m
48+ let E = size(D)
49+ let F = $Tuple2(nil, k)
50+ func G (H,I) = if ((I >= E))
51+ then H
52+ else q(H, D[I])
4953
50- func F (D,E) = if ((E >= A))
51- then D
54+ func J (H,I) = if ((I >= E))
55+ then H
5256 else throw("List size exceeds 40")
5357
54- F(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(C(B, 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)
58+ 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(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)
5559 }
5660
5761
58-@Callable(G)
59-func call (H,I,g) = {
60- let h = (I - H)
61- let n = if ((h != 0))
62- then f(g, h)._1
63- else g
64-[a("swaps", makeString(g, ",")), a("adjustedSwaps", makeString(n, ","))]
62+@Callable(K)
63+func call (L,M,m) = {
64+ let n = (M - L)
65+ let u = if ((n > 0))
66+ then l(m, n)._1
67+ else m
68+[a("swaps", makeString(m, ",")), a("adjustedSwaps", makeString(u, ","))]
6569 }
6670
6771
68-@Verifier(J)
69-func K () = sigVerify(J.bodyBytes, J.proofs[0], J.senderPublicKey)
72+@Verifier(N)
73+func O () = sigVerify(N.bodyBytes, N.proofs[0], N.senderPublicKey)
7074

github/deemru/w8io/169f3d6 
84.30 ms