tx · BkSbowoKDG625JsvrEkE8g9ZnPMwNWSDjN59dTTsjP6w
3N2eueE5vLLKe8jXuBDbdbKcPaH36yG1Had: -0.14000000 Waves
2022.12.06 10:35 [2348182] smart account 3N2eueE5vLLKe8jXuBDbdbKcPaH36yG1Had > SELF 0.00000000 Waves
{
"type": 13,
"id": "BkSbowoKDG625JsvrEkE8g9ZnPMwNWSDjN59dTTsjP6w",
"fee": 14000000,
"feeAssetId": null,
"timestamp": 1670312159164,
"version": 2,
"chainId": 84,
"sender": "3N2eueE5vLLKe8jXuBDbdbKcPaH36yG1Had",
"senderPublicKey": "EAmZF2D2BbfoPsrMGFAs2UCv8ScAXxhAZRzFpkveca8G",
"proofs": [
"639B1bPniSZmZFC1ZSoQPRmJogRf37ctJdVeH3JqGG6Thhdg58ExjACppyWXkzoKSJn88Ch9dXcrLU41xnmubcHk",
"NGTrzGSQMSTkX4Esz4nYEbhRARYZiLGwBRZNbCKK5ycFsdFkXyevkipNhREoHSJXnW4C3ypcwUky7mSuSbGPnDW"
],
"script": "base64:BgICCAIRAAZvcmFjbGUJAQdBZGRyZXNzAQEaAVRIE5cMwNMzzCUygLYp96dkaICr48x7S5kBE2dldEJhc2U1OEZyb21PcmFjbGUBA2tleQQHJG1hdGNoMAkAnQgCBQZvcmFjbGUFA2tleQMJAAECBQckbWF0Y2gwAgZTdHJpbmcEBnN0cmluZwUHJG1hdGNoMAkA2QQBBQZzdHJpbmcEB25vdGhpbmcFByRtYXRjaDAJAAIBCQCsAgIFA2tleQIIaXMgZW1wdHkADWtBZG1pblB1YktleTECC2FkbWluX3B1Yl8xAA1rQWRtaW5QdWJLZXkyAgthZG1pbl9wdWJfMgANa0FkbWluUHViS2V5MwILYWRtaW5fcHViXzMAEmtBZG1pbkludm9rZVB1YktleQIQYWRtaW5faW52b2tlX3B1YgALa0dvdkFkZHJlc3MCEmdvdmVybmFuY2VfYWRkcmVzcwAMa0Zhcm1BZGRyZXNzAg9mYXJtaW5nX2FkZHJlc3MAD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hbmdlQ2FsbENQTU0GBQ1pc0FpcmRyb3BDYWxsCQAAAgkAkAMBCAUDaW52CHBheW1lbnRzAAEHBgMDAwMDBRNpc1VwZGF0ZVdlaWdodHNDYWxsBgUUaXNVcGRhdGVQb29sSW50ZXJlc3QGBRJpc1Rha2VuSW50b0FjY291bnQGBRZpc1Rha2VuSW50b0FjY291bnRDUE1NBgUMaXNXcml0ZVRvdGFsCQAAAgkAkAMBCAUDaW52CHBheW1lbnRzAAAHBQ1zaWduZWRCeUFkbWluBwQSYWRtaW5QdWJLZXkxU2lnbmVkAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUMYWRtaW5QdWJLZXkxAAEAAAQSYWRtaW5QdWJLZXkyU2lnbmVkAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAQUMYWRtaW5QdWJLZXkyAAEAAAQSYWRtaW5QdWJLZXkzU2lnbmVkAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAgUMYWRtaW5QdWJLZXkzAAEAAAkAZwIJAGQCCQBkAgUSYWRtaW5QdWJLZXkxU2lnbmVkBRJhZG1pblB1YktleTJTaWduZWQFEmFkbWluUHViS2V5M1NpZ25lZAACyv7zDA==",
"height": 2348182,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 3qJQxdYx3rbgQfjtTKtfEdmSTuf5nxs3h1hseBkWmi1V
Next: 4mQgv8gFZ6322cVh4C4QX1U7CPaf6irztSsMxkFHQPkd
Diff:
Old | New | | Differences |
---|
59 | 59 | | else false) |
---|
60 | 60 | | then (x.args[0] == "exchange") |
---|
61 | 61 | | else false |
---|
62 | | - | let z = if ((x.dApp == r)) |
---|
| 62 | + | let z = if (isDefined(getString(a, (u + toString(addressFromRecipient(x.dApp)))))) |
---|
| 63 | + | then (x.function == "exchange") |
---|
| 64 | + | else false |
---|
| 65 | + | let A = if ((x.dApp == r)) |
---|
63 | 66 | | then (x.function == "airDrop") |
---|
64 | 67 | | else false |
---|
65 | | - | let A = if ((x.dApp == r)) |
---|
| 68 | + | let B = if ((x.dApp == r)) |
---|
66 | 69 | | then (x.function == "updateWeights") |
---|
67 | 70 | | else false |
---|
68 | | - | let B = if ((x.dApp == s)) |
---|
| 71 | + | let C = if ((x.dApp == s)) |
---|
69 | 72 | | then (x.function == "updatePoolInterest") |
---|
70 | 73 | | else false |
---|
71 | | - | let C = if (if (isDefined(getString(a, (u + toString(addressFromRecipient(x.dApp)))))) |
---|
| 74 | + | let D = if (if (isDefined(getString(a, (u + toString(addressFromRecipient(x.dApp)))))) |
---|
72 | 75 | | then (x.function == "callFunction") |
---|
73 | 76 | | else false) |
---|
74 | 77 | | then (x.args[0] == "takeIntoAccountExtraFunds") |
---|
75 | 78 | | else false |
---|
76 | | - | let D = if ((x.dApp == t)) |
---|
| 79 | + | let E = if (isDefined(getString(a, (u + toString(addressFromRecipient(x.dApp)))))) |
---|
| 80 | + | then (x.function == "takeIntoAccountExtraFunds") |
---|
| 81 | + | else false |
---|
| 82 | + | let F = if ((x.dApp == t)) |
---|
77 | 83 | | then (x.function == "writeTotals") |
---|
78 | 84 | | else false |
---|
79 | | - | let E = sigVerify(v.bodyBytes, v.proofs[0], q) |
---|
80 | | - | if (if (if (if (y) |
---|
| 85 | + | let G = sigVerify(v.bodyBytes, v.proofs[0], q) |
---|
| 86 | + | if (if (if (if (if (z) |
---|
81 | 87 | | then true |
---|
82 | | - | else z) |
---|
| 88 | + | else y) |
---|
| 89 | + | then true |
---|
| 90 | + | else A) |
---|
83 | 91 | | then (size(x.payments) == 1) |
---|
84 | 92 | | else false) |
---|
85 | 93 | | then true |
---|
86 | | - | else if (if (if (if (A) |
---|
87 | | - | then true |
---|
88 | | - | else B) |
---|
| 94 | + | else if (if (if (if (if (B) |
---|
89 | 95 | | then true |
---|
90 | 96 | | else C) |
---|
91 | 97 | | then true |
---|
| 98 | + | else E) |
---|
| 99 | + | then true |
---|
92 | 100 | | else D) |
---|
| 101 | + | then true |
---|
| 102 | + | else F) |
---|
93 | 103 | | then (size(x.payments) == 0) |
---|
94 | 104 | | else false) |
---|
95 | | - | then E |
---|
| 105 | + | then G |
---|
96 | 106 | | else false |
---|
97 | 107 | | } |
---|
98 | 108 | | else { |
---|
99 | | - | let F = if (sigVerify(v.bodyBytes, v.proofs[0], n)) |
---|
| 109 | + | let H = if (sigVerify(v.bodyBytes, v.proofs[0], n)) |
---|
100 | 110 | | then 1 |
---|
101 | 111 | | else 0 |
---|
102 | | - | let G = if (sigVerify(v.bodyBytes, v.proofs[1], o)) |
---|
| 112 | + | let I = if (sigVerify(v.bodyBytes, v.proofs[1], o)) |
---|
103 | 113 | | then 1 |
---|
104 | 114 | | else 0 |
---|
105 | | - | let H = if (sigVerify(v.bodyBytes, v.proofs[2], p)) |
---|
| 115 | + | let J = if (sigVerify(v.bodyBytes, v.proofs[2], p)) |
---|
106 | 116 | | then 1 |
---|
107 | 117 | | else 0 |
---|
108 | | - | (((F + G) + H) >= 2) |
---|
| 118 | + | (((H + I) + J) >= 2) |
---|
109 | 119 | | } |
---|
110 | 120 | | } |
---|
111 | 121 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz') |
---|
5 | 5 | | |
---|
6 | 6 | | func b (c) = { |
---|
7 | 7 | | let d = getString(a, c) |
---|
8 | 8 | | if ($isInstanceOf(d, "String")) |
---|
9 | 9 | | then { |
---|
10 | 10 | | let e = d |
---|
11 | 11 | | fromBase58String(e) |
---|
12 | 12 | | } |
---|
13 | 13 | | else { |
---|
14 | 14 | | let f = d |
---|
15 | 15 | | throw((c + "is empty")) |
---|
16 | 16 | | } |
---|
17 | 17 | | } |
---|
18 | 18 | | |
---|
19 | 19 | | |
---|
20 | 20 | | let g = "admin_pub_1" |
---|
21 | 21 | | |
---|
22 | 22 | | let h = "admin_pub_2" |
---|
23 | 23 | | |
---|
24 | 24 | | let i = "admin_pub_3" |
---|
25 | 25 | | |
---|
26 | 26 | | let j = "admin_invoke_pub" |
---|
27 | 27 | | |
---|
28 | 28 | | let k = "governance_address" |
---|
29 | 29 | | |
---|
30 | 30 | | let l = "farming_address" |
---|
31 | 31 | | |
---|
32 | 32 | | let m = "surveys_address" |
---|
33 | 33 | | |
---|
34 | 34 | | let n = b(g) |
---|
35 | 35 | | |
---|
36 | 36 | | let o = b(h) |
---|
37 | 37 | | |
---|
38 | 38 | | let p = b(i) |
---|
39 | 39 | | |
---|
40 | 40 | | let q = b(j) |
---|
41 | 41 | | |
---|
42 | 42 | | let r = Address(b(k)) |
---|
43 | 43 | | |
---|
44 | 44 | | let s = Address(b(l)) |
---|
45 | 45 | | |
---|
46 | 46 | | let t = Address(b(m)) |
---|
47 | 47 | | |
---|
48 | 48 | | let u = "pool_" |
---|
49 | 49 | | |
---|
50 | 50 | | |
---|
51 | 51 | | @Verifier(v) |
---|
52 | 52 | | func w () = { |
---|
53 | 53 | | let d = v |
---|
54 | 54 | | if ($isInstanceOf(d, "InvokeScriptTransaction")) |
---|
55 | 55 | | then { |
---|
56 | 56 | | let x = d |
---|
57 | 57 | | let y = if (if (isDefined(getString(a, (u + toString(addressFromRecipient(x.dApp)))))) |
---|
58 | 58 | | then (x.function == "callFunction") |
---|
59 | 59 | | else false) |
---|
60 | 60 | | then (x.args[0] == "exchange") |
---|
61 | 61 | | else false |
---|
62 | | - | let z = if ((x.dApp == r)) |
---|
| 62 | + | let z = if (isDefined(getString(a, (u + toString(addressFromRecipient(x.dApp)))))) |
---|
| 63 | + | then (x.function == "exchange") |
---|
| 64 | + | else false |
---|
| 65 | + | let A = if ((x.dApp == r)) |
---|
63 | 66 | | then (x.function == "airDrop") |
---|
64 | 67 | | else false |
---|
65 | | - | let A = if ((x.dApp == r)) |
---|
| 68 | + | let B = if ((x.dApp == r)) |
---|
66 | 69 | | then (x.function == "updateWeights") |
---|
67 | 70 | | else false |
---|
68 | | - | let B = if ((x.dApp == s)) |
---|
| 71 | + | let C = if ((x.dApp == s)) |
---|
69 | 72 | | then (x.function == "updatePoolInterest") |
---|
70 | 73 | | else false |
---|
71 | | - | let C = if (if (isDefined(getString(a, (u + toString(addressFromRecipient(x.dApp)))))) |
---|
| 74 | + | let D = if (if (isDefined(getString(a, (u + toString(addressFromRecipient(x.dApp)))))) |
---|
72 | 75 | | then (x.function == "callFunction") |
---|
73 | 76 | | else false) |
---|
74 | 77 | | then (x.args[0] == "takeIntoAccountExtraFunds") |
---|
75 | 78 | | else false |
---|
76 | | - | let D = if ((x.dApp == t)) |
---|
| 79 | + | let E = if (isDefined(getString(a, (u + toString(addressFromRecipient(x.dApp)))))) |
---|
| 80 | + | then (x.function == "takeIntoAccountExtraFunds") |
---|
| 81 | + | else false |
---|
| 82 | + | let F = if ((x.dApp == t)) |
---|
77 | 83 | | then (x.function == "writeTotals") |
---|
78 | 84 | | else false |
---|
79 | | - | let E = sigVerify(v.bodyBytes, v.proofs[0], q) |
---|
80 | | - | if (if (if (if (y) |
---|
| 85 | + | let G = sigVerify(v.bodyBytes, v.proofs[0], q) |
---|
| 86 | + | if (if (if (if (if (z) |
---|
81 | 87 | | then true |
---|
82 | | - | else z) |
---|
| 88 | + | else y) |
---|
| 89 | + | then true |
---|
| 90 | + | else A) |
---|
83 | 91 | | then (size(x.payments) == 1) |
---|
84 | 92 | | else false) |
---|
85 | 93 | | then true |
---|
86 | | - | else if (if (if (if (A) |
---|
87 | | - | then true |
---|
88 | | - | else B) |
---|
| 94 | + | else if (if (if (if (if (B) |
---|
89 | 95 | | then true |
---|
90 | 96 | | else C) |
---|
91 | 97 | | then true |
---|
| 98 | + | else E) |
---|
| 99 | + | then true |
---|
92 | 100 | | else D) |
---|
| 101 | + | then true |
---|
| 102 | + | else F) |
---|
93 | 103 | | then (size(x.payments) == 0) |
---|
94 | 104 | | else false) |
---|
95 | | - | then E |
---|
| 105 | + | then G |
---|
96 | 106 | | else false |
---|
97 | 107 | | } |
---|
98 | 108 | | else { |
---|
99 | | - | let F = if (sigVerify(v.bodyBytes, v.proofs[0], n)) |
---|
| 109 | + | let H = if (sigVerify(v.bodyBytes, v.proofs[0], n)) |
---|
100 | 110 | | then 1 |
---|
101 | 111 | | else 0 |
---|
102 | | - | let G = if (sigVerify(v.bodyBytes, v.proofs[1], o)) |
---|
| 112 | + | let I = if (sigVerify(v.bodyBytes, v.proofs[1], o)) |
---|
103 | 113 | | then 1 |
---|
104 | 114 | | else 0 |
---|
105 | | - | let H = if (sigVerify(v.bodyBytes, v.proofs[2], p)) |
---|
| 115 | + | let J = if (sigVerify(v.bodyBytes, v.proofs[2], p)) |
---|
106 | 116 | | then 1 |
---|
107 | 117 | | else 0 |
---|
108 | | - | (((F + G) + H) >= 2) |
---|
| 118 | + | (((H + I) + J) >= 2) |
---|
109 | 119 | | } |
---|
110 | 120 | | } |
---|
111 | 121 | | |
---|