tx · 45CNgQ5pyFHg5RY2xRwFQCCfDx32otwFyqcKtoirfWKP

3N6qtbZbSPVcvJ1pk87e9ahdsZTjHN8e5mL:  -0.01000000 Waves

2021.08.08 18:59 [1649581] smart account 3N6qtbZbSPVcvJ1pk87e9ahdsZTjHN8e5mL > SELF 0.00000000 Waves

{ "type": 13, "id": "45CNgQ5pyFHg5RY2xRwFQCCfDx32otwFyqcKtoirfWKP", "fee": 1000000, "feeAssetId": null, "timestamp": 1628438402667, "version": 2, "chainId": 84, "sender": "3N6qtbZbSPVcvJ1pk87e9ahdsZTjHN8e5mL", "senderPublicKey": "EYAKsFBespqQveBrfmX29rsehBJrSwQ3B6yN4ADyw8Kx", "proofs": [ "4BF2FLDh68txN4craNb2jLyxyuPHH5VJ2fMfeNpJLKCB7tYUxjEcPVkEp7DpPpmMhFmhQqeMHPSSnkXJggHRsVXz" ], "script": "base64:AAIFAAAAAAAAAeEIAhIGCgQYERIBGgcKAmExEgFpGhAKAmEyEgpleGNoYW5nZXJzGgoKAmEzEgRhcmdzGg4KAmE0Eghhc3NldFBheRoYCgJhNRISbWluQW1vdW50VG9SZWNlaXZlGg8KAmE2EgkkdDA2MjQ2OTkaDwoCYTcSCXBtdEFtb3VudBoQCgJhOBIKcG10QXNzZXRJZBoRCgJhORILcm91dGluZ1NpemUaEgoCYjESDGV4Y2hhbmdlRm9sZBoRCgJiMhILYWNjdW11bGF0ZWQaDwoCYjMSCWV4Y2hhbmdlchoWCgJiNBIQZXhjaGFuZ2VyQWRkcmVzcxoJCgJiNRIDaW52Gg0KAmI2Egdyb3V0aW5nGhMKAmI3Eg0kbGlzdDEyNDYxMjgyGhMKAmI4Eg0kc2l6ZTEyNDYxMjgyGhMKAmI5Eg0kYWNjMDEyNDYxMjgyGhMKAmMxEg0kYWNjMTEyNDYxMjgyGhMKAmMyEg0kYWNjMjEyNDYxMjgyGhMKAmMzEg0kYWNjMzEyNDYxMjgyGhMKAmM0Eg0kYWNjNDEyNDYxMjgyGhMKA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AAAmIxAAAAAgUAAAACYzEJAAGRAAAAAgUAAAACYjcAAAAAAAAAAAEDCQAAAAAAAAIFAAAAAmI4AAAAAAAAAAACBQAAAAJjMgQAAAACYzMJAQAAAAJiMQAAAAIFAAAAAmMyCQABkQAAAAIFAAAAAmI3AAAAAAAAAAACAwkAAAAAAAACBQAAAAJiOAAAAAAAAAAAAwUAAAACYzMEAAAAAmM0CQEAAAACYjEAAAACBQAAAAJjMwkAAZEAAAACBQAAAAJiNwAAAAAAAAAAAwMJAAAAAAAAAgUAAAACYjgAAAAAAAAAAAQFAAAAAmM0BAAAAAJjNQkBAAAAAmIxAAAAAgUAAAACYzQJAAGRAAAAAgUAAAACYjcAAAAAAAAAAAQDCQAAAAAAAAIFAAAAAmI4AAAAAAAAAAAFBQAAAAJjNQQAAAACYzYJAQAAAAJiMQAAAAIFAAAAAmM1CQABkQAAAAIFAAAAAmI3AAAAAAAAAAAFCQAAAgAAAAECAAAAEkxpc3Qgc2l6ZSBleGNlZWQgNQMJAAAAAAAAAgUAAAACYjYFAAAAAmE5BAAAAAJjNwkAA/AAAAACBQAAAAR0aGlzCQABkQAAAAIFAAAAAmE0CQAAZQAAAAIFAAAAAmE5AAAAAAAAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAJhMQAAAAZjYWxsZXIFAAAAAmM3CQABkQAAAAIFAAAAAmE0CQAAZQAAAAIFAAAAAmE5AAAAAAAAAAABBQAAAANuaWwFAAAAA25pbAAAAAAJIk5A", "height": 1649581, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8kKJUoAf8dmfUvFrpsRsZBx7spq5Ar4qagEkhb1KdneE Next: 7J7K9EBfMs6XNaeLgQ4GKWzNwgKhxtGrYHemJ1Fojs8z Diff:
OldNewDifferences
1212 func j (k,l) = if ((i > k))
1313 then {
1414 let m = addressFromStringValue(l)
15- let n = {
16- let o = h
17- if ($isInstanceOf(o, "ByteVector"))
18- then {
19- let p = o
20- value(fromBase58String(toBase58String(p)))
21- }
22- else if ($isInstanceOf(o, "Unit"))
23- then {
24- let q = o
25- q
26- }
27- else throw("Match error")
28- }
29- let r = invoke(m, "exchange", [c[k]], [AttachedPayment(n, 100000)])
30- if ((r == r))
15+ let n = invoke(m, "exchange", [c[k]], [AttachedPayment(h, 100000)])
16+ if ((n == n))
3117 then (k + 1)
3218 else throw("Strict value is not equal to itself.")
3319 }
3420 else k
3521
36- let s = {
37- let t = b
38- let u = size(t)
39- let v = 0
40- if ((u == 0))
41- then v
22+ let o = {
23+ let p = b
24+ let q = size(p)
25+ let r = 0
26+ if ((q == 0))
27+ then r
4228 else {
43- let w = j(v, t[0])
44- if ((u == 1))
45- then w
29+ let s = j(r, p[0])
30+ if ((q == 1))
31+ then s
4632 else {
47- let x = j(w, t[1])
48- if ((u == 2))
49- then x
33+ let t = j(s, p[1])
34+ if ((q == 2))
35+ then t
5036 else {
51- let y = j(x, t[2])
52- if ((u == 3))
53- then y
37+ let u = j(t, p[2])
38+ if ((q == 3))
39+ then u
5440 else {
55- let z = j(y, t[3])
56- if ((u == 4))
57- then z
41+ let v = j(u, p[3])
42+ if ((q == 4))
43+ then v
5844 else {
59- let A = j(z, t[4])
60- if ((u == 5))
61- then A
45+ let w = j(v, p[4])
46+ if ((q == 5))
47+ then w
6248 else {
63- let B = j(A, t[5])
49+ let x = j(w, p[5])
6450 throw("List size exceed 5")
6551 }
6652 }
6955 }
7056 }
7157 }
72- if ((s == i))
58+ if ((o == i))
7359 then {
74- let C = assetBalance(this, d[(i - 1)])
75-[ScriptTransfer(a.caller, C, d[(i - 1)])]
60+ let y = assetBalance(this, d[(i - 1)])
61+[ScriptTransfer(a.caller, y, d[(i - 1)])]
7662 }
7763 else nil
7864 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func routingTrade (b,c,d,e) = {
88 let f = $Tuple2(a.payments[0].amount, a.payments[0].assetId)
99 let g = f._1
1010 let h = f._2
1111 let i = size(b)
1212 func j (k,l) = if ((i > k))
1313 then {
1414 let m = addressFromStringValue(l)
15- let n = {
16- let o = h
17- if ($isInstanceOf(o, "ByteVector"))
18- then {
19- let p = o
20- value(fromBase58String(toBase58String(p)))
21- }
22- else if ($isInstanceOf(o, "Unit"))
23- then {
24- let q = o
25- q
26- }
27- else throw("Match error")
28- }
29- let r = invoke(m, "exchange", [c[k]], [AttachedPayment(n, 100000)])
30- if ((r == r))
15+ let n = invoke(m, "exchange", [c[k]], [AttachedPayment(h, 100000)])
16+ if ((n == n))
3117 then (k + 1)
3218 else throw("Strict value is not equal to itself.")
3319 }
3420 else k
3521
36- let s = {
37- let t = b
38- let u = size(t)
39- let v = 0
40- if ((u == 0))
41- then v
22+ let o = {
23+ let p = b
24+ let q = size(p)
25+ let r = 0
26+ if ((q == 0))
27+ then r
4228 else {
43- let w = j(v, t[0])
44- if ((u == 1))
45- then w
29+ let s = j(r, p[0])
30+ if ((q == 1))
31+ then s
4632 else {
47- let x = j(w, t[1])
48- if ((u == 2))
49- then x
33+ let t = j(s, p[1])
34+ if ((q == 2))
35+ then t
5036 else {
51- let y = j(x, t[2])
52- if ((u == 3))
53- then y
37+ let u = j(t, p[2])
38+ if ((q == 3))
39+ then u
5440 else {
55- let z = j(y, t[3])
56- if ((u == 4))
57- then z
41+ let v = j(u, p[3])
42+ if ((q == 4))
43+ then v
5844 else {
59- let A = j(z, t[4])
60- if ((u == 5))
61- then A
45+ let w = j(v, p[4])
46+ if ((q == 5))
47+ then w
6248 else {
63- let B = j(A, t[5])
49+ let x = j(w, p[5])
6450 throw("List size exceed 5")
6551 }
6652 }
6753 }
6854 }
6955 }
7056 }
7157 }
72- if ((s == i))
58+ if ((o == i))
7359 then {
74- let C = assetBalance(this, d[(i - 1)])
75-[ScriptTransfer(a.caller, C, d[(i - 1)])]
60+ let y = assetBalance(this, d[(i - 1)])
61+[ScriptTransfer(a.caller, y, d[(i - 1)])]
7662 }
7763 else nil
7864 }
7965
8066

github/deemru/w8io/026f985 
42.28 ms