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:AAIFAAAAAAAAAeEIAhIGCgQYERIBGgcKAmExEgFpGhAKAmEyEgpleGNoYW5nZXJzGgoKAmEzEgRhcmdzGg4KAmE0Eghhc3NldFBheRoYCgJhNRISbWluQW1vdW50VG9SZWNlaXZlGg8KAmE2EgkkdDA2MjQ2OTkaDwoCYTcSCXBtdEFtb3VudBoQCgJhOBIKcG10QXNzZXRJZBoRCgJhORILcm91dGluZ1NpemUaEgoCYjESDGV4Y2hhbmdlRm9sZBoRCgJiMhILYWNjdW11bGF0ZWQaDwoCYjMSCWV4Y2hhbmdlchoWCgJiNBIQZXhjaGFuZ2VyQWRkcmVzcxoJCgJiNRIDaW52Gg0KAmI2Egdyb3V0aW5nGhMKAmI3Eg0kbGlzdDEyNDYxMjgyGhMKAmI4Eg0kc2l6ZTEyNDYxMjgyGhMKAmI5Eg0kYWNjMDEyNDYxMjgyGhMKAmMxEg0kYWNjMTEyNDYxMjgyGhMKAmMyEg0kYWNjMjEyNDYxMjgyGhMKAmMzEg0kYWNjMzEyNDYxMjgyGhMKAmM0Eg0kYWNjNDEyNDYx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AJjMgkBAAAAAmIxAAAAAgUAAAACYzEJAAGRAAAAAgUAAAACYjcAAAAAAAAAAAEDCQAAAAAAAAIFAAAAAmI4AAAAAAAAAAACBQAAAAJjMgQAAAACYzMJAQAAAAJiMQAAAAIFAAAAAmMyCQABkQAAAAIFAAAAAmI3AAAAAAAAAAACAwkAAAAAAAACBQAAAAJiOAAAAAAAAAAAAwUAAAACYzMEAAAAAmM0CQEAAAACYjEAAAACBQAAAAJjMwkAAZEAAAACBQAAAAJiNwAAAAAAAAAAAwMJAAAAAAAAAgUAAAACYjgAAAAAAAAAAAQFAAAAAmM0BAAAAAJjNQkBAAAAAmIxAAAAAgUAAAACYzQJAAGRAAAAAgUAAAACYjcAAAAAAAAAAAQDCQAAAAAAAAIFAAAAAmI4AAAAAAAAAAAFBQAAAAJjNQQAAAACYzYJAQAAAAJiMQAAAAIFAAAAAmM1CQABkQAAAAIFAAAAAmI3AAAAAAAAAAAFCQAAAgAAAAECAAAAEkxpc3Qgc2l6ZSBleGNlZWQgNQMJAAAAAAAAAgUAAAACYjYFAAAAAmE5BAAAAAJjNwkAA/AAAAACBQAAAAR0aGlzCQABkQAAAAIFAAAAAmE0CQAAZQAAAAIFAAAAAmE5AAAAAAAAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAJhMQAAAAZjYWxsZXIFAAAAAmM3CQABkQAAAAIFAAAAAmE0CQAAZQAAAAIFAAAAAmE5AAAAAAAAAAABBQAAAANuaWwFAAAAA25pbAAAAAAJIk5A",
"height": 1649581,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 8kKJUoAf8dmfUvFrpsRsZBx7spq5Ar4qagEkhb1KdneE
Next: 7J7K9EBfMs6XNaeLgQ4GKWzNwgKhxtGrYHemJ1Fojs8z
Diff:
Old | New | | Differences |
---|
12 | 12 | | func j (k,l) = if ((i > k)) |
---|
13 | 13 | | then { |
---|
14 | 14 | | 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)) |
---|
31 | 17 | | then (k + 1) |
---|
32 | 18 | | else throw("Strict value is not equal to itself.") |
---|
33 | 19 | | } |
---|
34 | 20 | | else k |
---|
35 | 21 | | |
---|
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 |
---|
42 | 28 | | 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 |
---|
46 | 32 | | 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 |
---|
50 | 36 | | 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 |
---|
54 | 40 | | 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 |
---|
58 | 44 | | 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 |
---|
62 | 48 | | else { |
---|
63 | | - | let B = j(A, t[5]) |
---|
| 49 | + | let x = j(w, p[5]) |
---|
64 | 50 | | throw("List size exceed 5") |
---|
65 | 51 | | } |
---|
66 | 52 | | } |
---|
|
69 | 55 | | } |
---|
70 | 56 | | } |
---|
71 | 57 | | } |
---|
72 | | - | if ((s == i)) |
---|
| 58 | + | if ((o == i)) |
---|
73 | 59 | | 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)])] |
---|
76 | 62 | | } |
---|
77 | 63 | | else nil |
---|
78 | 64 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(a) |
---|
7 | 7 | | func routingTrade (b,c,d,e) = { |
---|
8 | 8 | | let f = $Tuple2(a.payments[0].amount, a.payments[0].assetId) |
---|
9 | 9 | | let g = f._1 |
---|
10 | 10 | | let h = f._2 |
---|
11 | 11 | | let i = size(b) |
---|
12 | 12 | | func j (k,l) = if ((i > k)) |
---|
13 | 13 | | then { |
---|
14 | 14 | | 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)) |
---|
31 | 17 | | then (k + 1) |
---|
32 | 18 | | else throw("Strict value is not equal to itself.") |
---|
33 | 19 | | } |
---|
34 | 20 | | else k |
---|
35 | 21 | | |
---|
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 |
---|
42 | 28 | | 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 |
---|
46 | 32 | | 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 |
---|
50 | 36 | | 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 |
---|
54 | 40 | | 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 |
---|
58 | 44 | | 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 |
---|
62 | 48 | | else { |
---|
63 | | - | let B = j(A, t[5]) |
---|
| 49 | + | let x = j(w, p[5]) |
---|
64 | 50 | | throw("List size exceed 5") |
---|
65 | 51 | | } |
---|
66 | 52 | | } |
---|
67 | 53 | | } |
---|
68 | 54 | | } |
---|
69 | 55 | | } |
---|
70 | 56 | | } |
---|
71 | 57 | | } |
---|
72 | | - | if ((s == i)) |
---|
| 58 | + | if ((o == i)) |
---|
73 | 59 | | 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)])] |
---|
76 | 62 | | } |
---|
77 | 63 | | else nil |
---|
78 | 64 | | } |
---|
79 | 65 | | |
---|
80 | 66 | | |
---|