tx · 5m2j4DtUzd7CnkYncT4jzLbPQsUuyawKEo4AHFNqH8Tp

3N6qtbZbSPVcvJ1pk87e9ahdsZTjHN8e5mL:  -0.01000000 Waves

2021.08.08 17:55 [1649517] smart account 3N6qtbZbSPVcvJ1pk87e9ahdsZTjHN8e5mL > SELF 0.00000000 Waves

{ "type": 13, "id": "5m2j4DtUzd7CnkYncT4jzLbPQsUuyawKEo4AHFNqH8Tp", "fee": 1000000, "feeAssetId": null, "timestamp": 1628434552491, "version": 2, "chainId": 84, "sender": "3N6qtbZbSPVcvJ1pk87e9ahdsZTjHN8e5mL", "senderPublicKey": "EYAKsFBespqQveBrfmX29rsehBJrSwQ3B6yN4ADyw8Kx", "proofs": [ "4x43N7Kjb2ZY2ZPpfqKveqbjeJcsmYuqeyhJstn8sptVkY6b8xgLkxCd19YiLDtNFyQnnSMYBkNBqZLHLRq2o98H" ], "script": "base64:AAIFAAAAAAAAAb4IAhIGCgQYERIBGgcKAmExEgFpGhAKAmEyEgpleGNoYW5nZXJzGgoKAmEzEgRhcmdzGg4KAmE0Eghhc3NldFBheRoYCgJhNRISbWluQW1vdW50VG9SZWNlaXZlGg8KAmE2EgkkdDA2MjQ2OTkaDwoCYTcSCXBtdEFtb3VudBoQCgJhOBIKcG10QXNzZXRJZBoRCgJhORILcm91dGluZ1NpemUaEgoCYjESDGV4Y2hhbmdlRm9sZBoRCgJiMhILYWNjdW11bGF0ZWQaDwoCYjMSCWV4Y2hhbmdlchoNCgJiNBIHcm91dGluZxoTCgJiNRINJGxpc3QxMjQyMTI3OBoTCgJiNhINJHNpemUxMjQyMTI3OBoTCgJiNxINJGFjYzAxMjQyMTI3OBoTCgJiOBINJGFjYzExMjQyMTI3OBoTCgJiORINJGFjYzIxMjQyMTI3OBoTCgJjMRINJGFjYzMxMjQyMTI3OBoTCgJjMhINJGFjYzQxMjQyMTI3OBoTCgJjMxINJGFjYzUxMjQyMTI3OBoTCgJjNBINJGFjYzYxMjQyMTI3OBoWCgJjNRIQ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EAwkAAAAAAAACBQAAAAJiNgAAAAAAAAAABQUAAAACYzMEAAAAAmM0CQEAAAACYjEAAAACBQAAAAJjMwkAAZEAAAACBQAAAAJiNQAAAAAAAAAABQkAAAIAAAABAgAAABJMaXN0IHNpemUgZXhjZWVkIDUDCQAAAAAAAAIFAAAAAmI0BQAAAAJhOQQAAAACYzUJAAPwAAAAAgUAAAAEdGhpcwkAAZEAAAACBQAAAAJhNAkAAGUAAAACBQAAAAJhOQAAAAAAAAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAACYTEAAAAGY2FsbGVyBQAAAAJjNQkAAZEAAAACBQAAAAJhNAkAAGUAAAACBQAAAAJhOQAAAAAAAAAAAQUAAAADbmlsBQAAAANuaWwAAAAAWcNAsg==", "height": 1649517, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9qfZffjHD5FhBymKMF7B1z4QBE3YqBPTD8G7G4goTiL9 Next: 5558uDCnSLXMA7tDemRi3hd1NMzyNzNxVRLV8N9ehtXi Diff:
OldNewDifferences
1010 let h = f._2
1111 let i = size(b)
1212 func j (k,l) = if ((i > k))
13- then {
14- let m = addressFromStringValue(l)
15- let n = invoke(m, "exchange", [1], [AttachedPayment(h, g)])
16- if ((n == n))
17- then (k + 1)
18- else throw("Strict value is not equal to itself.")
19- }
13+ then (k + 1)
2014 else k
2115
22- let o = {
23- let p = b
24- let q = size(p)
25- let r = 0
26- if ((q == 0))
27- then r
16+ let m = {
17+ let n = b
18+ let o = size(n)
19+ let p = 0
20+ if ((o == 0))
21+ then p
2822 else {
29- let s = j(r, p[0])
30- if ((q == 1))
31- then s
23+ let q = j(p, n[0])
24+ if ((o == 1))
25+ then q
3226 else {
33- let t = j(s, p[1])
34- if ((q == 2))
35- then t
27+ let r = j(q, n[1])
28+ if ((o == 2))
29+ then r
3630 else {
37- let u = j(t, p[2])
38- if ((q == 3))
39- then u
31+ let s = j(r, n[2])
32+ if ((o == 3))
33+ then s
4034 else {
41- let v = j(u, p[3])
42- if ((q == 4))
43- then v
35+ let t = j(s, n[3])
36+ if ((o == 4))
37+ then t
4438 else {
45- let w = j(v, p[4])
46- if ((q == 5))
47- then w
39+ let u = j(t, n[4])
40+ if ((o == 5))
41+ then u
4842 else {
49- let x = j(w, p[5])
43+ let v = j(u, n[5])
5044 throw("List size exceed 5")
5145 }
5246 }
5549 }
5650 }
5751 }
58- if ((o == i))
52+ if ((m == i))
5953 then {
60- let y = assetBalance(this, d[(i - 1)])
61-[ScriptTransfer(a.caller, y, d[(i - 1)])]
54+ let w = assetBalance(this, d[(i - 1)])
55+[ScriptTransfer(a.caller, w, d[(i - 1)])]
6256 }
6357 else nil
6458 }
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))
13- then {
14- let m = addressFromStringValue(l)
15- let n = invoke(m, "exchange", [1], [AttachedPayment(h, g)])
16- if ((n == n))
17- then (k + 1)
18- else throw("Strict value is not equal to itself.")
19- }
13+ then (k + 1)
2014 else k
2115
22- let o = {
23- let p = b
24- let q = size(p)
25- let r = 0
26- if ((q == 0))
27- then r
16+ let m = {
17+ let n = b
18+ let o = size(n)
19+ let p = 0
20+ if ((o == 0))
21+ then p
2822 else {
29- let s = j(r, p[0])
30- if ((q == 1))
31- then s
23+ let q = j(p, n[0])
24+ if ((o == 1))
25+ then q
3226 else {
33- let t = j(s, p[1])
34- if ((q == 2))
35- then t
27+ let r = j(q, n[1])
28+ if ((o == 2))
29+ then r
3630 else {
37- let u = j(t, p[2])
38- if ((q == 3))
39- then u
31+ let s = j(r, n[2])
32+ if ((o == 3))
33+ then s
4034 else {
41- let v = j(u, p[3])
42- if ((q == 4))
43- then v
35+ let t = j(s, n[3])
36+ if ((o == 4))
37+ then t
4438 else {
45- let w = j(v, p[4])
46- if ((q == 5))
47- then w
39+ let u = j(t, n[4])
40+ if ((o == 5))
41+ then u
4842 else {
49- let x = j(w, p[5])
43+ let v = j(u, n[5])
5044 throw("List size exceed 5")
5145 }
5246 }
5347 }
5448 }
5549 }
5650 }
5751 }
58- if ((o == i))
52+ if ((m == i))
5953 then {
60- let y = assetBalance(this, d[(i - 1)])
61-[ScriptTransfer(a.caller, y, d[(i - 1)])]
54+ let w = assetBalance(this, d[(i - 1)])
55+[ScriptTransfer(a.caller, w, d[(i - 1)])]
6256 }
6357 else nil
6458 }
6559
6660

github/deemru/w8io/026f985 
35.17 ms